Fixed files to support FreeBSD amd64 based on patches at:
[platform/upstream/glog.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for glog 0.3.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, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: opensource@google.com about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 # Check that we are running under the correct shell.
542 SHELL=${CONFIG_SHELL-/bin/sh}
543
544 case X$lt_ECHO in
545 X*--fallback-echo)
546   # Remove one level of quotation (which was required for Make).
547   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
548   ;;
549 esac
550
551 ECHO=${lt_ECHO-echo}
552 if test "X$1" = X--no-reexec; then
553   # Discard the --no-reexec flag, and continue.
554   shift
555 elif test "X$1" = X--fallback-echo; then
556   # Avoid inline document here, it may be left over
557   :
558 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
559   # Yippee, $ECHO works!
560   :
561 else
562   # Restart under the correct shell.
563   exec $SHELL "$0" --no-reexec ${1+"$@"}
564 fi
565
566 if test "X$1" = X--fallback-echo; then
567   # used as fallback echo
568   shift
569   cat <<_LT_EOF
570 $*
571 _LT_EOF
572   exit 0
573 fi
574
575 # The HP-UX ksh and POSIX shell print the target directory to stdout
576 # if CDPATH is set.
577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578
579 if test -z "$lt_ECHO"; then
580   if test "X${echo_test_string+set}" != Xset; then
581     # find a string as large as possible, as long as the shell can cope with it
582     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
585          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
586       then
587         break
588       fi
589     done
590   fi
591
592   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
593      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
594      test "X$echo_testing_string" = "X$echo_test_string"; then
595     :
596   else
597     # The Solaris, AIX, and Digital Unix default echo programs unquote
598     # backslashes.  This makes it impossible to quote backslashes using
599     #   echo "$something" | sed 's/\\/\\\\/g'
600     #
601     # So, first we look for a working echo in the user's PATH.
602
603     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604     for dir in $PATH /usr/ucb; do
605       IFS="$lt_save_ifs"
606       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         ECHO="$dir/echo"
611         break
612       fi
613     done
614     IFS="$lt_save_ifs"
615
616     if test "X$ECHO" = Xecho; then
617       # We didn't find a better echo, so look for alternatives.
618       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
619          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
620          test "X$echo_testing_string" = "X$echo_test_string"; then
621         # This shell has a builtin print -r that does the trick.
622         ECHO='print -r'
623       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
624            test "X$CONFIG_SHELL" != X/bin/ksh; then
625         # If we have ksh, try running configure again with it.
626         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627         export ORIGINAL_CONFIG_SHELL
628         CONFIG_SHELL=/bin/ksh
629         export CONFIG_SHELL
630         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631       else
632         # Try using printf.
633         ECHO='printf %s\n'
634         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
635            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
636            test "X$echo_testing_string" = "X$echo_test_string"; then
637           # Cool, printf works
638           :
639         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640              test "X$echo_testing_string" = 'X\t' &&
641              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642              test "X$echo_testing_string" = "X$echo_test_string"; then
643           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644           export CONFIG_SHELL
645           SHELL="$CONFIG_SHELL"
646           export SHELL
647           ECHO="$CONFIG_SHELL $0 --fallback-echo"
648         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649              test "X$echo_testing_string" = 'X\t' &&
650              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651              test "X$echo_testing_string" = "X$echo_test_string"; then
652           ECHO="$CONFIG_SHELL $0 --fallback-echo"
653         else
654           # maybe with a smaller string...
655           prev=:
656
657           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
659             then
660               break
661             fi
662             prev="$cmd"
663           done
664
665           if test "$prev" != 'sed 50q "$0"'; then
666             echo_test_string=`eval $prev`
667             export echo_test_string
668             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669           else
670             # Oops.  We lost completely, so just stick with echo.
671             ECHO=echo
672           fi
673         fi
674       fi
675     fi
676   fi
677 fi
678
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
681 lt_ECHO=$ECHO
682 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684 fi
685
686
687
688
689 test -n "$DJDIR" || exec 7<&0 </dev/null
690 exec 6>&1
691
692 # Name of the host.
693 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
694 # so uname gets run too.
695 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
696
697 #
698 # Initializations.
699 #
700 ac_default_prefix=/usr/local
701 ac_clean_files=
702 ac_config_libobj_dir=.
703 LIBOBJS=
704 cross_compiling=no
705 subdirs=
706 MFLAGS=
707 MAKEFLAGS=
708
709 # Identity of this package.
710 PACKAGE_NAME='glog'
711 PACKAGE_TARNAME='glog'
712 PACKAGE_VERSION='0.3.2'
713 PACKAGE_STRING='glog 0.3.2'
714 PACKAGE_BUGREPORT='opensource@google.com'
715 PACKAGE_URL=''
716
717 ac_unique_file="README"
718 # Factoring default headers for most tests.
719 ac_includes_default="\
720 #include <stdio.h>
721 #ifdef HAVE_SYS_TYPES_H
722 # include <sys/types.h>
723 #endif
724 #ifdef HAVE_SYS_STAT_H
725 # include <sys/stat.h>
726 #endif
727 #ifdef STDC_HEADERS
728 # include <stdlib.h>
729 # include <stddef.h>
730 #else
731 # ifdef HAVE_STDLIB_H
732 #  include <stdlib.h>
733 # endif
734 #endif
735 #ifdef HAVE_STRING_H
736 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
737 #  include <memory.h>
738 # endif
739 # include <string.h>
740 #endif
741 #ifdef HAVE_STRINGS_H
742 # include <strings.h>
743 #endif
744 #ifdef HAVE_INTTYPES_H
745 # include <inttypes.h>
746 #endif
747 #ifdef HAVE_STDINT_H
748 # include <stdint.h>
749 #endif
750 #ifdef HAVE_UNISTD_H
751 # include <unistd.h>
752 #endif"
753
754 ac_subst_vars='am__EXEEXT_FALSE
755 am__EXEEXT_TRUE
756 LTLIBOBJS
757 LIBOBJS
758 GMOCK_LIBS
759 GTEST_LIBS
760 GFLAGS_LIBS
761 GMOCK_CFLAGS
762 GTEST_CFLAGS
763 GFLAGS_CFLAGS
764 ac_cv_have_libgflags
765 ac_cv_have___uint16
766 ac_cv_have_u_int16_t
767 ac_cv_have_uint16_t
768 ac_cv_have_unistd_h
769 ac_cv_have_inttypes_h
770 ac_cv_have_systypes_h
771 ac_cv_have_stdint_h
772 ac_cv_have___builtin_expect
773 ac_cv___attribute___printf_4_5
774 ac_cv___attribute___noreturn
775 ac_cv_cxx_using_operator
776 ac_google_namespace
777 ac_google_end_namespace
778 ac_google_start_namespace
779 UNWIND_LIBS
780 HAVE_GMOCK_FALSE
781 HAVE_GMOCK_TRUE
782 GMOCK_CONFIG
783 GTEST_CONFIG
784 PTHREAD_CFLAGS
785 PTHREAD_LIBS
786 PTHREAD_CC
787 acx_pthread_config
788 DISABLE_RTTI_FALSE
789 DISABLE_RTTI_TRUE
790 X86_64_FALSE
791 X86_64_TRUE
792 ENABLE_FRAME_POINTERS_FALSE
793 ENABLE_FRAME_POINTERS_TRUE
794 LIBTOOL_DEPS
795 CXXCPP
796 OTOOL64
797 OTOOL
798 LIPO
799 NMEDIT
800 DSYMUTIL
801 lt_ECHO
802 RANLIB
803 AR
804 OBJDUMP
805 LN_S
806 NM
807 ac_ct_DUMPBIN
808 DUMPBIN
809 LD
810 FGREP
811 EGREP
812 GREP
813 SED
814 host_os
815 host_vendor
816 host_cpu
817 host
818 build_os
819 build_vendor
820 build_cpu
821 build
822 LIBTOOL
823 GCC_FALSE
824 GCC_TRUE
825 am__fastdepCXX_FALSE
826 am__fastdepCXX_TRUE
827 CXXDEPMODE
828 ac_ct_CXX
829 CXXFLAGS
830 CXX
831 CPP
832 am__fastdepCC_FALSE
833 am__fastdepCC_TRUE
834 CCDEPMODE
835 AMDEPBACKSLASH
836 AMDEP_FALSE
837 AMDEP_TRUE
838 am__quote
839 am__include
840 DEPDIR
841 OBJEXT
842 EXEEXT
843 ac_ct_CC
844 CPPFLAGS
845 LDFLAGS
846 CFLAGS
847 CC
848 am__untar
849 am__tar
850 AMTAR
851 am__leading_dot
852 SET_MAKE
853 AWK
854 mkdir_p
855 MKDIR_P
856 INSTALL_STRIP_PROGRAM
857 STRIP
858 install_sh
859 MAKEINFO
860 AUTOHEADER
861 AUTOMAKE
862 AUTOCONF
863 ACLOCAL
864 VERSION
865 PACKAGE
866 CYGPATH_W
867 am__isrc
868 INSTALL_DATA
869 INSTALL_SCRIPT
870 INSTALL_PROGRAM
871 target_alias
872 host_alias
873 build_alias
874 LIBS
875 ECHO_T
876 ECHO_N
877 ECHO_C
878 DEFS
879 mandir
880 localedir
881 libdir
882 psdir
883 pdfdir
884 dvidir
885 htmldir
886 infodir
887 docdir
888 oldincludedir
889 includedir
890 localstatedir
891 sharedstatedir
892 sysconfdir
893 datadir
894 datarootdir
895 libexecdir
896 sbindir
897 bindir
898 program_transform_name
899 prefix
900 exec_prefix
901 PACKAGE_URL
902 PACKAGE_BUGREPORT
903 PACKAGE_STRING
904 PACKAGE_VERSION
905 PACKAGE_TARNAME
906 PACKAGE_NAME
907 PATH_SEPARATOR
908 SHELL'
909 ac_subst_files=''
910 ac_user_opts='
911 enable_option_checking
912 enable_dependency_tracking
913 enable_shared
914 enable_static
915 with_pic
916 enable_fast_install
917 with_gnu_ld
918 enable_libtool_lock
919 enable_frame_pointers
920 enable_rtti
921 with_gflags
922 enable_namespace
923 '
924       ac_precious_vars='build_alias
925 host_alias
926 target_alias
927 CC
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
932 CPP
933 CXX
934 CXXFLAGS
935 CCC
936 CXXCPP'
937
938
939 # Initialize some variables set by options.
940 ac_init_help=
941 ac_init_version=false
942 ac_unrecognized_opts=
943 ac_unrecognized_sep=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
946 cache_file=/dev/null
947 exec_prefix=NONE
948 no_create=
949 no_recursion=
950 prefix=NONE
951 program_prefix=NONE
952 program_suffix=NONE
953 program_transform_name=s,x,x,
954 silent=
955 site=
956 srcdir=
957 verbose=
958 x_includes=NONE
959 x_libraries=NONE
960
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir='${exec_prefix}/bin'
968 sbindir='${exec_prefix}/sbin'
969 libexecdir='${exec_prefix}/libexec'
970 datarootdir='${prefix}/share'
971 datadir='${datarootdir}'
972 sysconfdir='${prefix}/etc'
973 sharedstatedir='${prefix}/com'
974 localstatedir='${prefix}/var'
975 includedir='${prefix}/include'
976 oldincludedir='/usr/include'
977 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
978 infodir='${datarootdir}/info'
979 htmldir='${docdir}'
980 dvidir='${docdir}'
981 pdfdir='${docdir}'
982 psdir='${docdir}'
983 libdir='${exec_prefix}/lib'
984 localedir='${datarootdir}/locale'
985 mandir='${datarootdir}/man'
986
987 ac_prev=
988 ac_dashdash=
989 for ac_option
990 do
991   # If the previous option needs an argument, assign it.
992   if test -n "$ac_prev"; then
993     eval $ac_prev=\$ac_option
994     ac_prev=
995     continue
996   fi
997
998   case $ac_option in
999   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000   *=)   ac_optarg= ;;
1001   *)    ac_optarg=yes ;;
1002   esac
1003
1004   # Accept the important Cygnus configure options, so we can diagnose typos.
1005
1006   case $ac_dashdash$ac_option in
1007   --)
1008     ac_dashdash=yes ;;
1009
1010   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011     ac_prev=bindir ;;
1012   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013     bindir=$ac_optarg ;;
1014
1015   -build | --build | --buil | --bui | --bu)
1016     ac_prev=build_alias ;;
1017   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018     build_alias=$ac_optarg ;;
1019
1020   -cache-file | --cache-file | --cache-fil | --cache-fi \
1021   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022     ac_prev=cache_file ;;
1023   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025     cache_file=$ac_optarg ;;
1026
1027   --config-cache | -C)
1028     cache_file=config.cache ;;
1029
1030   -datadir | --datadir | --datadi | --datad)
1031     ac_prev=datadir ;;
1032   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033     datadir=$ac_optarg ;;
1034
1035   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036   | --dataroo | --dataro | --datar)
1037     ac_prev=datarootdir ;;
1038   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040     datarootdir=$ac_optarg ;;
1041
1042   -disable-* | --disable-*)
1043     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044     # Reject names that are not valid shell variable names.
1045     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046       as_fn_error $? "invalid feature name: $ac_useropt"
1047     ac_useropt_orig=$ac_useropt
1048     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049     case $ac_user_opts in
1050       *"
1051 "enable_$ac_useropt"
1052 "*) ;;
1053       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054          ac_unrecognized_sep=', ';;
1055     esac
1056     eval enable_$ac_useropt=no ;;
1057
1058   -docdir | --docdir | --docdi | --doc | --do)
1059     ac_prev=docdir ;;
1060   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061     docdir=$ac_optarg ;;
1062
1063   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064     ac_prev=dvidir ;;
1065   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066     dvidir=$ac_optarg ;;
1067
1068   -enable-* | --enable-*)
1069     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070     # Reject names that are not valid shell variable names.
1071     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072       as_fn_error $? "invalid feature name: $ac_useropt"
1073     ac_useropt_orig=$ac_useropt
1074     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075     case $ac_user_opts in
1076       *"
1077 "enable_$ac_useropt"
1078 "*) ;;
1079       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080          ac_unrecognized_sep=', ';;
1081     esac
1082     eval enable_$ac_useropt=\$ac_optarg ;;
1083
1084   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086   | --exec | --exe | --ex)
1087     ac_prev=exec_prefix ;;
1088   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090   | --exec=* | --exe=* | --ex=*)
1091     exec_prefix=$ac_optarg ;;
1092
1093   -gas | --gas | --ga | --g)
1094     # Obsolete; use --with-gas.
1095     with_gas=yes ;;
1096
1097   -help | --help | --hel | --he | -h)
1098     ac_init_help=long ;;
1099   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100     ac_init_help=recursive ;;
1101   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102     ac_init_help=short ;;
1103
1104   -host | --host | --hos | --ho)
1105     ac_prev=host_alias ;;
1106   -host=* | --host=* | --hos=* | --ho=*)
1107     host_alias=$ac_optarg ;;
1108
1109   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110     ac_prev=htmldir ;;
1111   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112   | --ht=*)
1113     htmldir=$ac_optarg ;;
1114
1115   -includedir | --includedir | --includedi | --included | --include \
1116   | --includ | --inclu | --incl | --inc)
1117     ac_prev=includedir ;;
1118   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119   | --includ=* | --inclu=* | --incl=* | --inc=*)
1120     includedir=$ac_optarg ;;
1121
1122   -infodir | --infodir | --infodi | --infod | --info | --inf)
1123     ac_prev=infodir ;;
1124   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125     infodir=$ac_optarg ;;
1126
1127   -libdir | --libdir | --libdi | --libd)
1128     ac_prev=libdir ;;
1129   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130     libdir=$ac_optarg ;;
1131
1132   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133   | --libexe | --libex | --libe)
1134     ac_prev=libexecdir ;;
1135   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136   | --libexe=* | --libex=* | --libe=*)
1137     libexecdir=$ac_optarg ;;
1138
1139   -localedir | --localedir | --localedi | --localed | --locale)
1140     ac_prev=localedir ;;
1141   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142     localedir=$ac_optarg ;;
1143
1144   -localstatedir | --localstatedir | --localstatedi | --localstated \
1145   | --localstate | --localstat | --localsta | --localst | --locals)
1146     ac_prev=localstatedir ;;
1147   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149     localstatedir=$ac_optarg ;;
1150
1151   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152     ac_prev=mandir ;;
1153   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154     mandir=$ac_optarg ;;
1155
1156   -nfp | --nfp | --nf)
1157     # Obsolete; use --without-fp.
1158     with_fp=no ;;
1159
1160   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161   | --no-cr | --no-c | -n)
1162     no_create=yes ;;
1163
1164   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166     no_recursion=yes ;;
1167
1168   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170   | --oldin | --oldi | --old | --ol | --o)
1171     ac_prev=oldincludedir ;;
1172   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175     oldincludedir=$ac_optarg ;;
1176
1177   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178     ac_prev=prefix ;;
1179   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180     prefix=$ac_optarg ;;
1181
1182   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183   | --program-pre | --program-pr | --program-p)
1184     ac_prev=program_prefix ;;
1185   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187     program_prefix=$ac_optarg ;;
1188
1189   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190   | --program-suf | --program-su | --program-s)
1191     ac_prev=program_suffix ;;
1192   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194     program_suffix=$ac_optarg ;;
1195
1196   -program-transform-name | --program-transform-name \
1197   | --program-transform-nam | --program-transform-na \
1198   | --program-transform-n | --program-transform- \
1199   | --program-transform | --program-transfor \
1200   | --program-transfo | --program-transf \
1201   | --program-trans | --program-tran \
1202   | --progr-tra | --program-tr | --program-t)
1203     ac_prev=program_transform_name ;;
1204   -program-transform-name=* | --program-transform-name=* \
1205   | --program-transform-nam=* | --program-transform-na=* \
1206   | --program-transform-n=* | --program-transform-=* \
1207   | --program-transform=* | --program-transfor=* \
1208   | --program-transfo=* | --program-transf=* \
1209   | --program-trans=* | --program-tran=* \
1210   | --progr-tra=* | --program-tr=* | --program-t=*)
1211     program_transform_name=$ac_optarg ;;
1212
1213   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214     ac_prev=pdfdir ;;
1215   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216     pdfdir=$ac_optarg ;;
1217
1218   -psdir | --psdir | --psdi | --psd | --ps)
1219     ac_prev=psdir ;;
1220   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221     psdir=$ac_optarg ;;
1222
1223   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224   | -silent | --silent | --silen | --sile | --sil)
1225     silent=yes ;;
1226
1227   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228     ac_prev=sbindir ;;
1229   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230   | --sbi=* | --sb=*)
1231     sbindir=$ac_optarg ;;
1232
1233   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235   | --sharedst | --shareds | --shared | --share | --shar \
1236   | --sha | --sh)
1237     ac_prev=sharedstatedir ;;
1238   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241   | --sha=* | --sh=*)
1242     sharedstatedir=$ac_optarg ;;
1243
1244   -site | --site | --sit)
1245     ac_prev=site ;;
1246   -site=* | --site=* | --sit=*)
1247     site=$ac_optarg ;;
1248
1249   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250     ac_prev=srcdir ;;
1251   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252     srcdir=$ac_optarg ;;
1253
1254   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255   | --syscon | --sysco | --sysc | --sys | --sy)
1256     ac_prev=sysconfdir ;;
1257   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259     sysconfdir=$ac_optarg ;;
1260
1261   -target | --target | --targe | --targ | --tar | --ta | --t)
1262     ac_prev=target_alias ;;
1263   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264     target_alias=$ac_optarg ;;
1265
1266   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267     verbose=yes ;;
1268
1269   -version | --version | --versio | --versi | --vers | -V)
1270     ac_init_version=: ;;
1271
1272   -with-* | --with-*)
1273     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274     # Reject names that are not valid shell variable names.
1275     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276       as_fn_error $? "invalid package name: $ac_useropt"
1277     ac_useropt_orig=$ac_useropt
1278     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279     case $ac_user_opts in
1280       *"
1281 "with_$ac_useropt"
1282 "*) ;;
1283       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284          ac_unrecognized_sep=', ';;
1285     esac
1286     eval with_$ac_useropt=\$ac_optarg ;;
1287
1288   -without-* | --without-*)
1289     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290     # Reject names that are not valid shell variable names.
1291     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292       as_fn_error $? "invalid package name: $ac_useropt"
1293     ac_useropt_orig=$ac_useropt
1294     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295     case $ac_user_opts in
1296       *"
1297 "with_$ac_useropt"
1298 "*) ;;
1299       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300          ac_unrecognized_sep=', ';;
1301     esac
1302     eval with_$ac_useropt=no ;;
1303
1304   --x)
1305     # Obsolete; use --with-x.
1306     with_x=yes ;;
1307
1308   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309   | --x-incl | --x-inc | --x-in | --x-i)
1310     ac_prev=x_includes ;;
1311   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313     x_includes=$ac_optarg ;;
1314
1315   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317     ac_prev=x_libraries ;;
1318   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320     x_libraries=$ac_optarg ;;
1321
1322   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information"
1324     ;;
1325
1326   *=*)
1327     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328     # Reject names that are not valid shell variable names.
1329     case $ac_envvar in #(
1330       '' | [0-9]* | *[!_$as_cr_alnum]* )
1331       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1332     esac
1333     eval $ac_envvar=\$ac_optarg
1334     export $ac_envvar ;;
1335
1336   *)
1337     # FIXME: should be removed in autoconf 3.0.
1338     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1342     ;;
1343
1344   esac
1345 done
1346
1347 if test -n "$ac_prev"; then
1348   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349   as_fn_error $? "missing argument to $ac_option"
1350 fi
1351
1352 if test -n "$ac_unrecognized_opts"; then
1353   case $enable_option_checking in
1354     no) ;;
1355     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1356     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357   esac
1358 fi
1359
1360 # Check all directory arguments for consistency.
1361 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362                 datadir sysconfdir sharedstatedir localstatedir includedir \
1363                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364                 libdir localedir mandir
1365 do
1366   eval ac_val=\$$ac_var
1367   # Remove trailing slashes.
1368   case $ac_val in
1369     */ )
1370       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371       eval $ac_var=\$ac_val;;
1372   esac
1373   # Be sure to have absolute directory names.
1374   case $ac_val in
1375     [\\/$]* | ?:[\\/]* )  continue;;
1376     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1377   esac
1378   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1379 done
1380
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1384 build=$build_alias
1385 host=$host_alias
1386 target=$target_alias
1387
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x; then
1390   if test "x$build_alias" = x; then
1391     cross_compiling=maybe
1392     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1393     If a cross compiler is detected then cross compile mode will be used" >&2
1394   elif test "x$build_alias" != "x$host_alias"; then
1395     cross_compiling=yes
1396   fi
1397 fi
1398
1399 ac_tool_prefix=
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401
1402 test "$silent" = yes && exec 6>/dev/null
1403
1404
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408   as_fn_error $? "working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410   as_fn_error $? "pwd does not report name of working directory"
1411
1412
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415   ac_srcdir_defaulted=yes
1416   # Try the directory containing this script, then the parent directory.
1417   ac_confdir=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419          X"$as_myself" : 'X\(//\)[^/]' \| \
1420          X"$as_myself" : 'X\(//\)$' \| \
1421          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424             s//\1/
1425             q
1426           }
1427           /^X\(\/\/\)[^/].*/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\/\)$/{
1432             s//\1/
1433             q
1434           }
1435           /^X\(\/\).*/{
1436             s//\1/
1437             q
1438           }
1439           s/.*/./; q'`
1440   srcdir=$ac_confdir
1441   if test ! -r "$srcdir/$ac_unique_file"; then
1442     srcdir=..
1443   fi
1444 else
1445   ac_srcdir_defaulted=no
1446 fi
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1450 fi
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 ac_abs_confdir=`(
1453         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1454         pwd)`
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457   srcdir=.
1458 fi
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1462 case $srcdir in
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 esac
1465 for ac_var in $ac_precious_vars; do
1466   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467   eval ac_env_${ac_var}_value=\$${ac_var}
1468   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 done
1471
1472 #
1473 # Report the --help message.
1474 #
1475 if test "$ac_init_help" = "long"; then
1476   # Omit some internal or obsolete options to make the list less imposing.
1477   # This message is too long to be a string in the A/UX 3.1 sh.
1478   cat <<_ACEOF
1479 \`configure' configures glog 0.3.2 to adapt to many kinds of systems.
1480
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1482
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE.  See below for descriptions of some of the useful variables.
1485
1486 Defaults for the options are specified in brackets.
1487
1488 Configuration:
1489   -h, --help              display this help and exit
1490       --help=short        display options specific to this package
1491       --help=recursive    display the short help of all the included packages
1492   -V, --version           display version information and exit
1493   -q, --quiet, --silent   do not print \`checking ...' messages
1494       --cache-file=FILE   cache test results in FILE [disabled]
1495   -C, --config-cache      alias for \`--cache-file=config.cache'
1496   -n, --no-create         do not create output files
1497       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1498
1499 Installation directories:
1500   --prefix=PREFIX         install architecture-independent files in PREFIX
1501                           [$ac_default_prefix]
1502   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1503                           [PREFIX]
1504
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1509
1510 For better control, use the options below.
1511
1512 Fine tuning of the installation directories:
1513   --bindir=DIR            user executables [EPREFIX/bin]
1514   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1515   --libexecdir=DIR        program executables [EPREFIX/libexec]
1516   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1517   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1518   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1519   --libdir=DIR            object code libraries [EPREFIX/lib]
1520   --includedir=DIR        C header files [PREFIX/include]
1521   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1522   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1523   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1524   --infodir=DIR           info documentation [DATAROOTDIR/info]
1525   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1526   --mandir=DIR            man documentation [DATAROOTDIR/man]
1527   --docdir=DIR            documentation root [DATAROOTDIR/doc/glog]
1528   --htmldir=DIR           html documentation [DOCDIR]
1529   --dvidir=DIR            dvi documentation [DOCDIR]
1530   --pdfdir=DIR            pdf documentation [DOCDIR]
1531   --psdir=DIR             ps documentation [DOCDIR]
1532 _ACEOF
1533
1534   cat <<\_ACEOF
1535
1536 Program names:
1537   --program-prefix=PREFIX            prepend PREFIX to installed program names
1538   --program-suffix=SUFFIX            append SUFFIX to installed program names
1539   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1540
1541 System types:
1542   --build=BUILD     configure for building on BUILD [guessed]
1543   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1544 _ACEOF
1545 fi
1546
1547 if test -n "$ac_init_help"; then
1548   case $ac_init_help in
1549      short | recursive ) echo "Configuration of glog 0.3.2:";;
1550    esac
1551   cat <<\_ACEOF
1552
1553 Optional Features:
1554   --disable-option-checking  ignore unrecognized --enable/--with options
1555   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1556   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1557   --disable-dependency-tracking  speeds up one-time build
1558   --enable-dependency-tracking   do not reject slow dependency extractors
1559   --enable-shared[=PKGS]  build shared libraries [default=yes]
1560   --enable-static[=PKGS]  build static libraries [default=yes]
1561   --enable-fast-install[=PKGS]
1562                           optimize for fast installation [default=yes]
1563   --disable-libtool-lock  avoid locking (might break parallel builds)
1564   --enable-frame-pointers On x86_64 systems, compile with
1565                           -fno-omit-frame-pointer (see INSTALL)
1566   --disable-rtti          Disable RTTI in glog
1567   --enable-namespace=FOO to define these Google
1568                              classes in the FOO namespace. --disable-namespace
1569                              to define them in the global namespace. Default
1570                              is to define them in namespace google.
1571
1572 Optional Packages:
1573   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1574   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1575   --with-pic              try to use only PIC/non-PIC objects [default=use
1576                           both]
1577   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1578                           --with-gflags=GFLAGS_DIR
1579
1580 Some influential environment variables:
1581   CC          C compiler command
1582   CFLAGS      C compiler flags
1583   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1584               nonstandard directory <lib dir>
1585   LIBS        libraries to pass to the linker, e.g. -l<library>
1586   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1587               you have headers in a nonstandard directory <include dir>
1588   CPP         C preprocessor
1589   CXX         C++ compiler command
1590   CXXFLAGS    C++ compiler flags
1591   CXXCPP      C++ preprocessor
1592
1593 Use these variables to override the choices made by `configure' or to help
1594 it to find libraries and programs with nonstandard names/locations.
1595
1596 Report bugs to <opensource@google.com>.
1597 _ACEOF
1598 ac_status=$?
1599 fi
1600
1601 if test "$ac_init_help" = "recursive"; then
1602   # If there are subdirs, report their specific --help.
1603   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604     test -d "$ac_dir" ||
1605       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606       continue
1607     ac_builddir=.
1608
1609 case "$ac_dir" in
1610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *)
1612   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613   # A ".." for each directory in $ac_dir_suffix.
1614   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615   case $ac_top_builddir_sub in
1616   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618   esac ;;
1619 esac
1620 ac_abs_top_builddir=$ac_pwd
1621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir=$ac_top_build_prefix
1624
1625 case $srcdir in
1626   .)  # We are building in place.
1627     ac_srcdir=.
1628     ac_top_srcdir=$ac_top_builddir_sub
1629     ac_abs_top_srcdir=$ac_pwd ;;
1630   [\\/]* | ?:[\\/]* )  # Absolute name.
1631     ac_srcdir=$srcdir$ac_dir_suffix;
1632     ac_top_srcdir=$srcdir
1633     ac_abs_top_srcdir=$srcdir ;;
1634   *) # Relative name.
1635     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636     ac_top_srcdir=$ac_top_build_prefix$srcdir
1637     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 esac
1639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641     cd "$ac_dir" || { ac_status=$?; continue; }
1642     # Check for guested configure.
1643     if test -f "$ac_srcdir/configure.gnu"; then
1644       echo &&
1645       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646     elif test -f "$ac_srcdir/configure"; then
1647       echo &&
1648       $SHELL "$ac_srcdir/configure" --help=recursive
1649     else
1650       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651     fi || ac_status=$?
1652     cd "$ac_pwd" || { ac_status=$?; break; }
1653   done
1654 fi
1655
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1658   cat <<\_ACEOF
1659 glog configure 0.3.2
1660 generated by GNU Autoconf 2.68
1661
1662 Copyright (C) 2010 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1665 _ACEOF
1666   exit
1667 fi
1668
1669 ## ------------------------ ##
1670 ## Autoconf initialization. ##
1671 ## ------------------------ ##
1672
1673 # ac_fn_c_try_compile LINENO
1674 # --------------------------
1675 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_compile ()
1677 {
1678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679   rm -f conftest.$ac_objext
1680   if { { ac_try="$ac_compile"
1681 case "(($ac_try" in
1682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683   *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687   (eval "$ac_compile") 2>conftest.err
1688   ac_status=$?
1689   if test -s conftest.err; then
1690     grep -v '^ *+' conftest.err >conftest.er1
1691     cat conftest.er1 >&5
1692     mv -f conftest.er1 conftest.err
1693   fi
1694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695   test $ac_status = 0; } && {
1696          test -z "$ac_c_werror_flag" ||
1697          test ! -s conftest.err
1698        } && test -s conftest.$ac_objext; then :
1699   ac_retval=0
1700 else
1701   $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704         ac_retval=1
1705 fi
1706   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707   as_fn_set_status $ac_retval
1708
1709 } # ac_fn_c_try_compile
1710
1711 # ac_fn_c_try_cpp LINENO
1712 # ----------------------
1713 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_cpp ()
1715 {
1716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717   if { { ac_try="$ac_cpp conftest.$ac_ext"
1718 case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1725   ac_status=$?
1726   if test -s conftest.err; then
1727     grep -v '^ *+' conftest.err >conftest.er1
1728     cat conftest.er1 >&5
1729     mv -f conftest.er1 conftest.err
1730   fi
1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732   test $ac_status = 0; } > conftest.i && {
1733          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734          test ! -s conftest.err
1735        }; then :
1736   ac_retval=0
1737 else
1738   $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741     ac_retval=1
1742 fi
1743   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744   as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_cpp
1747
1748 # ac_fn_cxx_try_compile LINENO
1749 # ----------------------------
1750 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_cxx_try_compile ()
1752 {
1753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754   rm -f conftest.$ac_objext
1755   if { { ac_try="$ac_compile"
1756 case "(($ac_try" in
1757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758   *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762   (eval "$ac_compile") 2>conftest.err
1763   ac_status=$?
1764   if test -s conftest.err; then
1765     grep -v '^ *+' conftest.err >conftest.er1
1766     cat conftest.er1 >&5
1767     mv -f conftest.er1 conftest.err
1768   fi
1769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770   test $ac_status = 0; } && {
1771          test -z "$ac_cxx_werror_flag" ||
1772          test ! -s conftest.err
1773        } && test -s conftest.$ac_objext; then :
1774   ac_retval=0
1775 else
1776   $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779         ac_retval=1
1780 fi
1781   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782   as_fn_set_status $ac_retval
1783
1784 } # ac_fn_cxx_try_compile
1785
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_link ()
1790 {
1791   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792   rm -f conftest.$ac_objext conftest$ac_exeext
1793   if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796   *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800   (eval "$ac_link") 2>conftest.err
1801   ac_status=$?
1802   if test -s conftest.err; then
1803     grep -v '^ *+' conftest.err >conftest.er1
1804     cat conftest.er1 >&5
1805     mv -f conftest.er1 conftest.err
1806   fi
1807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808   test $ac_status = 0; } && {
1809          test -z "$ac_c_werror_flag" ||
1810          test ! -s conftest.err
1811        } && test -s conftest$ac_exeext && {
1812          test "$cross_compiling" = yes ||
1813          $as_test_x conftest$ac_exeext
1814        }; then :
1815   ac_retval=0
1816 else
1817   $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1819
1820         ac_retval=1
1821 fi
1822   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824   # interfere with the next link command; also delete a directory that is
1825   # left behind by Apple's compiler.  We do this before executing the actions.
1826   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828   as_fn_set_status $ac_retval
1829
1830 } # ac_fn_c_try_link
1831
1832 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1833 # -------------------------------------------------------
1834 # Tests whether HEADER exists and can be compiled using the include files in
1835 # INCLUDES, setting the cache variable VAR accordingly.
1836 ac_fn_c_check_header_compile ()
1837 {
1838   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842   $as_echo_n "(cached) " >&6
1843 else
1844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h.  */
1846 $4
1847 #include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850   eval "$3=yes"
1851 else
1852   eval "$3=no"
1853 fi
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 fi
1856 eval ac_res=\$$3
1857                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861 } # ac_fn_c_check_header_compile
1862
1863 # ac_fn_c_try_run LINENO
1864 # ----------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1866 # that executables *can* be run.
1867 ac_fn_c_try_run ()
1868 {
1869   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870   if { { ac_try="$ac_link"
1871 case "(($ac_try" in
1872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873   *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877   (eval "$ac_link") 2>&5
1878   ac_status=$?
1879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1881   { { case "(($ac_try" in
1882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883   *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887   (eval "$ac_try") 2>&5
1888   ac_status=$?
1889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890   test $ac_status = 0; }; }; then :
1891   ac_retval=0
1892 else
1893   $as_echo "$as_me: program exited with status $ac_status" >&5
1894        $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1896
1897        ac_retval=$ac_status
1898 fi
1899   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901   as_fn_set_status $ac_retval
1902
1903 } # ac_fn_c_try_run
1904
1905 # ac_fn_c_check_func LINENO FUNC VAR
1906 # ----------------------------------
1907 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1908 ac_fn_c_check_func ()
1909 {
1910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval \${$3+:} false; then :
1914   $as_echo_n "(cached) " >&6
1915 else
1916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h.  */
1918 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1920 #define $2 innocuous_$2
1921
1922 /* System header to define __stub macros and hopefully few prototypes,
1923     which can conflict with char $2 (); below.
1924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1925     <limits.h> exists even on freestanding compilers.  */
1926
1927 #ifdef __STDC__
1928 # include <limits.h>
1929 #else
1930 # include <assert.h>
1931 #endif
1932
1933 #undef $2
1934
1935 /* Override any GCC internal prototype to avoid an error.
1936    Use char because int might match the return type of a GCC
1937    builtin and then its argument prototype would still apply.  */
1938 #ifdef __cplusplus
1939 extern "C"
1940 #endif
1941 char $2 ();
1942 /* The GNU C library defines this for functions which it implements
1943     to always fail with ENOSYS.  Some functions are actually named
1944     something starting with __ and the normal name is an alias.  */
1945 #if defined __stub_$2 || defined __stub___$2
1946 choke me
1947 #endif
1948
1949 int
1950 main ()
1951 {
1952 return $2 ();
1953   ;
1954   return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_link "$LINENO"; then :
1958   eval "$3=yes"
1959 else
1960   eval "$3=no"
1961 fi
1962 rm -f core conftest.err conftest.$ac_objext \
1963     conftest$ac_exeext conftest.$ac_ext
1964 fi
1965 eval ac_res=\$$3
1966                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970 } # ac_fn_c_check_func
1971
1972 # ac_fn_cxx_try_cpp LINENO
1973 # ------------------------
1974 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1975 ac_fn_cxx_try_cpp ()
1976 {
1977   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978   if { { ac_try="$ac_cpp conftest.$ac_ext"
1979 case "(($ac_try" in
1980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981   *) ac_try_echo=$ac_try;;
1982 esac
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1986   ac_status=$?
1987   if test -s conftest.err; then
1988     grep -v '^ *+' conftest.err >conftest.er1
1989     cat conftest.er1 >&5
1990     mv -f conftest.er1 conftest.err
1991   fi
1992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993   test $ac_status = 0; } > conftest.i && {
1994          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1995          test ! -s conftest.err
1996        }; then :
1997   ac_retval=0
1998 else
1999   $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2001
2002     ac_retval=1
2003 fi
2004   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005   as_fn_set_status $ac_retval
2006
2007 } # ac_fn_cxx_try_cpp
2008
2009 # ac_fn_cxx_try_link LINENO
2010 # -------------------------
2011 # Try to link conftest.$ac_ext, and return whether this succeeded.
2012 ac_fn_cxx_try_link ()
2013 {
2014   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015   rm -f conftest.$ac_objext conftest$ac_exeext
2016   if { { ac_try="$ac_link"
2017 case "(($ac_try" in
2018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019   *) ac_try_echo=$ac_try;;
2020 esac
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023   (eval "$ac_link") 2>conftest.err
2024   ac_status=$?
2025   if test -s conftest.err; then
2026     grep -v '^ *+' conftest.err >conftest.er1
2027     cat conftest.er1 >&5
2028     mv -f conftest.er1 conftest.err
2029   fi
2030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2031   test $ac_status = 0; } && {
2032          test -z "$ac_cxx_werror_flag" ||
2033          test ! -s conftest.err
2034        } && test -s conftest$ac_exeext && {
2035          test "$cross_compiling" = yes ||
2036          $as_test_x conftest$ac_exeext
2037        }; then :
2038   ac_retval=0
2039 else
2040   $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043         ac_retval=1
2044 fi
2045   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2046   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2047   # interfere with the next link command; also delete a directory that is
2048   # left behind by Apple's compiler.  We do this before executing the actions.
2049   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2050   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051   as_fn_set_status $ac_retval
2052
2053 } # ac_fn_cxx_try_link
2054
2055 # ac_fn_cxx_try_run LINENO
2056 # ------------------------
2057 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2058 # that executables *can* be run.
2059 ac_fn_cxx_try_run ()
2060 {
2061   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062   if { { ac_try="$ac_link"
2063 case "(($ac_try" in
2064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065   *) ac_try_echo=$ac_try;;
2066 esac
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069   (eval "$ac_link") 2>&5
2070   ac_status=$?
2071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2073   { { case "(($ac_try" in
2074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075   *) ac_try_echo=$ac_try;;
2076 esac
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079   (eval "$ac_try") 2>&5
2080   ac_status=$?
2081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2082   test $ac_status = 0; }; }; then :
2083   ac_retval=0
2084 else
2085   $as_echo "$as_me: program exited with status $ac_status" >&5
2086        $as_echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2088
2089        ac_retval=$ac_status
2090 fi
2091   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2092   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093   as_fn_set_status $ac_retval
2094
2095 } # ac_fn_cxx_try_run
2096
2097 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2098 # ---------------------------------------------------------
2099 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2100 # the include files in INCLUDES and setting the cache variable VAR
2101 # accordingly.
2102 ac_fn_cxx_check_header_mongrel ()
2103 {
2104   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105   if eval \${$3+:} false; then :
2106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if eval \${$3+:} false; then :
2109   $as_echo_n "(cached) " >&6
2110 fi
2111 eval ac_res=\$$3
2112                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 else
2115   # Is the header compilable?
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2117 $as_echo_n "checking $2 usability... " >&6; }
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h.  */
2120 $4
2121 #include <$2>
2122 _ACEOF
2123 if ac_fn_cxx_try_compile "$LINENO"; then :
2124   ac_header_compiler=yes
2125 else
2126   ac_header_compiler=no
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2130 $as_echo "$ac_header_compiler" >&6; }
2131
2132 # Is the header present?
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2134 $as_echo_n "checking $2 presence... " >&6; }
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h.  */
2137 #include <$2>
2138 _ACEOF
2139 if ac_fn_cxx_try_cpp "$LINENO"; then :
2140   ac_header_preproc=yes
2141 else
2142   ac_header_preproc=no
2143 fi
2144 rm -f conftest.err conftest.i conftest.$ac_ext
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2146 $as_echo "$ac_header_preproc" >&6; }
2147
2148 # So?  What about this header?
2149 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2150   yes:no: )
2151     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2152 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2153     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2154 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2155     ;;
2156   no:yes:* )
2157     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2158 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2159     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2160 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2161     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2162 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2163     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2164 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2165     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2166 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2167 ( $as_echo "## ------------------------------------ ##
2168 ## Report this to opensource@google.com ##
2169 ## ------------------------------------ ##"
2170      ) | sed "s/^/$as_me: WARNING:     /" >&2
2171     ;;
2172 esac
2173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 $as_echo_n "checking for $2... " >&6; }
2175 if eval \${$3+:} false; then :
2176   $as_echo_n "(cached) " >&6
2177 else
2178   eval "$3=\$ac_header_compiler"
2179 fi
2180 eval ac_res=\$$3
2181                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2183 fi
2184   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185
2186 } # ac_fn_cxx_check_header_mongrel
2187
2188 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2189 # ----------------------------------------------
2190 # Tries to find the compile-time value of EXPR in a program that includes
2191 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2192 # computed
2193 ac_fn_cxx_compute_int ()
2194 {
2195   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196   if test "$cross_compiling" = yes; then
2197     # Depending upon the size, compute the lo and hi bounds.
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h.  */
2200 $4
2201 int
2202 main ()
2203 {
2204 static int test_array [1 - 2 * !(($2) >= 0)];
2205 test_array [0] = 0
2206
2207   ;
2208   return 0;
2209 }
2210 _ACEOF
2211 if ac_fn_cxx_try_compile "$LINENO"; then :
2212   ac_lo=0 ac_mid=0
2213   while :; do
2214     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h.  */
2216 $4
2217 int
2218 main ()
2219 {
2220 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2221 test_array [0] = 0
2222
2223   ;
2224   return 0;
2225 }
2226 _ACEOF
2227 if ac_fn_cxx_try_compile "$LINENO"; then :
2228   ac_hi=$ac_mid; break
2229 else
2230   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2231                         if test $ac_lo -le $ac_mid; then
2232                           ac_lo= ac_hi=
2233                           break
2234                         fi
2235                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2236 fi
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238   done
2239 else
2240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h.  */
2242 $4
2243 int
2244 main ()
2245 {
2246 static int test_array [1 - 2 * !(($2) < 0)];
2247 test_array [0] = 0
2248
2249   ;
2250   return 0;
2251 }
2252 _ACEOF
2253 if ac_fn_cxx_try_compile "$LINENO"; then :
2254   ac_hi=-1 ac_mid=-1
2255   while :; do
2256     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h.  */
2258 $4
2259 int
2260 main ()
2261 {
2262 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2263 test_array [0] = 0
2264
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 if ac_fn_cxx_try_compile "$LINENO"; then :
2270   ac_lo=$ac_mid; break
2271 else
2272   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2273                         if test $ac_mid -le $ac_hi; then
2274                           ac_lo= ac_hi=
2275                           break
2276                         fi
2277                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2278 fi
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280   done
2281 else
2282   ac_lo= ac_hi=
2283 fi
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 fi
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 # Binary search between lo and hi bounds.
2288 while test "x$ac_lo" != "x$ac_hi"; do
2289   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h.  */
2292 $4
2293 int
2294 main ()
2295 {
2296 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2297 test_array [0] = 0
2298
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 if ac_fn_cxx_try_compile "$LINENO"; then :
2304   ac_hi=$ac_mid
2305 else
2306   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2307 fi
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 done
2310 case $ac_lo in #((
2311 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2312 '') ac_retval=1 ;;
2313 esac
2314   else
2315     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h.  */
2317 $4
2318 static long int longval () { return $2; }
2319 static unsigned long int ulongval () { return $2; }
2320 #include <stdio.h>
2321 #include <stdlib.h>
2322 int
2323 main ()
2324 {
2325
2326   FILE *f = fopen ("conftest.val", "w");
2327   if (! f)
2328     return 1;
2329   if (($2) < 0)
2330     {
2331       long int i = longval ();
2332       if (i != ($2))
2333         return 1;
2334       fprintf (f, "%ld", i);
2335     }
2336   else
2337     {
2338       unsigned long int i = ulongval ();
2339       if (i != ($2))
2340         return 1;
2341       fprintf (f, "%lu", i);
2342     }
2343   /* Do not output a trailing newline, as this causes \r\n confusion
2344      on some platforms.  */
2345   return ferror (f) || fclose (f) != 0;
2346
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 if ac_fn_cxx_try_run "$LINENO"; then :
2352   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2353 else
2354   ac_retval=1
2355 fi
2356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2357   conftest.$ac_objext conftest.beam conftest.$ac_ext
2358 rm -f conftest.val
2359
2360   fi
2361   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2362   as_fn_set_status $ac_retval
2363
2364 } # ac_fn_cxx_compute_int
2365
2366 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2367 # ---------------------------------------------
2368 # Tests whether TYPE exists after having included INCLUDES, setting cache
2369 # variable VAR accordingly.
2370 ac_fn_cxx_check_type ()
2371 {
2372   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2374 $as_echo_n "checking for $2... " >&6; }
2375 if eval \${$3+:} false; then :
2376   $as_echo_n "(cached) " >&6
2377 else
2378   eval "$3=no"
2379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h.  */
2381 $4
2382 int
2383 main ()
2384 {
2385 if (sizeof ($2))
2386          return 0;
2387   ;
2388   return 0;
2389 }
2390 _ACEOF
2391 if ac_fn_cxx_try_compile "$LINENO"; then :
2392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h.  */
2394 $4
2395 int
2396 main ()
2397 {
2398 if (sizeof (($2)))
2399             return 0;
2400   ;
2401   return 0;
2402 }
2403 _ACEOF
2404 if ac_fn_cxx_try_compile "$LINENO"; then :
2405
2406 else
2407   eval "$3=yes"
2408 fi
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 fi
2411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 fi
2413 eval ac_res=\$$3
2414                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2415 $as_echo "$ac_res" >&6; }
2416   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417
2418 } # ac_fn_cxx_check_type
2419
2420 # ac_fn_cxx_check_func LINENO FUNC VAR
2421 # ------------------------------------
2422 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2423 ac_fn_cxx_check_func ()
2424 {
2425   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2427 $as_echo_n "checking for $2... " >&6; }
2428 if eval \${$3+:} false; then :
2429   $as_echo_n "(cached) " >&6
2430 else
2431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h.  */
2433 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2435 #define $2 innocuous_$2
2436
2437 /* System header to define __stub macros and hopefully few prototypes,
2438     which can conflict with char $2 (); below.
2439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2440     <limits.h> exists even on freestanding compilers.  */
2441
2442 #ifdef __STDC__
2443 # include <limits.h>
2444 #else
2445 # include <assert.h>
2446 #endif
2447
2448 #undef $2
2449
2450 /* Override any GCC internal prototype to avoid an error.
2451    Use char because int might match the return type of a GCC
2452    builtin and then its argument prototype would still apply.  */
2453 #ifdef __cplusplus
2454 extern "C"
2455 #endif
2456 char $2 ();
2457 /* The GNU C library defines this for functions which it implements
2458     to always fail with ENOSYS.  Some functions are actually named
2459     something starting with __ and the normal name is an alias.  */
2460 #if defined __stub_$2 || defined __stub___$2
2461 choke me
2462 #endif
2463
2464 int
2465 main ()
2466 {
2467 return $2 ();
2468   ;
2469   return 0;
2470 }
2471 _ACEOF
2472 if ac_fn_cxx_try_link "$LINENO"; then :
2473   eval "$3=yes"
2474 else
2475   eval "$3=no"
2476 fi
2477 rm -f core conftest.err conftest.$ac_objext \
2478     conftest$ac_exeext conftest.$ac_ext
2479 fi
2480 eval ac_res=\$$3
2481                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2482 $as_echo "$ac_res" >&6; }
2483   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2484
2485 } # ac_fn_cxx_check_func
2486 cat >config.log <<_ACEOF
2487 This file contains any messages produced by compilers while
2488 running configure, to aid debugging if configure makes a mistake.
2489
2490 It was created by glog $as_me 0.3.2, which was
2491 generated by GNU Autoconf 2.68.  Invocation command line was
2492
2493   $ $0 $@
2494
2495 _ACEOF
2496 exec 5>>config.log
2497 {
2498 cat <<_ASUNAME
2499 ## --------- ##
2500 ## Platform. ##
2501 ## --------- ##
2502
2503 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2508
2509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2510 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2511
2512 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2513 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2514 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2515 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2516 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2517 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2518 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2519
2520 _ASUNAME
2521
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527     $as_echo "PATH: $as_dir"
2528   done
2529 IFS=$as_save_IFS
2530
2531 } >&5
2532
2533 cat >&5 <<_ACEOF
2534
2535
2536 ## ----------- ##
2537 ## Core tests. ##
2538 ## ----------- ##
2539
2540 _ACEOF
2541
2542
2543 # Keep a trace of the command line.
2544 # Strip out --no-create and --no-recursion so they do not pile up.
2545 # Strip out --silent because we don't want to record it for future runs.
2546 # Also quote any args containing shell meta-characters.
2547 # Make two passes to allow for proper duplicate-argument suppression.
2548 ac_configure_args=
2549 ac_configure_args0=
2550 ac_configure_args1=
2551 ac_must_keep_next=false
2552 for ac_pass in 1 2
2553 do
2554   for ac_arg
2555   do
2556     case $ac_arg in
2557     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2558     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2559     | -silent | --silent | --silen | --sile | --sil)
2560       continue ;;
2561     *\'*)
2562       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2563     esac
2564     case $ac_pass in
2565     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2566     2)
2567       as_fn_append ac_configure_args1 " '$ac_arg'"
2568       if test $ac_must_keep_next = true; then
2569         ac_must_keep_next=false # Got value, back to normal.
2570       else
2571         case $ac_arg in
2572           *=* | --config-cache | -C | -disable-* | --disable-* \
2573           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2574           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2575           | -with-* | --with-* | -without-* | --without-* | --x)
2576             case "$ac_configure_args0 " in
2577               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2578             esac
2579             ;;
2580           -* ) ac_must_keep_next=true ;;
2581         esac
2582       fi
2583       as_fn_append ac_configure_args " '$ac_arg'"
2584       ;;
2585     esac
2586   done
2587 done
2588 { ac_configure_args0=; unset ac_configure_args0;}
2589 { ac_configure_args1=; unset ac_configure_args1;}
2590
2591 # When interrupted or exit'd, cleanup temporary files, and complete
2592 # config.log.  We remove comments because anyway the quotes in there
2593 # would cause problems or look ugly.
2594 # WARNING: Use '\'' to represent an apostrophe within the trap.
2595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2596 trap 'exit_status=$?
2597   # Save into config.log some information that might help in debugging.
2598   {
2599     echo
2600
2601     $as_echo "## ---------------- ##
2602 ## Cache variables. ##
2603 ## ---------------- ##"
2604     echo
2605     # The following way of writing the cache mishandles newlines in values,
2606 (
2607   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2608     eval ac_val=\$$ac_var
2609     case $ac_val in #(
2610     *${as_nl}*)
2611       case $ac_var in #(
2612       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2613 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2614       esac
2615       case $ac_var in #(
2616       _ | IFS | as_nl) ;; #(
2617       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2618       *) { eval $ac_var=; unset $ac_var;} ;;
2619       esac ;;
2620     esac
2621   done
2622   (set) 2>&1 |
2623     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2624     *${as_nl}ac_space=\ *)
2625       sed -n \
2626         "s/'\''/'\''\\\\'\'''\''/g;
2627           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2628       ;; #(
2629     *)
2630       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2631       ;;
2632     esac |
2633     sort
2634 )
2635     echo
2636
2637     $as_echo "## ----------------- ##
2638 ## Output variables. ##
2639 ## ----------------- ##"
2640     echo
2641     for ac_var in $ac_subst_vars
2642     do
2643       eval ac_val=\$$ac_var
2644       case $ac_val in
2645       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2646       esac
2647       $as_echo "$ac_var='\''$ac_val'\''"
2648     done | sort
2649     echo
2650
2651     if test -n "$ac_subst_files"; then
2652       $as_echo "## ------------------- ##
2653 ## File substitutions. ##
2654 ## ------------------- ##"
2655       echo
2656       for ac_var in $ac_subst_files
2657       do
2658         eval ac_val=\$$ac_var
2659         case $ac_val in
2660         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2661         esac
2662         $as_echo "$ac_var='\''$ac_val'\''"
2663       done | sort
2664       echo
2665     fi
2666
2667     if test -s confdefs.h; then
2668       $as_echo "## ----------- ##
2669 ## confdefs.h. ##
2670 ## ----------- ##"
2671       echo
2672       cat confdefs.h
2673       echo
2674     fi
2675     test "$ac_signal" != 0 &&
2676       $as_echo "$as_me: caught signal $ac_signal"
2677     $as_echo "$as_me: exit $exit_status"
2678   } >&5
2679   rm -f core *.core core.conftest.* &&
2680     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2681     exit $exit_status
2682 ' 0
2683 for ac_signal in 1 2 13 15; do
2684   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2685 done
2686 ac_signal=0
2687
2688 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2689 rm -f -r conftest* confdefs.h
2690
2691 $as_echo "/* confdefs.h */" > confdefs.h
2692
2693 # Predefined preprocessor variables.
2694
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_NAME "$PACKAGE_NAME"
2697 _ACEOF
2698
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2701 _ACEOF
2702
2703 cat >>confdefs.h <<_ACEOF
2704 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2705 _ACEOF
2706
2707 cat >>confdefs.h <<_ACEOF
2708 #define PACKAGE_STRING "$PACKAGE_STRING"
2709 _ACEOF
2710
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2713 _ACEOF
2714
2715 cat >>confdefs.h <<_ACEOF
2716 #define PACKAGE_URL "$PACKAGE_URL"
2717 _ACEOF
2718
2719
2720 # Let the site file select an alternate cache file if it wants to.
2721 # Prefer an explicitly selected file to automatically selected ones.
2722 ac_site_file1=NONE
2723 ac_site_file2=NONE
2724 if test -n "$CONFIG_SITE"; then
2725   # We do not want a PATH search for config.site.
2726   case $CONFIG_SITE in #((
2727     -*)  ac_site_file1=./$CONFIG_SITE;;
2728     */*) ac_site_file1=$CONFIG_SITE;;
2729     *)   ac_site_file1=./$CONFIG_SITE;;
2730   esac
2731 elif test "x$prefix" != xNONE; then
2732   ac_site_file1=$prefix/share/config.site
2733   ac_site_file2=$prefix/etc/config.site
2734 else
2735   ac_site_file1=$ac_default_prefix/share/config.site
2736   ac_site_file2=$ac_default_prefix/etc/config.site
2737 fi
2738 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2739 do
2740   test "x$ac_site_file" = xNONE && continue
2741   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2742     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2743 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2744     sed 's/^/| /' "$ac_site_file" >&5
2745     . "$ac_site_file" \
2746       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748 as_fn_error $? "failed to load site script $ac_site_file
2749 See \`config.log' for more details" "$LINENO" 5; }
2750   fi
2751 done
2752
2753 if test -r "$cache_file"; then
2754   # Some versions of bash will fail to source /dev/null (special files
2755   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2756   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2757     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2758 $as_echo "$as_me: loading cache $cache_file" >&6;}
2759     case $cache_file in
2760       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2761       *)                      . "./$cache_file";;
2762     esac
2763   fi
2764 else
2765   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2766 $as_echo "$as_me: creating cache $cache_file" >&6;}
2767   >$cache_file
2768 fi
2769
2770 # Check that the precious variables saved in the cache have kept the same
2771 # value.
2772 ac_cache_corrupted=false
2773 for ac_var in $ac_precious_vars; do
2774   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2775   eval ac_new_set=\$ac_env_${ac_var}_set
2776   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2777   eval ac_new_val=\$ac_env_${ac_var}_value
2778   case $ac_old_set,$ac_new_set in
2779     set,)
2780       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2781 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2782       ac_cache_corrupted=: ;;
2783     ,set)
2784       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2785 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2786       ac_cache_corrupted=: ;;
2787     ,);;
2788     *)
2789       if test "x$ac_old_val" != "x$ac_new_val"; then
2790         # differences in whitespace do not lead to failure.
2791         ac_old_val_w=`echo x $ac_old_val`
2792         ac_new_val_w=`echo x $ac_new_val`
2793         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2794           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2795 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2796           ac_cache_corrupted=:
2797         else
2798           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2799 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2800           eval $ac_var=\$ac_old_val
2801         fi
2802         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2803 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2804         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2805 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2806       fi;;
2807   esac
2808   # Pass precious variables to config.status.
2809   if test "$ac_new_set" = set; then
2810     case $ac_new_val in
2811     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2812     *) ac_arg=$ac_var=$ac_new_val ;;
2813     esac
2814     case " $ac_configure_args " in
2815       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2816       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2817     esac
2818   fi
2819 done
2820 if $ac_cache_corrupted; then
2821   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2823   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2824 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2825   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2826 fi
2827 ## -------------------- ##
2828 ## Main body of script. ##
2829 ## -------------------- ##
2830
2831 ac_ext=c
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836
2837
2838 # The argument here is just something that should be in the current directory
2839 # (for sanity checking)
2840
2841
2842 am__api_version='1.11'
2843
2844 ac_aux_dir=
2845 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2846   if test -f "$ac_dir/install-sh"; then
2847     ac_aux_dir=$ac_dir
2848     ac_install_sh="$ac_aux_dir/install-sh -c"
2849     break
2850   elif test -f "$ac_dir/install.sh"; then
2851     ac_aux_dir=$ac_dir
2852     ac_install_sh="$ac_aux_dir/install.sh -c"
2853     break
2854   elif test -f "$ac_dir/shtool"; then
2855     ac_aux_dir=$ac_dir
2856     ac_install_sh="$ac_aux_dir/shtool install -c"
2857     break
2858   fi
2859 done
2860 if test -z "$ac_aux_dir"; then
2861   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2862 fi
2863
2864 # These three variables are undocumented and unsupported,
2865 # and are intended to be withdrawn in a future Autoconf release.
2866 # They can cause serious problems if a builder's source tree is in a directory
2867 # whose full name contains unusual characters.
2868 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2869 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2870 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2871
2872
2873 # Find a good install program.  We prefer a C program (faster),
2874 # so one script is as good as another.  But avoid the broken or
2875 # incompatible versions:
2876 # SysV /etc/install, /usr/sbin/install
2877 # SunOS /usr/etc/install
2878 # IRIX /sbin/install
2879 # AIX /bin/install
2880 # AmigaOS /C/install, which installs bootblocks on floppy discs
2881 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2882 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2883 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2884 # OS/2's system install, which has a completely different semantic
2885 # ./install, which can be erroneously created by make from ./install.sh.
2886 # Reject install programs that cannot install multiple files.
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2888 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2889 if test -z "$INSTALL"; then
2890 if ${ac_cv_path_install+:} false; then :
2891   $as_echo_n "(cached) " >&6
2892 else
2893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2895 do
2896   IFS=$as_save_IFS
2897   test -z "$as_dir" && as_dir=.
2898     # Account for people who put trailing slashes in PATH elements.
2899 case $as_dir/ in #((
2900   ./ | .// | /[cC]/* | \
2901   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2902   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2903   /usr/ucb/* ) ;;
2904   *)
2905     # OSF1 and SCO ODT 3.0 have their own names for install.
2906     # Don't use installbsd from OSF since it installs stuff as root
2907     # by default.
2908     for ac_prog in ginstall scoinst install; do
2909       for ac_exec_ext in '' $ac_executable_extensions; do
2910         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2911           if test $ac_prog = install &&
2912             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2913             # AIX install.  It has an incompatible calling convention.
2914             :
2915           elif test $ac_prog = install &&
2916             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2917             # program-specific install script used by HP pwplus--don't use.
2918             :
2919           else
2920             rm -rf conftest.one conftest.two conftest.dir
2921             echo one > conftest.one
2922             echo two > conftest.two
2923             mkdir conftest.dir
2924             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2925               test -s conftest.one && test -s conftest.two &&
2926               test -s conftest.dir/conftest.one &&
2927               test -s conftest.dir/conftest.two
2928             then
2929               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2930               break 3
2931             fi
2932           fi
2933         fi
2934       done
2935     done
2936     ;;
2937 esac
2938
2939   done
2940 IFS=$as_save_IFS
2941
2942 rm -rf conftest.one conftest.two conftest.dir
2943
2944 fi
2945   if test "${ac_cv_path_install+set}" = set; then
2946     INSTALL=$ac_cv_path_install
2947   else
2948     # As a last resort, use the slow shell script.  Don't cache a
2949     # value for INSTALL within a source directory, because that will
2950     # break other packages using the cache if that directory is
2951     # removed, or if the value is a relative name.
2952     INSTALL=$ac_install_sh
2953   fi
2954 fi
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2956 $as_echo "$INSTALL" >&6; }
2957
2958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2959 # It thinks the first close brace ends the variable substitution.
2960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2961
2962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2963
2964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2965
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2967 $as_echo_n "checking whether build environment is sane... " >&6; }
2968 # Just in case
2969 sleep 1
2970 echo timestamp > conftest.file
2971 # Reject unsafe characters in $srcdir or the absolute working directory
2972 # name.  Accept space and tab only in the latter.
2973 am_lf='
2974 '
2975 case `pwd` in
2976   *[\\\"\#\$\&\'\`$am_lf]*)
2977     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2978 esac
2979 case $srcdir in
2980   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2981     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2982 esac
2983
2984 # Do `set' in a subshell so we don't clobber the current shell's
2985 # arguments.  Must try -L first in case configure is actually a
2986 # symlink; some systems play weird games with the mod time of symlinks
2987 # (eg FreeBSD returns the mod time of the symlink's containing
2988 # directory).
2989 if (
2990    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2991    if test "$*" = "X"; then
2992       # -L didn't work.
2993       set X `ls -t "$srcdir/configure" conftest.file`
2994    fi
2995    rm -f conftest.file
2996    if test "$*" != "X $srcdir/configure conftest.file" \
2997       && test "$*" != "X conftest.file $srcdir/configure"; then
2998
2999       # If neither matched, then we have a broken ls.  This can happen
3000       # if, for instance, CONFIG_SHELL is bash and it inherits a
3001       # broken ls alias from the environment.  This has actually
3002       # happened.  Such a system could not be considered "sane".
3003       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3004 alias in your environment" "$LINENO" 5
3005    fi
3006
3007    test "$2" = conftest.file
3008    )
3009 then
3010    # Ok.
3011    :
3012 else
3013    as_fn_error $? "newly created file is older than distributed files!
3014 Check your system clock" "$LINENO" 5
3015 fi
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3017 $as_echo "yes" >&6; }
3018 test "$program_prefix" != NONE &&
3019   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3020 # Use a double $ so make ignores it.
3021 test "$program_suffix" != NONE &&
3022   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3023 # Double any \ or $.
3024 # By default was `s,x,x', remove it if useless.
3025 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3026 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3027
3028 # expand $ac_aux_dir to an absolute path
3029 am_aux_dir=`cd $ac_aux_dir && pwd`
3030
3031 if test x"${MISSING+set}" != xset; then
3032   case $am_aux_dir in
3033   *\ * | *\     *)
3034     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3035   *)
3036     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3037   esac
3038 fi
3039 # Use eval to expand $SHELL
3040 if eval "$MISSING --run true"; then
3041   am_missing_run="$MISSING --run "
3042 else
3043   am_missing_run=
3044   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3045 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3046 fi
3047
3048 if test x"${install_sh}" != xset; then
3049   case $am_aux_dir in
3050   *\ * | *\     *)
3051     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3052   *)
3053     install_sh="\${SHELL} $am_aux_dir/install-sh"
3054   esac
3055 fi
3056
3057 # Installed binaries are usually stripped using `strip' when the user
3058 # run `make install-strip'.  However `strip' might not be the right
3059 # tool to use in cross-compilation environments, therefore Automake
3060 # will honor the `STRIP' environment variable to overrule this program.
3061 if test "$cross_compiling" != no; then
3062   if test -n "$ac_tool_prefix"; then
3063   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3064 set dummy ${ac_tool_prefix}strip; ac_word=$2
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if ${ac_cv_prog_STRIP+:} false; then :
3068   $as_echo_n "(cached) " >&6
3069 else
3070   if test -n "$STRIP"; then
3071   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076   IFS=$as_save_IFS
3077   test -z "$as_dir" && as_dir=.
3078     for ac_exec_ext in '' $ac_executable_extensions; do
3079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082     break 2
3083   fi
3084 done
3085   done
3086 IFS=$as_save_IFS
3087
3088 fi
3089 fi
3090 STRIP=$ac_cv_prog_STRIP
3091 if test -n "$STRIP"; then
3092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3093 $as_echo "$STRIP" >&6; }
3094 else
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3097 fi
3098
3099
3100 fi
3101 if test -z "$ac_cv_prog_STRIP"; then
3102   ac_ct_STRIP=$STRIP
3103   # Extract the first word of "strip", so it can be a program name with args.
3104 set dummy strip; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3108   $as_echo_n "(cached) " >&6
3109 else
3110   if test -n "$ac_ct_STRIP"; then
3111   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116   IFS=$as_save_IFS
3117   test -z "$as_dir" && as_dir=.
3118     for ac_exec_ext in '' $ac_executable_extensions; do
3119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120     ac_cv_prog_ac_ct_STRIP="strip"
3121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122     break 2
3123   fi
3124 done
3125   done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3131 if test -n "$ac_ct_STRIP"; then
3132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3133 $as_echo "$ac_ct_STRIP" >&6; }
3134 else
3135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139   if test "x$ac_ct_STRIP" = x; then
3140     STRIP=":"
3141   else
3142     case $cross_compiling:$ac_tool_warned in
3143 yes:)
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3146 ac_tool_warned=yes ;;
3147 esac
3148     STRIP=$ac_ct_STRIP
3149   fi
3150 else
3151   STRIP="$ac_cv_prog_STRIP"
3152 fi
3153
3154 fi
3155 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3156
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3158 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3159 if test -z "$MKDIR_P"; then
3160   if ${ac_cv_path_mkdir+:} false; then :
3161   $as_echo_n "(cached) " >&6
3162 else
3163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3165 do
3166   IFS=$as_save_IFS
3167   test -z "$as_dir" && as_dir=.
3168     for ac_prog in mkdir gmkdir; do
3169          for ac_exec_ext in '' $ac_executable_extensions; do
3170            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3171            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3172              'mkdir (GNU coreutils) '* | \
3173              'mkdir (coreutils) '* | \
3174              'mkdir (fileutils) '4.1*)
3175                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3176                break 3;;
3177            esac
3178          done
3179        done
3180   done
3181 IFS=$as_save_IFS
3182
3183 fi
3184
3185   test -d ./--version && rmdir ./--version
3186   if test "${ac_cv_path_mkdir+set}" = set; then
3187     MKDIR_P="$ac_cv_path_mkdir -p"
3188   else
3189     # As a last resort, use the slow shell script.  Don't cache a
3190     # value for MKDIR_P within a source directory, because that will
3191     # break other packages using the cache if that directory is
3192     # removed, or if the value is a relative name.
3193     MKDIR_P="$ac_install_sh -d"
3194   fi
3195 fi
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3197 $as_echo "$MKDIR_P" >&6; }
3198
3199 mkdir_p="$MKDIR_P"
3200 case $mkdir_p in
3201   [\\/$]* | ?:[\\/]*) ;;
3202   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3203 esac
3204
3205 for ac_prog in gawk mawk nawk awk
3206 do
3207   # Extract the first word of "$ac_prog", so it can be a program name with args.
3208 set dummy $ac_prog; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_AWK+:} false; then :
3212   $as_echo_n "(cached) " >&6
3213 else
3214   if test -n "$AWK"; then
3215   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220   IFS=$as_save_IFS
3221   test -z "$as_dir" && as_dir=.
3222     for ac_exec_ext in '' $ac_executable_extensions; do
3223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224     ac_cv_prog_AWK="$ac_prog"
3225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226     break 2
3227   fi
3228 done
3229   done
3230 IFS=$as_save_IFS
3231
3232 fi
3233 fi
3234 AWK=$ac_cv_prog_AWK
3235 if test -n "$AWK"; then
3236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3237 $as_echo "$AWK" >&6; }
3238 else
3239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 fi
3242
3243
3244   test -n "$AWK" && break
3245 done
3246
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3248 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3249 set x ${MAKE-make}
3250 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3251 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3252   $as_echo_n "(cached) " >&6
3253 else
3254   cat >conftest.make <<\_ACEOF
3255 SHELL = /bin/sh
3256 all:
3257         @echo '@@@%%%=$(MAKE)=@@@%%%'
3258 _ACEOF
3259 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3261   *@@@%%%=?*=@@@%%%*)
3262     eval ac_cv_prog_make_${ac_make}_set=yes;;
3263   *)
3264     eval ac_cv_prog_make_${ac_make}_set=no;;
3265 esac
3266 rm -f conftest.make
3267 fi
3268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270 $as_echo "yes" >&6; }
3271   SET_MAKE=
3272 else
3273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275   SET_MAKE="MAKE=${MAKE-make}"
3276 fi
3277
3278 rm -rf .tst 2>/dev/null
3279 mkdir .tst 2>/dev/null
3280 if test -d .tst; then
3281   am__leading_dot=.
3282 else
3283   am__leading_dot=_
3284 fi
3285 rmdir .tst 2>/dev/null
3286
3287 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3288   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3289   # is not polluted with repeated "-I."
3290   am__isrc=' -I$(srcdir)'
3291   # test to see if srcdir already configured
3292   if test -f $srcdir/config.status; then
3293     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3294   fi
3295 fi
3296
3297 # test whether we have cygpath
3298 if test -z "$CYGPATH_W"; then
3299   if (cygpath --version) >/dev/null 2>/dev/null; then
3300     CYGPATH_W='cygpath -w'
3301   else
3302     CYGPATH_W=echo
3303   fi
3304 fi
3305
3306
3307 # Define the identity of the package.
3308  PACKAGE='glog'
3309  VERSION='0.3.2'
3310
3311
3312 cat >>confdefs.h <<_ACEOF
3313 #define PACKAGE "$PACKAGE"
3314 _ACEOF
3315
3316
3317 cat >>confdefs.h <<_ACEOF
3318 #define VERSION "$VERSION"
3319 _ACEOF
3320
3321 # Some tools Automake needs.
3322
3323 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3324
3325
3326 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3327
3328
3329 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3330
3331
3332 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3333
3334
3335 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3336
3337 # We need awk for the "check" target.  The system "awk" is bad on
3338 # some platforms.
3339 # Always define AMTAR for backward compatibility.
3340
3341 AMTAR=${AMTAR-"${am_missing_run}tar"}
3342
3343 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3344
3345
3346
3347
3348
3349 ac_config_headers="$ac_config_headers src/config.h"
3350
3351
3352 ac_ext=cpp
3353 ac_cpp='$CXXCPP $CPPFLAGS'
3354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3357
3358
3359 # Checks for programs.
3360 ac_ext=c
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365 if test -n "$ac_tool_prefix"; then
3366   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3367 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if ${ac_cv_prog_CC+:} false; then :
3371   $as_echo_n "(cached) " >&6
3372 else
3373   if test -n "$CC"; then
3374   ac_cv_prog_CC="$CC" # Let the user override the test.
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3378 do
3379   IFS=$as_save_IFS
3380   test -z "$as_dir" && as_dir=.
3381     for ac_exec_ext in '' $ac_executable_extensions; do
3382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3383     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385     break 2
3386   fi
3387 done
3388   done
3389 IFS=$as_save_IFS
3390
3391 fi
3392 fi
3393 CC=$ac_cv_prog_CC
3394 if test -n "$CC"; then
3395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3396 $as_echo "$CC" >&6; }
3397 else
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 fi
3401
3402
3403 fi
3404 if test -z "$ac_cv_prog_CC"; then
3405   ac_ct_CC=$CC
3406   # Extract the first word of "gcc", so it can be a program name with args.
3407 set dummy gcc; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3411   $as_echo_n "(cached) " >&6
3412 else
3413   if test -n "$ac_ct_CC"; then
3414   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3418 do
3419   IFS=$as_save_IFS
3420   test -z "$as_dir" && as_dir=.
3421     for ac_exec_ext in '' $ac_executable_extensions; do
3422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423     ac_cv_prog_ac_ct_CC="gcc"
3424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425     break 2
3426   fi
3427 done
3428   done
3429 IFS=$as_save_IFS
3430
3431 fi
3432 fi
3433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3434 if test -n "$ac_ct_CC"; then
3435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3436 $as_echo "$ac_ct_CC" >&6; }
3437 else
3438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 fi
3441
3442   if test "x$ac_ct_CC" = x; then
3443     CC=""
3444   else
3445     case $cross_compiling:$ac_tool_warned in
3446 yes:)
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3449 ac_tool_warned=yes ;;
3450 esac
3451     CC=$ac_ct_CC
3452   fi
3453 else
3454   CC="$ac_cv_prog_CC"
3455 fi
3456
3457 if test -z "$CC"; then
3458           if test -n "$ac_tool_prefix"; then
3459     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}cc; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_CC+:} false; then :
3464   $as_echo_n "(cached) " >&6
3465 else
3466   if test -n "$CC"; then
3467   ac_cv_prog_CC="$CC" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472   IFS=$as_save_IFS
3473   test -z "$as_dir" && as_dir=.
3474     for ac_exec_ext in '' $ac_executable_extensions; do
3475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476     ac_cv_prog_CC="${ac_tool_prefix}cc"
3477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478     break 2
3479   fi
3480 done
3481   done
3482 IFS=$as_save_IFS
3483
3484 fi
3485 fi
3486 CC=$ac_cv_prog_CC
3487 if test -n "$CC"; then
3488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3490 else
3491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3493 fi
3494
3495
3496   fi
3497 fi
3498 if test -z "$CC"; then
3499   # Extract the first word of "cc", so it can be a program name with args.
3500 set dummy cc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_CC+:} false; then :
3504   $as_echo_n "(cached) " >&6
3505 else
3506   if test -n "$CC"; then
3507   ac_cv_prog_CC="$CC" # Let the user override the test.
3508 else
3509   ac_prog_rejected=no
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515     for ac_exec_ext in '' $ac_executable_extensions; do
3516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3518        ac_prog_rejected=yes
3519        continue
3520      fi
3521     ac_cv_prog_CC="cc"
3522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523     break 2
3524   fi
3525 done
3526   done
3527 IFS=$as_save_IFS
3528
3529 if test $ac_prog_rejected = yes; then
3530   # We found a bogon in the path, so make sure we never use it.
3531   set dummy $ac_cv_prog_CC
3532   shift
3533   if test $# != 0; then
3534     # We chose a different compiler from the bogus one.
3535     # However, it has the same basename, so the bogon will be chosen
3536     # first if we set CC to just the basename; use the full file name.
3537     shift
3538     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3539   fi
3540 fi
3541 fi
3542 fi
3543 CC=$ac_cv_prog_CC
3544 if test -n "$CC"; then
3545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3546 $as_echo "$CC" >&6; }
3547 else
3548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3550 fi
3551
3552
3553 fi
3554 if test -z "$CC"; then
3555   if test -n "$ac_tool_prefix"; then
3556   for ac_prog in cl.exe
3557   do
3558     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561 $as_echo_n "checking for $ac_word... " >&6; }
3562 if ${ac_cv_prog_CC+:} false; then :
3563   $as_echo_n "(cached) " >&6
3564 else
3565   if test -n "$CC"; then
3566   ac_cv_prog_CC="$CC" # Let the user override the test.
3567 else
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 for as_dir in $PATH
3570 do
3571   IFS=$as_save_IFS
3572   test -z "$as_dir" && as_dir=.
3573     for ac_exec_ext in '' $ac_executable_extensions; do
3574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3575     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577     break 2
3578   fi
3579 done
3580   done
3581 IFS=$as_save_IFS
3582
3583 fi
3584 fi
3585 CC=$ac_cv_prog_CC
3586 if test -n "$CC"; then
3587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3588 $as_echo "$CC" >&6; }
3589 else
3590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3592 fi
3593
3594
3595     test -n "$CC" && break
3596   done
3597 fi
3598 if test -z "$CC"; then
3599   ac_ct_CC=$CC
3600   for ac_prog in cl.exe
3601 do
3602   # Extract the first word of "$ac_prog", so it can be a program name with args.
3603 set dummy $ac_prog; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3607   $as_echo_n "(cached) " >&6
3608 else
3609   if test -n "$ac_ct_CC"; then
3610   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615   IFS=$as_save_IFS
3616   test -z "$as_dir" && as_dir=.
3617     for ac_exec_ext in '' $ac_executable_extensions; do
3618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3619     ac_cv_prog_ac_ct_CC="$ac_prog"
3620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621     break 2
3622   fi
3623 done
3624   done
3625 IFS=$as_save_IFS
3626
3627 fi
3628 fi
3629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3630 if test -n "$ac_ct_CC"; then
3631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3632 $as_echo "$ac_ct_CC" >&6; }
3633 else
3634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3636 fi
3637
3638
3639   test -n "$ac_ct_CC" && break
3640 done
3641
3642   if test "x$ac_ct_CC" = x; then
3643     CC=""
3644   else
3645     case $cross_compiling:$ac_tool_warned in
3646 yes:)
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3649 ac_tool_warned=yes ;;
3650 esac
3651     CC=$ac_ct_CC
3652   fi
3653 fi
3654
3655 fi
3656
3657
3658 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3660 as_fn_error $? "no acceptable C compiler found in \$PATH
3661 See \`config.log' for more details" "$LINENO" 5; }
3662
3663 # Provide some information about the compiler.
3664 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3665 set X $ac_compile
3666 ac_compiler=$2
3667 for ac_option in --version -v -V -qversion; do
3668   { { ac_try="$ac_compiler $ac_option >&5"
3669 case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3676   ac_status=$?
3677   if test -s conftest.err; then
3678     sed '10a\
3679 ... rest of stderr output deleted ...
3680          10q' conftest.err >conftest.er1
3681     cat conftest.er1 >&5
3682   fi
3683   rm -f conftest.er1 conftest.err
3684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685   test $ac_status = 0; }
3686 done
3687
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h.  */
3690
3691 int
3692 main ()
3693 {
3694
3695   ;
3696   return 0;
3697 }
3698 _ACEOF
3699 ac_clean_files_save=$ac_clean_files
3700 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3701 # Try to create an executable without -o first, disregard a.out.
3702 # It will help us diagnose broken compilers, and finding out an intuition
3703 # of exeext.
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3705 $as_echo_n "checking whether the C compiler works... " >&6; }
3706 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3707
3708 # The possible output files:
3709 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3710
3711 ac_rmfiles=
3712 for ac_file in $ac_files
3713 do
3714   case $ac_file in
3715     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3716     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3717   esac
3718 done
3719 rm -f $ac_rmfiles
3720
3721 if { { ac_try="$ac_link_default"
3722 case "(($ac_try" in
3723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724   *) ac_try_echo=$ac_try;;
3725 esac
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728   (eval "$ac_link_default") 2>&5
3729   ac_status=$?
3730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731   test $ac_status = 0; }; then :
3732   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3733 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3734 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3735 # so that the user can short-circuit this test for compilers unknown to
3736 # Autoconf.
3737 for ac_file in $ac_files ''
3738 do
3739   test -f "$ac_file" || continue
3740   case $ac_file in
3741     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3742         ;;
3743     [ab].out )
3744         # We found the default executable, but exeext='' is most
3745         # certainly right.
3746         break;;
3747     *.* )
3748         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3749         then :; else
3750            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3751         fi
3752         # We set ac_cv_exeext here because the later test for it is not
3753         # safe: cross compilers may not add the suffix if given an `-o'
3754         # argument, so we may need to know it at that point already.
3755         # Even if this section looks crufty: it has the advantage of
3756         # actually working.
3757         break;;
3758     * )
3759         break;;
3760   esac
3761 done
3762 test "$ac_cv_exeext" = no && ac_cv_exeext=
3763
3764 else
3765   ac_file=''
3766 fi
3767 if test -z "$ac_file"; then :
3768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3770 $as_echo "$as_me: failed program was:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3772
3773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3775 as_fn_error 77 "C compiler cannot create executables
3776 See \`config.log' for more details" "$LINENO" 5; }
3777 else
3778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3779 $as_echo "yes" >&6; }
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3782 $as_echo_n "checking for C compiler default output file name... " >&6; }
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3784 $as_echo "$ac_file" >&6; }
3785 ac_exeext=$ac_cv_exeext
3786
3787 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3788 ac_clean_files=$ac_clean_files_save
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3790 $as_echo_n "checking for suffix of executables... " >&6; }
3791 if { { ac_try="$ac_link"
3792 case "(($ac_try" in
3793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794   *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798   (eval "$ac_link") 2>&5
3799   ac_status=$?
3800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801   test $ac_status = 0; }; then :
3802   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3803 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3804 # work properly (i.e., refer to `conftest.exe'), while it won't with
3805 # `rm'.
3806 for ac_file in conftest.exe conftest conftest.*; do
3807   test -f "$ac_file" || continue
3808   case $ac_file in
3809     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3810     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3811           break;;
3812     * ) break;;
3813   esac
3814 done
3815 else
3816   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3818 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3819 See \`config.log' for more details" "$LINENO" 5; }
3820 fi
3821 rm -f conftest conftest$ac_cv_exeext
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3823 $as_echo "$ac_cv_exeext" >&6; }
3824
3825 rm -f conftest.$ac_ext
3826 EXEEXT=$ac_cv_exeext
3827 ac_exeext=$EXEEXT
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h.  */
3830 #include <stdio.h>
3831 int
3832 main ()
3833 {
3834 FILE *f = fopen ("conftest.out", "w");
3835  return ferror (f) || fclose (f) != 0;
3836
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841 ac_clean_files="$ac_clean_files conftest.out"
3842 # Check that the compiler produces executables we can run.  If not, either
3843 # the compiler is broken, or we cross compile.
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3845 $as_echo_n "checking whether we are cross compiling... " >&6; }
3846 if test "$cross_compiling" != yes; then
3847   { { ac_try="$ac_link"
3848 case "(($ac_try" in
3849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850   *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854   (eval "$ac_link") 2>&5
3855   ac_status=$?
3856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857   test $ac_status = 0; }
3858   if { ac_try='./conftest$ac_cv_exeext'
3859   { { case "(($ac_try" in
3860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861   *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865   (eval "$ac_try") 2>&5
3866   ac_status=$?
3867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868   test $ac_status = 0; }; }; then
3869     cross_compiling=no
3870   else
3871     if test "$cross_compiling" = maybe; then
3872         cross_compiling=yes
3873     else
3874         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876 as_fn_error $? "cannot run C compiled programs.
3877 If you meant to cross compile, use \`--host'.
3878 See \`config.log' for more details" "$LINENO" 5; }
3879     fi
3880   fi
3881 fi
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3883 $as_echo "$cross_compiling" >&6; }
3884
3885 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3886 ac_clean_files=$ac_clean_files_save
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3888 $as_echo_n "checking for suffix of object files... " >&6; }
3889 if ${ac_cv_objext+:} false; then :
3890   $as_echo_n "(cached) " >&6
3891 else
3892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h.  */
3894
3895 int
3896 main ()
3897 {
3898
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 rm -f conftest.o conftest.obj
3904 if { { ac_try="$ac_compile"
3905 case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911   (eval "$ac_compile") 2>&5
3912   ac_status=$?
3913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914   test $ac_status = 0; }; then :
3915   for ac_file in conftest.o conftest.obj conftest.*; do
3916   test -f "$ac_file" || continue;
3917   case $ac_file in
3918     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3919     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3920        break;;
3921   esac
3922 done
3923 else
3924   $as_echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3926
3927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3929 as_fn_error $? "cannot compute suffix of object files: cannot compile
3930 See \`config.log' for more details" "$LINENO" 5; }
3931 fi
3932 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3935 $as_echo "$ac_cv_objext" >&6; }
3936 OBJEXT=$ac_cv_objext
3937 ac_objext=$OBJEXT
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3939 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3940 if ${ac_cv_c_compiler_gnu+:} false; then :
3941   $as_echo_n "(cached) " >&6
3942 else
3943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h.  */
3945
3946 int
3947 main ()
3948 {
3949 #ifndef __GNUC__
3950        choke me
3951 #endif
3952
3953   ;
3954   return 0;
3955 }
3956 _ACEOF
3957 if ac_fn_c_try_compile "$LINENO"; then :
3958   ac_compiler_gnu=yes
3959 else
3960   ac_compiler_gnu=no
3961 fi
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3964
3965 fi
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3967 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3968 if test $ac_compiler_gnu = yes; then
3969   GCC=yes
3970 else
3971   GCC=
3972 fi
3973 ac_test_CFLAGS=${CFLAGS+set}
3974 ac_save_CFLAGS=$CFLAGS
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3976 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3977 if ${ac_cv_prog_cc_g+:} false; then :
3978   $as_echo_n "(cached) " >&6
3979 else
3980   ac_save_c_werror_flag=$ac_c_werror_flag
3981    ac_c_werror_flag=yes
3982    ac_cv_prog_cc_g=no
3983    CFLAGS="-g"
3984    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h.  */
3986
3987 int
3988 main ()
3989 {
3990
3991   ;
3992   return 0;
3993 }
3994 _ACEOF
3995 if ac_fn_c_try_compile "$LINENO"; then :
3996   ac_cv_prog_cc_g=yes
3997 else
3998   CFLAGS=""
3999       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h.  */
4001
4002 int
4003 main ()
4004 {
4005
4006   ;
4007   return 0;
4008 }
4009 _ACEOF
4010 if ac_fn_c_try_compile "$LINENO"; then :
4011
4012 else
4013   ac_c_werror_flag=$ac_save_c_werror_flag
4014          CFLAGS="-g"
4015          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h.  */
4017
4018 int
4019 main ()
4020 {
4021
4022   ;
4023   return 0;
4024 }
4025 _ACEOF
4026 if ac_fn_c_try_compile "$LINENO"; then :
4027   ac_cv_prog_cc_g=yes
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 fi
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 fi
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034    ac_c_werror_flag=$ac_save_c_werror_flag
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4037 $as_echo "$ac_cv_prog_cc_g" >&6; }
4038 if test "$ac_test_CFLAGS" = set; then
4039   CFLAGS=$ac_save_CFLAGS
4040 elif test $ac_cv_prog_cc_g = yes; then
4041   if test "$GCC" = yes; then
4042     CFLAGS="-g -O2"
4043   else
4044     CFLAGS="-g"
4045   fi
4046 else
4047   if test "$GCC" = yes; then
4048     CFLAGS="-O2"
4049   else
4050     CFLAGS=
4051   fi
4052 fi
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4054 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4055 if ${ac_cv_prog_cc_c89+:} false; then :
4056   $as_echo_n "(cached) " >&6
4057 else
4058   ac_cv_prog_cc_c89=no
4059 ac_save_CC=$CC
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h.  */
4062 #include <stdarg.h>
4063 #include <stdio.h>
4064 #include <sys/types.h>
4065 #include <sys/stat.h>
4066 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4067 struct buf { int x; };
4068 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4069 static char *e (p, i)
4070      char **p;
4071      int i;
4072 {
4073   return p[i];
4074 }
4075 static char *f (char * (*g) (char **, int), char **p, ...)
4076 {
4077   char *s;
4078   va_list v;
4079   va_start (v,p);
4080   s = g (p, va_arg (v,int));
4081   va_end (v);
4082   return s;
4083 }
4084
4085 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4086    function prototypes and stuff, but not '\xHH' hex character constants.
4087    These don't provoke an error unfortunately, instead are silently treated
4088    as 'x'.  The following induces an error, until -std is added to get
4089    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4090    array size at least.  It's necessary to write '\x00'==0 to get something
4091    that's true only with -std.  */
4092 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4093
4094 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4095    inside strings and character constants.  */
4096 #define FOO(x) 'x'
4097 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4098
4099 int test (int i, double x);
4100 struct s1 {int (*f) (int a);};
4101 struct s2 {int (*f) (double a);};
4102 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4103 int argc;
4104 char **argv;
4105 int
4106 main ()
4107 {
4108 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4109   ;
4110   return 0;
4111 }
4112 _ACEOF
4113 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4114         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4115 do
4116   CC="$ac_save_CC $ac_arg"
4117   if ac_fn_c_try_compile "$LINENO"; then :
4118   ac_cv_prog_cc_c89=$ac_arg
4119 fi
4120 rm -f core conftest.err conftest.$ac_objext
4121   test "x$ac_cv_prog_cc_c89" != "xno" && break
4122 done
4123 rm -f conftest.$ac_ext
4124 CC=$ac_save_CC
4125
4126 fi
4127 # AC_CACHE_VAL
4128 case "x$ac_cv_prog_cc_c89" in
4129   x)
4130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4131 $as_echo "none needed" >&6; } ;;
4132   xno)
4133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4134 $as_echo "unsupported" >&6; } ;;
4135   *)
4136     CC="$CC $ac_cv_prog_cc_c89"
4137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4138 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4139 esac
4140 if test "x$ac_cv_prog_cc_c89" != xno; then :
4141
4142 fi
4143
4144 ac_ext=cpp
4145 ac_cpp='$CXXCPP $CPPFLAGS'
4146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4149 DEPDIR="${am__leading_dot}deps"
4150
4151 ac_config_commands="$ac_config_commands depfiles"
4152
4153
4154 am_make=${MAKE-make}
4155 cat > confinc << 'END'
4156 am__doit:
4157         @echo this is the am__doit target
4158 .PHONY: am__doit
4159 END
4160 # If we don't find an include directive, just comment out the code.
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4162 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4163 am__include="#"
4164 am__quote=
4165 _am_result=none
4166 # First try GNU make style include.
4167 echo "include confinc" > confmf
4168 # Ignore all kinds of additional output from `make'.
4169 case `$am_make -s -f confmf 2> /dev/null` in #(
4170 *the\ am__doit\ target*)
4171   am__include=include
4172   am__quote=
4173   _am_result=GNU
4174   ;;
4175 esac
4176 # Now try BSD make style include.
4177 if test "$am__include" = "#"; then
4178    echo '.include "confinc"' > confmf
4179    case `$am_make -s -f confmf 2> /dev/null` in #(
4180    *the\ am__doit\ target*)
4181      am__include=.include
4182      am__quote="\""
4183      _am_result=BSD
4184      ;;
4185    esac
4186 fi
4187
4188
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4190 $as_echo "$_am_result" >&6; }
4191 rm -f confinc confmf
4192
4193 # Check whether --enable-dependency-tracking was given.
4194 if test "${enable_dependency_tracking+set}" = set; then :
4195   enableval=$enable_dependency_tracking;
4196 fi
4197
4198 if test "x$enable_dependency_tracking" != xno; then
4199   am_depcomp="$ac_aux_dir/depcomp"
4200   AMDEPBACKSLASH='\'
4201 fi
4202  if test "x$enable_dependency_tracking" != xno; then
4203   AMDEP_TRUE=
4204   AMDEP_FALSE='#'
4205 else
4206   AMDEP_TRUE='#'
4207   AMDEP_FALSE=
4208 fi
4209
4210
4211
4212 depcc="$CC"   am_compiler_list=
4213
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4215 $as_echo_n "checking dependency style of $depcc... " >&6; }
4216 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4217   $as_echo_n "(cached) " >&6
4218 else
4219   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4220   # We make a subdir and do the tests there.  Otherwise we can end up
4221   # making bogus files that we don't know about and never remove.  For
4222   # instance it was reported that on HP-UX the gcc test will end up
4223   # making a dummy file named `D' -- because `-MD' means `put the output
4224   # in D'.
4225   mkdir conftest.dir
4226   # Copy depcomp to subdir because otherwise we won't find it if we're
4227   # using a relative directory.
4228   cp "$am_depcomp" conftest.dir
4229   cd conftest.dir
4230   # We will build objects and dependencies in a subdirectory because
4231   # it helps to detect inapplicable dependency modes.  For instance
4232   # both Tru64's cc and ICC support -MD to output dependencies as a
4233   # side effect of compilation, but ICC will put the dependencies in
4234   # the current directory while Tru64 will put them in the object
4235   # directory.
4236   mkdir sub
4237
4238   am_cv_CC_dependencies_compiler_type=none
4239   if test "$am_compiler_list" = ""; then
4240      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4241   fi
4242   am__universal=false
4243   case " $depcc " in #(
4244      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4245      esac
4246
4247   for depmode in $am_compiler_list; do
4248     # Setup a source with many dependencies, because some compilers
4249     # like to wrap large dependency lists on column 80 (with \), and
4250     # we should not choose a depcomp mode which is confused by this.
4251     #
4252     # We need to recreate these files for each test, as the compiler may
4253     # overwrite some of them when testing with obscure command lines.
4254     # This happens at least with the AIX C compiler.
4255     : > sub/conftest.c
4256     for i in 1 2 3 4 5 6; do
4257       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4258       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4259       # Solaris 8's {/usr,}/bin/sh.
4260       touch sub/conftst$i.h
4261     done
4262     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4263
4264     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4265     # mode.  It turns out that the SunPro C++ compiler does not properly
4266     # handle `-M -o', and we need to detect this.  Also, some Intel
4267     # versions had trouble with output in subdirs
4268     am__obj=sub/conftest.${OBJEXT-o}
4269     am__minus_obj="-o $am__obj"
4270     case $depmode in
4271     gcc)
4272       # This depmode causes a compiler race in universal mode.
4273       test "$am__universal" = false || continue
4274       ;;
4275     nosideeffect)
4276       # after this tag, mechanisms are not by side-effect, so they'll
4277       # only be used when explicitly requested
4278       if test "x$enable_dependency_tracking" = xyes; then
4279         continue
4280       else
4281         break
4282       fi
4283       ;;
4284     msvisualcpp | msvcmsys)
4285       # This compiler won't grok `-c -o', but also, the minuso test has
4286       # not run yet.  These depmodes are late enough in the game, and
4287       # so weak that their functioning should not be impacted.
4288       am__obj=conftest.${OBJEXT-o}
4289       am__minus_obj=
4290       ;;
4291     none) break ;;
4292     esac
4293     if depmode=$depmode \
4294        source=sub/conftest.c object=$am__obj \
4295        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4296        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4297          >/dev/null 2>conftest.err &&
4298        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4299        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4300        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4301        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4302       # icc doesn't choke on unknown options, it will just issue warnings
4303       # or remarks (even with -Werror).  So we grep stderr for any message
4304       # that says an option was ignored or not supported.
4305       # When given -MP, icc 7.0 and 7.1 complain thusly:
4306       #   icc: Command line warning: ignoring option '-M'; no argument required
4307       # The diagnosis changed in icc 8.0:
4308       #   icc: Command line remark: option '-MP' not supported
4309       if (grep 'ignoring option' conftest.err ||
4310           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4311         am_cv_CC_dependencies_compiler_type=$depmode
4312         break
4313       fi
4314     fi
4315   done
4316
4317   cd ..
4318   rm -rf conftest.dir
4319 else
4320   am_cv_CC_dependencies_compiler_type=none
4321 fi
4322
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4325 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4326 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4327
4328  if
4329   test "x$enable_dependency_tracking" != xno \
4330   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4331   am__fastdepCC_TRUE=
4332   am__fastdepCC_FALSE='#'
4333 else
4334   am__fastdepCC_TRUE='#'
4335   am__fastdepCC_FALSE=
4336 fi
4337
4338
4339 ac_ext=c
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4345 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4346 # On Suns, sometimes $CPP names a directory.
4347 if test -n "$CPP" && test -d "$CPP"; then
4348   CPP=
4349 fi
4350 if test -z "$CPP"; then
4351   if ${ac_cv_prog_CPP+:} false; then :
4352   $as_echo_n "(cached) " >&6
4353 else
4354       # Double quotes because CPP needs to be expanded
4355     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4356     do
4357       ac_preproc_ok=false
4358 for ac_c_preproc_warn_flag in '' yes
4359 do
4360   # Use a header file that comes with gcc, so configuring glibc
4361   # with a fresh cross-compiler works.
4362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4363   # <limits.h> exists even on freestanding compilers.
4364   # On the NeXT, cc -E runs the code through the compiler's parser,
4365   # not just through cpp. "Syntax error" is here to catch this case.
4366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h.  */
4368 #ifdef __STDC__
4369 # include <limits.h>
4370 #else
4371 # include <assert.h>
4372 #endif
4373                      Syntax error
4374 _ACEOF
4375 if ac_fn_c_try_cpp "$LINENO"; then :
4376
4377 else
4378   # Broken: fails on valid input.
4379 continue
4380 fi
4381 rm -f conftest.err conftest.i conftest.$ac_ext
4382
4383   # OK, works on sane cases.  Now check whether nonexistent headers
4384   # can be detected and how.
4385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h.  */
4387 #include <ac_nonexistent.h>
4388 _ACEOF
4389 if ac_fn_c_try_cpp "$LINENO"; then :
4390   # Broken: success on invalid input.
4391 continue
4392 else
4393   # Passes both tests.
4394 ac_preproc_ok=:
4395 break
4396 fi
4397 rm -f conftest.err conftest.i conftest.$ac_ext
4398
4399 done
4400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4401 rm -f conftest.i conftest.err conftest.$ac_ext
4402 if $ac_preproc_ok; then :
4403   break
4404 fi
4405
4406     done
4407     ac_cv_prog_CPP=$CPP
4408
4409 fi
4410   CPP=$ac_cv_prog_CPP
4411 else
4412   ac_cv_prog_CPP=$CPP
4413 fi
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4415 $as_echo "$CPP" >&6; }
4416 ac_preproc_ok=false
4417 for ac_c_preproc_warn_flag in '' yes
4418 do
4419   # Use a header file that comes with gcc, so configuring glibc
4420   # with a fresh cross-compiler works.
4421   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4422   # <limits.h> exists even on freestanding compilers.
4423   # On the NeXT, cc -E runs the code through the compiler's parser,
4424   # not just through cpp. "Syntax error" is here to catch this case.
4425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h.  */
4427 #ifdef __STDC__
4428 # include <limits.h>
4429 #else
4430 # include <assert.h>
4431 #endif
4432                      Syntax error
4433 _ACEOF
4434 if ac_fn_c_try_cpp "$LINENO"; then :
4435
4436 else
4437   # Broken: fails on valid input.
4438 continue
4439 fi
4440 rm -f conftest.err conftest.i conftest.$ac_ext
4441
4442   # OK, works on sane cases.  Now check whether nonexistent headers
4443   # can be detected and how.
4444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h.  */
4446 #include <ac_nonexistent.h>
4447 _ACEOF
4448 if ac_fn_c_try_cpp "$LINENO"; then :
4449   # Broken: success on invalid input.
4450 continue
4451 else
4452   # Passes both tests.
4453 ac_preproc_ok=:
4454 break
4455 fi
4456 rm -f conftest.err conftest.i conftest.$ac_ext
4457
4458 done
4459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4460 rm -f conftest.i conftest.err conftest.$ac_ext
4461 if $ac_preproc_ok; then :
4462
4463 else
4464   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4466 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4467 See \`config.log' for more details" "$LINENO" 5; }
4468 fi
4469
4470 ac_ext=cpp
4471 ac_cpp='$CXXCPP $CPPFLAGS'
4472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4475
4476 ac_ext=cpp
4477 ac_cpp='$CXXCPP $CPPFLAGS'
4478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4481 if test -z "$CXX"; then
4482   if test -n "$CCC"; then
4483     CXX=$CCC
4484   else
4485     if test -n "$ac_tool_prefix"; then
4486   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4487   do
4488     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if ${ac_cv_prog_CXX+:} false; then :
4493   $as_echo_n "(cached) " >&6
4494 else
4495   if test -n "$CXX"; then
4496   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4497 else
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4500 do
4501   IFS=$as_save_IFS
4502   test -z "$as_dir" && as_dir=.
4503     for ac_exec_ext in '' $ac_executable_extensions; do
4504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507     break 2
4508   fi
4509 done
4510   done
4511 IFS=$as_save_IFS
4512
4513 fi
4514 fi
4515 CXX=$ac_cv_prog_CXX
4516 if test -n "$CXX"; then
4517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4518 $as_echo "$CXX" >&6; }
4519 else
4520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4522 fi
4523
4524
4525     test -n "$CXX" && break
4526   done
4527 fi
4528 if test -z "$CXX"; then
4529   ac_ct_CXX=$CXX
4530   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4531 do
4532   # Extract the first word of "$ac_prog", so it can be a program name with args.
4533 set dummy $ac_prog; ac_word=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4537   $as_echo_n "(cached) " >&6
4538 else
4539   if test -n "$ac_ct_CXX"; then
4540   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4541 else
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4544 do
4545   IFS=$as_save_IFS
4546   test -z "$as_dir" && as_dir=.
4547     for ac_exec_ext in '' $ac_executable_extensions; do
4548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4549     ac_cv_prog_ac_ct_CXX="$ac_prog"
4550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551     break 2
4552   fi
4553 done
4554   done
4555 IFS=$as_save_IFS
4556
4557 fi
4558 fi
4559 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4560 if test -n "$ac_ct_CXX"; then
4561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4562 $as_echo "$ac_ct_CXX" >&6; }
4563 else
4564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4566 fi
4567
4568
4569   test -n "$ac_ct_CXX" && break
4570 done
4571
4572   if test "x$ac_ct_CXX" = x; then
4573     CXX="g++"
4574   else
4575     case $cross_compiling:$ac_tool_warned in
4576 yes:)
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4579 ac_tool_warned=yes ;;
4580 esac
4581     CXX=$ac_ct_CXX
4582   fi
4583 fi
4584
4585   fi
4586 fi
4587 # Provide some information about the compiler.
4588 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4589 set X $ac_compile
4590 ac_compiler=$2
4591 for ac_option in --version -v -V -qversion; do
4592   { { ac_try="$ac_compiler $ac_option >&5"
4593 case "(($ac_try" in
4594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595   *) ac_try_echo=$ac_try;;
4596 esac
4597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4598 $as_echo "$ac_try_echo"; } >&5
4599   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4600   ac_status=$?
4601   if test -s conftest.err; then
4602     sed '10a\
4603 ... rest of stderr output deleted ...
4604          10q' conftest.err >conftest.er1
4605     cat conftest.er1 >&5
4606   fi
4607   rm -f conftest.er1 conftest.err
4608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4609   test $ac_status = 0; }
4610 done
4611
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4613 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4614 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4615   $as_echo_n "(cached) " >&6
4616 else
4617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h.  */
4619
4620 int
4621 main ()
4622 {
4623 #ifndef __GNUC__
4624        choke me
4625 #endif
4626
4627   ;
4628   return 0;
4629 }
4630 _ACEOF
4631 if ac_fn_cxx_try_compile "$LINENO"; then :
4632   ac_compiler_gnu=yes
4633 else
4634   ac_compiler_gnu=no
4635 fi
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4638
4639 fi
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4641 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4642 if test $ac_compiler_gnu = yes; then
4643   GXX=yes
4644 else
4645   GXX=
4646 fi
4647 ac_test_CXXFLAGS=${CXXFLAGS+set}
4648 ac_save_CXXFLAGS=$CXXFLAGS
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4650 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4651 if ${ac_cv_prog_cxx_g+:} false; then :
4652   $as_echo_n "(cached) " >&6
4653 else
4654   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4655    ac_cxx_werror_flag=yes
4656    ac_cv_prog_cxx_g=no
4657    CXXFLAGS="-g"
4658    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h.  */
4660
4661 int
4662 main ()
4663 {
4664
4665   ;
4666   return 0;
4667 }
4668 _ACEOF
4669 if ac_fn_cxx_try_compile "$LINENO"; then :
4670   ac_cv_prog_cxx_g=yes
4671 else
4672   CXXFLAGS=""
4673       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h.  */
4675
4676 int
4677 main ()
4678 {
4679
4680   ;
4681   return 0;
4682 }
4683 _ACEOF
4684 if ac_fn_cxx_try_compile "$LINENO"; then :
4685
4686 else
4687   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4688          CXXFLAGS="-g"
4689          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h.  */
4691
4692 int
4693 main ()
4694 {
4695
4696   ;
4697   return 0;
4698 }
4699 _ACEOF
4700 if ac_fn_cxx_try_compile "$LINENO"; then :
4701   ac_cv_prog_cxx_g=yes
4702 fi
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 fi
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 fi
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4711 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4712 if test "$ac_test_CXXFLAGS" = set; then
4713   CXXFLAGS=$ac_save_CXXFLAGS
4714 elif test $ac_cv_prog_cxx_g = yes; then
4715   if test "$GXX" = yes; then
4716     CXXFLAGS="-g -O2"
4717   else
4718     CXXFLAGS="-g"
4719   fi
4720 else
4721   if test "$GXX" = yes; then
4722     CXXFLAGS="-O2"
4723   else
4724     CXXFLAGS=
4725   fi
4726 fi
4727 ac_ext=cpp
4728 ac_cpp='$CXXCPP $CPPFLAGS'
4729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4732
4733 depcc="$CXX"  am_compiler_list=
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4736 $as_echo_n "checking dependency style of $depcc... " >&6; }
4737 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4738   $as_echo_n "(cached) " >&6
4739 else
4740   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4741   # We make a subdir and do the tests there.  Otherwise we can end up
4742   # making bogus files that we don't know about and never remove.  For
4743   # instance it was reported that on HP-UX the gcc test will end up
4744   # making a dummy file named `D' -- because `-MD' means `put the output
4745   # in D'.
4746   mkdir conftest.dir
4747   # Copy depcomp to subdir because otherwise we won't find it if we're
4748   # using a relative directory.
4749   cp "$am_depcomp" conftest.dir
4750   cd conftest.dir
4751   # We will build objects and dependencies in a subdirectory because
4752   # it helps to detect inapplicable dependency modes.  For instance
4753   # both Tru64's cc and ICC support -MD to output dependencies as a
4754   # side effect of compilation, but ICC will put the dependencies in
4755   # the current directory while Tru64 will put them in the object
4756   # directory.
4757   mkdir sub
4758
4759   am_cv_CXX_dependencies_compiler_type=none
4760   if test "$am_compiler_list" = ""; then
4761      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4762   fi
4763   am__universal=false
4764   case " $depcc " in #(
4765      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4766      esac
4767
4768   for depmode in $am_compiler_list; do
4769     # Setup a source with many dependencies, because some compilers
4770     # like to wrap large dependency lists on column 80 (with \), and
4771     # we should not choose a depcomp mode which is confused by this.
4772     #
4773     # We need to recreate these files for each test, as the compiler may
4774     # overwrite some of them when testing with obscure command lines.
4775     # This happens at least with the AIX C compiler.
4776     : > sub/conftest.c
4777     for i in 1 2 3 4 5 6; do
4778       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4779       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4780       # Solaris 8's {/usr,}/bin/sh.
4781       touch sub/conftst$i.h
4782     done
4783     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4784
4785     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4786     # mode.  It turns out that the SunPro C++ compiler does not properly
4787     # handle `-M -o', and we need to detect this.  Also, some Intel
4788     # versions had trouble with output in subdirs
4789     am__obj=sub/conftest.${OBJEXT-o}
4790     am__minus_obj="-o $am__obj"
4791     case $depmode in
4792     gcc)
4793       # This depmode causes a compiler race in universal mode.
4794       test "$am__universal" = false || continue
4795       ;;
4796     nosideeffect)
4797       # after this tag, mechanisms are not by side-effect, so they'll
4798       # only be used when explicitly requested
4799       if test "x$enable_dependency_tracking" = xyes; then
4800         continue
4801       else
4802         break
4803       fi
4804       ;;
4805     msvisualcpp | msvcmsys)
4806       # This compiler won't grok `-c -o', but also, the minuso test has
4807       # not run yet.  These depmodes are late enough in the game, and
4808       # so weak that their functioning should not be impacted.
4809       am__obj=conftest.${OBJEXT-o}
4810       am__minus_obj=
4811       ;;
4812     none) break ;;
4813     esac
4814     if depmode=$depmode \
4815        source=sub/conftest.c object=$am__obj \
4816        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4817        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4818          >/dev/null 2>conftest.err &&
4819        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4820        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4821        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4822        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4823       # icc doesn't choke on unknown options, it will just issue warnings
4824       # or remarks (even with -Werror).  So we grep stderr for any message
4825       # that says an option was ignored or not supported.
4826       # When given -MP, icc 7.0 and 7.1 complain thusly:
4827       #   icc: Command line warning: ignoring option '-M'; no argument required
4828       # The diagnosis changed in icc 8.0:
4829       #   icc: Command line remark: option '-MP' not supported
4830       if (grep 'ignoring option' conftest.err ||
4831           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4832         am_cv_CXX_dependencies_compiler_type=$depmode
4833         break
4834       fi
4835     fi
4836   done
4837
4838   cd ..
4839   rm -rf conftest.dir
4840 else
4841   am_cv_CXX_dependencies_compiler_type=none
4842 fi
4843
4844 fi
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4846 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4847 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4848
4849  if
4850   test "x$enable_dependency_tracking" != xno \
4851   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4852   am__fastdepCXX_TRUE=
4853   am__fastdepCXX_FALSE='#'
4854 else
4855   am__fastdepCXX_TRUE='#'
4856   am__fastdepCXX_FALSE=
4857 fi
4858
4859
4860  if test "$GCC" = yes; then
4861   GCC_TRUE=
4862   GCC_FALSE='#'
4863 else
4864   GCC_TRUE='#'
4865   GCC_FALSE=
4866 fi
4867    # let the Makefile know if we're gcc
4868
4869 case `pwd` in
4870   *\ * | *\     *)
4871     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4872 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4873 esac
4874
4875
4876
4877 macro_version='2.2.6b'
4878 macro_revision='1.3017'
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892 ltmain="$ac_aux_dir/ltmain.sh"
4893
4894 # Make sure we can run config.sub.
4895 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4896   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4897
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4899 $as_echo_n "checking build system type... " >&6; }
4900 if ${ac_cv_build+:} false; then :
4901   $as_echo_n "(cached) " >&6
4902 else
4903   ac_build_alias=$build_alias
4904 test "x$ac_build_alias" = x &&
4905   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4906 test "x$ac_build_alias" = x &&
4907   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4908 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4909   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4910
4911 fi
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4913 $as_echo "$ac_cv_build" >&6; }
4914 case $ac_cv_build in
4915 *-*-*) ;;
4916 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4917 esac
4918 build=$ac_cv_build
4919 ac_save_IFS=$IFS; IFS='-'
4920 set x $ac_cv_build
4921 shift
4922 build_cpu=$1
4923 build_vendor=$2
4924 shift; shift
4925 # Remember, the first character of IFS is used to create $*,
4926 # except with old shells:
4927 build_os=$*
4928 IFS=$ac_save_IFS
4929 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4930
4931
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4933 $as_echo_n "checking host system type... " >&6; }
4934 if ${ac_cv_host+:} false; then :
4935   $as_echo_n "(cached) " >&6
4936 else
4937   if test "x$host_alias" = x; then
4938   ac_cv_host=$ac_cv_build
4939 else
4940   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4941     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4942 fi
4943
4944 fi
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4946 $as_echo "$ac_cv_host" >&6; }
4947 case $ac_cv_host in
4948 *-*-*) ;;
4949 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4950 esac
4951 host=$ac_cv_host
4952 ac_save_IFS=$IFS; IFS='-'
4953 set x $ac_cv_host
4954 shift
4955 host_cpu=$1
4956 host_vendor=$2
4957 shift; shift
4958 # Remember, the first character of IFS is used to create $*,
4959 # except with old shells:
4960 host_os=$*
4961 IFS=$ac_save_IFS
4962 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4963
4964
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4966 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4967 if ${ac_cv_path_SED+:} false; then :
4968   $as_echo_n "(cached) " >&6
4969 else
4970             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4971      for ac_i in 1 2 3 4 5 6 7; do
4972        ac_script="$ac_script$as_nl$ac_script"
4973      done
4974      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4975      { ac_script=; unset ac_script;}
4976      if test -z "$SED"; then
4977   ac_path_SED_found=false
4978   # Loop through the user's path and test for each of PROGNAME-LIST
4979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982   IFS=$as_save_IFS
4983   test -z "$as_dir" && as_dir=.
4984     for ac_prog in sed gsed; do
4985     for ac_exec_ext in '' $ac_executable_extensions; do
4986       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4987       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4988 # Check for GNU ac_path_SED and select it if it is found.
4989   # Check for GNU $ac_path_SED
4990 case `"$ac_path_SED" --version 2>&1` in
4991 *GNU*)
4992   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4993 *)
4994   ac_count=0
4995   $as_echo_n 0123456789 >"conftest.in"
4996   while :
4997   do
4998     cat "conftest.in" "conftest.in" >"conftest.tmp"
4999     mv "conftest.tmp" "conftest.in"
5000     cp "conftest.in" "conftest.nl"
5001     $as_echo '' >> "conftest.nl"
5002     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5003     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5004     as_fn_arith $ac_count + 1 && ac_count=$as_val
5005     if test $ac_count -gt ${ac_path_SED_max-0}; then
5006       # Best one so far, save it but keep looking for a better one
5007       ac_cv_path_SED="$ac_path_SED"
5008       ac_path_SED_max=$ac_count
5009     fi
5010     # 10*(2^10) chars as input seems more than enough
5011     test $ac_count -gt 10 && break
5012   done
5013   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5014 esac
5015
5016       $ac_path_SED_found && break 3
5017     done
5018   done
5019   done
5020 IFS=$as_save_IFS
5021   if test -z "$ac_cv_path_SED"; then
5022     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5023   fi
5024 else
5025   ac_cv_path_SED=$SED
5026 fi
5027
5028 fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5030 $as_echo "$ac_cv_path_SED" >&6; }
5031  SED="$ac_cv_path_SED"
5032   rm -f conftest.sed
5033
5034 test -z "$SED" && SED=sed
5035 Xsed="$SED -e 1s/^X//"
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5048 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5049 if ${ac_cv_path_GREP+:} false; then :
5050   $as_echo_n "(cached) " >&6
5051 else
5052   if test -z "$GREP"; then
5053   ac_path_GREP_found=false
5054   # Loop through the user's path and test for each of PROGNAME-LIST
5055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5057 do
5058   IFS=$as_save_IFS
5059   test -z "$as_dir" && as_dir=.
5060     for ac_prog in grep ggrep; do
5061     for ac_exec_ext in '' $ac_executable_extensions; do
5062       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5063       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5064 # Check for GNU ac_path_GREP and select it if it is found.
5065   # Check for GNU $ac_path_GREP
5066 case `"$ac_path_GREP" --version 2>&1` in
5067 *GNU*)
5068   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5069 *)
5070   ac_count=0
5071   $as_echo_n 0123456789 >"conftest.in"
5072   while :
5073   do
5074     cat "conftest.in" "conftest.in" >"conftest.tmp"
5075     mv "conftest.tmp" "conftest.in"
5076     cp "conftest.in" "conftest.nl"
5077     $as_echo 'GREP' >> "conftest.nl"
5078     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5079     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5080     as_fn_arith $ac_count + 1 && ac_count=$as_val
5081     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5082       # Best one so far, save it but keep looking for a better one
5083       ac_cv_path_GREP="$ac_path_GREP"
5084       ac_path_GREP_max=$ac_count
5085     fi
5086     # 10*(2^10) chars as input seems more than enough
5087     test $ac_count -gt 10 && break
5088   done
5089   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5090 esac
5091
5092       $ac_path_GREP_found && break 3
5093     done
5094   done
5095   done
5096 IFS=$as_save_IFS
5097   if test -z "$ac_cv_path_GREP"; then
5098     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5099   fi
5100 else
5101   ac_cv_path_GREP=$GREP
5102 fi
5103
5104 fi
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5106 $as_echo "$ac_cv_path_GREP" >&6; }
5107  GREP="$ac_cv_path_GREP"
5108
5109
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5111 $as_echo_n "checking for egrep... " >&6; }
5112 if ${ac_cv_path_EGREP+:} false; then :
5113   $as_echo_n "(cached) " >&6
5114 else
5115   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5116    then ac_cv_path_EGREP="$GREP -E"
5117    else
5118      if test -z "$EGREP"; then
5119   ac_path_EGREP_found=false
5120   # Loop through the user's path and test for each of PROGNAME-LIST
5121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5123 do
5124   IFS=$as_save_IFS
5125   test -z "$as_dir" && as_dir=.
5126     for ac_prog in egrep; do
5127     for ac_exec_ext in '' $ac_executable_extensions; do
5128       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5129       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5130 # Check for GNU ac_path_EGREP and select it if it is found.
5131   # Check for GNU $ac_path_EGREP
5132 case `"$ac_path_EGREP" --version 2>&1` in
5133 *GNU*)
5134   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5135 *)
5136   ac_count=0
5137   $as_echo_n 0123456789 >"conftest.in"
5138   while :
5139   do
5140     cat "conftest.in" "conftest.in" >"conftest.tmp"
5141     mv "conftest.tmp" "conftest.in"
5142     cp "conftest.in" "conftest.nl"
5143     $as_echo 'EGREP' >> "conftest.nl"
5144     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5145     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5146     as_fn_arith $ac_count + 1 && ac_count=$as_val
5147     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5148       # Best one so far, save it but keep looking for a better one
5149       ac_cv_path_EGREP="$ac_path_EGREP"
5150       ac_path_EGREP_max=$ac_count
5151     fi
5152     # 10*(2^10) chars as input seems more than enough
5153     test $ac_count -gt 10 && break
5154   done
5155   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5156 esac
5157
5158       $ac_path_EGREP_found && break 3
5159     done
5160   done
5161   done
5162 IFS=$as_save_IFS
5163   if test -z "$ac_cv_path_EGREP"; then
5164     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5165   fi
5166 else
5167   ac_cv_path_EGREP=$EGREP
5168 fi
5169
5170    fi
5171 fi
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5173 $as_echo "$ac_cv_path_EGREP" >&6; }
5174  EGREP="$ac_cv_path_EGREP"
5175
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5178 $as_echo_n "checking for fgrep... " >&6; }
5179 if ${ac_cv_path_FGREP+:} false; then :
5180   $as_echo_n "(cached) " >&6
5181 else
5182   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5183    then ac_cv_path_FGREP="$GREP -F"
5184    else
5185      if test -z "$FGREP"; then
5186   ac_path_FGREP_found=false
5187   # Loop through the user's path and test for each of PROGNAME-LIST
5188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193     for ac_prog in fgrep; do
5194     for ac_exec_ext in '' $ac_executable_extensions; do
5195       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5196       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5197 # Check for GNU ac_path_FGREP and select it if it is found.
5198   # Check for GNU $ac_path_FGREP
5199 case `"$ac_path_FGREP" --version 2>&1` in
5200 *GNU*)
5201   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5202 *)
5203   ac_count=0
5204   $as_echo_n 0123456789 >"conftest.in"
5205   while :
5206   do
5207     cat "conftest.in" "conftest.in" >"conftest.tmp"
5208     mv "conftest.tmp" "conftest.in"
5209     cp "conftest.in" "conftest.nl"
5210     $as_echo 'FGREP' >> "conftest.nl"
5211     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5212     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5213     as_fn_arith $ac_count + 1 && ac_count=$as_val
5214     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5215       # Best one so far, save it but keep looking for a better one
5216       ac_cv_path_FGREP="$ac_path_FGREP"
5217       ac_path_FGREP_max=$ac_count
5218     fi
5219     # 10*(2^10) chars as input seems more than enough
5220     test $ac_count -gt 10 && break
5221   done
5222   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5223 esac
5224
5225       $ac_path_FGREP_found && break 3
5226     done
5227   done
5228   done
5229 IFS=$as_save_IFS
5230   if test -z "$ac_cv_path_FGREP"; then
5231     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5232   fi
5233 else
5234   ac_cv_path_FGREP=$FGREP
5235 fi
5236
5237    fi
5238 fi
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5240 $as_echo "$ac_cv_path_FGREP" >&6; }
5241  FGREP="$ac_cv_path_FGREP"
5242
5243
5244 test -z "$GREP" && GREP=grep
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264 # Check whether --with-gnu-ld was given.
5265 if test "${with_gnu_ld+set}" = set; then :
5266   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5267 else
5268   with_gnu_ld=no
5269 fi
5270
5271 ac_prog=ld
5272 if test "$GCC" = yes; then
5273   # Check if gcc -print-prog-name=ld gives a path.
5274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5275 $as_echo_n "checking for ld used by $CC... " >&6; }
5276   case $host in
5277   *-*-mingw*)
5278     # gcc leaves a trailing carriage return which upsets mingw
5279     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5280   *)
5281     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5282   esac
5283   case $ac_prog in
5284     # Accept absolute paths.
5285     [\\/]* | ?:[\\/]*)
5286       re_direlt='/[^/][^/]*/\.\./'
5287       # Canonicalize the pathname of ld
5288       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5289       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5290         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5291       done
5292       test -z "$LD" && LD="$ac_prog"
5293       ;;
5294   "")
5295     # If it fails, then pretend we aren't using GCC.
5296     ac_prog=ld
5297     ;;
5298   *)
5299     # If it is relative, then search for the first ld in PATH.
5300     with_gnu_ld=unknown
5301     ;;
5302   esac
5303 elif test "$with_gnu_ld" = yes; then
5304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5305 $as_echo_n "checking for GNU ld... " >&6; }
5306 else
5307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5308 $as_echo_n "checking for non-GNU ld... " >&6; }
5309 fi
5310 if ${lt_cv_path_LD+:} false; then :
5311   $as_echo_n "(cached) " >&6
5312 else
5313   if test -z "$LD"; then
5314   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5315   for ac_dir in $PATH; do
5316     IFS="$lt_save_ifs"
5317     test -z "$ac_dir" && ac_dir=.
5318     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5319       lt_cv_path_LD="$ac_dir/$ac_prog"
5320       # Check to see if the program is GNU ld.  I'd rather use --version,
5321       # but apparently some variants of GNU ld only accept -v.
5322       # Break only if it was the GNU/non-GNU ld that we prefer.
5323       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5324       *GNU* | *'with BFD'*)
5325         test "$with_gnu_ld" != no && break
5326         ;;
5327       *)
5328         test "$with_gnu_ld" != yes && break
5329         ;;
5330       esac
5331     fi
5332   done
5333   IFS="$lt_save_ifs"
5334 else
5335   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5336 fi
5337 fi
5338
5339 LD="$lt_cv_path_LD"
5340 if test -n "$LD"; then
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5342 $as_echo "$LD" >&6; }
5343 else
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5346 fi
5347 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5349 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5350 if ${lt_cv_prog_gnu_ld+:} false; then :
5351   $as_echo_n "(cached) " >&6
5352 else
5353   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5354 case `$LD -v 2>&1 </dev/null` in
5355 *GNU* | *'with BFD'*)
5356   lt_cv_prog_gnu_ld=yes
5357   ;;
5358 *)
5359   lt_cv_prog_gnu_ld=no
5360   ;;
5361 esac
5362 fi
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5364 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5365 with_gnu_ld=$lt_cv_prog_gnu_ld
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5376 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5377 if ${lt_cv_path_NM+:} false; then :
5378   $as_echo_n "(cached) " >&6
5379 else
5380   if test -n "$NM"; then
5381   # Let the user override the test.
5382   lt_cv_path_NM="$NM"
5383 else
5384   lt_nm_to_check="${ac_tool_prefix}nm"
5385   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5386     lt_nm_to_check="$lt_nm_to_check nm"
5387   fi
5388   for lt_tmp_nm in $lt_nm_to_check; do
5389     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5390     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5391       IFS="$lt_save_ifs"
5392       test -z "$ac_dir" && ac_dir=.
5393       tmp_nm="$ac_dir/$lt_tmp_nm"
5394       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5395         # Check to see if the nm accepts a BSD-compat flag.
5396         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5397         #   nm: unknown option "B" ignored
5398         # Tru64's nm complains that /dev/null is an invalid object file
5399         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5400         */dev/null* | *'Invalid file or object type'*)
5401           lt_cv_path_NM="$tmp_nm -B"
5402           break
5403           ;;
5404         *)
5405           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5406           */dev/null*)
5407             lt_cv_path_NM="$tmp_nm -p"
5408             break
5409             ;;
5410           *)
5411             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5412             continue # so that we can try to find one that supports BSD flags
5413             ;;
5414           esac
5415           ;;
5416         esac
5417       fi
5418     done
5419     IFS="$lt_save_ifs"
5420   done
5421   : ${lt_cv_path_NM=no}
5422 fi
5423 fi
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5425 $as_echo "$lt_cv_path_NM" >&6; }
5426 if test "$lt_cv_path_NM" != "no"; then
5427   NM="$lt_cv_path_NM"
5428 else
5429   # Didn't find any BSD compatible name lister, look for dumpbin.
5430   if test -n "$ac_tool_prefix"; then
5431   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5432   do
5433     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if ${ac_cv_prog_DUMPBIN+:} false; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440   if test -n "$DUMPBIN"; then
5441   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5442 else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446   IFS=$as_save_IFS
5447   test -z "$as_dir" && as_dir=.
5448     for ac_exec_ext in '' $ac_executable_extensions; do
5449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452     break 2
5453   fi
5454 done
5455   done
5456 IFS=$as_save_IFS
5457
5458 fi
5459 fi
5460 DUMPBIN=$ac_cv_prog_DUMPBIN
5461 if test -n "$DUMPBIN"; then
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5463 $as_echo "$DUMPBIN" >&6; }
5464 else
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 fi
5468
5469
5470     test -n "$DUMPBIN" && break
5471   done
5472 fi
5473 if test -z "$DUMPBIN"; then
5474   ac_ct_DUMPBIN=$DUMPBIN
5475   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5476 do
5477   # Extract the first word of "$ac_prog", so it can be a program name with args.
5478 set dummy $ac_prog; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5482   $as_echo_n "(cached) " >&6
5483 else
5484   if test -n "$ac_ct_DUMPBIN"; then
5485   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5486 else
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5489 do
5490   IFS=$as_save_IFS
5491   test -z "$as_dir" && as_dir=.
5492     for ac_exec_ext in '' $ac_executable_extensions; do
5493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5494     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496     break 2
5497   fi
5498 done
5499   done
5500 IFS=$as_save_IFS
5501
5502 fi
5503 fi
5504 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5505 if test -n "$ac_ct_DUMPBIN"; then
5506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5507 $as_echo "$ac_ct_DUMPBIN" >&6; }
5508 else
5509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5511 fi
5512
5513
5514   test -n "$ac_ct_DUMPBIN" && break
5515 done
5516
5517   if test "x$ac_ct_DUMPBIN" = x; then
5518     DUMPBIN=":"
5519   else
5520     case $cross_compiling:$ac_tool_warned in
5521 yes:)
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5524 ac_tool_warned=yes ;;
5525 esac
5526     DUMPBIN=$ac_ct_DUMPBIN
5527   fi
5528 fi
5529
5530
5531   if test "$DUMPBIN" != ":"; then
5532     NM="$DUMPBIN"
5533   fi
5534 fi
5535 test -z "$NM" && NM=nm
5536
5537
5538
5539
5540
5541
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5543 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5544 if ${lt_cv_nm_interface+:} false; then :
5545   $as_echo_n "(cached) " >&6
5546 else
5547   lt_cv_nm_interface="BSD nm"
5548   echo "int some_variable = 0;" > conftest.$ac_ext
5549   (eval echo "\"\$as_me:5549: $ac_compile\"" >&5)
5550   (eval "$ac_compile" 2>conftest.err)
5551   cat conftest.err >&5
5552   (eval echo "\"\$as_me:5552: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5553   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5554   cat conftest.err >&5
5555   (eval echo "\"\$as_me:5555: output\"" >&5)
5556   cat conftest.out >&5
5557   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5558     lt_cv_nm_interface="MS dumpbin"
5559   fi
5560   rm -f conftest*
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5563 $as_echo "$lt_cv_nm_interface" >&6; }
5564
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5566 $as_echo_n "checking whether ln -s works... " >&6; }
5567 LN_S=$as_ln_s
5568 if test "$LN_S" = "ln -s"; then
5569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5570 $as_echo "yes" >&6; }
5571 else
5572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5573 $as_echo "no, using $LN_S" >&6; }
5574 fi
5575
5576 # find the maximum length of command line arguments
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5578 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5579 if ${lt_cv_sys_max_cmd_len+:} false; then :
5580   $as_echo_n "(cached) " >&6
5581 else
5582     i=0
5583   teststring="ABCD"
5584
5585   case $build_os in
5586   msdosdjgpp*)
5587     # On DJGPP, this test can blow up pretty badly due to problems in libc
5588     # (any single argument exceeding 2000 bytes causes a buffer overrun
5589     # during glob expansion).  Even if it were fixed, the result of this
5590     # check would be larger than it should be.
5591     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5592     ;;
5593
5594   gnu*)
5595     # Under GNU Hurd, this test is not required because there is
5596     # no limit to the length of command line arguments.
5597     # Libtool will interpret -1 as no limit whatsoever
5598     lt_cv_sys_max_cmd_len=-1;
5599     ;;
5600
5601   cygwin* | mingw* | cegcc*)
5602     # On Win9x/ME, this test blows up -- it succeeds, but takes
5603     # about 5 minutes as the teststring grows exponentially.
5604     # Worse, since 9x/ME are not pre-emptively multitasking,
5605     # you end up with a "frozen" computer, even though with patience
5606     # the test eventually succeeds (with a max line length of 256k).
5607     # Instead, let's just punt: use the minimum linelength reported by
5608     # all of the supported platforms: 8192 (on NT/2K/XP).
5609     lt_cv_sys_max_cmd_len=8192;
5610     ;;
5611
5612   amigaos*)
5613     # On AmigaOS with pdksh, this test takes hours, literally.
5614     # So we just punt and use a minimum line length of 8192.
5615     lt_cv_sys_max_cmd_len=8192;
5616     ;;
5617
5618   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5619     # This has been around since 386BSD, at least.  Likely further.
5620     if test -x /sbin/sysctl; then
5621       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5622     elif test -x /usr/sbin/sysctl; then
5623       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5624     else
5625       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5626     fi
5627     # And add a safety zone
5628     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5629     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5630     ;;
5631
5632   interix*)
5633     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5634     lt_cv_sys_max_cmd_len=196608
5635     ;;
5636
5637   osf*)
5638     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5639     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5640     # nice to cause kernel panics so lets avoid the loop below.
5641     # First set a reasonable default.
5642     lt_cv_sys_max_cmd_len=16384
5643     #
5644     if test -x /sbin/sysconfig; then
5645       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5646         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5647       esac
5648     fi
5649     ;;
5650   sco3.2v5*)
5651     lt_cv_sys_max_cmd_len=102400
5652     ;;
5653   sysv5* | sco5v6* | sysv4.2uw2*)
5654     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5655     if test -n "$kargmax"; then
5656       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5657     else
5658       lt_cv_sys_max_cmd_len=32768
5659     fi
5660     ;;
5661   *)
5662     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5663     if test -n "$lt_cv_sys_max_cmd_len"; then
5664       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5665       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5666     else
5667       # Make teststring a little bigger before we do anything with it.
5668       # a 1K string should be a reasonable start.
5669       for i in 1 2 3 4 5 6 7 8 ; do
5670         teststring=$teststring$teststring
5671       done
5672       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5673       # If test is not a shell built-in, we'll probably end up computing a
5674       # maximum length that is only half of the actual maximum length, but
5675       # we can't tell.
5676       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5677                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5678               test $i != 17 # 1/2 MB should be enough
5679       do
5680         i=`expr $i + 1`
5681         teststring=$teststring$teststring
5682       done
5683       # Only check the string length outside the loop.
5684       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5685       teststring=
5686       # Add a significant safety factor because C++ compilers can tack on
5687       # massive amounts of additional arguments before passing them to the
5688       # linker.  It appears as though 1/2 is a usable value.
5689       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5690     fi
5691     ;;
5692   esac
5693
5694 fi
5695
5696 if test -n $lt_cv_sys_max_cmd_len ; then
5697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5698 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5699 else
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5701 $as_echo "none" >&6; }
5702 fi
5703 max_cmd_len=$lt_cv_sys_max_cmd_len
5704
5705
5706
5707
5708
5709
5710 : ${CP="cp -f"}
5711 : ${MV="mv -f"}
5712 : ${RM="rm -f"}
5713
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5715 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5716 # Try some XSI features
5717 xsi_shell=no
5718 ( _lt_dummy="a/b/c"
5719   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5720       = c,a/b,, \
5721     && eval 'test $(( 1 + 1 )) -eq 2 \
5722     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5723   && xsi_shell=yes
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5725 $as_echo "$xsi_shell" >&6; }
5726
5727
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5729 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5730 lt_shell_append=no
5731 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5732     >/dev/null 2>&1 \
5733   && lt_shell_append=yes
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5735 $as_echo "$lt_shell_append" >&6; }
5736
5737
5738 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5739   lt_unset=unset
5740 else
5741   lt_unset=false
5742 fi
5743
5744
5745
5746
5747
5748 # test EBCDIC or ASCII
5749 case `echo X|tr X '\101'` in
5750  A) # ASCII based system
5751     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5752   lt_SP2NL='tr \040 \012'
5753   lt_NL2SP='tr \015\012 \040\040'
5754   ;;
5755  *) # EBCDIC based system
5756   lt_SP2NL='tr \100 \n'
5757   lt_NL2SP='tr \r\n \100\100'
5758   ;;
5759 esac
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5770 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5771 if ${lt_cv_ld_reload_flag+:} false; then :
5772   $as_echo_n "(cached) " >&6
5773 else
5774   lt_cv_ld_reload_flag='-r'
5775 fi
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5777 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5778 reload_flag=$lt_cv_ld_reload_flag
5779 case $reload_flag in
5780 "" | " "*) ;;
5781 *) reload_flag=" $reload_flag" ;;
5782 esac
5783 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5784 case $host_os in
5785   darwin*)
5786     if test "$GCC" = yes; then
5787       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5788     else
5789       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5790     fi
5791     ;;
5792 esac
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802 if test -n "$ac_tool_prefix"; then
5803   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5804 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if ${ac_cv_prog_OBJDUMP+:} false; then :
5808   $as_echo_n "(cached) " >&6
5809 else
5810   if test -n "$OBJDUMP"; then
5811   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816   IFS=$as_save_IFS
5817   test -z "$as_dir" && as_dir=.
5818     for ac_exec_ext in '' $ac_executable_extensions; do
5819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5820     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822     break 2
5823   fi
5824 done
5825   done
5826 IFS=$as_save_IFS
5827
5828 fi
5829 fi
5830 OBJDUMP=$ac_cv_prog_OBJDUMP
5831 if test -n "$OBJDUMP"; then
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5833 $as_echo "$OBJDUMP" >&6; }
5834 else
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 fi
5838
5839
5840 fi
5841 if test -z "$ac_cv_prog_OBJDUMP"; then
5842   ac_ct_OBJDUMP=$OBJDUMP
5843   # Extract the first word of "objdump", so it can be a program name with args.
5844 set dummy objdump; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5848   $as_echo_n "(cached) " >&6
5849 else
5850   if test -n "$ac_ct_OBJDUMP"; then
5851   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856   IFS=$as_save_IFS
5857   test -z "$as_dir" && as_dir=.
5858     for ac_exec_ext in '' $ac_executable_extensions; do
5859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862     break 2
5863   fi
5864 done
5865   done
5866 IFS=$as_save_IFS
5867
5868 fi
5869 fi
5870 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5871 if test -n "$ac_ct_OBJDUMP"; then
5872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5873 $as_echo "$ac_ct_OBJDUMP" >&6; }
5874 else
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 fi
5878
5879   if test "x$ac_ct_OBJDUMP" = x; then
5880     OBJDUMP="false"
5881   else
5882     case $cross_compiling:$ac_tool_warned in
5883 yes:)
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5886 ac_tool_warned=yes ;;
5887 esac
5888     OBJDUMP=$ac_ct_OBJDUMP
5889   fi
5890 else
5891   OBJDUMP="$ac_cv_prog_OBJDUMP"
5892 fi
5893
5894 test -z "$OBJDUMP" && OBJDUMP=objdump
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5905 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5906 if ${lt_cv_deplibs_check_method+:} false; then :
5907   $as_echo_n "(cached) " >&6
5908 else
5909   lt_cv_file_magic_cmd='$MAGIC_CMD'
5910 lt_cv_file_magic_test_file=
5911 lt_cv_deplibs_check_method='unknown'
5912 # Need to set the preceding variable on all platforms that support
5913 # interlibrary dependencies.
5914 # 'none' -- dependencies not supported.
5915 # `unknown' -- same as none, but documents that we really don't know.
5916 # 'pass_all' -- all dependencies passed with no checks.
5917 # 'test_compile' -- check by making test program.
5918 # 'file_magic [[regex]]' -- check by looking for files in library path
5919 # which responds to the $file_magic_cmd with a given extended regex.
5920 # If you have `file' or equivalent on your system and you're not sure
5921 # whether `pass_all' will *always* work, you probably want this one.
5922
5923 case $host_os in
5924 aix[4-9]*)
5925   lt_cv_deplibs_check_method=pass_all
5926   ;;
5927
5928 beos*)
5929   lt_cv_deplibs_check_method=pass_all
5930   ;;
5931
5932 bsdi[45]*)
5933   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5934   lt_cv_file_magic_cmd='/usr/bin/file -L'
5935   lt_cv_file_magic_test_file=/shlib/libc.so
5936   ;;
5937
5938 cygwin*)
5939   # func_win32_libid is a shell function defined in ltmain.sh
5940   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5941   lt_cv_file_magic_cmd='func_win32_libid'
5942   ;;
5943
5944 mingw* | pw32*)
5945   # Base MSYS/MinGW do not provide the 'file' command needed by
5946   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5947   # unless we find 'file', for example because we are cross-compiling.
5948   if ( file / ) >/dev/null 2>&1; then
5949     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5950     lt_cv_file_magic_cmd='func_win32_libid'
5951   else
5952     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5953     lt_cv_file_magic_cmd='$OBJDUMP -f'
5954   fi
5955   ;;
5956
5957 cegcc)
5958   # use the weaker test based on 'objdump'. See mingw*.
5959   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5960   lt_cv_file_magic_cmd='$OBJDUMP -f'
5961   ;;
5962
5963 darwin* | rhapsody*)
5964   lt_cv_deplibs_check_method=pass_all
5965   ;;
5966
5967 freebsd* | dragonfly*)
5968   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5969     case $host_cpu in
5970     i*86 )
5971       # Not sure whether the presence of OpenBSD here was a mistake.
5972       # Let's accept both of them until this is cleared up.
5973       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5974       lt_cv_file_magic_cmd=/usr/bin/file
5975       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5976       ;;
5977     esac
5978   else
5979     lt_cv_deplibs_check_method=pass_all
5980   fi
5981   ;;
5982
5983 gnu*)
5984   lt_cv_deplibs_check_method=pass_all
5985   ;;
5986
5987 hpux10.20* | hpux11*)
5988   lt_cv_file_magic_cmd=/usr/bin/file
5989   case $host_cpu in
5990   ia64*)
5991     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5992     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5993     ;;
5994   hppa*64*)
5995     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]'
5996     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5997     ;;
5998   *)
5999     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6000     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6001     ;;
6002   esac
6003   ;;
6004
6005 interix[3-9]*)
6006   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6007   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6008   ;;
6009
6010 irix5* | irix6* | nonstopux*)
6011   case $LD in
6012   *-32|*"-32 ") libmagic=32-bit;;
6013   *-n32|*"-n32 ") libmagic=N32;;
6014   *-64|*"-64 ") libmagic=64-bit;;
6015   *) libmagic=never-match;;
6016   esac
6017   lt_cv_deplibs_check_method=pass_all
6018   ;;
6019
6020 # This must be Linux ELF.
6021 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6022   lt_cv_deplibs_check_method=pass_all
6023   ;;
6024
6025 netbsd* | netbsdelf*-gnu)
6026   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6027     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6028   else
6029     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6030   fi
6031   ;;
6032
6033 newos6*)
6034   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6035   lt_cv_file_magic_cmd=/usr/bin/file
6036   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6037   ;;
6038
6039 *nto* | *qnx*)
6040   lt_cv_deplibs_check_method=pass_all
6041   ;;
6042
6043 openbsd*)
6044   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6045     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6046   else
6047     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6048   fi
6049   ;;
6050
6051 osf3* | osf4* | osf5*)
6052   lt_cv_deplibs_check_method=pass_all
6053   ;;
6054
6055 rdos*)
6056   lt_cv_deplibs_check_method=pass_all
6057   ;;
6058
6059 solaris*)
6060   lt_cv_deplibs_check_method=pass_all
6061   ;;
6062
6063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6064   lt_cv_deplibs_check_method=pass_all
6065   ;;
6066
6067 sysv4 | sysv4.3*)
6068   case $host_vendor in
6069   motorola)
6070     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]'
6071     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6072     ;;
6073   ncr)
6074     lt_cv_deplibs_check_method=pass_all
6075     ;;
6076   sequent)
6077     lt_cv_file_magic_cmd='/bin/file'
6078     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6079     ;;
6080   sni)
6081     lt_cv_file_magic_cmd='/bin/file'
6082     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6083     lt_cv_file_magic_test_file=/lib/libc.so
6084     ;;
6085   siemens)
6086     lt_cv_deplibs_check_method=pass_all
6087     ;;
6088   pc)
6089     lt_cv_deplibs_check_method=pass_all
6090     ;;
6091   esac
6092   ;;
6093
6094 tpf*)
6095   lt_cv_deplibs_check_method=pass_all
6096   ;;
6097 esac
6098
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6101 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6102 file_magic_cmd=$lt_cv_file_magic_cmd
6103 deplibs_check_method=$lt_cv_deplibs_check_method
6104 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117 if test -n "$ac_tool_prefix"; then
6118   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6119 set dummy ${ac_tool_prefix}ar; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_AR+:} false; then :
6123   $as_echo_n "(cached) " >&6
6124 else
6125   if test -n "$AR"; then
6126   ac_cv_prog_AR="$AR" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131   IFS=$as_save_IFS
6132   test -z "$as_dir" && as_dir=.
6133     for ac_exec_ext in '' $ac_executable_extensions; do
6134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6135     ac_cv_prog_AR="${ac_tool_prefix}ar"
6136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137     break 2
6138   fi
6139 done
6140   done
6141 IFS=$as_save_IFS
6142
6143 fi
6144 fi
6145 AR=$ac_cv_prog_AR
6146 if test -n "$AR"; then
6147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6148 $as_echo "$AR" >&6; }
6149 else
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153
6154
6155 fi
6156 if test -z "$ac_cv_prog_AR"; then
6157   ac_ct_AR=$AR
6158   # Extract the first word of "ar", so it can be a program name with args.
6159 set dummy ar; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6163   $as_echo_n "(cached) " >&6
6164 else
6165   if test -n "$ac_ct_AR"; then
6166   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6170 do
6171   IFS=$as_save_IFS
6172   test -z "$as_dir" && as_dir=.
6173     for ac_exec_ext in '' $ac_executable_extensions; do
6174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175     ac_cv_prog_ac_ct_AR="ar"
6176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177     break 2
6178   fi
6179 done
6180   done
6181 IFS=$as_save_IFS
6182
6183 fi
6184 fi
6185 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6186 if test -n "$ac_ct_AR"; then
6187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6188 $as_echo "$ac_ct_AR" >&6; }
6189 else
6190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6192 fi
6193
6194   if test "x$ac_ct_AR" = x; then
6195     AR="false"
6196   else
6197     case $cross_compiling:$ac_tool_warned in
6198 yes:)
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6201 ac_tool_warned=yes ;;
6202 esac
6203     AR=$ac_ct_AR
6204   fi
6205 else
6206   AR="$ac_cv_prog_AR"
6207 fi
6208
6209 test -z "$AR" && AR=ar
6210 test -z "$AR_FLAGS" && AR_FLAGS=cru
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222 if test -n "$ac_tool_prefix"; then
6223   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6224 set dummy ${ac_tool_prefix}strip; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if ${ac_cv_prog_STRIP+:} false; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230   if test -n "$STRIP"; then
6231   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236   IFS=$as_save_IFS
6237   test -z "$as_dir" && as_dir=.
6238     for ac_exec_ext in '' $ac_executable_extensions; do
6239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6240     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242     break 2
6243   fi
6244 done
6245   done
6246 IFS=$as_save_IFS
6247
6248 fi
6249 fi
6250 STRIP=$ac_cv_prog_STRIP
6251 if test -n "$STRIP"; then
6252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6253 $as_echo "$STRIP" >&6; }
6254 else
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6257 fi
6258
6259
6260 fi
6261 if test -z "$ac_cv_prog_STRIP"; then
6262   ac_ct_STRIP=$STRIP
6263   # Extract the first word of "strip", so it can be a program name with args.
6264 set dummy strip; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6268   $as_echo_n "(cached) " >&6
6269 else
6270   if test -n "$ac_ct_STRIP"; then
6271   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278     for ac_exec_ext in '' $ac_executable_extensions; do
6279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280     ac_cv_prog_ac_ct_STRIP="strip"
6281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282     break 2
6283   fi
6284 done
6285   done
6286 IFS=$as_save_IFS
6287
6288 fi
6289 fi
6290 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6291 if test -n "$ac_ct_STRIP"; then
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6293 $as_echo "$ac_ct_STRIP" >&6; }
6294 else
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6297 fi
6298
6299   if test "x$ac_ct_STRIP" = x; then
6300     STRIP=":"
6301   else
6302     case $cross_compiling:$ac_tool_warned in
6303 yes:)
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6306 ac_tool_warned=yes ;;
6307 esac
6308     STRIP=$ac_ct_STRIP
6309   fi
6310 else
6311   STRIP="$ac_cv_prog_STRIP"
6312 fi
6313
6314 test -z "$STRIP" && STRIP=:
6315
6316
6317
6318
6319
6320
6321 if test -n "$ac_tool_prefix"; then
6322   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6323 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if ${ac_cv_prog_RANLIB+:} false; then :
6327   $as_echo_n "(cached) " >&6
6328 else
6329   if test -n "$RANLIB"; then
6330   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335   IFS=$as_save_IFS
6336   test -z "$as_dir" && as_dir=.
6337     for ac_exec_ext in '' $ac_executable_extensions; do
6338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341     break 2
6342   fi
6343 done
6344   done
6345 IFS=$as_save_IFS
6346
6347 fi
6348 fi
6349 RANLIB=$ac_cv_prog_RANLIB
6350 if test -n "$RANLIB"; then
6351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6352 $as_echo "$RANLIB" >&6; }
6353 else
6354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6356 fi
6357
6358
6359 fi
6360 if test -z "$ac_cv_prog_RANLIB"; then
6361   ac_ct_RANLIB=$RANLIB
6362   # Extract the first word of "ranlib", so it can be a program name with args.
6363 set dummy ranlib; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6367   $as_echo_n "(cached) " >&6
6368 else
6369   if test -n "$ac_ct_RANLIB"; then
6370   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6371 else
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377     for ac_exec_ext in '' $ac_executable_extensions; do
6378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379     ac_cv_prog_ac_ct_RANLIB="ranlib"
6380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384   done
6385 IFS=$as_save_IFS
6386
6387 fi
6388 fi
6389 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6390 if test -n "$ac_ct_RANLIB"; then
6391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6392 $as_echo "$ac_ct_RANLIB" >&6; }
6393 else
6394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6396 fi
6397
6398   if test "x$ac_ct_RANLIB" = x; then
6399     RANLIB=":"
6400   else
6401     case $cross_compiling:$ac_tool_warned in
6402 yes:)
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405 ac_tool_warned=yes ;;
6406 esac
6407     RANLIB=$ac_ct_RANLIB
6408   fi
6409 else
6410   RANLIB="$ac_cv_prog_RANLIB"
6411 fi
6412
6413 test -z "$RANLIB" && RANLIB=:
6414
6415
6416
6417
6418
6419
6420 # Determine commands to create old-style static archives.
6421 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6422 old_postinstall_cmds='chmod 644 $oldlib'
6423 old_postuninstall_cmds=
6424
6425 if test -n "$RANLIB"; then
6426   case $host_os in
6427   openbsd*)
6428     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6429     ;;
6430   *)
6431     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6432     ;;
6433   esac
6434   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6435 fi
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470 # If no C compiler was specified, use CC.
6471 LTCC=${LTCC-"$CC"}
6472
6473 # If no C compiler flags were specified, use CFLAGS.
6474 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6475
6476 # Allow CC to be a program name with arguments.
6477 compiler=$CC
6478
6479
6480 # Check for command to grab the raw symbol name followed by C symbol from nm.
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6482 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6483 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6484   $as_echo_n "(cached) " >&6
6485 else
6486
6487 # These are sane defaults that work on at least a few old systems.
6488 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6489
6490 # Character class describing NM global symbol codes.
6491 symcode='[BCDEGRST]'
6492
6493 # Regexp to match symbols that can be accessed directly from C.
6494 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6495
6496 # Define system-specific variables.
6497 case $host_os in
6498 aix*)
6499   symcode='[BCDT]'
6500   ;;
6501 cygwin* | mingw* | pw32* | cegcc*)
6502   symcode='[ABCDGISTW]'
6503   ;;
6504 hpux*)
6505   if test "$host_cpu" = ia64; then
6506     symcode='[ABCDEGRST]'
6507   fi
6508   ;;
6509 irix* | nonstopux*)
6510   symcode='[BCDEGRST]'
6511   ;;
6512 osf*)
6513   symcode='[BCDEGQRST]'
6514   ;;
6515 solaris*)
6516   symcode='[BDRT]'
6517   ;;
6518 sco3.2v5*)
6519   symcode='[DT]'
6520   ;;
6521 sysv4.2uw2*)
6522   symcode='[DT]'
6523   ;;
6524 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6525   symcode='[ABDT]'
6526   ;;
6527 sysv4)
6528   symcode='[DFNSTU]'
6529   ;;
6530 esac
6531
6532 # If we're using GNU nm, then use its standard symbol codes.
6533 case `$NM -V 2>&1` in
6534 *GNU* | *'with BFD'*)
6535   symcode='[ABCDGIRSTW]' ;;
6536 esac
6537
6538 # Transform an extracted symbol line into a proper C declaration.
6539 # Some systems (esp. on ia64) link data and code symbols differently,
6540 # so use this general approach.
6541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6542
6543 # Transform an extracted symbol line into symbol name and symbol address
6544 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6545 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'"
6546
6547 # Handle CRLF in mingw tool chain
6548 opt_cr=
6549 case $build_os in
6550 mingw*)
6551   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6552   ;;
6553 esac
6554
6555 # Try without a prefix underscore, then with it.
6556 for ac_symprfx in "" "_"; do
6557
6558   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6559   symxfrm="\\1 $ac_symprfx\\2 \\2"
6560
6561   # Write the raw and C identifiers.
6562   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6563     # Fake it for dumpbin and say T for any non-static function
6564     # and D for any global variable.
6565     # Also find C++ and __fastcall symbols from MSVC++,
6566     # which start with @ or ?.
6567     lt_cv_sys_global_symbol_pipe="$AWK '"\
6568 "     {last_section=section; section=\$ 3};"\
6569 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6570 "     \$ 0!~/External *\|/{next};"\
6571 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6572 "     {if(hide[section]) next};"\
6573 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6574 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6575 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6576 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6577 "     ' prfx=^$ac_symprfx"
6578   else
6579     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6580   fi
6581
6582   # Check to see that the pipe works correctly.
6583   pipe_works=no
6584
6585   rm -f conftest*
6586   cat > conftest.$ac_ext <<_LT_EOF
6587 #ifdef __cplusplus
6588 extern "C" {
6589 #endif
6590 char nm_test_var;
6591 void nm_test_func(void);
6592 void nm_test_func(void){}
6593 #ifdef __cplusplus
6594 }
6595 #endif
6596 int main(){nm_test_var='a';nm_test_func();return(0);}
6597 _LT_EOF
6598
6599   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6600   (eval $ac_compile) 2>&5
6601   ac_status=$?
6602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603   test $ac_status = 0; }; then
6604     # Now try to grab the symbols.
6605     nlist=conftest.nm
6606     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6607   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6608   ac_status=$?
6609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6610   test $ac_status = 0; } && test -s "$nlist"; then
6611       # Try sorting and uniquifying the output.
6612       if sort "$nlist" | uniq > "$nlist"T; then
6613         mv -f "$nlist"T "$nlist"
6614       else
6615         rm -f "$nlist"T
6616       fi
6617
6618       # Make sure that we snagged all the symbols we need.
6619       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6620         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6621           cat <<_LT_EOF > conftest.$ac_ext
6622 #ifdef __cplusplus
6623 extern "C" {
6624 #endif
6625
6626 _LT_EOF
6627           # Now generate the symbol file.
6628           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6629
6630           cat <<_LT_EOF >> conftest.$ac_ext
6631
6632 /* The mapping between symbol names and symbols.  */
6633 const struct {
6634   const char *name;
6635   void       *address;
6636 }
6637 lt__PROGRAM__LTX_preloaded_symbols[] =
6638 {
6639   { "@PROGRAM@", (void *) 0 },
6640 _LT_EOF
6641           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6642           cat <<\_LT_EOF >> conftest.$ac_ext
6643   {0, (void *) 0}
6644 };
6645
6646 /* This works around a problem in FreeBSD linker */
6647 #ifdef FREEBSD_WORKAROUND
6648 static const void *lt_preloaded_setup() {
6649   return lt__PROGRAM__LTX_preloaded_symbols;
6650 }
6651 #endif
6652
6653 #ifdef __cplusplus
6654 }
6655 #endif
6656 _LT_EOF
6657           # Now try linking the two files.
6658           mv conftest.$ac_objext conftstm.$ac_objext
6659           lt_save_LIBS="$LIBS"
6660           lt_save_CFLAGS="$CFLAGS"
6661           LIBS="conftstm.$ac_objext"
6662           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6663           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6664   (eval $ac_link) 2>&5
6665   ac_status=$?
6666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6668             pipe_works=yes
6669           fi
6670           LIBS="$lt_save_LIBS"
6671           CFLAGS="$lt_save_CFLAGS"
6672         else
6673           echo "cannot find nm_test_func in $nlist" >&5
6674         fi
6675       else
6676         echo "cannot find nm_test_var in $nlist" >&5
6677       fi
6678     else
6679       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6680     fi
6681   else
6682     echo "$progname: failed program was:" >&5
6683     cat conftest.$ac_ext >&5
6684   fi
6685   rm -rf conftest* conftst*
6686
6687   # Do not use the global_symbol_pipe unless it works.
6688   if test "$pipe_works" = yes; then
6689     break
6690   else
6691     lt_cv_sys_global_symbol_pipe=
6692   fi
6693 done
6694
6695 fi
6696
6697 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6698   lt_cv_sys_global_symbol_to_cdecl=
6699 fi
6700 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6702 $as_echo "failed" >&6; }
6703 else
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6705 $as_echo "ok" >&6; }
6706 fi
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730 # Check whether --enable-libtool-lock was given.
6731 if test "${enable_libtool_lock+set}" = set; then :
6732   enableval=$enable_libtool_lock;
6733 fi
6734
6735 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6736
6737 # Some flags need to be propagated to the compiler or linker for good
6738 # libtool support.
6739 case $host in
6740 ia64-*-hpux*)
6741   # Find out which ABI we are using.
6742   echo 'int i;' > conftest.$ac_ext
6743   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6744   (eval $ac_compile) 2>&5
6745   ac_status=$?
6746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747   test $ac_status = 0; }; then
6748     case `/usr/bin/file conftest.$ac_objext` in
6749       *ELF-32*)
6750         HPUX_IA64_MODE="32"
6751         ;;
6752       *ELF-64*)
6753         HPUX_IA64_MODE="64"
6754         ;;
6755     esac
6756   fi
6757   rm -rf conftest*
6758   ;;
6759 *-*-irix6*)
6760   # Find out which ABI we are using.
6761   echo '#line 6761 "configure"' > conftest.$ac_ext
6762   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6763   (eval $ac_compile) 2>&5
6764   ac_status=$?
6765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6766   test $ac_status = 0; }; then
6767     if test "$lt_cv_prog_gnu_ld" = yes; then
6768       case `/usr/bin/file conftest.$ac_objext` in
6769         *32-bit*)
6770           LD="${LD-ld} -melf32bsmip"
6771           ;;
6772         *N32*)
6773           LD="${LD-ld} -melf32bmipn32"
6774           ;;
6775         *64-bit*)
6776           LD="${LD-ld} -melf64bmip"
6777         ;;
6778       esac
6779     else
6780       case `/usr/bin/file conftest.$ac_objext` in
6781         *32-bit*)
6782           LD="${LD-ld} -32"
6783           ;;
6784         *N32*)
6785           LD="${LD-ld} -n32"
6786           ;;
6787         *64-bit*)
6788           LD="${LD-ld} -64"
6789           ;;
6790       esac
6791     fi
6792   fi
6793   rm -rf conftest*
6794   ;;
6795
6796 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6797 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6798   # Find out which ABI we are using.
6799   echo 'int i;' > conftest.$ac_ext
6800   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6801   (eval $ac_compile) 2>&5
6802   ac_status=$?
6803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804   test $ac_status = 0; }; then
6805     case `/usr/bin/file conftest.o` in
6806       *32-bit*)
6807         case $host in
6808           x86_64-*kfreebsd*-gnu)
6809             LD="${LD-ld} -m elf_i386_fbsd"
6810             ;;
6811           x86_64-*linux*)
6812             LD="${LD-ld} -m elf_i386"
6813             ;;
6814           ppc64-*linux*|powerpc64-*linux*)
6815             LD="${LD-ld} -m elf32ppclinux"
6816             ;;
6817           s390x-*linux*)
6818             LD="${LD-ld} -m elf_s390"
6819             ;;
6820           sparc64-*linux*)
6821             LD="${LD-ld} -m elf32_sparc"
6822             ;;
6823         esac
6824         ;;
6825       *64-bit*)
6826         case $host in
6827           x86_64-*kfreebsd*-gnu)
6828             LD="${LD-ld} -m elf_x86_64_fbsd"
6829             ;;
6830           x86_64-*linux*)
6831             LD="${LD-ld} -m elf_x86_64"
6832             ;;
6833           ppc*-*linux*|powerpc*-*linux*)
6834             LD="${LD-ld} -m elf64ppc"
6835             ;;
6836           s390*-*linux*|s390*-*tpf*)
6837             LD="${LD-ld} -m elf64_s390"
6838             ;;
6839           sparc*-*linux*)
6840             LD="${LD-ld} -m elf64_sparc"
6841             ;;
6842         esac
6843         ;;
6844     esac
6845   fi
6846   rm -rf conftest*
6847   ;;
6848
6849 *-*-sco3.2v5*)
6850   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6851   SAVE_CFLAGS="$CFLAGS"
6852   CFLAGS="$CFLAGS -belf"
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6854 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6855 if ${lt_cv_cc_needs_belf+:} false; then :
6856   $as_echo_n "(cached) " >&6
6857 else
6858   ac_ext=c
6859 ac_cpp='$CPP $CPPFLAGS'
6860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6863
6864      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h.  */
6866
6867 int
6868 main ()
6869 {
6870
6871   ;
6872   return 0;
6873 }
6874 _ACEOF
6875 if ac_fn_c_try_link "$LINENO"; then :
6876   lt_cv_cc_needs_belf=yes
6877 else
6878   lt_cv_cc_needs_belf=no
6879 fi
6880 rm -f core conftest.err conftest.$ac_objext \
6881     conftest$ac_exeext conftest.$ac_ext
6882      ac_ext=c
6883 ac_cpp='$CPP $CPPFLAGS'
6884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6887
6888 fi
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6890 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6891   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6892     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6893     CFLAGS="$SAVE_CFLAGS"
6894   fi
6895   ;;
6896 sparc*-*solaris*)
6897   # Find out which ABI we are using.
6898   echo 'int i;' > conftest.$ac_ext
6899   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6900   (eval $ac_compile) 2>&5
6901   ac_status=$?
6902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6903   test $ac_status = 0; }; then
6904     case `/usr/bin/file conftest.o` in
6905     *64-bit*)
6906       case $lt_cv_prog_gnu_ld in
6907       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6908       *)
6909         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6910           LD="${LD-ld} -64"
6911         fi
6912         ;;
6913       esac
6914       ;;
6915     esac
6916   fi
6917   rm -rf conftest*
6918   ;;
6919 esac
6920
6921 need_locks="$enable_libtool_lock"
6922
6923
6924   case $host_os in
6925     rhapsody* | darwin*)
6926     if test -n "$ac_tool_prefix"; then
6927   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6928 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6932   $as_echo_n "(cached) " >&6
6933 else
6934   if test -n "$DSYMUTIL"; then
6935   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6936 else
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6939 do
6940   IFS=$as_save_IFS
6941   test -z "$as_dir" && as_dir=.
6942     for ac_exec_ext in '' $ac_executable_extensions; do
6943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6944     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946     break 2
6947   fi
6948 done
6949   done
6950 IFS=$as_save_IFS
6951
6952 fi
6953 fi
6954 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6955 if test -n "$DSYMUTIL"; then
6956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6957 $as_echo "$DSYMUTIL" >&6; }
6958 else
6959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6961 fi
6962
6963
6964 fi
6965 if test -z "$ac_cv_prog_DSYMUTIL"; then
6966   ac_ct_DSYMUTIL=$DSYMUTIL
6967   # Extract the first word of "dsymutil", so it can be a program name with args.
6968 set dummy dsymutil; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6972   $as_echo_n "(cached) " >&6
6973 else
6974   if test -n "$ac_ct_DSYMUTIL"; then
6975   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980   IFS=$as_save_IFS
6981   test -z "$as_dir" && as_dir=.
6982     for ac_exec_ext in '' $ac_executable_extensions; do
6983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986     break 2
6987   fi
6988 done
6989   done
6990 IFS=$as_save_IFS
6991
6992 fi
6993 fi
6994 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6995 if test -n "$ac_ct_DSYMUTIL"; then
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6997 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6998 else
6999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002
7003   if test "x$ac_ct_DSYMUTIL" = x; then
7004     DSYMUTIL=":"
7005   else
7006     case $cross_compiling:$ac_tool_warned in
7007 yes:)
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7010 ac_tool_warned=yes ;;
7011 esac
7012     DSYMUTIL=$ac_ct_DSYMUTIL
7013   fi
7014 else
7015   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7016 fi
7017
7018     if test -n "$ac_tool_prefix"; then
7019   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7020 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_prog_NMEDIT+:} false; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026   if test -n "$NMEDIT"; then
7027   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034     for ac_exec_ext in '' $ac_executable_extensions; do
7035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041   done
7042 IFS=$as_save_IFS
7043
7044 fi
7045 fi
7046 NMEDIT=$ac_cv_prog_NMEDIT
7047 if test -n "$NMEDIT"; then
7048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7049 $as_echo "$NMEDIT" >&6; }
7050 else
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7053 fi
7054
7055
7056 fi
7057 if test -z "$ac_cv_prog_NMEDIT"; then
7058   ac_ct_NMEDIT=$NMEDIT
7059   # Extract the first word of "nmedit", so it can be a program name with args.
7060 set dummy nmedit; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7064   $as_echo_n "(cached) " >&6
7065 else
7066   if test -n "$ac_ct_NMEDIT"; then
7067   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072   IFS=$as_save_IFS
7073   test -z "$as_dir" && as_dir=.
7074     for ac_exec_ext in '' $ac_executable_extensions; do
7075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078     break 2
7079   fi
7080 done
7081   done
7082 IFS=$as_save_IFS
7083
7084 fi
7085 fi
7086 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7087 if test -n "$ac_ct_NMEDIT"; then
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7089 $as_echo "$ac_ct_NMEDIT" >&6; }
7090 else
7091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7093 fi
7094
7095   if test "x$ac_ct_NMEDIT" = x; then
7096     NMEDIT=":"
7097   else
7098     case $cross_compiling:$ac_tool_warned in
7099 yes:)
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7102 ac_tool_warned=yes ;;
7103 esac
7104     NMEDIT=$ac_ct_NMEDIT
7105   fi
7106 else
7107   NMEDIT="$ac_cv_prog_NMEDIT"
7108 fi
7109
7110     if test -n "$ac_tool_prefix"; then
7111   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7112 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_prog_LIPO+:} false; then :
7116   $as_echo_n "(cached) " >&6
7117 else
7118   if test -n "$LIPO"; then
7119   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7120 else
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7123 do
7124   IFS=$as_save_IFS
7125   test -z "$as_dir" && as_dir=.
7126     for ac_exec_ext in '' $ac_executable_extensions; do
7127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7128     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7130     break 2
7131   fi
7132 done
7133   done
7134 IFS=$as_save_IFS
7135
7136 fi
7137 fi
7138 LIPO=$ac_cv_prog_LIPO
7139 if test -n "$LIPO"; then
7140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7141 $as_echo "$LIPO" >&6; }
7142 else
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7145 fi
7146
7147
7148 fi
7149 if test -z "$ac_cv_prog_LIPO"; then
7150   ac_ct_LIPO=$LIPO
7151   # Extract the first word of "lipo", so it can be a program name with args.
7152 set dummy lipo; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7156   $as_echo_n "(cached) " >&6
7157 else
7158   if test -n "$ac_ct_LIPO"; then
7159   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164   IFS=$as_save_IFS
7165   test -z "$as_dir" && as_dir=.
7166     for ac_exec_ext in '' $ac_executable_extensions; do
7167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168     ac_cv_prog_ac_ct_LIPO="lipo"
7169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170     break 2
7171   fi
7172 done
7173   done
7174 IFS=$as_save_IFS
7175
7176 fi
7177 fi
7178 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7179 if test -n "$ac_ct_LIPO"; then
7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7181 $as_echo "$ac_ct_LIPO" >&6; }
7182 else
7183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7185 fi
7186
7187   if test "x$ac_ct_LIPO" = x; then
7188     LIPO=":"
7189   else
7190     case $cross_compiling:$ac_tool_warned in
7191 yes:)
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7194 ac_tool_warned=yes ;;
7195 esac
7196     LIPO=$ac_ct_LIPO
7197   fi
7198 else
7199   LIPO="$ac_cv_prog_LIPO"
7200 fi
7201
7202     if test -n "$ac_tool_prefix"; then
7203   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7204 set dummy ${ac_tool_prefix}otool; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if ${ac_cv_prog_OTOOL+:} false; then :
7208   $as_echo_n "(cached) " >&6
7209 else
7210   if test -n "$OTOOL"; then
7211   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216   IFS=$as_save_IFS
7217   test -z "$as_dir" && as_dir=.
7218     for ac_exec_ext in '' $ac_executable_extensions; do
7219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222     break 2
7223   fi
7224 done
7225   done
7226 IFS=$as_save_IFS
7227
7228 fi
7229 fi
7230 OTOOL=$ac_cv_prog_OTOOL
7231 if test -n "$OTOOL"; then
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7233 $as_echo "$OTOOL" >&6; }
7234 else
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7237 fi
7238
7239
7240 fi
7241 if test -z "$ac_cv_prog_OTOOL"; then
7242   ac_ct_OTOOL=$OTOOL
7243   # Extract the first word of "otool", so it can be a program name with args.
7244 set dummy otool; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7248   $as_echo_n "(cached) " >&6
7249 else
7250   if test -n "$ac_ct_OTOOL"; then
7251   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256   IFS=$as_save_IFS
7257   test -z "$as_dir" && as_dir=.
7258     for ac_exec_ext in '' $ac_executable_extensions; do
7259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260     ac_cv_prog_ac_ct_OTOOL="otool"
7261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265   done
7266 IFS=$as_save_IFS
7267
7268 fi
7269 fi
7270 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7271 if test -n "$ac_ct_OTOOL"; then
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7273 $as_echo "$ac_ct_OTOOL" >&6; }
7274 else
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7277 fi
7278
7279   if test "x$ac_ct_OTOOL" = x; then
7280     OTOOL=":"
7281   else
7282     case $cross_compiling:$ac_tool_warned in
7283 yes:)
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7286 ac_tool_warned=yes ;;
7287 esac
7288     OTOOL=$ac_ct_OTOOL
7289   fi
7290 else
7291   OTOOL="$ac_cv_prog_OTOOL"
7292 fi
7293
7294     if test -n "$ac_tool_prefix"; then
7295   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7296 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7298 $as_echo_n "checking for $ac_word... " >&6; }
7299 if ${ac_cv_prog_OTOOL64+:} false; then :
7300   $as_echo_n "(cached) " >&6
7301 else
7302   if test -n "$OTOOL64"; then
7303   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7304 else
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7307 do
7308   IFS=$as_save_IFS
7309   test -z "$as_dir" && as_dir=.
7310     for ac_exec_ext in '' $ac_executable_extensions; do
7311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7312     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314     break 2
7315   fi
7316 done
7317   done
7318 IFS=$as_save_IFS
7319
7320 fi
7321 fi
7322 OTOOL64=$ac_cv_prog_OTOOL64
7323 if test -n "$OTOOL64"; then
7324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7325 $as_echo "$OTOOL64" >&6; }
7326 else
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7329 fi
7330
7331
7332 fi
7333 if test -z "$ac_cv_prog_OTOOL64"; then
7334   ac_ct_OTOOL64=$OTOOL64
7335   # Extract the first word of "otool64", so it can be a program name with args.
7336 set dummy otool64; ac_word=$2
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338 $as_echo_n "checking for $ac_word... " >&6; }
7339 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7340   $as_echo_n "(cached) " >&6
7341 else
7342   if test -n "$ac_ct_OTOOL64"; then
7343   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348   IFS=$as_save_IFS
7349   test -z "$as_dir" && as_dir=.
7350     for ac_exec_ext in '' $ac_executable_extensions; do
7351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352     ac_cv_prog_ac_ct_OTOOL64="otool64"
7353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354     break 2
7355   fi
7356 done
7357   done
7358 IFS=$as_save_IFS
7359
7360 fi
7361 fi
7362 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7363 if test -n "$ac_ct_OTOOL64"; then
7364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7365 $as_echo "$ac_ct_OTOOL64" >&6; }
7366 else
7367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 $as_echo "no" >&6; }
7369 fi
7370
7371   if test "x$ac_ct_OTOOL64" = x; then
7372     OTOOL64=":"
7373   else
7374     case $cross_compiling:$ac_tool_warned in
7375 yes:)
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7378 ac_tool_warned=yes ;;
7379 esac
7380     OTOOL64=$ac_ct_OTOOL64
7381   fi
7382 else
7383   OTOOL64="$ac_cv_prog_OTOOL64"
7384 fi
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7413 $as_echo_n "checking for -single_module linker flag... " >&6; }
7414 if ${lt_cv_apple_cc_single_mod+:} false; then :
7415   $as_echo_n "(cached) " >&6
7416 else
7417   lt_cv_apple_cc_single_mod=no
7418       if test -z "${LT_MULTI_MODULE}"; then
7419         # By default we will add the -single_module flag. You can override
7420         # by either setting the environment variable LT_MULTI_MODULE
7421         # non-empty at configure time, or by adding -multi_module to the
7422         # link flags.
7423         rm -rf libconftest.dylib*
7424         echo "int foo(void){return 1;}" > conftest.c
7425         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7426 -dynamiclib -Wl,-single_module conftest.c" >&5
7427         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7428           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7429         _lt_result=$?
7430         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7431           lt_cv_apple_cc_single_mod=yes
7432         else
7433           cat conftest.err >&5
7434         fi
7435         rm -rf libconftest.dylib*
7436         rm -f conftest.*
7437       fi
7438 fi
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7440 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7442 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7443 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   lt_cv_ld_exported_symbols_list=no
7447       save_LDFLAGS=$LDFLAGS
7448       echo "_main" > conftest.sym
7449       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7450       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h.  */
7452
7453 int
7454 main ()
7455 {
7456
7457   ;
7458   return 0;
7459 }
7460 _ACEOF
7461 if ac_fn_c_try_link "$LINENO"; then :
7462   lt_cv_ld_exported_symbols_list=yes
7463 else
7464   lt_cv_ld_exported_symbols_list=no
7465 fi
7466 rm -f core conftest.err conftest.$ac_objext \
7467     conftest$ac_exeext conftest.$ac_ext
7468         LDFLAGS="$save_LDFLAGS"
7469
7470 fi
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7472 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7473     case $host_os in
7474     rhapsody* | darwin1.[012])
7475       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7476     darwin1.*)
7477       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7478     darwin*) # darwin 5.x on
7479       # if running on 10.5 or later, the deployment target defaults
7480       # to the OS version, if on x86, and 10.4, the deployment
7481       # target defaults to 10.4. Don't you love it?
7482       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7483         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7484           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7485         10.[012]*)
7486           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7487         10.*)
7488           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7489       esac
7490     ;;
7491   esac
7492     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7493       _lt_dar_single_mod='$single_module'
7494     fi
7495     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7496       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7497     else
7498       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7499     fi
7500     if test "$DSYMUTIL" != ":"; then
7501       _lt_dsymutil='~$DSYMUTIL $lib || :'
7502     else
7503       _lt_dsymutil=
7504     fi
7505     ;;
7506   esac
7507
7508
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7510 $as_echo_n "checking for ANSI C header files... " >&6; }
7511 if ${ac_cv_header_stdc+:} false; then :
7512   $as_echo_n "(cached) " >&6
7513 else
7514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h.  */
7516 #include <stdlib.h>
7517 #include <stdarg.h>
7518 #include <string.h>
7519 #include <float.h>
7520
7521 int
7522 main ()
7523 {
7524
7525   ;
7526   return 0;
7527 }
7528 _ACEOF
7529 if ac_fn_c_try_compile "$LINENO"; then :
7530   ac_cv_header_stdc=yes
7531 else
7532   ac_cv_header_stdc=no
7533 fi
7534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535
7536 if test $ac_cv_header_stdc = yes; then
7537   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h.  */
7540 #include <string.h>
7541
7542 _ACEOF
7543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7544   $EGREP "memchr" >/dev/null 2>&1; then :
7545
7546 else
7547   ac_cv_header_stdc=no
7548 fi
7549 rm -f conftest*
7550
7551 fi
7552
7553 if test $ac_cv_header_stdc = yes; then
7554   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h.  */
7557 #include <stdlib.h>
7558
7559 _ACEOF
7560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7561   $EGREP "free" >/dev/null 2>&1; then :
7562
7563 else
7564   ac_cv_header_stdc=no
7565 fi
7566 rm -f conftest*
7567
7568 fi
7569
7570 if test $ac_cv_header_stdc = yes; then
7571   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7572   if test "$cross_compiling" = yes; then :
7573   :
7574 else
7575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h.  */
7577 #include <ctype.h>
7578 #include <stdlib.h>
7579 #if ((' ' & 0x0FF) == 0x020)
7580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7582 #else
7583 # define ISLOWER(c) \
7584                    (('a' <= (c) && (c) <= 'i') \
7585                      || ('j' <= (c) && (c) <= 'r') \
7586                      || ('s' <= (c) && (c) <= 'z'))
7587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7588 #endif
7589
7590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7591 int
7592 main ()
7593 {
7594   int i;
7595   for (i = 0; i < 256; i++)
7596     if (XOR (islower (i), ISLOWER (i))
7597         || toupper (i) != TOUPPER (i))
7598       return 2;
7599   return 0;
7600 }
7601 _ACEOF
7602 if ac_fn_c_try_run "$LINENO"; then :
7603
7604 else
7605   ac_cv_header_stdc=no
7606 fi
7607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7608   conftest.$ac_objext conftest.beam conftest.$ac_ext
7609 fi
7610
7611 fi
7612 fi
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7614 $as_echo "$ac_cv_header_stdc" >&6; }
7615 if test $ac_cv_header_stdc = yes; then
7616
7617 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7618
7619 fi
7620
7621 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7623                   inttypes.h stdint.h unistd.h
7624 do :
7625   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7626 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7627 "
7628 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7629   cat >>confdefs.h <<_ACEOF
7630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7631 _ACEOF
7632
7633 fi
7634
7635 done
7636
7637
7638 for ac_header in dlfcn.h
7639 do :
7640   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7641 "
7642 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7643   cat >>confdefs.h <<_ACEOF
7644 #define HAVE_DLFCN_H 1
7645 _ACEOF
7646
7647 fi
7648
7649 done
7650
7651
7652
7653 ac_ext=cpp
7654 ac_cpp='$CXXCPP $CPPFLAGS'
7655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7658 if test -z "$CXX"; then
7659   if test -n "$CCC"; then
7660     CXX=$CCC
7661   else
7662     if test -n "$ac_tool_prefix"; then
7663   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7664   do
7665     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 $as_echo_n "checking for $ac_word... " >&6; }
7669 if ${ac_cv_prog_CXX+:} false; then :
7670   $as_echo_n "(cached) " >&6
7671 else
7672   if test -n "$CXX"; then
7673   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7674 else
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678   IFS=$as_save_IFS
7679   test -z "$as_dir" && as_dir=.
7680     for ac_exec_ext in '' $ac_executable_extensions; do
7681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7682     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684     break 2
7685   fi
7686 done
7687   done
7688 IFS=$as_save_IFS
7689
7690 fi
7691 fi
7692 CXX=$ac_cv_prog_CXX
7693 if test -n "$CXX"; then
7694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7695 $as_echo "$CXX" >&6; }
7696 else
7697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7699 fi
7700
7701
7702     test -n "$CXX" && break
7703   done
7704 fi
7705 if test -z "$CXX"; then
7706   ac_ct_CXX=$CXX
7707   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7708 do
7709   # Extract the first word of "$ac_prog", so it can be a program name with args.
7710 set dummy $ac_prog; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7714   $as_echo_n "(cached) " >&6
7715 else
7716   if test -n "$ac_ct_CXX"; then
7717   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722   IFS=$as_save_IFS
7723   test -z "$as_dir" && as_dir=.
7724     for ac_exec_ext in '' $ac_executable_extensions; do
7725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7726     ac_cv_prog_ac_ct_CXX="$ac_prog"
7727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728     break 2
7729   fi
7730 done
7731   done
7732 IFS=$as_save_IFS
7733
7734 fi
7735 fi
7736 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7737 if test -n "$ac_ct_CXX"; then
7738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7739 $as_echo "$ac_ct_CXX" >&6; }
7740 else
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744
7745
7746   test -n "$ac_ct_CXX" && break
7747 done
7748
7749   if test "x$ac_ct_CXX" = x; then
7750     CXX="g++"
7751   else
7752     case $cross_compiling:$ac_tool_warned in
7753 yes:)
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7756 ac_tool_warned=yes ;;
7757 esac
7758     CXX=$ac_ct_CXX
7759   fi
7760 fi
7761
7762   fi
7763 fi
7764 # Provide some information about the compiler.
7765 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7766 set X $ac_compile
7767 ac_compiler=$2
7768 for ac_option in --version -v -V -qversion; do
7769   { { ac_try="$ac_compiler $ac_option >&5"
7770 case "(($ac_try" in
7771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772   *) ac_try_echo=$ac_try;;
7773 esac
7774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7775 $as_echo "$ac_try_echo"; } >&5
7776   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7777   ac_status=$?
7778   if test -s conftest.err; then
7779     sed '10a\
7780 ... rest of stderr output deleted ...
7781          10q' conftest.err >conftest.er1
7782     cat conftest.er1 >&5
7783   fi
7784   rm -f conftest.er1 conftest.err
7785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786   test $ac_status = 0; }
7787 done
7788
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7790 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7791 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7792   $as_echo_n "(cached) " >&6
7793 else
7794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h.  */
7796
7797 int
7798 main ()
7799 {
7800 #ifndef __GNUC__
7801        choke me
7802 #endif
7803
7804   ;
7805   return 0;
7806 }
7807 _ACEOF
7808 if ac_fn_cxx_try_compile "$LINENO"; then :
7809   ac_compiler_gnu=yes
7810 else
7811   ac_compiler_gnu=no
7812 fi
7813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7814 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7815
7816 fi
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7818 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7819 if test $ac_compiler_gnu = yes; then
7820   GXX=yes
7821 else
7822   GXX=
7823 fi
7824 ac_test_CXXFLAGS=${CXXFLAGS+set}
7825 ac_save_CXXFLAGS=$CXXFLAGS
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7827 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7828 if ${ac_cv_prog_cxx_g+:} false; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7832    ac_cxx_werror_flag=yes
7833    ac_cv_prog_cxx_g=no
7834    CXXFLAGS="-g"
7835    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h.  */
7837
7838 int
7839 main ()
7840 {
7841
7842   ;
7843   return 0;
7844 }
7845 _ACEOF
7846 if ac_fn_cxx_try_compile "$LINENO"; then :
7847   ac_cv_prog_cxx_g=yes
7848 else
7849   CXXFLAGS=""
7850       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h.  */
7852
7853 int
7854 main ()
7855 {
7856
7857   ;
7858   return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_cxx_try_compile "$LINENO"; then :
7862
7863 else
7864   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7865          CXXFLAGS="-g"
7866          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h.  */
7868
7869 int
7870 main ()
7871 {
7872
7873   ;
7874   return 0;
7875 }
7876 _ACEOF
7877 if ac_fn_cxx_try_compile "$LINENO"; then :
7878   ac_cv_prog_cxx_g=yes
7879 fi
7880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881 fi
7882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7883 fi
7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7886 fi
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7888 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7889 if test "$ac_test_CXXFLAGS" = set; then
7890   CXXFLAGS=$ac_save_CXXFLAGS
7891 elif test $ac_cv_prog_cxx_g = yes; then
7892   if test "$GXX" = yes; then
7893     CXXFLAGS="-g -O2"
7894   else
7895     CXXFLAGS="-g"
7896   fi
7897 else
7898   if test "$GXX" = yes; then
7899     CXXFLAGS="-O2"
7900   else
7901     CXXFLAGS=
7902   fi
7903 fi
7904 ac_ext=cpp
7905 ac_cpp='$CXXCPP $CPPFLAGS'
7906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7909
7910 depcc="$CXX"  am_compiler_list=
7911
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7913 $as_echo_n "checking dependency style of $depcc... " >&6; }
7914 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7915   $as_echo_n "(cached) " >&6
7916 else
7917   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7918   # We make a subdir and do the tests there.  Otherwise we can end up
7919   # making bogus files that we don't know about and never remove.  For
7920   # instance it was reported that on HP-UX the gcc test will end up
7921   # making a dummy file named `D' -- because `-MD' means `put the output
7922   # in D'.
7923   mkdir conftest.dir
7924   # Copy depcomp to subdir because otherwise we won't find it if we're
7925   # using a relative directory.
7926   cp "$am_depcomp" conftest.dir
7927   cd conftest.dir
7928   # We will build objects and dependencies in a subdirectory because
7929   # it helps to detect inapplicable dependency modes.  For instance
7930   # both Tru64's cc and ICC support -MD to output dependencies as a
7931   # side effect of compilation, but ICC will put the dependencies in
7932   # the current directory while Tru64 will put them in the object
7933   # directory.
7934   mkdir sub
7935
7936   am_cv_CXX_dependencies_compiler_type=none
7937   if test "$am_compiler_list" = ""; then
7938      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7939   fi
7940   am__universal=false
7941   case " $depcc " in #(
7942      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7943      esac
7944
7945   for depmode in $am_compiler_list; do
7946     # Setup a source with many dependencies, because some compilers
7947     # like to wrap large dependency lists on column 80 (with \), and
7948     # we should not choose a depcomp mode which is confused by this.
7949     #
7950     # We need to recreate these files for each test, as the compiler may
7951     # overwrite some of them when testing with obscure command lines.
7952     # This happens at least with the AIX C compiler.
7953     : > sub/conftest.c
7954     for i in 1 2 3 4 5 6; do
7955       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7956       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7957       # Solaris 8's {/usr,}/bin/sh.
7958       touch sub/conftst$i.h
7959     done
7960     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7961
7962     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7963     # mode.  It turns out that the SunPro C++ compiler does not properly
7964     # handle `-M -o', and we need to detect this.  Also, some Intel
7965     # versions had trouble with output in subdirs
7966     am__obj=sub/conftest.${OBJEXT-o}
7967     am__minus_obj="-o $am__obj"
7968     case $depmode in
7969     gcc)
7970       # This depmode causes a compiler race in universal mode.
7971       test "$am__universal" = false || continue
7972       ;;
7973     nosideeffect)
7974       # after this tag, mechanisms are not by side-effect, so they'll
7975       # only be used when explicitly requested
7976       if test "x$enable_dependency_tracking" = xyes; then
7977         continue
7978       else
7979         break
7980       fi
7981       ;;
7982     msvisualcpp | msvcmsys)
7983       # This compiler won't grok `-c -o', but also, the minuso test has
7984       # not run yet.  These depmodes are late enough in the game, and
7985       # so weak that their functioning should not be impacted.
7986       am__obj=conftest.${OBJEXT-o}
7987       am__minus_obj=
7988       ;;
7989     none) break ;;
7990     esac
7991     if depmode=$depmode \
7992        source=sub/conftest.c object=$am__obj \
7993        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7994        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7995          >/dev/null 2>conftest.err &&
7996        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7997        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7998        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7999        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8000       # icc doesn't choke on unknown options, it will just issue warnings
8001       # or remarks (even with -Werror).  So we grep stderr for any message
8002       # that says an option was ignored or not supported.
8003       # When given -MP, icc 7.0 and 7.1 complain thusly:
8004       #   icc: Command line warning: ignoring option '-M'; no argument required
8005       # The diagnosis changed in icc 8.0:
8006       #   icc: Command line remark: option '-MP' not supported
8007       if (grep 'ignoring option' conftest.err ||
8008           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8009         am_cv_CXX_dependencies_compiler_type=$depmode
8010         break
8011       fi
8012     fi
8013   done
8014
8015   cd ..
8016   rm -rf conftest.dir
8017 else
8018   am_cv_CXX_dependencies_compiler_type=none
8019 fi
8020
8021 fi
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8023 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8024 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8025
8026  if
8027   test "x$enable_dependency_tracking" != xno \
8028   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8029   am__fastdepCXX_TRUE=
8030   am__fastdepCXX_FALSE='#'
8031 else
8032   am__fastdepCXX_TRUE='#'
8033   am__fastdepCXX_FALSE=
8034 fi
8035
8036
8037 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8038     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8039     (test "X$CXX" != "Xg++"))) ; then
8040   ac_ext=cpp
8041 ac_cpp='$CXXCPP $CPPFLAGS'
8042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8046 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8047 if test -z "$CXXCPP"; then
8048   if ${ac_cv_prog_CXXCPP+:} false; then :
8049   $as_echo_n "(cached) " >&6
8050 else
8051       # Double quotes because CXXCPP needs to be expanded
8052     for CXXCPP in "$CXX -E" "/lib/cpp"
8053     do
8054       ac_preproc_ok=false
8055 for ac_cxx_preproc_warn_flag in '' yes
8056 do
8057   # Use a header file that comes with gcc, so configuring glibc
8058   # with a fresh cross-compiler works.
8059   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8060   # <limits.h> exists even on freestanding compilers.
8061   # On the NeXT, cc -E runs the code through the compiler's parser,
8062   # not just through cpp. "Syntax error" is here to catch this case.
8063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h.  */
8065 #ifdef __STDC__
8066 # include <limits.h>
8067 #else
8068 # include <assert.h>
8069 #endif
8070                      Syntax error
8071 _ACEOF
8072 if ac_fn_cxx_try_cpp "$LINENO"; then :
8073
8074 else
8075   # Broken: fails on valid input.
8076 continue
8077 fi
8078 rm -f conftest.err conftest.i conftest.$ac_ext
8079
8080   # OK, works on sane cases.  Now check whether nonexistent headers
8081   # can be detected and how.
8082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h.  */
8084 #include <ac_nonexistent.h>
8085 _ACEOF
8086 if ac_fn_cxx_try_cpp "$LINENO"; then :
8087   # Broken: success on invalid input.
8088 continue
8089 else
8090   # Passes both tests.
8091 ac_preproc_ok=:
8092 break
8093 fi
8094 rm -f conftest.err conftest.i conftest.$ac_ext
8095
8096 done
8097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8098 rm -f conftest.i conftest.err conftest.$ac_ext
8099 if $ac_preproc_ok; then :
8100   break
8101 fi
8102
8103     done
8104     ac_cv_prog_CXXCPP=$CXXCPP
8105
8106 fi
8107   CXXCPP=$ac_cv_prog_CXXCPP
8108 else
8109   ac_cv_prog_CXXCPP=$CXXCPP
8110 fi
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8112 $as_echo "$CXXCPP" >&6; }
8113 ac_preproc_ok=false
8114 for ac_cxx_preproc_warn_flag in '' yes
8115 do
8116   # Use a header file that comes with gcc, so configuring glibc
8117   # with a fresh cross-compiler works.
8118   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8119   # <limits.h> exists even on freestanding compilers.
8120   # On the NeXT, cc -E runs the code through the compiler's parser,
8121   # not just through cpp. "Syntax error" is here to catch this case.
8122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h.  */
8124 #ifdef __STDC__
8125 # include <limits.h>
8126 #else
8127 # include <assert.h>
8128 #endif
8129                      Syntax error
8130 _ACEOF
8131 if ac_fn_cxx_try_cpp "$LINENO"; then :
8132
8133 else
8134   # Broken: fails on valid input.
8135 continue
8136 fi
8137 rm -f conftest.err conftest.i conftest.$ac_ext
8138
8139   # OK, works on sane cases.  Now check whether nonexistent headers
8140   # can be detected and how.
8141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h.  */
8143 #include <ac_nonexistent.h>
8144 _ACEOF
8145 if ac_fn_cxx_try_cpp "$LINENO"; then :
8146   # Broken: success on invalid input.
8147 continue
8148 else
8149   # Passes both tests.
8150 ac_preproc_ok=:
8151 break
8152 fi
8153 rm -f conftest.err conftest.i conftest.$ac_ext
8154
8155 done
8156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8157 rm -f conftest.i conftest.err conftest.$ac_ext
8158 if $ac_preproc_ok; then :
8159
8160 else
8161   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8163 _lt_caught_CXX_error=yes; }
8164 fi
8165
8166 ac_ext=cpp
8167 ac_cpp='$CXXCPP $CPPFLAGS'
8168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8171
8172 else
8173   _lt_caught_CXX_error=yes
8174 fi
8175
8176
8177
8178
8179
8180 # Set options
8181
8182
8183
8184         enable_dlopen=no
8185
8186
8187   enable_win32_dll=no
8188
8189
8190             # Check whether --enable-shared was given.
8191 if test "${enable_shared+set}" = set; then :
8192   enableval=$enable_shared; p=${PACKAGE-default}
8193     case $enableval in
8194     yes) enable_shared=yes ;;
8195     no) enable_shared=no ;;
8196     *)
8197       enable_shared=no
8198       # Look at the argument we got.  We use all the common list separators.
8199       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8200       for pkg in $enableval; do
8201         IFS="$lt_save_ifs"
8202         if test "X$pkg" = "X$p"; then
8203           enable_shared=yes
8204         fi
8205       done
8206       IFS="$lt_save_ifs"
8207       ;;
8208     esac
8209 else
8210   enable_shared=yes
8211 fi
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221   # Check whether --enable-static was given.
8222 if test "${enable_static+set}" = set; then :
8223   enableval=$enable_static; p=${PACKAGE-default}
8224     case $enableval in
8225     yes) enable_static=yes ;;
8226     no) enable_static=no ;;
8227     *)
8228      enable_static=no
8229       # Look at the argument we got.  We use all the common list separators.
8230       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8231       for pkg in $enableval; do
8232         IFS="$lt_save_ifs"
8233         if test "X$pkg" = "X$p"; then
8234           enable_static=yes
8235         fi
8236       done
8237       IFS="$lt_save_ifs"
8238       ;;
8239     esac
8240 else
8241   enable_static=yes
8242 fi
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253 # Check whether --with-pic was given.
8254 if test "${with_pic+set}" = set; then :
8255   withval=$with_pic; pic_mode="$withval"
8256 else
8257   pic_mode=default
8258 fi
8259
8260
8261 test -z "$pic_mode" && pic_mode=default
8262
8263
8264
8265
8266
8267
8268
8269   # Check whether --enable-fast-install was given.
8270 if test "${enable_fast_install+set}" = set; then :
8271   enableval=$enable_fast_install; p=${PACKAGE-default}
8272     case $enableval in
8273     yes) enable_fast_install=yes ;;
8274     no) enable_fast_install=no ;;
8275     *)
8276       enable_fast_install=no
8277       # Look at the argument we got.  We use all the common list separators.
8278       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8279       for pkg in $enableval; do
8280         IFS="$lt_save_ifs"
8281         if test "X$pkg" = "X$p"; then
8282           enable_fast_install=yes
8283         fi
8284       done
8285       IFS="$lt_save_ifs"
8286       ;;
8287     esac
8288 else
8289   enable_fast_install=yes
8290 fi
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302 # This can be used to rebuild libtool when needed
8303 LIBTOOL_DEPS="$ltmain"
8304
8305 # Always use our own libtool.
8306 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332 test -z "$LN_S" && LN_S="ln -s"
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347 if test -n "${ZSH_VERSION+set}" ; then
8348    setopt NO_GLOB_SUBST
8349 fi
8350
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8352 $as_echo_n "checking for objdir... " >&6; }
8353 if ${lt_cv_objdir+:} false; then :
8354   $as_echo_n "(cached) " >&6
8355 else
8356   rm -f .libs 2>/dev/null
8357 mkdir .libs 2>/dev/null
8358 if test -d .libs; then
8359   lt_cv_objdir=.libs
8360 else
8361   # MS-DOS does not allow filenames that begin with a dot.
8362   lt_cv_objdir=_libs
8363 fi
8364 rmdir .libs 2>/dev/null
8365 fi
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8367 $as_echo "$lt_cv_objdir" >&6; }
8368 objdir=$lt_cv_objdir
8369
8370
8371
8372
8373
8374 cat >>confdefs.h <<_ACEOF
8375 #define LT_OBJDIR "$lt_cv_objdir/"
8376 _ACEOF
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394 case $host_os in
8395 aix3*)
8396   # AIX sometimes has problems with the GCC collect2 program.  For some
8397   # reason, if we set the COLLECT_NAMES environment variable, the problems
8398   # vanish in a puff of smoke.
8399   if test "X${COLLECT_NAMES+set}" != Xset; then
8400     COLLECT_NAMES=
8401     export COLLECT_NAMES
8402   fi
8403   ;;
8404 esac
8405
8406 # Sed substitution that helps us do robust quoting.  It backslashifies
8407 # metacharacters that are still active within double-quoted strings.
8408 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8409
8410 # Same as above, but do not quote variable references.
8411 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8412
8413 # Sed substitution to delay expansion of an escaped shell variable in a
8414 # double_quote_subst'ed string.
8415 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8416
8417 # Sed substitution to delay expansion of an escaped single quote.
8418 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8419
8420 # Sed substitution to avoid accidental globbing in evaled expressions
8421 no_glob_subst='s/\*/\\\*/g'
8422
8423 # Global variables:
8424 ofile=libtool
8425 can_build_shared=yes
8426
8427 # All known linkers require a `.a' archive for static linking (except MSVC,
8428 # which needs '.lib').
8429 libext=a
8430
8431 with_gnu_ld="$lt_cv_prog_gnu_ld"
8432
8433 old_CC="$CC"
8434 old_CFLAGS="$CFLAGS"
8435
8436 # Set sane defaults for various variables
8437 test -z "$CC" && CC=cc
8438 test -z "$LTCC" && LTCC=$CC
8439 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8440 test -z "$LD" && LD=ld
8441 test -z "$ac_objext" && ac_objext=o
8442
8443 for cc_temp in $compiler""; do
8444   case $cc_temp in
8445     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8446     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8447     \-*) ;;
8448     *) break;;
8449   esac
8450 done
8451 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8452
8453
8454 # Only perform the check for file, if the check method requires it
8455 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8456 case $deplibs_check_method in
8457 file_magic*)
8458   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8460 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8461 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8462   $as_echo_n "(cached) " >&6
8463 else
8464   case $MAGIC_CMD in
8465 [\\/*] |  ?:[\\/]*)
8466   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8467   ;;
8468 *)
8469   lt_save_MAGIC_CMD="$MAGIC_CMD"
8470   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8471   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8472   for ac_dir in $ac_dummy; do
8473     IFS="$lt_save_ifs"
8474     test -z "$ac_dir" && ac_dir=.
8475     if test -f $ac_dir/${ac_tool_prefix}file; then
8476       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8477       if test -n "$file_magic_test_file"; then
8478         case $deplibs_check_method in
8479         "file_magic "*)
8480           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8481           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8482           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8483             $EGREP "$file_magic_regex" > /dev/null; then
8484             :
8485           else
8486             cat <<_LT_EOF 1>&2
8487
8488 *** Warning: the command libtool uses to detect shared libraries,
8489 *** $file_magic_cmd, produces output that libtool cannot recognize.
8490 *** The result is that libtool may fail to recognize shared libraries
8491 *** as such.  This will affect the creation of libtool libraries that
8492 *** depend on shared libraries, but programs linked with such libtool
8493 *** libraries will work regardless of this problem.  Nevertheless, you
8494 *** may want to report the problem to your system manager and/or to
8495 *** bug-libtool@gnu.org
8496
8497 _LT_EOF
8498           fi ;;
8499         esac
8500       fi
8501       break
8502     fi
8503   done
8504   IFS="$lt_save_ifs"
8505   MAGIC_CMD="$lt_save_MAGIC_CMD"
8506   ;;
8507 esac
8508 fi
8509
8510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8511 if test -n "$MAGIC_CMD"; then
8512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8513 $as_echo "$MAGIC_CMD" >&6; }
8514 else
8515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8517 fi
8518
8519
8520
8521
8522
8523 if test -z "$lt_cv_path_MAGIC_CMD"; then
8524   if test -n "$ac_tool_prefix"; then
8525     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8526 $as_echo_n "checking for file... " >&6; }
8527 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8528   $as_echo_n "(cached) " >&6
8529 else
8530   case $MAGIC_CMD in
8531 [\\/*] |  ?:[\\/]*)
8532   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8533   ;;
8534 *)
8535   lt_save_MAGIC_CMD="$MAGIC_CMD"
8536   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8537   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8538   for ac_dir in $ac_dummy; do
8539     IFS="$lt_save_ifs"
8540     test -z "$ac_dir" && ac_dir=.
8541     if test -f $ac_dir/file; then
8542       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8543       if test -n "$file_magic_test_file"; then
8544         case $deplibs_check_method in
8545         "file_magic "*)
8546           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8547           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8548           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8549             $EGREP "$file_magic_regex" > /dev/null; then
8550             :
8551           else
8552             cat <<_LT_EOF 1>&2
8553
8554 *** Warning: the command libtool uses to detect shared libraries,
8555 *** $file_magic_cmd, produces output that libtool cannot recognize.
8556 *** The result is that libtool may fail to recognize shared libraries
8557 *** as such.  This will affect the creation of libtool libraries that
8558 *** depend on shared libraries, but programs linked with such libtool
8559 *** libraries will work regardless of this problem.  Nevertheless, you
8560 *** may want to report the problem to your system manager and/or to
8561 *** bug-libtool@gnu.org
8562
8563 _LT_EOF
8564           fi ;;
8565         esac
8566       fi
8567       break
8568     fi
8569   done
8570   IFS="$lt_save_ifs"
8571   MAGIC_CMD="$lt_save_MAGIC_CMD"
8572   ;;
8573 esac
8574 fi
8575
8576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8577 if test -n "$MAGIC_CMD"; then
8578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8579 $as_echo "$MAGIC_CMD" >&6; }
8580 else
8581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8583 fi
8584
8585
8586   else
8587     MAGIC_CMD=:
8588   fi
8589 fi
8590
8591   fi
8592   ;;
8593 esac
8594
8595 # Use C for the default configuration in the libtool script
8596
8597 lt_save_CC="$CC"
8598 ac_ext=c
8599 ac_cpp='$CPP $CPPFLAGS'
8600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8603
8604
8605 # Source file extension for C test sources.
8606 ac_ext=c
8607
8608 # Object file extension for compiled C test sources.
8609 objext=o
8610 objext=$objext
8611
8612 # Code to be used in simple compile tests
8613 lt_simple_compile_test_code="int some_variable = 0;"
8614
8615 # Code to be used in simple link tests
8616 lt_simple_link_test_code='int main(){return(0);}'
8617
8618
8619
8620
8621
8622
8623
8624 # If no C compiler was specified, use CC.
8625 LTCC=${LTCC-"$CC"}
8626
8627 # If no C compiler flags were specified, use CFLAGS.
8628 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8629
8630 # Allow CC to be a program name with arguments.
8631 compiler=$CC
8632
8633 # Save the default compiler, since it gets overwritten when the other
8634 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8635 compiler_DEFAULT=$CC
8636
8637 # save warnings/boilerplate of simple test code
8638 ac_outfile=conftest.$ac_objext
8639 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8640 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8641 _lt_compiler_boilerplate=`cat conftest.err`
8642 $RM conftest*
8643
8644 ac_outfile=conftest.$ac_objext
8645 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8646 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8647 _lt_linker_boilerplate=`cat conftest.err`
8648 $RM -r conftest*
8649
8650
8651 ## CAVEAT EMPTOR:
8652 ## There is no encapsulation within the following macros, do not change
8653 ## the running order or otherwise move them around unless you know exactly
8654 ## what you are doing...
8655 if test -n "$compiler"; then
8656
8657 lt_prog_compiler_no_builtin_flag=
8658
8659 if test "$GCC" = yes; then
8660   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8661
8662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8663 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8664 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8665   $as_echo_n "(cached) " >&6
8666 else
8667   lt_cv_prog_compiler_rtti_exceptions=no
8668    ac_outfile=conftest.$ac_objext
8669    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8670    lt_compiler_flag="-fno-rtti -fno-exceptions"
8671    # Insert the option either (1) after the last *FLAGS variable, or
8672    # (2) before a word containing "conftest.", or (3) at the end.
8673    # Note that $ac_compile itself does not contain backslashes and begins
8674    # with a dollar sign (not a hyphen), so the echo should work correctly.
8675    # The option is referenced via a variable to avoid confusing sed.
8676    lt_compile=`echo "$ac_compile" | $SED \
8677    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8678    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8679    -e 's:$: $lt_compiler_flag:'`
8680    (eval echo "\"\$as_me:8680: $lt_compile\"" >&5)
8681    (eval "$lt_compile" 2>conftest.err)
8682    ac_status=$?
8683    cat conftest.err >&5
8684    echo "$as_me:8684: \$? = $ac_status" >&5
8685    if (exit $ac_status) && test -s "$ac_outfile"; then
8686      # The compiler can only warn and ignore the option if not recognized
8687      # So say no if there are warnings other than the usual output.
8688      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8689      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8690      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8691        lt_cv_prog_compiler_rtti_exceptions=yes
8692      fi
8693    fi
8694    $RM conftest*
8695
8696 fi
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8698 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8699
8700 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8701     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8702 else
8703     :
8704 fi
8705
8706 fi
8707
8708
8709
8710
8711
8712
8713   lt_prog_compiler_wl=
8714 lt_prog_compiler_pic=
8715 lt_prog_compiler_static=
8716
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8718 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8719
8720   if test "$GCC" = yes; then
8721     lt_prog_compiler_wl='-Wl,'
8722     lt_prog_compiler_static='-static'
8723
8724     case $host_os in
8725       aix*)
8726       # All AIX code is PIC.
8727       if test "$host_cpu" = ia64; then
8728         # AIX 5 now supports IA64 processor
8729         lt_prog_compiler_static='-Bstatic'
8730       fi
8731       ;;
8732
8733     amigaos*)
8734       case $host_cpu in
8735       powerpc)
8736             # see comment about AmigaOS4 .so support
8737             lt_prog_compiler_pic='-fPIC'
8738         ;;
8739       m68k)
8740             # FIXME: we need at least 68020 code to build shared libraries, but
8741             # adding the `-m68020' flag to GCC prevents building anything better,
8742             # like `-m68040'.
8743             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8744         ;;
8745       esac
8746       ;;
8747
8748     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8749       # PIC is the default for these OSes.
8750       ;;
8751
8752     mingw* | cygwin* | pw32* | os2* | cegcc*)
8753       # This hack is so that the source file can tell whether it is being
8754       # built for inclusion in a dll (and should export symbols for example).
8755       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8756       # (--disable-auto-import) libraries
8757       lt_prog_compiler_pic='-DDLL_EXPORT'
8758       ;;
8759
8760     darwin* | rhapsody*)
8761       # PIC is the default on this platform
8762       # Common symbols not allowed in MH_DYLIB files
8763       lt_prog_compiler_pic='-fno-common'
8764       ;;
8765
8766     hpux*)
8767       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8768       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8769       # sets the default TLS model and affects inlining.
8770       case $host_cpu in
8771       hppa*64*)
8772         # +Z the default
8773         ;;
8774       *)
8775         lt_prog_compiler_pic='-fPIC'
8776         ;;
8777       esac
8778       ;;
8779
8780     interix[3-9]*)
8781       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8782       # Instead, we relocate shared libraries at runtime.
8783       ;;
8784
8785     msdosdjgpp*)
8786       # Just because we use GCC doesn't mean we suddenly get shared libraries
8787       # on systems that don't support them.
8788       lt_prog_compiler_can_build_shared=no
8789       enable_shared=no
8790       ;;
8791
8792     *nto* | *qnx*)
8793       # QNX uses GNU C++, but need to define -shared option too, otherwise
8794       # it will coredump.
8795       lt_prog_compiler_pic='-fPIC -shared'
8796       ;;
8797
8798     sysv4*MP*)
8799       if test -d /usr/nec; then
8800         lt_prog_compiler_pic=-Kconform_pic
8801       fi
8802       ;;
8803
8804     *)
8805       lt_prog_compiler_pic='-fPIC'
8806       ;;
8807     esac
8808   else
8809     # PORTME Check for flag to pass linker flags through the system compiler.
8810     case $host_os in
8811     aix*)
8812       lt_prog_compiler_wl='-Wl,'
8813       if test "$host_cpu" = ia64; then
8814         # AIX 5 now supports IA64 processor
8815         lt_prog_compiler_static='-Bstatic'
8816       else
8817         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8818       fi
8819       ;;
8820
8821     mingw* | cygwin* | pw32* | os2* | cegcc*)
8822       # This hack is so that the source file can tell whether it is being
8823       # built for inclusion in a dll (and should export symbols for example).
8824       lt_prog_compiler_pic='-DDLL_EXPORT'
8825       ;;
8826
8827     hpux9* | hpux10* | hpux11*)
8828       lt_prog_compiler_wl='-Wl,'
8829       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8830       # not for PA HP-UX.
8831       case $host_cpu in
8832       hppa*64*|ia64*)
8833         # +Z the default
8834         ;;
8835       *)
8836         lt_prog_compiler_pic='+Z'
8837         ;;
8838       esac
8839       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8840       lt_prog_compiler_static='${wl}-a ${wl}archive'
8841       ;;
8842
8843     irix5* | irix6* | nonstopux*)
8844       lt_prog_compiler_wl='-Wl,'
8845       # PIC (with -KPIC) is the default.
8846       lt_prog_compiler_static='-non_shared'
8847       ;;
8848
8849     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8850       case $cc_basename in
8851       # old Intel for x86_64 which still supported -KPIC.
8852       ecc*)
8853         lt_prog_compiler_wl='-Wl,'
8854         lt_prog_compiler_pic='-KPIC'
8855         lt_prog_compiler_static='-static'
8856         ;;
8857       # icc used to be incompatible with GCC.
8858       # ICC 10 doesn't accept -KPIC any more.
8859       icc* | ifort*)
8860         lt_prog_compiler_wl='-Wl,'
8861         lt_prog_compiler_pic='-fPIC'
8862         lt_prog_compiler_static='-static'
8863         ;;
8864       # Lahey Fortran 8.1.
8865       lf95*)
8866         lt_prog_compiler_wl='-Wl,'
8867         lt_prog_compiler_pic='--shared'
8868         lt_prog_compiler_static='--static'
8869         ;;
8870       pgcc* | pgf77* | pgf90* | pgf95*)
8871         # Portland Group compilers (*not* the Pentium gcc compiler,
8872         # which looks to be a dead project)
8873         lt_prog_compiler_wl='-Wl,'
8874         lt_prog_compiler_pic='-fpic'
8875         lt_prog_compiler_static='-Bstatic'
8876         ;;
8877       ccc*)
8878         lt_prog_compiler_wl='-Wl,'
8879         # All Alpha code is PIC.
8880         lt_prog_compiler_static='-non_shared'
8881         ;;
8882       xl*)
8883         # IBM XL C 8.0/Fortran 10.1 on PPC
8884         lt_prog_compiler_wl='-Wl,'
8885         lt_prog_compiler_pic='-qpic'
8886         lt_prog_compiler_static='-qstaticlink'
8887         ;;
8888       *)
8889         case `$CC -V 2>&1 | sed 5q` in
8890         *Sun\ C*)
8891           # Sun C 5.9
8892           lt_prog_compiler_pic='-KPIC'
8893           lt_prog_compiler_static='-Bstatic'
8894           lt_prog_compiler_wl='-Wl,'
8895           ;;
8896         *Sun\ F*)
8897           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8898           lt_prog_compiler_pic='-KPIC'
8899           lt_prog_compiler_static='-Bstatic'
8900           lt_prog_compiler_wl=''
8901           ;;
8902         esac
8903         ;;
8904       esac
8905       ;;
8906
8907     newsos6)
8908       lt_prog_compiler_pic='-KPIC'
8909       lt_prog_compiler_static='-Bstatic'
8910       ;;
8911
8912     *nto* | *qnx*)
8913       # QNX uses GNU C++, but need to define -shared option too, otherwise
8914       # it will coredump.
8915       lt_prog_compiler_pic='-fPIC -shared'
8916       ;;
8917
8918     osf3* | osf4* | osf5*)
8919       lt_prog_compiler_wl='-Wl,'
8920       # All OSF/1 code is PIC.
8921       lt_prog_compiler_static='-non_shared'
8922       ;;
8923
8924     rdos*)
8925       lt_prog_compiler_static='-non_shared'
8926       ;;
8927
8928     solaris*)
8929       lt_prog_compiler_pic='-KPIC'
8930       lt_prog_compiler_static='-Bstatic'
8931       case $cc_basename in
8932       f77* | f90* | f95*)
8933         lt_prog_compiler_wl='-Qoption ld ';;
8934       *)
8935         lt_prog_compiler_wl='-Wl,';;
8936       esac
8937       ;;
8938
8939     sunos4*)
8940       lt_prog_compiler_wl='-Qoption ld '
8941       lt_prog_compiler_pic='-PIC'
8942       lt_prog_compiler_static='-Bstatic'
8943       ;;
8944
8945     sysv4 | sysv4.2uw2* | sysv4.3*)
8946       lt_prog_compiler_wl='-Wl,'
8947       lt_prog_compiler_pic='-KPIC'
8948       lt_prog_compiler_static='-Bstatic'
8949       ;;
8950
8951     sysv4*MP*)
8952       if test -d /usr/nec ;then
8953         lt_prog_compiler_pic='-Kconform_pic'
8954         lt_prog_compiler_static='-Bstatic'
8955       fi
8956       ;;
8957
8958     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8959       lt_prog_compiler_wl='-Wl,'
8960       lt_prog_compiler_pic='-KPIC'
8961       lt_prog_compiler_static='-Bstatic'
8962       ;;
8963
8964     unicos*)
8965       lt_prog_compiler_wl='-Wl,'
8966       lt_prog_compiler_can_build_shared=no
8967       ;;
8968
8969     uts4*)
8970       lt_prog_compiler_pic='-pic'
8971       lt_prog_compiler_static='-Bstatic'
8972       ;;
8973
8974     *)
8975       lt_prog_compiler_can_build_shared=no
8976       ;;
8977     esac
8978   fi
8979
8980 case $host_os in
8981   # For platforms which do not support PIC, -DPIC is meaningless:
8982   *djgpp*)
8983     lt_prog_compiler_pic=
8984     ;;
8985   *)
8986     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8987     ;;
8988 esac
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8990 $as_echo "$lt_prog_compiler_pic" >&6; }
8991
8992
8993
8994
8995
8996
8997 #
8998 # Check to make sure the PIC flag actually works.
8999 #
9000 if test -n "$lt_prog_compiler_pic"; then
9001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9002 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9003 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9004   $as_echo_n "(cached) " >&6
9005 else
9006   lt_cv_prog_compiler_pic_works=no
9007    ac_outfile=conftest.$ac_objext
9008    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9009    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9010    # Insert the option either (1) after the last *FLAGS variable, or
9011    # (2) before a word containing "conftest.", or (3) at the end.
9012    # Note that $ac_compile itself does not contain backslashes and begins
9013    # with a dollar sign (not a hyphen), so the echo should work correctly.
9014    # The option is referenced via a variable to avoid confusing sed.
9015    lt_compile=`echo "$ac_compile" | $SED \
9016    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9017    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9018    -e 's:$: $lt_compiler_flag:'`
9019    (eval echo "\"\$as_me:9019: $lt_compile\"" >&5)
9020    (eval "$lt_compile" 2>conftest.err)
9021    ac_status=$?
9022    cat conftest.err >&5
9023    echo "$as_me:9023: \$? = $ac_status" >&5
9024    if (exit $ac_status) && test -s "$ac_outfile"; then
9025      # The compiler can only warn and ignore the option if not recognized
9026      # So say no if there are warnings other than the usual output.
9027      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9028      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9029      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9030        lt_cv_prog_compiler_pic_works=yes
9031      fi
9032    fi
9033    $RM conftest*
9034
9035 fi
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9037 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9038
9039 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9040     case $lt_prog_compiler_pic in
9041      "" | " "*) ;;
9042      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9043      esac
9044 else
9045     lt_prog_compiler_pic=
9046      lt_prog_compiler_can_build_shared=no
9047 fi
9048
9049 fi
9050
9051
9052
9053
9054
9055
9056 #
9057 # Check to make sure the static flag actually works.
9058 #
9059 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9061 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9062 if ${lt_cv_prog_compiler_static_works+:} false; then :
9063   $as_echo_n "(cached) " >&6
9064 else
9065   lt_cv_prog_compiler_static_works=no
9066    save_LDFLAGS="$LDFLAGS"
9067    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9068    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9069    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9070      # The linker can only warn and ignore the option if not recognized
9071      # So say no if there are warnings
9072      if test -s conftest.err; then
9073        # Append any errors to the config.log.
9074        cat conftest.err 1>&5
9075        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9076        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9077        if diff conftest.exp conftest.er2 >/dev/null; then
9078          lt_cv_prog_compiler_static_works=yes
9079        fi
9080      else
9081        lt_cv_prog_compiler_static_works=yes
9082      fi
9083    fi
9084    $RM -r conftest*
9085    LDFLAGS="$save_LDFLAGS"
9086
9087 fi
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9089 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9090
9091 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9092     :
9093 else
9094     lt_prog_compiler_static=
9095 fi
9096
9097
9098
9099
9100
9101
9102
9103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9104 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9105 if ${lt_cv_prog_compiler_c_o+:} false; then :
9106   $as_echo_n "(cached) " >&6
9107 else
9108   lt_cv_prog_compiler_c_o=no
9109    $RM -r conftest 2>/dev/null
9110    mkdir conftest
9111    cd conftest
9112    mkdir out
9113    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9114
9115    lt_compiler_flag="-o out/conftest2.$ac_objext"
9116    # Insert the option either (1) after the last *FLAGS variable, or
9117    # (2) before a word containing "conftest.", or (3) at the end.
9118    # Note that $ac_compile itself does not contain backslashes and begins
9119    # with a dollar sign (not a hyphen), so the echo should work correctly.
9120    lt_compile=`echo "$ac_compile" | $SED \
9121    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9122    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9123    -e 's:$: $lt_compiler_flag:'`
9124    (eval echo "\"\$as_me:9124: $lt_compile\"" >&5)
9125    (eval "$lt_compile" 2>out/conftest.err)
9126    ac_status=$?
9127    cat out/conftest.err >&5
9128    echo "$as_me:9128: \$? = $ac_status" >&5
9129    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9130    then
9131      # The compiler can only warn and ignore the option if not recognized
9132      # So say no if there are warnings
9133      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9134      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9135      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9136        lt_cv_prog_compiler_c_o=yes
9137      fi
9138    fi
9139    chmod u+w . 2>&5
9140    $RM conftest*
9141    # SGI C++ compiler will create directory out/ii_files/ for
9142    # template instantiation
9143    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9144    $RM out/* && rmdir out
9145    cd ..
9146    $RM -r conftest
9147    $RM conftest*
9148
9149 fi
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9151 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9152
9153
9154
9155
9156
9157
9158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9159 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9160 if ${lt_cv_prog_compiler_c_o+:} false; then :
9161   $as_echo_n "(cached) " >&6
9162 else
9163   lt_cv_prog_compiler_c_o=no
9164    $RM -r conftest 2>/dev/null
9165    mkdir conftest
9166    cd conftest
9167    mkdir out
9168    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9169
9170    lt_compiler_flag="-o out/conftest2.$ac_objext"
9171    # Insert the option either (1) after the last *FLAGS variable, or
9172    # (2) before a word containing "conftest.", or (3) at the end.
9173    # Note that $ac_compile itself does not contain backslashes and begins
9174    # with a dollar sign (not a hyphen), so the echo should work correctly.
9175    lt_compile=`echo "$ac_compile" | $SED \
9176    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9177    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9178    -e 's:$: $lt_compiler_flag:'`
9179    (eval echo "\"\$as_me:9179: $lt_compile\"" >&5)
9180    (eval "$lt_compile" 2>out/conftest.err)
9181    ac_status=$?
9182    cat out/conftest.err >&5
9183    echo "$as_me:9183: \$? = $ac_status" >&5
9184    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9185    then
9186      # The compiler can only warn and ignore the option if not recognized
9187      # So say no if there are warnings
9188      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9189      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9190      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9191        lt_cv_prog_compiler_c_o=yes
9192      fi
9193    fi
9194    chmod u+w . 2>&5
9195    $RM conftest*
9196    # SGI C++ compiler will create directory out/ii_files/ for
9197    # template instantiation
9198    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9199    $RM out/* && rmdir out
9200    cd ..
9201    $RM -r conftest
9202    $RM conftest*
9203
9204 fi
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9206 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9207
9208
9209
9210
9211 hard_links="nottested"
9212 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9213   # do not overwrite the value of need_locks provided by the user
9214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9215 $as_echo_n "checking if we can lock with hard links... " >&6; }
9216   hard_links=yes
9217   $RM conftest*
9218   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9219   touch conftest.a
9220   ln conftest.a conftest.b 2>&5 || hard_links=no
9221   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9223 $as_echo "$hard_links" >&6; }
9224   if test "$hard_links" = no; then
9225     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9226 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9227     need_locks=warn
9228   fi
9229 else
9230   need_locks=no
9231 fi
9232
9233
9234
9235
9236
9237
9238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9239 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9240
9241   runpath_var=
9242   allow_undefined_flag=
9243   always_export_symbols=no
9244   archive_cmds=
9245   archive_expsym_cmds=
9246   compiler_needs_object=no
9247   enable_shared_with_static_runtimes=no
9248   export_dynamic_flag_spec=
9249   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9250   hardcode_automatic=no
9251   hardcode_direct=no
9252   hardcode_direct_absolute=no
9253   hardcode_libdir_flag_spec=
9254   hardcode_libdir_flag_spec_ld=
9255   hardcode_libdir_separator=
9256   hardcode_minus_L=no
9257   hardcode_shlibpath_var=unsupported
9258   inherit_rpath=no
9259   link_all_deplibs=unknown
9260   module_cmds=
9261   module_expsym_cmds=
9262   old_archive_from_new_cmds=
9263   old_archive_from_expsyms_cmds=
9264   thread_safe_flag_spec=
9265   whole_archive_flag_spec=
9266   # include_expsyms should be a list of space-separated symbols to be *always*
9267   # included in the symbol list
9268   include_expsyms=
9269   # exclude_expsyms can be an extended regexp of symbols to exclude
9270   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9271   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9272   # as well as any symbol that contains `d'.
9273   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9274   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9275   # platforms (ab)use it in PIC code, but their linkers get confused if
9276   # the symbol is explicitly referenced.  Since portable code cannot
9277   # rely on this symbol name, it's probably fine to never include it in
9278   # preloaded symbol tables.
9279   # Exclude shared library initialization/finalization symbols.
9280   extract_expsyms_cmds=
9281
9282   case $host_os in
9283   cygwin* | mingw* | pw32* | cegcc*)
9284     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9285     # When not using gcc, we currently assume that we are using
9286     # Microsoft Visual C++.
9287     if test "$GCC" != yes; then
9288       with_gnu_ld=no
9289     fi
9290     ;;
9291   interix*)
9292     # we just hope/assume this is gcc and not c89 (= MSVC++)
9293     with_gnu_ld=yes
9294     ;;
9295   openbsd*)
9296     with_gnu_ld=no
9297     ;;
9298   linux* | k*bsd*-gnu)
9299     link_all_deplibs=no
9300     ;;
9301   esac
9302
9303   ld_shlibs=yes
9304   if test "$with_gnu_ld" = yes; then
9305     # If archive_cmds runs LD, not CC, wlarc should be empty
9306     wlarc='${wl}'
9307
9308     # Set some defaults for GNU ld with shared library support. These
9309     # are reset later if shared libraries are not supported. Putting them
9310     # here allows them to be overridden if necessary.
9311     runpath_var=LD_RUN_PATH
9312     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9313     export_dynamic_flag_spec='${wl}--export-dynamic'
9314     # ancient GNU ld didn't support --whole-archive et. al.
9315     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9316       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9317     else
9318       whole_archive_flag_spec=
9319     fi
9320     supports_anon_versioning=no
9321     case `$LD -v 2>&1` in
9322       *GNU\ gold*) supports_anon_versioning=yes ;;
9323       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9324       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9325       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9326       *\ 2.11.*) ;; # other 2.11 versions
9327       *) supports_anon_versioning=yes ;;
9328     esac
9329
9330     # See if GNU ld supports shared libraries.
9331     case $host_os in
9332     aix[3-9]*)
9333       # On AIX/PPC, the GNU linker is very broken
9334       if test "$host_cpu" != ia64; then
9335         ld_shlibs=no
9336         cat <<_LT_EOF 1>&2
9337
9338 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9339 *** to be unable to reliably create shared libraries on AIX.
9340 *** Therefore, libtool is disabling shared libraries support.  If you
9341 *** really care for shared libraries, you may want to modify your PATH
9342 *** so that a non-GNU linker is found, and then restart.
9343
9344 _LT_EOF
9345       fi
9346       ;;
9347
9348     amigaos*)
9349       case $host_cpu in
9350       powerpc)
9351             # see comment about AmigaOS4 .so support
9352             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9353             archive_expsym_cmds=''
9354         ;;
9355       m68k)
9356             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)'
9357             hardcode_libdir_flag_spec='-L$libdir'
9358             hardcode_minus_L=yes
9359         ;;
9360       esac
9361       ;;
9362
9363     beos*)
9364       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9365         allow_undefined_flag=unsupported
9366         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9367         # support --undefined.  This deserves some investigation.  FIXME
9368         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9369       else
9370         ld_shlibs=no
9371       fi
9372       ;;
9373
9374     cygwin* | mingw* | pw32* | cegcc*)
9375       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9376       # as there is no search path for DLLs.
9377       hardcode_libdir_flag_spec='-L$libdir'
9378       allow_undefined_flag=unsupported
9379       always_export_symbols=no
9380       enable_shared_with_static_runtimes=yes
9381       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9382
9383       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9384         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9385         # If the export-symbols file already is a .def file (1st line
9386         # is EXPORTS), use it as is; otherwise, prepend...
9387         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9388           cp $export_symbols $output_objdir/$soname.def;
9389         else
9390           echo EXPORTS > $output_objdir/$soname.def;
9391           cat $export_symbols >> $output_objdir/$soname.def;
9392         fi~
9393         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9394       else
9395         ld_shlibs=no
9396       fi
9397       ;;
9398
9399     interix[3-9]*)
9400       hardcode_direct=no
9401       hardcode_shlibpath_var=no
9402       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9403       export_dynamic_flag_spec='${wl}-E'
9404       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9405       # Instead, shared libraries are loaded at an image base (0x10000000 by
9406       # default) and relocated if they conflict, which is a slow very memory
9407       # consuming and fragmenting process.  To avoid this, we pick a random,
9408       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9409       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9410       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9411       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'
9412       ;;
9413
9414     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9415       tmp_diet=no
9416       if test "$host_os" = linux-dietlibc; then
9417         case $cc_basename in
9418           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9419         esac
9420       fi
9421       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9422          && test "$tmp_diet" = no
9423       then
9424         tmp_addflag=
9425         tmp_sharedflag='-shared'
9426         case $cc_basename,$host_cpu in
9427         pgcc*)                          # Portland Group C compiler
9428           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'
9429           tmp_addflag=' $pic_flag'
9430           ;;
9431         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9432           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'
9433           tmp_addflag=' $pic_flag -Mnomain' ;;
9434         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9435           tmp_addflag=' -i_dynamic' ;;
9436         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9437           tmp_addflag=' -i_dynamic -nofor_main' ;;
9438         ifc* | ifort*)                  # Intel Fortran compiler
9439           tmp_addflag=' -nofor_main' ;;
9440         lf95*)                          # Lahey Fortran 8.1
9441           whole_archive_flag_spec=
9442           tmp_sharedflag='--shared' ;;
9443         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9444           tmp_sharedflag='-qmkshrobj'
9445           tmp_addflag= ;;
9446         esac
9447         case `$CC -V 2>&1 | sed 5q` in
9448         *Sun\ C*)                       # Sun C 5.9
9449           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'
9450           compiler_needs_object=yes
9451           tmp_sharedflag='-G' ;;
9452         *Sun\ F*)                       # Sun Fortran 8.3
9453           tmp_sharedflag='-G' ;;
9454         esac
9455         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9456
9457         if test "x$supports_anon_versioning" = xyes; then
9458           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9459             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9460             echo "local: *; };" >> $output_objdir/$libname.ver~
9461             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9462         fi
9463
9464         case $cc_basename in
9465         xlf*)
9466           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9467           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9468           hardcode_libdir_flag_spec=
9469           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9470           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9471           if test "x$supports_anon_versioning" = xyes; then
9472             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9473               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9474               echo "local: *; };" >> $output_objdir/$libname.ver~
9475               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9476           fi
9477           ;;
9478         esac
9479       else
9480         ld_shlibs=no
9481       fi
9482       ;;
9483
9484     netbsd* | netbsdelf*-gnu)
9485       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9486         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9487         wlarc=
9488       else
9489         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9490         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9491       fi
9492       ;;
9493
9494     solaris*)
9495       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9496         ld_shlibs=no
9497         cat <<_LT_EOF 1>&2
9498
9499 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9500 *** create shared libraries on Solaris systems.  Therefore, libtool
9501 *** is disabling shared libraries support.  We urge you to upgrade GNU
9502 *** binutils to release 2.9.1 or newer.  Another option is to modify
9503 *** your PATH or compiler configuration so that the native linker is
9504 *** used, and then restart.
9505
9506 _LT_EOF
9507       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9508         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9510       else
9511         ld_shlibs=no
9512       fi
9513       ;;
9514
9515     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9516       case `$LD -v 2>&1` in
9517         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9518         ld_shlibs=no
9519         cat <<_LT_EOF 1>&2
9520
9521 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9522 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9523 *** is disabling shared libraries support.  We urge you to upgrade GNU
9524 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9525 *** your PATH or compiler configuration so that the native linker is
9526 *** used, and then restart.
9527
9528 _LT_EOF
9529         ;;
9530         *)
9531           # For security reasons, it is highly recommended that you always
9532           # use absolute paths for naming shared libraries, and exclude the
9533           # DT_RUNPATH tag from executables and libraries.  But doing so
9534           # requires that you compile everything twice, which is a pain.
9535           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9536             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9537             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9538             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9539           else
9540             ld_shlibs=no
9541           fi
9542         ;;
9543       esac
9544       ;;
9545
9546     sunos4*)
9547       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9548       wlarc=
9549       hardcode_direct=yes
9550       hardcode_shlibpath_var=no
9551       ;;
9552
9553     *)
9554       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9555         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9556         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9557       else
9558         ld_shlibs=no
9559       fi
9560       ;;
9561     esac
9562
9563     if test "$ld_shlibs" = no; then
9564       runpath_var=
9565       hardcode_libdir_flag_spec=
9566       export_dynamic_flag_spec=
9567       whole_archive_flag_spec=
9568     fi
9569   else
9570     # PORTME fill in a description of your system's linker (not GNU ld)
9571     case $host_os in
9572     aix3*)
9573       allow_undefined_flag=unsupported
9574       always_export_symbols=yes
9575       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'
9576       # Note: this linker hardcodes the directories in LIBPATH if there
9577       # are no directories specified by -L.
9578       hardcode_minus_L=yes
9579       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9580         # Neither direct hardcoding nor static linking is supported with a
9581         # broken collect2.
9582         hardcode_direct=unsupported
9583       fi
9584       ;;
9585
9586     aix[4-9]*)
9587       if test "$host_cpu" = ia64; then
9588         # On IA64, the linker does run time linking by default, so we don't
9589         # have to do anything special.
9590         aix_use_runtimelinking=no
9591         exp_sym_flag='-Bexport'
9592         no_entry_flag=""
9593       else
9594         # If we're using GNU nm, then we don't want the "-C" option.
9595         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9596         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9597           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'
9598         else
9599           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'
9600         fi
9601         aix_use_runtimelinking=no
9602
9603         # Test if we are trying to use run time linking or normal
9604         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9605         # need to do runtime linking.
9606         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9607           for ld_flag in $LDFLAGS; do
9608           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9609             aix_use_runtimelinking=yes
9610             break
9611           fi
9612           done
9613           ;;
9614         esac
9615
9616         exp_sym_flag='-bexport'
9617         no_entry_flag='-bnoentry'
9618       fi
9619
9620       # When large executables or shared objects are built, AIX ld can
9621       # have problems creating the table of contents.  If linking a library
9622       # or program results in "error TOC overflow" add -mminimal-toc to
9623       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9624       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9625
9626       archive_cmds=''
9627       hardcode_direct=yes
9628       hardcode_direct_absolute=yes
9629       hardcode_libdir_separator=':'
9630       link_all_deplibs=yes
9631       file_list_spec='${wl}-f,'
9632
9633       if test "$GCC" = yes; then
9634         case $host_os in aix4.[012]|aix4.[012].*)
9635         # We only want to do this on AIX 4.2 and lower, the check
9636         # below for broken collect2 doesn't work under 4.3+
9637           collect2name=`${CC} -print-prog-name=collect2`
9638           if test -f "$collect2name" &&
9639            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9640           then
9641           # We have reworked collect2
9642           :
9643           else
9644           # We have old collect2
9645           hardcode_direct=unsupported
9646           # It fails to find uninstalled libraries when the uninstalled
9647           # path is not listed in the libpath.  Setting hardcode_minus_L
9648           # to unsupported forces relinking
9649           hardcode_minus_L=yes
9650           hardcode_libdir_flag_spec='-L$libdir'
9651           hardcode_libdir_separator=
9652           fi
9653           ;;
9654         esac
9655         shared_flag='-shared'
9656         if test "$aix_use_runtimelinking" = yes; then
9657           shared_flag="$shared_flag "'${wl}-G'
9658         fi
9659         link_all_deplibs=no
9660       else
9661         # not using gcc
9662         if test "$host_cpu" = ia64; then
9663         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9664         # chokes on -Wl,-G. The following line is correct:
9665           shared_flag='-G'
9666         else
9667           if test "$aix_use_runtimelinking" = yes; then
9668             shared_flag='${wl}-G'
9669           else
9670             shared_flag='${wl}-bM:SRE'
9671           fi
9672         fi
9673       fi
9674
9675       export_dynamic_flag_spec='${wl}-bexpall'
9676       # It seems that -bexpall does not export symbols beginning with
9677       # underscore (_), so it is better to generate a list of symbols to export.
9678       always_export_symbols=yes
9679       if test "$aix_use_runtimelinking" = yes; then
9680         # Warning - without using the other runtime loading flags (-brtl),
9681         # -berok will link without error, but may produce a broken library.
9682         allow_undefined_flag='-berok'
9683         # Determine the default libpath from the value encoded in an
9684         # empty executable.
9685         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h.  */
9687
9688 int
9689 main ()
9690 {
9691
9692   ;
9693   return 0;
9694 }
9695 _ACEOF
9696 if ac_fn_c_try_link "$LINENO"; then :
9697
9698 lt_aix_libpath_sed='
9699     /Import File Strings/,/^$/ {
9700         /^0/ {
9701             s/^0  *\(.*\)$/\1/
9702             p
9703         }
9704     }'
9705 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9706 # Check for a 64-bit object if we didn't find anything.
9707 if test -z "$aix_libpath"; then
9708   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9709 fi
9710 fi
9711 rm -f core conftest.err conftest.$ac_objext \
9712     conftest$ac_exeext conftest.$ac_ext
9713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9714
9715         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9716         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"
9717       else
9718         if test "$host_cpu" = ia64; then
9719           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9720           allow_undefined_flag="-z nodefs"
9721           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"
9722         else
9723          # Determine the default libpath from the value encoded in an
9724          # empty executable.
9725          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h.  */
9727
9728 int
9729 main ()
9730 {
9731
9732   ;
9733   return 0;
9734 }
9735 _ACEOF
9736 if ac_fn_c_try_link "$LINENO"; then :
9737
9738 lt_aix_libpath_sed='
9739     /Import File Strings/,/^$/ {
9740         /^0/ {
9741             s/^0  *\(.*\)$/\1/
9742             p
9743         }
9744     }'
9745 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9746 # Check for a 64-bit object if we didn't find anything.
9747 if test -z "$aix_libpath"; then
9748   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9749 fi
9750 fi
9751 rm -f core conftest.err conftest.$ac_objext \
9752     conftest$ac_exeext conftest.$ac_ext
9753 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9754
9755          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9756           # Warning - without using the other run time loading flags,
9757           # -berok will link without error, but may produce a broken library.
9758           no_undefined_flag=' ${wl}-bernotok'
9759           allow_undefined_flag=' ${wl}-berok'
9760           # Exported symbols can be pulled into shared objects from archives
9761           whole_archive_flag_spec='$convenience'
9762           archive_cmds_need_lc=yes
9763           # This is similar to how AIX traditionally builds its shared libraries.
9764           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'
9765         fi
9766       fi
9767       ;;
9768
9769     amigaos*)
9770       case $host_cpu in
9771       powerpc)
9772             # see comment about AmigaOS4 .so support
9773             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9774             archive_expsym_cmds=''
9775         ;;
9776       m68k)
9777             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)'
9778             hardcode_libdir_flag_spec='-L$libdir'
9779             hardcode_minus_L=yes
9780         ;;
9781       esac
9782       ;;
9783
9784     bsdi[45]*)
9785       export_dynamic_flag_spec=-rdynamic
9786       ;;
9787
9788     cygwin* | mingw* | pw32* | cegcc*)
9789       # When not using gcc, we currently assume that we are using
9790       # Microsoft Visual C++.
9791       # hardcode_libdir_flag_spec is actually meaningless, as there is
9792       # no search path for DLLs.
9793       hardcode_libdir_flag_spec=' '
9794       allow_undefined_flag=unsupported
9795       # Tell ltmain to make .lib files, not .a files.
9796       libext=lib
9797       # Tell ltmain to make .dll files, not .so files.
9798       shrext_cmds=".dll"
9799       # FIXME: Setting linknames here is a bad hack.
9800       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9801       # The linker will automatically build a .lib file if we build a DLL.
9802       old_archive_from_new_cmds='true'
9803       # FIXME: Should let the user specify the lib program.
9804       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9805       fix_srcfile_path='`cygpath -w "$srcfile"`'
9806       enable_shared_with_static_runtimes=yes
9807       ;;
9808
9809     darwin* | rhapsody*)
9810
9811
9812   archive_cmds_need_lc=no
9813   hardcode_direct=no
9814   hardcode_automatic=yes
9815   hardcode_shlibpath_var=unsupported
9816   whole_archive_flag_spec=''
9817   link_all_deplibs=yes
9818   allow_undefined_flag="$_lt_dar_allow_undefined"
9819   case $cc_basename in
9820      ifort*) _lt_dar_can_shared=yes ;;
9821      *) _lt_dar_can_shared=$GCC ;;
9822   esac
9823   if test "$_lt_dar_can_shared" = "yes"; then
9824     output_verbose_link_cmd=echo
9825     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9826     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9827     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}"
9828     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}"
9829
9830   else
9831   ld_shlibs=no
9832   fi
9833
9834       ;;
9835
9836     dgux*)
9837       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9838       hardcode_libdir_flag_spec='-L$libdir'
9839       hardcode_shlibpath_var=no
9840       ;;
9841
9842     freebsd1*)
9843       ld_shlibs=no
9844       ;;
9845
9846     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9847     # support.  Future versions do this automatically, but an explicit c++rt0.o
9848     # does not break anything, and helps significantly (at the cost of a little
9849     # extra space).
9850     freebsd2.2*)
9851       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9852       hardcode_libdir_flag_spec='-R$libdir'
9853       hardcode_direct=yes
9854       hardcode_shlibpath_var=no
9855       ;;
9856
9857     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9858     freebsd2*)
9859       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9860       hardcode_direct=yes
9861       hardcode_minus_L=yes
9862       hardcode_shlibpath_var=no
9863       ;;
9864
9865     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9866     freebsd* | dragonfly*)
9867       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9868       hardcode_libdir_flag_spec='-R$libdir'
9869       hardcode_direct=yes
9870       hardcode_shlibpath_var=no
9871       ;;
9872
9873     hpux9*)
9874       if test "$GCC" = yes; then
9875         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'
9876       else
9877         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'
9878       fi
9879       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9880       hardcode_libdir_separator=:
9881       hardcode_direct=yes
9882
9883       # hardcode_minus_L: Not really in the search PATH,
9884       # but as the default location of the library.
9885       hardcode_minus_L=yes
9886       export_dynamic_flag_spec='${wl}-E'
9887       ;;
9888
9889     hpux10*)
9890       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9891         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9892       else
9893         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9894       fi
9895       if test "$with_gnu_ld" = no; then
9896         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9897         hardcode_libdir_flag_spec_ld='+b $libdir'
9898         hardcode_libdir_separator=:
9899         hardcode_direct=yes
9900         hardcode_direct_absolute=yes
9901         export_dynamic_flag_spec='${wl}-E'
9902         # hardcode_minus_L: Not really in the search PATH,
9903         # but as the default location of the library.
9904         hardcode_minus_L=yes
9905       fi
9906       ;;
9907
9908     hpux11*)
9909       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9910         case $host_cpu in
9911         hppa*64*)
9912           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9913           ;;
9914         ia64*)
9915           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9916           ;;
9917         *)
9918           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9919           ;;
9920         esac
9921       else
9922         case $host_cpu in
9923         hppa*64*)
9924           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9925           ;;
9926         ia64*)
9927           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9928           ;;
9929         *)
9930           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9931           ;;
9932         esac
9933       fi
9934       if test "$with_gnu_ld" = no; then
9935         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9936         hardcode_libdir_separator=:
9937
9938         case $host_cpu in
9939         hppa*64*|ia64*)
9940           hardcode_direct=no
9941           hardcode_shlibpath_var=no
9942           ;;
9943         *)
9944           hardcode_direct=yes
9945           hardcode_direct_absolute=yes
9946           export_dynamic_flag_spec='${wl}-E'
9947
9948           # hardcode_minus_L: Not really in the search PATH,
9949           # but as the default location of the library.
9950           hardcode_minus_L=yes
9951           ;;
9952         esac
9953       fi
9954       ;;
9955
9956     irix5* | irix6* | nonstopux*)
9957       if test "$GCC" = yes; then
9958         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'
9959         # Try to use the -exported_symbol ld option, if it does not
9960         # work, assume that -exports_file does not work either and
9961         # implicitly export all symbols.
9962         save_LDFLAGS="$LDFLAGS"
9963         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9964         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h.  */
9966 int foo(void) {}
9967 _ACEOF
9968 if ac_fn_c_try_link "$LINENO"; then :
9969   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'
9970
9971 fi
9972 rm -f core conftest.err conftest.$ac_objext \
9973     conftest$ac_exeext conftest.$ac_ext
9974         LDFLAGS="$save_LDFLAGS"
9975       else
9976         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'
9977         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'
9978       fi
9979       archive_cmds_need_lc='no'
9980       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9981       hardcode_libdir_separator=:
9982       inherit_rpath=yes
9983       link_all_deplibs=yes
9984       ;;
9985
9986     netbsd* | netbsdelf*-gnu)
9987       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9988         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9989       else
9990         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9991       fi
9992       hardcode_libdir_flag_spec='-R$libdir'
9993       hardcode_direct=yes
9994       hardcode_shlibpath_var=no
9995       ;;
9996
9997     newsos6)
9998       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999       hardcode_direct=yes
10000       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10001       hardcode_libdir_separator=:
10002       hardcode_shlibpath_var=no
10003       ;;
10004
10005     *nto* | *qnx*)
10006       ;;
10007
10008     openbsd*)
10009       if test -f /usr/libexec/ld.so; then
10010         hardcode_direct=yes
10011         hardcode_shlibpath_var=no
10012         hardcode_direct_absolute=yes
10013         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10014           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10015           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10016           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10017           export_dynamic_flag_spec='${wl}-E'
10018         else
10019           case $host_os in
10020            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10021              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10022              hardcode_libdir_flag_spec='-R$libdir'
10023              ;;
10024            *)
10025              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10026              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10027              ;;
10028           esac
10029         fi
10030       else
10031         ld_shlibs=no
10032       fi
10033       ;;
10034
10035     os2*)
10036       hardcode_libdir_flag_spec='-L$libdir'
10037       hardcode_minus_L=yes
10038       allow_undefined_flag=unsupported
10039       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'
10040       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10041       ;;
10042
10043     osf3*)
10044       if test "$GCC" = yes; then
10045         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10046         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'
10047       else
10048         allow_undefined_flag=' -expect_unresolved \*'
10049         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'
10050       fi
10051       archive_cmds_need_lc='no'
10052       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10053       hardcode_libdir_separator=:
10054       ;;
10055
10056     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10057       if test "$GCC" = yes; then
10058         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10059         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'
10060         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10061       else
10062         allow_undefined_flag=' -expect_unresolved \*'
10063         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'
10064         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~
10065         $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'
10066
10067         # Both c and cxx compiler support -rpath directly
10068         hardcode_libdir_flag_spec='-rpath $libdir'
10069       fi
10070       archive_cmds_need_lc='no'
10071       hardcode_libdir_separator=:
10072       ;;
10073
10074     solaris*)
10075       no_undefined_flag=' -z defs'
10076       if test "$GCC" = yes; then
10077         wlarc='${wl}'
10078         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10079         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10080           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10081       else
10082         case `$CC -V 2>&1` in
10083         *"Compilers 5.0"*)
10084           wlarc=''
10085           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10086           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10087           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10088           ;;
10089         *)
10090           wlarc='${wl}'
10091           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10092           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10093           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10094           ;;
10095         esac
10096       fi
10097       hardcode_libdir_flag_spec='-R$libdir'
10098       hardcode_shlibpath_var=no
10099       case $host_os in
10100       solaris2.[0-5] | solaris2.[0-5].*) ;;
10101       *)
10102         # The compiler driver will combine and reorder linker options,
10103         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10104         # but is careful enough not to reorder.
10105         # Supported since Solaris 2.6 (maybe 2.5.1?)
10106         if test "$GCC" = yes; then
10107           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10108         else
10109           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10110         fi
10111         ;;
10112       esac
10113       link_all_deplibs=yes
10114       ;;
10115
10116     sunos4*)
10117       if test "x$host_vendor" = xsequent; then
10118         # Use $CC to link under sequent, because it throws in some extra .o
10119         # files that make .init and .fini sections work.
10120         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10121       else
10122         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10123       fi
10124       hardcode_libdir_flag_spec='-L$libdir'
10125       hardcode_direct=yes
10126       hardcode_minus_L=yes
10127       hardcode_shlibpath_var=no
10128       ;;
10129
10130     sysv4)
10131       case $host_vendor in
10132         sni)
10133           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134           hardcode_direct=yes # is this really true???
10135         ;;
10136         siemens)
10137           ## LD is ld it makes a PLAMLIB
10138           ## CC just makes a GrossModule.
10139           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10140           reload_cmds='$CC -r -o $output$reload_objs'
10141           hardcode_direct=no
10142         ;;
10143         motorola)
10144           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10146         ;;
10147       esac
10148       runpath_var='LD_RUN_PATH'
10149       hardcode_shlibpath_var=no
10150       ;;
10151
10152     sysv4.3*)
10153       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10154       hardcode_shlibpath_var=no
10155       export_dynamic_flag_spec='-Bexport'
10156       ;;
10157
10158     sysv4*MP*)
10159       if test -d /usr/nec; then
10160         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10161         hardcode_shlibpath_var=no
10162         runpath_var=LD_RUN_PATH
10163         hardcode_runpath_var=yes
10164         ld_shlibs=yes
10165       fi
10166       ;;
10167
10168     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10169       no_undefined_flag='${wl}-z,text'
10170       archive_cmds_need_lc=no
10171       hardcode_shlibpath_var=no
10172       runpath_var='LD_RUN_PATH'
10173
10174       if test "$GCC" = yes; then
10175         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10177       else
10178         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180       fi
10181       ;;
10182
10183     sysv5* | sco3.2v5* | sco5v6*)
10184       # Note: We can NOT use -z defs as we might desire, because we do not
10185       # link with -lc, and that would cause any symbols used from libc to
10186       # always be unresolved, which means just about no library would
10187       # ever link correctly.  If we're not using GNU ld we use -z text
10188       # though, which does catch some bad symbols but isn't as heavy-handed
10189       # as -z defs.
10190       no_undefined_flag='${wl}-z,text'
10191       allow_undefined_flag='${wl}-z,nodefs'
10192       archive_cmds_need_lc=no
10193       hardcode_shlibpath_var=no
10194       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10195       hardcode_libdir_separator=':'
10196       link_all_deplibs=yes
10197       export_dynamic_flag_spec='${wl}-Bexport'
10198       runpath_var='LD_RUN_PATH'
10199
10200       if test "$GCC" = yes; then
10201         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10202         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10203       else
10204         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10205         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10206       fi
10207       ;;
10208
10209     uts4*)
10210       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10211       hardcode_libdir_flag_spec='-L$libdir'
10212       hardcode_shlibpath_var=no
10213       ;;
10214
10215     *)
10216       ld_shlibs=no
10217       ;;
10218     esac
10219
10220     if test x$host_vendor = xsni; then
10221       case $host in
10222       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10223         export_dynamic_flag_spec='${wl}-Blargedynsym'
10224         ;;
10225       esac
10226     fi
10227   fi
10228
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10230 $as_echo "$ld_shlibs" >&6; }
10231 test "$ld_shlibs" = no && can_build_shared=no
10232
10233 with_gnu_ld=$with_gnu_ld
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249 #
10250 # Do we need to explicitly link libc?
10251 #
10252 case "x$archive_cmds_need_lc" in
10253 x|xyes)
10254   # Assume -lc should be added
10255   archive_cmds_need_lc=yes
10256
10257   if test "$enable_shared" = yes && test "$GCC" = yes; then
10258     case $archive_cmds in
10259     *'~'*)
10260       # FIXME: we may have to deal with multi-command sequences.
10261       ;;
10262     '$CC '*)
10263       # Test whether the compiler implicitly links with -lc since on some
10264       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10265       # to ld, don't add -lc before -lgcc.
10266       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10267 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10268       $RM conftest*
10269       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10270
10271       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10272   (eval $ac_compile) 2>&5
10273   ac_status=$?
10274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10275   test $ac_status = 0; } 2>conftest.err; then
10276         soname=conftest
10277         lib=conftest
10278         libobjs=conftest.$ac_objext
10279         deplibs=
10280         wl=$lt_prog_compiler_wl
10281         pic_flag=$lt_prog_compiler_pic
10282         compiler_flags=-v
10283         linker_flags=-v
10284         verstring=
10285         output_objdir=.
10286         libname=conftest
10287         lt_save_allow_undefined_flag=$allow_undefined_flag
10288         allow_undefined_flag=
10289         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10290   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10291   ac_status=$?
10292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10293   test $ac_status = 0; }
10294         then
10295           archive_cmds_need_lc=no
10296         else
10297           archive_cmds_need_lc=yes
10298         fi
10299         allow_undefined_flag=$lt_save_allow_undefined_flag
10300       else
10301         cat conftest.err 1>&5
10302       fi
10303       $RM conftest*
10304       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10305 $as_echo "$archive_cmds_need_lc" >&6; }
10306       ;;
10307     esac
10308   fi
10309   ;;
10310 esac
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
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10469 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10470
10471 if test "$GCC" = yes; then
10472   case $host_os in
10473     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10474     *) lt_awk_arg="/^libraries:/" ;;
10475   esac
10476   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10477   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10478     # if the path contains ";" then we assume it to be the separator
10479     # otherwise default to the standard path separator (i.e. ":") - it is
10480     # assumed that no part of a normal pathname contains ";" but that should
10481     # okay in the real world where ";" in dirpaths is itself problematic.
10482     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10483   else
10484     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10485   fi
10486   # Ok, now we have the path, separated by spaces, we can step through it
10487   # and add multilib dir if necessary.
10488   lt_tmp_lt_search_path_spec=
10489   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10490   for lt_sys_path in $lt_search_path_spec; do
10491     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10492       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10493     else
10494       test -d "$lt_sys_path" && \
10495         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10496     fi
10497   done
10498   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10499 BEGIN {RS=" "; FS="/|\n";} {
10500   lt_foo="";
10501   lt_count=0;
10502   for (lt_i = NF; lt_i > 0; lt_i--) {
10503     if ($lt_i != "" && $lt_i != ".") {
10504       if ($lt_i == "..") {
10505         lt_count++;
10506       } else {
10507         if (lt_count == 0) {
10508           lt_foo="/" $lt_i lt_foo;
10509         } else {
10510           lt_count--;
10511         }
10512       }
10513     }
10514   }
10515   if (lt_foo != "") { lt_freq[lt_foo]++; }
10516   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10517 }'`
10518   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10519 else
10520   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10521 fi
10522 library_names_spec=
10523 libname_spec='lib$name'
10524 soname_spec=
10525 shrext_cmds=".so"
10526 postinstall_cmds=
10527 postuninstall_cmds=
10528 finish_cmds=
10529 finish_eval=
10530 shlibpath_var=
10531 shlibpath_overrides_runpath=unknown
10532 version_type=none
10533 dynamic_linker="$host_os ld.so"
10534 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10535 need_lib_prefix=unknown
10536 hardcode_into_libs=no
10537
10538 # when you set need_version to no, make sure it does not cause -set_version
10539 # flags to be left without arguments
10540 need_version=unknown
10541
10542 case $host_os in
10543 aix3*)
10544   version_type=linux
10545   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10546   shlibpath_var=LIBPATH
10547
10548   # AIX 3 has no versioning support, so we append a major version to the name.
10549   soname_spec='${libname}${release}${shared_ext}$major'
10550   ;;
10551
10552 aix[4-9]*)
10553   version_type=linux
10554   need_lib_prefix=no
10555   need_version=no
10556   hardcode_into_libs=yes
10557   if test "$host_cpu" = ia64; then
10558     # AIX 5 supports IA64
10559     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10560     shlibpath_var=LD_LIBRARY_PATH
10561   else
10562     # With GCC up to 2.95.x, collect2 would create an import file
10563     # for dependence libraries.  The import file would start with
10564     # the line `#! .'.  This would cause the generated library to
10565     # depend on `.', always an invalid library.  This was fixed in
10566     # development snapshots of GCC prior to 3.0.
10567     case $host_os in
10568       aix4 | aix4.[01] | aix4.[01].*)
10569       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10570            echo ' yes '
10571            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10572         :
10573       else
10574         can_build_shared=no
10575       fi
10576       ;;
10577     esac
10578     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10579     # soname into executable. Probably we can add versioning support to
10580     # collect2, so additional links can be useful in future.
10581     if test "$aix_use_runtimelinking" = yes; then
10582       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10583       # instead of lib<name>.a to let people know that these are not
10584       # typical AIX shared libraries.
10585       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586     else
10587       # We preserve .a as extension for shared libraries through AIX4.2
10588       # and later when we are not doing run time linking.
10589       library_names_spec='${libname}${release}.a $libname.a'
10590       soname_spec='${libname}${release}${shared_ext}$major'
10591     fi
10592     shlibpath_var=LIBPATH
10593   fi
10594   ;;
10595
10596 amigaos*)
10597   case $host_cpu in
10598   powerpc)
10599     # Since July 2007 AmigaOS4 officially supports .so libraries.
10600     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10601     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602     ;;
10603   m68k)
10604     library_names_spec='$libname.ixlibrary $libname.a'
10605     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10606     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'
10607     ;;
10608   esac
10609   ;;
10610
10611 beos*)
10612   library_names_spec='${libname}${shared_ext}'
10613   dynamic_linker="$host_os ld.so"
10614   shlibpath_var=LIBRARY_PATH
10615   ;;
10616
10617 bsdi[45]*)
10618   version_type=linux
10619   need_version=no
10620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621   soname_spec='${libname}${release}${shared_ext}$major'
10622   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10623   shlibpath_var=LD_LIBRARY_PATH
10624   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10625   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10626   # the default ld.so.conf also contains /usr/contrib/lib and
10627   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10628   # libtool to hard-code these into programs
10629   ;;
10630
10631 cygwin* | mingw* | pw32* | cegcc*)
10632   version_type=windows
10633   shrext_cmds=".dll"
10634   need_version=no
10635   need_lib_prefix=no
10636
10637   case $GCC,$host_os in
10638   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10639     library_names_spec='$libname.dll.a'
10640     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10641     postinstall_cmds='base_file=`basename \${file}`~
10642       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10643       dldir=$destdir/`dirname \$dlpath`~
10644       test -d \$dldir || mkdir -p \$dldir~
10645       $install_prog $dir/$dlname \$dldir/$dlname~
10646       chmod a+x \$dldir/$dlname~
10647       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10648         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10649       fi'
10650     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10651       dlpath=$dir/\$dldll~
10652        $RM \$dlpath'
10653     shlibpath_overrides_runpath=yes
10654
10655     case $host_os in
10656     cygwin*)
10657       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10658       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10659       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10660       ;;
10661     mingw* | cegcc*)
10662       # MinGW DLLs use traditional 'lib' prefix
10663       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10664       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10665       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10666         # It is most probably a Windows format PATH printed by
10667         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10668         # path with ; separators, and with drive letters. We can handle the
10669         # drive letters (cygwin fileutils understands them), so leave them,
10670         # especially as we might pass files found there to a mingw objdump,
10671         # which wouldn't understand a cygwinified path. Ahh.
10672         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10673       else
10674         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10675       fi
10676       ;;
10677     pw32*)
10678       # pw32 DLLs use 'pw' prefix rather than 'lib'
10679       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10680       ;;
10681     esac
10682     ;;
10683
10684   *)
10685     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10686     ;;
10687   esac
10688   dynamic_linker='Win32 ld.exe'
10689   # FIXME: first we should search . and the directory the executable is in
10690   shlibpath_var=PATH
10691   ;;
10692
10693 darwin* | rhapsody*)
10694   dynamic_linker="$host_os dyld"
10695   version_type=darwin
10696   need_lib_prefix=no
10697   need_version=no
10698   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10699   soname_spec='${libname}${release}${major}$shared_ext'
10700   shlibpath_overrides_runpath=yes
10701   shlibpath_var=DYLD_LIBRARY_PATH
10702   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10703
10704   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10705   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10706   ;;
10707
10708 dgux*)
10709   version_type=linux
10710   need_lib_prefix=no
10711   need_version=no
10712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10713   soname_spec='${libname}${release}${shared_ext}$major'
10714   shlibpath_var=LD_LIBRARY_PATH
10715   ;;
10716
10717 freebsd1*)
10718   dynamic_linker=no
10719   ;;
10720
10721 freebsd* | dragonfly*)
10722   # DragonFly does not have aout.  When/if they implement a new
10723   # versioning mechanism, adjust this.
10724   if test -x /usr/bin/objformat; then
10725     objformat=`/usr/bin/objformat`
10726   else
10727     case $host_os in
10728     freebsd[123]*) objformat=aout ;;
10729     *) objformat=elf ;;
10730     esac
10731   fi
10732   version_type=freebsd-$objformat
10733   case $version_type in
10734     freebsd-elf*)
10735       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10736       need_version=no
10737       need_lib_prefix=no
10738       ;;
10739     freebsd-*)
10740       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10741       need_version=yes
10742       ;;
10743   esac
10744   shlibpath_var=LD_LIBRARY_PATH
10745   case $host_os in
10746   freebsd2*)
10747     shlibpath_overrides_runpath=yes
10748     ;;
10749   freebsd3.[01]* | freebsdelf3.[01]*)
10750     shlibpath_overrides_runpath=yes
10751     hardcode_into_libs=yes
10752     ;;
10753   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10754   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10755     shlibpath_overrides_runpath=no
10756     hardcode_into_libs=yes
10757     ;;
10758   *) # from 4.6 on, and DragonFly
10759     shlibpath_overrides_runpath=yes
10760     hardcode_into_libs=yes
10761     ;;
10762   esac
10763   ;;
10764
10765 gnu*)
10766   version_type=linux
10767   need_lib_prefix=no
10768   need_version=no
10769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10770   soname_spec='${libname}${release}${shared_ext}$major'
10771   shlibpath_var=LD_LIBRARY_PATH
10772   hardcode_into_libs=yes
10773   ;;
10774
10775 hpux9* | hpux10* | hpux11*)
10776   # Give a soname corresponding to the major version so that dld.sl refuses to
10777   # link against other versions.
10778   version_type=sunos
10779   need_lib_prefix=no
10780   need_version=no
10781   case $host_cpu in
10782   ia64*)
10783     shrext_cmds='.so'
10784     hardcode_into_libs=yes
10785     dynamic_linker="$host_os dld.so"
10786     shlibpath_var=LD_LIBRARY_PATH
10787     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789     soname_spec='${libname}${release}${shared_ext}$major'
10790     if test "X$HPUX_IA64_MODE" = X32; then
10791       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10792     else
10793       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10794     fi
10795     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10796     ;;
10797   hppa*64*)
10798     shrext_cmds='.sl'
10799     hardcode_into_libs=yes
10800     dynamic_linker="$host_os dld.sl"
10801     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10802     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10803     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804     soname_spec='${libname}${release}${shared_ext}$major'
10805     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10806     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10807     ;;
10808   *)
10809     shrext_cmds='.sl'
10810     dynamic_linker="$host_os dld.sl"
10811     shlibpath_var=SHLIB_PATH
10812     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
10816   esac
10817   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10818   postinstall_cmds='chmod 555 $lib'
10819   ;;
10820
10821 interix[3-9]*)
10822   version_type=linux
10823   need_lib_prefix=no
10824   need_version=no
10825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10826   soname_spec='${libname}${release}${shared_ext}$major'
10827   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10828   shlibpath_var=LD_LIBRARY_PATH
10829   shlibpath_overrides_runpath=no
10830   hardcode_into_libs=yes
10831   ;;
10832
10833 irix5* | irix6* | nonstopux*)
10834   case $host_os in
10835     nonstopux*) version_type=nonstopux ;;
10836     *)
10837         if test "$lt_cv_prog_gnu_ld" = yes; then
10838                 version_type=linux
10839         else
10840                 version_type=irix
10841         fi ;;
10842   esac
10843   need_lib_prefix=no
10844   need_version=no
10845   soname_spec='${libname}${release}${shared_ext}$major'
10846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10847   case $host_os in
10848   irix5* | nonstopux*)
10849     libsuff= shlibsuff=
10850     ;;
10851   *)
10852     case $LD in # libtool.m4 will add one of these switches to LD
10853     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10854       libsuff= shlibsuff= libmagic=32-bit;;
10855     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10856       libsuff=32 shlibsuff=N32 libmagic=N32;;
10857     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10858       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10859     *) libsuff= shlibsuff= libmagic=never-match;;
10860     esac
10861     ;;
10862   esac
10863   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10864   shlibpath_overrides_runpath=no
10865   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10866   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10867   hardcode_into_libs=yes
10868   ;;
10869
10870 # No shared lib support for Linux oldld, aout, or coff.
10871 linux*oldld* | linux*aout* | linux*coff*)
10872   dynamic_linker=no
10873   ;;
10874
10875 # This must be Linux ELF.
10876 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10877   version_type=linux
10878   need_lib_prefix=no
10879   need_version=no
10880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881   soname_spec='${libname}${release}${shared_ext}$major'
10882   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10883   shlibpath_var=LD_LIBRARY_PATH
10884   shlibpath_overrides_runpath=no
10885   # Some binutils ld are patched to set DT_RUNPATH
10886   save_LDFLAGS=$LDFLAGS
10887   save_libdir=$libdir
10888   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10889        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h.  */
10892
10893 int
10894 main ()
10895 {
10896
10897   ;
10898   return 0;
10899 }
10900 _ACEOF
10901 if ac_fn_c_try_link "$LINENO"; then :
10902   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10903   shlibpath_overrides_runpath=yes
10904 fi
10905 fi
10906 rm -f core conftest.err conftest.$ac_objext \
10907     conftest$ac_exeext conftest.$ac_ext
10908   LDFLAGS=$save_LDFLAGS
10909   libdir=$save_libdir
10910
10911   # This implies no fast_install, which is unacceptable.
10912   # Some rework will be needed to allow for fast_install
10913   # before this can be enabled.
10914   hardcode_into_libs=yes
10915
10916   # Append ld.so.conf contents to the search path
10917   if test -f /etc/ld.so.conf; then
10918     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' ' '`
10919     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10920   fi
10921
10922   # We used to test for /lib/ld.so.1 and disable shared libraries on
10923   # powerpc, because MkLinux only supported shared libraries with the
10924   # GNU dynamic linker.  Since this was broken with cross compilers,
10925   # most powerpc-linux boxes support dynamic linking these days and
10926   # people can always --disable-shared, the test was removed, and we
10927   # assume the GNU/Linux dynamic linker is in use.
10928   dynamic_linker='GNU/Linux ld.so'
10929   ;;
10930
10931 netbsdelf*-gnu)
10932   version_type=linux
10933   need_lib_prefix=no
10934   need_version=no
10935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10936   soname_spec='${libname}${release}${shared_ext}$major'
10937   shlibpath_var=LD_LIBRARY_PATH
10938   shlibpath_overrides_runpath=no
10939   hardcode_into_libs=yes
10940   dynamic_linker='NetBSD ld.elf_so'
10941   ;;
10942
10943 netbsd*)
10944   version_type=sunos
10945   need_lib_prefix=no
10946   need_version=no
10947   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10948     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10949     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10950     dynamic_linker='NetBSD (a.out) ld.so'
10951   else
10952     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10953     soname_spec='${libname}${release}${shared_ext}$major'
10954     dynamic_linker='NetBSD ld.elf_so'
10955   fi
10956   shlibpath_var=LD_LIBRARY_PATH
10957   shlibpath_overrides_runpath=yes
10958   hardcode_into_libs=yes
10959   ;;
10960
10961 newsos6)
10962   version_type=linux
10963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964   shlibpath_var=LD_LIBRARY_PATH
10965   shlibpath_overrides_runpath=yes
10966   ;;
10967
10968 *nto* | *qnx*)
10969   version_type=qnx
10970   need_lib_prefix=no
10971   need_version=no
10972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973   soname_spec='${libname}${release}${shared_ext}$major'
10974   shlibpath_var=LD_LIBRARY_PATH
10975   shlibpath_overrides_runpath=no
10976   hardcode_into_libs=yes
10977   dynamic_linker='ldqnx.so'
10978   ;;
10979
10980 openbsd*)
10981   version_type=sunos
10982   sys_lib_dlsearch_path_spec="/usr/lib"
10983   need_lib_prefix=no
10984   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10985   case $host_os in
10986     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10987     *)                          need_version=no  ;;
10988   esac
10989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10990   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10991   shlibpath_var=LD_LIBRARY_PATH
10992   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10993     case $host_os in
10994       openbsd2.[89] | openbsd2.[89].*)
10995         shlibpath_overrides_runpath=no
10996         ;;
10997       *)
10998         shlibpath_overrides_runpath=yes
10999         ;;
11000       esac
11001   else
11002     shlibpath_overrides_runpath=yes
11003   fi
11004   ;;
11005
11006 os2*)
11007   libname_spec='$name'
11008   shrext_cmds=".dll"
11009   need_lib_prefix=no
11010   library_names_spec='$libname${shared_ext} $libname.a'
11011   dynamic_linker='OS/2 ld.exe'
11012   shlibpath_var=LIBPATH
11013   ;;
11014
11015 osf3* | osf4* | osf5*)
11016   version_type=osf
11017   need_lib_prefix=no
11018   need_version=no
11019   soname_spec='${libname}${release}${shared_ext}$major'
11020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021   shlibpath_var=LD_LIBRARY_PATH
11022   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11023   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11024   ;;
11025
11026 rdos*)
11027   dynamic_linker=no
11028   ;;
11029
11030 solaris*)
11031   version_type=linux
11032   need_lib_prefix=no
11033   need_version=no
11034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035   soname_spec='${libname}${release}${shared_ext}$major'
11036   shlibpath_var=LD_LIBRARY_PATH
11037   shlibpath_overrides_runpath=yes
11038   hardcode_into_libs=yes
11039   # ldd complains unless libraries are executable
11040   postinstall_cmds='chmod +x $lib'
11041   ;;
11042
11043 sunos4*)
11044   version_type=sunos
11045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11046   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11047   shlibpath_var=LD_LIBRARY_PATH
11048   shlibpath_overrides_runpath=yes
11049   if test "$with_gnu_ld" = yes; then
11050     need_lib_prefix=no
11051   fi
11052   need_version=yes
11053   ;;
11054
11055 sysv4 | sysv4.3*)
11056   version_type=linux
11057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11058   soname_spec='${libname}${release}${shared_ext}$major'
11059   shlibpath_var=LD_LIBRARY_PATH
11060   case $host_vendor in
11061     sni)
11062       shlibpath_overrides_runpath=no
11063       need_lib_prefix=no
11064       runpath_var=LD_RUN_PATH
11065       ;;
11066     siemens)
11067       need_lib_prefix=no
11068       ;;
11069     motorola)
11070       need_lib_prefix=no
11071       need_version=no
11072       shlibpath_overrides_runpath=no
11073       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11074       ;;
11075   esac
11076   ;;
11077
11078 sysv4*MP*)
11079   if test -d /usr/nec ;then
11080     version_type=linux
11081     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11082     soname_spec='$libname${shared_ext}.$major'
11083     shlibpath_var=LD_LIBRARY_PATH
11084   fi
11085   ;;
11086
11087 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11088   version_type=freebsd-elf
11089   need_lib_prefix=no
11090   need_version=no
11091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11092   soname_spec='${libname}${release}${shared_ext}$major'
11093   shlibpath_var=LD_LIBRARY_PATH
11094   shlibpath_overrides_runpath=yes
11095   hardcode_into_libs=yes
11096   if test "$with_gnu_ld" = yes; then
11097     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11098   else
11099     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11100     case $host_os in
11101       sco3.2v5*)
11102         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11103         ;;
11104     esac
11105   fi
11106   sys_lib_dlsearch_path_spec='/usr/lib'
11107   ;;
11108
11109 tpf*)
11110   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11111   version_type=linux
11112   need_lib_prefix=no
11113   need_version=no
11114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115   shlibpath_var=LD_LIBRARY_PATH
11116   shlibpath_overrides_runpath=no
11117   hardcode_into_libs=yes
11118   ;;
11119
11120 uts4*)
11121   version_type=linux
11122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123   soname_spec='${libname}${release}${shared_ext}$major'
11124   shlibpath_var=LD_LIBRARY_PATH
11125   ;;
11126
11127 *)
11128   dynamic_linker=no
11129   ;;
11130 esac
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11132 $as_echo "$dynamic_linker" >&6; }
11133 test "$dynamic_linker" = no && can_build_shared=no
11134
11135 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11136 if test "$GCC" = yes; then
11137   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11138 fi
11139
11140 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11141   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11142 fi
11143 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11144   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11145 fi
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
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11234 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11235 hardcode_action=
11236 if test -n "$hardcode_libdir_flag_spec" ||
11237    test -n "$runpath_var" ||
11238    test "X$hardcode_automatic" = "Xyes" ; then
11239
11240   # We can hardcode non-existent directories.
11241   if test "$hardcode_direct" != no &&
11242      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11243      # have to relink, otherwise we might link with an installed library
11244      # when we should be linking with a yet-to-be-installed one
11245      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11246      test "$hardcode_minus_L" != no; then
11247     # Linking always hardcodes the temporary library directory.
11248     hardcode_action=relink
11249   else
11250     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11251     hardcode_action=immediate
11252   fi
11253 else
11254   # We cannot hardcode anything, or else we can only hardcode existing
11255   # directories.
11256   hardcode_action=unsupported
11257 fi
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11259 $as_echo "$hardcode_action" >&6; }
11260
11261 if test "$hardcode_action" = relink ||
11262    test "$inherit_rpath" = yes; then
11263   # Fast installation is not supported
11264   enable_fast_install=no
11265 elif test "$shlibpath_overrides_runpath" = yes ||
11266      test "$enable_shared" = no; then
11267   # Fast installation is not necessary
11268   enable_fast_install=needless
11269 fi
11270
11271
11272
11273
11274
11275
11276   if test "x$enable_dlopen" != xyes; then
11277   enable_dlopen=unknown
11278   enable_dlopen_self=unknown
11279   enable_dlopen_self_static=unknown
11280 else
11281   lt_cv_dlopen=no
11282   lt_cv_dlopen_libs=
11283
11284   case $host_os in
11285   beos*)
11286     lt_cv_dlopen="load_add_on"
11287     lt_cv_dlopen_libs=
11288     lt_cv_dlopen_self=yes
11289     ;;
11290
11291   mingw* | pw32* | cegcc*)
11292     lt_cv_dlopen="LoadLibrary"
11293     lt_cv_dlopen_libs=
11294     ;;
11295
11296   cygwin*)
11297     lt_cv_dlopen="dlopen"
11298     lt_cv_dlopen_libs=
11299     ;;
11300
11301   darwin*)
11302   # if libdl is installed we need to link against it
11303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11304 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11305 if ${ac_cv_lib_dl_dlopen+:} false; then :
11306   $as_echo_n "(cached) " >&6
11307 else
11308   ac_check_lib_save_LIBS=$LIBS
11309 LIBS="-ldl  $LIBS"
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h.  */
11312
11313 /* Override any GCC internal prototype to avoid an error.
11314    Use char because int might match the return type of a GCC
11315    builtin and then its argument prototype would still apply.  */
11316 #ifdef __cplusplus
11317 extern "C"
11318 #endif
11319 char dlopen ();
11320 int
11321 main ()
11322 {
11323 return dlopen ();
11324   ;
11325   return 0;
11326 }
11327 _ACEOF
11328 if ac_fn_c_try_link "$LINENO"; then :
11329   ac_cv_lib_dl_dlopen=yes
11330 else
11331   ac_cv_lib_dl_dlopen=no
11332 fi
11333 rm -f core conftest.err conftest.$ac_objext \
11334     conftest$ac_exeext conftest.$ac_ext
11335 LIBS=$ac_check_lib_save_LIBS
11336 fi
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11338 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11339 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11340   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11341 else
11342
11343     lt_cv_dlopen="dyld"
11344     lt_cv_dlopen_libs=
11345     lt_cv_dlopen_self=yes
11346
11347 fi
11348
11349     ;;
11350
11351   *)
11352     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11353 if test "x$ac_cv_func_shl_load" = xyes; then :
11354   lt_cv_dlopen="shl_load"
11355 else
11356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11357 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11358 if ${ac_cv_lib_dld_shl_load+:} false; then :
11359   $as_echo_n "(cached) " >&6
11360 else
11361   ac_check_lib_save_LIBS=$LIBS
11362 LIBS="-ldld  $LIBS"
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h.  */
11365
11366 /* Override any GCC internal prototype to avoid an error.
11367    Use char because int might match the return type of a GCC
11368    builtin and then its argument prototype would still apply.  */
11369 #ifdef __cplusplus
11370 extern "C"
11371 #endif
11372 char shl_load ();
11373 int
11374 main ()
11375 {
11376 return shl_load ();
11377   ;
11378   return 0;
11379 }
11380 _ACEOF
11381 if ac_fn_c_try_link "$LINENO"; then :
11382   ac_cv_lib_dld_shl_load=yes
11383 else
11384   ac_cv_lib_dld_shl_load=no
11385 fi
11386 rm -f core conftest.err conftest.$ac_objext \
11387     conftest$ac_exeext conftest.$ac_ext
11388 LIBS=$ac_check_lib_save_LIBS
11389 fi
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11391 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11392 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11393   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11394 else
11395   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11396 if test "x$ac_cv_func_dlopen" = xyes; then :
11397   lt_cv_dlopen="dlopen"
11398 else
11399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11400 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11401 if ${ac_cv_lib_dl_dlopen+:} false; then :
11402   $as_echo_n "(cached) " >&6
11403 else
11404   ac_check_lib_save_LIBS=$LIBS
11405 LIBS="-ldl  $LIBS"
11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h.  */
11408
11409 /* Override any GCC internal prototype to avoid an error.
11410    Use char because int might match the return type of a GCC
11411    builtin and then its argument prototype would still apply.  */
11412 #ifdef __cplusplus
11413 extern "C"
11414 #endif
11415 char dlopen ();
11416 int
11417 main ()
11418 {
11419 return dlopen ();
11420   ;
11421   return 0;
11422 }
11423 _ACEOF
11424 if ac_fn_c_try_link "$LINENO"; then :
11425   ac_cv_lib_dl_dlopen=yes
11426 else
11427   ac_cv_lib_dl_dlopen=no
11428 fi
11429 rm -f core conftest.err conftest.$ac_objext \
11430     conftest$ac_exeext conftest.$ac_ext
11431 LIBS=$ac_check_lib_save_LIBS
11432 fi
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11434 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11435 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11436   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11437 else
11438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11439 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11440 if ${ac_cv_lib_svld_dlopen+:} false; then :
11441   $as_echo_n "(cached) " >&6
11442 else
11443   ac_check_lib_save_LIBS=$LIBS
11444 LIBS="-lsvld  $LIBS"
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h.  */
11447
11448 /* Override any GCC internal prototype to avoid an error.
11449    Use char because int might match the return type of a GCC
11450    builtin and then its argument prototype would still apply.  */
11451 #ifdef __cplusplus
11452 extern "C"
11453 #endif
11454 char dlopen ();
11455 int
11456 main ()
11457 {
11458 return dlopen ();
11459   ;
11460   return 0;
11461 }
11462 _ACEOF
11463 if ac_fn_c_try_link "$LINENO"; then :
11464   ac_cv_lib_svld_dlopen=yes
11465 else
11466   ac_cv_lib_svld_dlopen=no
11467 fi
11468 rm -f core conftest.err conftest.$ac_objext \
11469     conftest$ac_exeext conftest.$ac_ext
11470 LIBS=$ac_check_lib_save_LIBS
11471 fi
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11473 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11474 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11475   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11476 else
11477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11478 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11479 if ${ac_cv_lib_dld_dld_link+:} false; then :
11480   $as_echo_n "(cached) " >&6
11481 else
11482   ac_check_lib_save_LIBS=$LIBS
11483 LIBS="-ldld  $LIBS"
11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h.  */
11486
11487 /* Override any GCC internal prototype to avoid an error.
11488    Use char because int might match the return type of a GCC
11489    builtin and then its argument prototype would still apply.  */
11490 #ifdef __cplusplus
11491 extern "C"
11492 #endif
11493 char dld_link ();
11494 int
11495 main ()
11496 {
11497 return dld_link ();
11498   ;
11499   return 0;
11500 }
11501 _ACEOF
11502 if ac_fn_c_try_link "$LINENO"; then :
11503   ac_cv_lib_dld_dld_link=yes
11504 else
11505   ac_cv_lib_dld_dld_link=no
11506 fi
11507 rm -f core conftest.err conftest.$ac_objext \
11508     conftest$ac_exeext conftest.$ac_ext
11509 LIBS=$ac_check_lib_save_LIBS
11510 fi
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11512 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11513 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11514   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11515 fi
11516
11517
11518 fi
11519
11520
11521 fi
11522
11523
11524 fi
11525
11526
11527 fi
11528
11529
11530 fi
11531
11532     ;;
11533   esac
11534
11535   if test "x$lt_cv_dlopen" != xno; then
11536     enable_dlopen=yes
11537   else
11538     enable_dlopen=no
11539   fi
11540
11541   case $lt_cv_dlopen in
11542   dlopen)
11543     save_CPPFLAGS="$CPPFLAGS"
11544     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11545
11546     save_LDFLAGS="$LDFLAGS"
11547     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11548
11549     save_LIBS="$LIBS"
11550     LIBS="$lt_cv_dlopen_libs $LIBS"
11551
11552     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11553 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11554 if ${lt_cv_dlopen_self+:} false; then :
11555   $as_echo_n "(cached) " >&6
11556 else
11557           if test "$cross_compiling" = yes; then :
11558   lt_cv_dlopen_self=cross
11559 else
11560   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11561   lt_status=$lt_dlunknown
11562   cat > conftest.$ac_ext <<_LT_EOF
11563 #line 11563 "configure"
11564 #include "confdefs.h"
11565
11566 #if HAVE_DLFCN_H
11567 #include <dlfcn.h>
11568 #endif
11569
11570 #include <stdio.h>
11571
11572 #ifdef RTLD_GLOBAL
11573 #  define LT_DLGLOBAL           RTLD_GLOBAL
11574 #else
11575 #  ifdef DL_GLOBAL
11576 #    define LT_DLGLOBAL         DL_GLOBAL
11577 #  else
11578 #    define LT_DLGLOBAL         0
11579 #  endif
11580 #endif
11581
11582 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11583    find out it does not work in some platform. */
11584 #ifndef LT_DLLAZY_OR_NOW
11585 #  ifdef RTLD_LAZY
11586 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11587 #  else
11588 #    ifdef DL_LAZY
11589 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11590 #    else
11591 #      ifdef RTLD_NOW
11592 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11593 #      else
11594 #        ifdef DL_NOW
11595 #          define LT_DLLAZY_OR_NOW      DL_NOW
11596 #        else
11597 #          define LT_DLLAZY_OR_NOW      0
11598 #        endif
11599 #      endif
11600 #    endif
11601 #  endif
11602 #endif
11603
11604 void fnord() { int i=42;}
11605 int main ()
11606 {
11607   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11608   int status = $lt_dlunknown;
11609
11610   if (self)
11611     {
11612       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11613       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11614       /* dlclose (self); */
11615     }
11616   else
11617     puts (dlerror ());
11618
11619   return status;
11620 }
11621 _LT_EOF
11622   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11623   (eval $ac_link) 2>&5
11624   ac_status=$?
11625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11626   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11627     (./conftest; exit; ) >&5 2>/dev/null
11628     lt_status=$?
11629     case x$lt_status in
11630       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11631       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11632       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11633     esac
11634   else :
11635     # compilation failed
11636     lt_cv_dlopen_self=no
11637   fi
11638 fi
11639 rm -fr conftest*
11640
11641
11642 fi
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11644 $as_echo "$lt_cv_dlopen_self" >&6; }
11645
11646     if test "x$lt_cv_dlopen_self" = xyes; then
11647       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11648       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11649 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11650 if ${lt_cv_dlopen_self_static+:} false; then :
11651   $as_echo_n "(cached) " >&6
11652 else
11653           if test "$cross_compiling" = yes; then :
11654   lt_cv_dlopen_self_static=cross
11655 else
11656   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11657   lt_status=$lt_dlunknown
11658   cat > conftest.$ac_ext <<_LT_EOF
11659 #line 11659 "configure"
11660 #include "confdefs.h"
11661
11662 #if HAVE_DLFCN_H
11663 #include <dlfcn.h>
11664 #endif
11665
11666 #include <stdio.h>
11667
11668 #ifdef RTLD_GLOBAL
11669 #  define LT_DLGLOBAL           RTLD_GLOBAL
11670 #else
11671 #  ifdef DL_GLOBAL
11672 #    define LT_DLGLOBAL         DL_GLOBAL
11673 #  else
11674 #    define LT_DLGLOBAL         0
11675 #  endif
11676 #endif
11677
11678 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11679    find out it does not work in some platform. */
11680 #ifndef LT_DLLAZY_OR_NOW
11681 #  ifdef RTLD_LAZY
11682 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11683 #  else
11684 #    ifdef DL_LAZY
11685 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11686 #    else
11687 #      ifdef RTLD_NOW
11688 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11689 #      else
11690 #        ifdef DL_NOW
11691 #          define LT_DLLAZY_OR_NOW      DL_NOW
11692 #        else
11693 #          define LT_DLLAZY_OR_NOW      0
11694 #        endif
11695 #      endif
11696 #    endif
11697 #  endif
11698 #endif
11699
11700 void fnord() { int i=42;}
11701 int main ()
11702 {
11703   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11704   int status = $lt_dlunknown;
11705
11706   if (self)
11707     {
11708       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11709       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11710       /* dlclose (self); */
11711     }
11712   else
11713     puts (dlerror ());
11714
11715   return status;
11716 }
11717 _LT_EOF
11718   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11719   (eval $ac_link) 2>&5
11720   ac_status=$?
11721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11722   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11723     (./conftest; exit; ) >&5 2>/dev/null
11724     lt_status=$?
11725     case x$lt_status in
11726       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11727       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11728       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11729     esac
11730   else :
11731     # compilation failed
11732     lt_cv_dlopen_self_static=no
11733   fi
11734 fi
11735 rm -fr conftest*
11736
11737
11738 fi
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11740 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11741     fi
11742
11743     CPPFLAGS="$save_CPPFLAGS"
11744     LDFLAGS="$save_LDFLAGS"
11745     LIBS="$save_LIBS"
11746     ;;
11747   esac
11748
11749   case $lt_cv_dlopen_self in
11750   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11751   *) enable_dlopen_self=unknown ;;
11752   esac
11753
11754   case $lt_cv_dlopen_self_static in
11755   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11756   *) enable_dlopen_self_static=unknown ;;
11757   esac
11758 fi
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776 striplib=
11777 old_striplib=
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11779 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11780 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11781   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11782   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11784 $as_echo "yes" >&6; }
11785 else
11786 # FIXME - insert some real tests, host_os isn't really good enough
11787   case $host_os in
11788   darwin*)
11789     if test -n "$STRIP" ; then
11790       striplib="$STRIP -x"
11791       old_striplib="$STRIP -S"
11792       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11793 $as_echo "yes" >&6; }
11794     else
11795       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11797     fi
11798     ;;
11799   *)
11800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 $as_echo "no" >&6; }
11802     ;;
11803   esac
11804 fi
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817   # Report which library types will actually be built
11818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11819 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11821 $as_echo "$can_build_shared" >&6; }
11822
11823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11824 $as_echo_n "checking whether to build shared libraries... " >&6; }
11825   test "$can_build_shared" = "no" && enable_shared=no
11826
11827   # On AIX, shared libraries and static libraries use the same namespace, and
11828   # are all built from PIC.
11829   case $host_os in
11830   aix3*)
11831     test "$enable_shared" = yes && enable_static=no
11832     if test -n "$RANLIB"; then
11833       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11834       postinstall_cmds='$RANLIB $lib'
11835     fi
11836     ;;
11837
11838   aix[4-9]*)
11839     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11840       test "$enable_shared" = yes && enable_static=no
11841     fi
11842     ;;
11843   esac
11844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11845 $as_echo "$enable_shared" >&6; }
11846
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11848 $as_echo_n "checking whether to build static libraries... " >&6; }
11849   # Make sure either enable_shared or enable_static is yes.
11850   test "$enable_shared" = yes || enable_static=yes
11851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11852 $as_echo "$enable_static" >&6; }
11853
11854
11855
11856
11857 fi
11858 ac_ext=cpp
11859 ac_cpp='$CXXCPP $CPPFLAGS'
11860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11863
11864 CC="$lt_save_CC"
11865
11866
11867 ac_ext=cpp
11868 ac_cpp='$CXXCPP $CPPFLAGS'
11869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11872
11873 archive_cmds_need_lc_CXX=no
11874 allow_undefined_flag_CXX=
11875 always_export_symbols_CXX=no
11876 archive_expsym_cmds_CXX=
11877 compiler_needs_object_CXX=no
11878 export_dynamic_flag_spec_CXX=
11879 hardcode_direct_CXX=no
11880 hardcode_direct_absolute_CXX=no
11881 hardcode_libdir_flag_spec_CXX=
11882 hardcode_libdir_flag_spec_ld_CXX=
11883 hardcode_libdir_separator_CXX=
11884 hardcode_minus_L_CXX=no
11885 hardcode_shlibpath_var_CXX=unsupported
11886 hardcode_automatic_CXX=no
11887 inherit_rpath_CXX=no
11888 module_cmds_CXX=
11889 module_expsym_cmds_CXX=
11890 link_all_deplibs_CXX=unknown
11891 old_archive_cmds_CXX=$old_archive_cmds
11892 no_undefined_flag_CXX=
11893 whole_archive_flag_spec_CXX=
11894 enable_shared_with_static_runtimes_CXX=no
11895
11896 # Source file extension for C++ test sources.
11897 ac_ext=cpp
11898
11899 # Object file extension for compiled C++ test sources.
11900 objext=o
11901 objext_CXX=$objext
11902
11903 # No sense in running all these tests if we already determined that
11904 # the CXX compiler isn't working.  Some variables (like enable_shared)
11905 # are currently assumed to apply to all compilers on this platform,
11906 # and will be corrupted by setting them based on a non-working compiler.
11907 if test "$_lt_caught_CXX_error" != yes; then
11908   # Code to be used in simple compile tests
11909   lt_simple_compile_test_code="int some_variable = 0;"
11910
11911   # Code to be used in simple link tests
11912   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11913
11914   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11915
11916
11917
11918
11919
11920
11921 # If no C compiler was specified, use CC.
11922 LTCC=${LTCC-"$CC"}
11923
11924 # If no C compiler flags were specified, use CFLAGS.
11925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11926
11927 # Allow CC to be a program name with arguments.
11928 compiler=$CC
11929
11930
11931   # save warnings/boilerplate of simple test code
11932   ac_outfile=conftest.$ac_objext
11933 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11935 _lt_compiler_boilerplate=`cat conftest.err`
11936 $RM conftest*
11937
11938   ac_outfile=conftest.$ac_objext
11939 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11940 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11941 _lt_linker_boilerplate=`cat conftest.err`
11942 $RM -r conftest*
11943
11944
11945   # Allow CC to be a program name with arguments.
11946   lt_save_CC=$CC
11947   lt_save_LD=$LD
11948   lt_save_GCC=$GCC
11949   GCC=$GXX
11950   lt_save_with_gnu_ld=$with_gnu_ld
11951   lt_save_path_LD=$lt_cv_path_LD
11952   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11953     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11954   else
11955     $as_unset lt_cv_prog_gnu_ld
11956   fi
11957   if test -n "${lt_cv_path_LDCXX+set}"; then
11958     lt_cv_path_LD=$lt_cv_path_LDCXX
11959   else
11960     $as_unset lt_cv_path_LD
11961   fi
11962   test -z "${LDCXX+set}" || LD=$LDCXX
11963   CC=${CXX-"c++"}
11964   compiler=$CC
11965   compiler_CXX=$CC
11966   for cc_temp in $compiler""; do
11967   case $cc_temp in
11968     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11969     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11970     \-*) ;;
11971     *) break;;
11972   esac
11973 done
11974 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11975
11976
11977   if test -n "$compiler"; then
11978     # We don't want -fno-exception when compiling C++ code, so set the
11979     # no_builtin_flag separately
11980     if test "$GXX" = yes; then
11981       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11982     else
11983       lt_prog_compiler_no_builtin_flag_CXX=
11984     fi
11985
11986     if test "$GXX" = yes; then
11987       # Set up default GNU C++ configuration
11988
11989
11990
11991 # Check whether --with-gnu-ld was given.
11992 if test "${with_gnu_ld+set}" = set; then :
11993   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11994 else
11995   with_gnu_ld=no
11996 fi
11997
11998 ac_prog=ld
11999 if test "$GCC" = yes; then
12000   # Check if gcc -print-prog-name=ld gives a path.
12001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12002 $as_echo_n "checking for ld used by $CC... " >&6; }
12003   case $host in
12004   *-*-mingw*)
12005     # gcc leaves a trailing carriage return which upsets mingw
12006     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12007   *)
12008     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12009   esac
12010   case $ac_prog in
12011     # Accept absolute paths.
12012     [\\/]* | ?:[\\/]*)
12013       re_direlt='/[^/][^/]*/\.\./'
12014       # Canonicalize the pathname of ld
12015       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12016       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12017         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12018       done
12019       test -z "$LD" && LD="$ac_prog"
12020       ;;
12021   "")
12022     # If it fails, then pretend we aren't using GCC.
12023     ac_prog=ld
12024     ;;
12025   *)
12026     # If it is relative, then search for the first ld in PATH.
12027     with_gnu_ld=unknown
12028     ;;
12029   esac
12030 elif test "$with_gnu_ld" = yes; then
12031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12032 $as_echo_n "checking for GNU ld... " >&6; }
12033 else
12034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12035 $as_echo_n "checking for non-GNU ld... " >&6; }
12036 fi
12037 if ${lt_cv_path_LD+:} false; then :
12038   $as_echo_n "(cached) " >&6
12039 else
12040   if test -z "$LD"; then
12041   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12042   for ac_dir in $PATH; do
12043     IFS="$lt_save_ifs"
12044     test -z "$ac_dir" && ac_dir=.
12045     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12046       lt_cv_path_LD="$ac_dir/$ac_prog"
12047       # Check to see if the program is GNU ld.  I'd rather use --version,
12048       # but apparently some variants of GNU ld only accept -v.
12049       # Break only if it was the GNU/non-GNU ld that we prefer.
12050       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12051       *GNU* | *'with BFD'*)
12052         test "$with_gnu_ld" != no && break
12053         ;;
12054       *)
12055         test "$with_gnu_ld" != yes && break
12056         ;;
12057       esac
12058     fi
12059   done
12060   IFS="$lt_save_ifs"
12061 else
12062   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12063 fi
12064 fi
12065
12066 LD="$lt_cv_path_LD"
12067 if test -n "$LD"; then
12068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12069 $as_echo "$LD" >&6; }
12070 else
12071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072 $as_echo "no" >&6; }
12073 fi
12074 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12076 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12077 if ${lt_cv_prog_gnu_ld+:} false; then :
12078   $as_echo_n "(cached) " >&6
12079 else
12080   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12081 case `$LD -v 2>&1 </dev/null` in
12082 *GNU* | *'with BFD'*)
12083   lt_cv_prog_gnu_ld=yes
12084   ;;
12085 *)
12086   lt_cv_prog_gnu_ld=no
12087   ;;
12088 esac
12089 fi
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12091 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12092 with_gnu_ld=$lt_cv_prog_gnu_ld
12093
12094
12095
12096
12097
12098
12099
12100       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12101       # archiving commands below assume that GNU ld is being used.
12102       if test "$with_gnu_ld" = yes; then
12103         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12104         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'
12105
12106         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12107         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12108
12109         # If archive_cmds runs LD, not CC, wlarc should be empty
12110         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12111         #     investigate it a little bit more. (MM)
12112         wlarc='${wl}'
12113
12114         # ancient GNU ld didn't support --whole-archive et. al.
12115         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12116           $GREP 'no-whole-archive' > /dev/null; then
12117           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12118         else
12119           whole_archive_flag_spec_CXX=
12120         fi
12121       else
12122         with_gnu_ld=no
12123         wlarc=
12124
12125         # A generic and very simple default shared library creation
12126         # command for GNU C++ for the case where it uses the native
12127         # linker, instead of GNU ld.  If possible, this setting should
12128         # overridden to take advantage of the native linker features on
12129         # the platform it is being used on.
12130         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12131       fi
12132
12133       # Commands to make compiler produce verbose output that lists
12134       # what "hidden" libraries, object files and flags are used when
12135       # linking a shared library.
12136       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12137
12138     else
12139       GXX=no
12140       with_gnu_ld=no
12141       wlarc=
12142     fi
12143
12144     # PORTME: fill in a description of your system's C++ link characteristics
12145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12146 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12147     ld_shlibs_CXX=yes
12148     case $host_os in
12149       aix3*)
12150         # FIXME: insert proper C++ library support
12151         ld_shlibs_CXX=no
12152         ;;
12153       aix[4-9]*)
12154         if test "$host_cpu" = ia64; then
12155           # On IA64, the linker does run time linking by default, so we don't
12156           # have to do anything special.
12157           aix_use_runtimelinking=no
12158           exp_sym_flag='-Bexport'
12159           no_entry_flag=""
12160         else
12161           aix_use_runtimelinking=no
12162
12163           # Test if we are trying to use run time linking or normal
12164           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12165           # need to do runtime linking.
12166           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12167             for ld_flag in $LDFLAGS; do
12168               case $ld_flag in
12169               *-brtl*)
12170                 aix_use_runtimelinking=yes
12171                 break
12172                 ;;
12173               esac
12174             done
12175             ;;
12176           esac
12177
12178           exp_sym_flag='-bexport'
12179           no_entry_flag='-bnoentry'
12180         fi
12181
12182         # When large executables or shared objects are built, AIX ld can
12183         # have problems creating the table of contents.  If linking a library
12184         # or program results in "error TOC overflow" add -mminimal-toc to
12185         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12186         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12187
12188         archive_cmds_CXX=''
12189         hardcode_direct_CXX=yes
12190         hardcode_direct_absolute_CXX=yes
12191         hardcode_libdir_separator_CXX=':'
12192         link_all_deplibs_CXX=yes
12193         file_list_spec_CXX='${wl}-f,'
12194
12195         if test "$GXX" = yes; then
12196           case $host_os in aix4.[012]|aix4.[012].*)
12197           # We only want to do this on AIX 4.2 and lower, the check
12198           # below for broken collect2 doesn't work under 4.3+
12199           collect2name=`${CC} -print-prog-name=collect2`
12200           if test -f "$collect2name" &&
12201              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12202           then
12203             # We have reworked collect2
12204             :
12205           else
12206             # We have old collect2
12207             hardcode_direct_CXX=unsupported
12208             # It fails to find uninstalled libraries when the uninstalled
12209             # path is not listed in the libpath.  Setting hardcode_minus_L
12210             # to unsupported forces relinking
12211             hardcode_minus_L_CXX=yes
12212             hardcode_libdir_flag_spec_CXX='-L$libdir'
12213             hardcode_libdir_separator_CXX=
12214           fi
12215           esac
12216           shared_flag='-shared'
12217           if test "$aix_use_runtimelinking" = yes; then
12218             shared_flag="$shared_flag "'${wl}-G'
12219           fi
12220         else
12221           # not using gcc
12222           if test "$host_cpu" = ia64; then
12223           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12224           # chokes on -Wl,-G. The following line is correct:
12225           shared_flag='-G'
12226           else
12227             if test "$aix_use_runtimelinking" = yes; then
12228               shared_flag='${wl}-G'
12229             else
12230               shared_flag='${wl}-bM:SRE'
12231             fi
12232           fi
12233         fi
12234
12235         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12236         # It seems that -bexpall does not export symbols beginning with
12237         # underscore (_), so it is better to generate a list of symbols to
12238         # export.
12239         always_export_symbols_CXX=yes
12240         if test "$aix_use_runtimelinking" = yes; then
12241           # Warning - without using the other runtime loading flags (-brtl),
12242           # -berok will link without error, but may produce a broken library.
12243           allow_undefined_flag_CXX='-berok'
12244           # Determine the default libpath from the value encoded in an empty
12245           # executable.
12246           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h.  */
12248
12249 int
12250 main ()
12251 {
12252
12253   ;
12254   return 0;
12255 }
12256 _ACEOF
12257 if ac_fn_cxx_try_link "$LINENO"; then :
12258
12259 lt_aix_libpath_sed='
12260     /Import File Strings/,/^$/ {
12261         /^0/ {
12262             s/^0  *\(.*\)$/\1/
12263             p
12264         }
12265     }'
12266 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12267 # Check for a 64-bit object if we didn't find anything.
12268 if test -z "$aix_libpath"; then
12269   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12270 fi
12271 fi
12272 rm -f core conftest.err conftest.$ac_objext \
12273     conftest$ac_exeext conftest.$ac_ext
12274 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12275
12276           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12277
12278           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"
12279         else
12280           if test "$host_cpu" = ia64; then
12281             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12282             allow_undefined_flag_CXX="-z nodefs"
12283             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"
12284           else
12285             # Determine the default libpath from the value encoded in an
12286             # empty executable.
12287             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h.  */
12289
12290 int
12291 main ()
12292 {
12293
12294   ;
12295   return 0;
12296 }
12297 _ACEOF
12298 if ac_fn_cxx_try_link "$LINENO"; then :
12299
12300 lt_aix_libpath_sed='
12301     /Import File Strings/,/^$/ {
12302         /^0/ {
12303             s/^0  *\(.*\)$/\1/
12304             p
12305         }
12306     }'
12307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12308 # Check for a 64-bit object if we didn't find anything.
12309 if test -z "$aix_libpath"; then
12310   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12311 fi
12312 fi
12313 rm -f core conftest.err conftest.$ac_objext \
12314     conftest$ac_exeext conftest.$ac_ext
12315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12316
12317             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12318             # Warning - without using the other run time loading flags,
12319             # -berok will link without error, but may produce a broken library.
12320             no_undefined_flag_CXX=' ${wl}-bernotok'
12321             allow_undefined_flag_CXX=' ${wl}-berok'
12322             # Exported symbols can be pulled into shared objects from archives
12323             whole_archive_flag_spec_CXX='$convenience'
12324             archive_cmds_need_lc_CXX=yes
12325             # This is similar to how AIX traditionally builds its shared
12326             # libraries.
12327             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'
12328           fi
12329         fi
12330         ;;
12331
12332       beos*)
12333         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12334           allow_undefined_flag_CXX=unsupported
12335           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12336           # support --undefined.  This deserves some investigation.  FIXME
12337           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12338         else
12339           ld_shlibs_CXX=no
12340         fi
12341         ;;
12342
12343       chorus*)
12344         case $cc_basename in
12345           *)
12346           # FIXME: insert proper C++ library support
12347           ld_shlibs_CXX=no
12348           ;;
12349         esac
12350         ;;
12351
12352       cygwin* | mingw* | pw32* | cegcc*)
12353         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12354         # as there is no search path for DLLs.
12355         hardcode_libdir_flag_spec_CXX='-L$libdir'
12356         allow_undefined_flag_CXX=unsupported
12357         always_export_symbols_CXX=no
12358         enable_shared_with_static_runtimes_CXX=yes
12359
12360         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12361           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'
12362           # If the export-symbols file already is a .def file (1st line
12363           # is EXPORTS), use it as is; otherwise, prepend...
12364           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12365             cp $export_symbols $output_objdir/$soname.def;
12366           else
12367             echo EXPORTS > $output_objdir/$soname.def;
12368             cat $export_symbols >> $output_objdir/$soname.def;
12369           fi~
12370           $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'
12371         else
12372           ld_shlibs_CXX=no
12373         fi
12374         ;;
12375       darwin* | rhapsody*)
12376
12377
12378   archive_cmds_need_lc_CXX=no
12379   hardcode_direct_CXX=no
12380   hardcode_automatic_CXX=yes
12381   hardcode_shlibpath_var_CXX=unsupported
12382   whole_archive_flag_spec_CXX=''
12383   link_all_deplibs_CXX=yes
12384   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12385   case $cc_basename in
12386      ifort*) _lt_dar_can_shared=yes ;;
12387      *) _lt_dar_can_shared=$GCC ;;
12388   esac
12389   if test "$_lt_dar_can_shared" = "yes"; then
12390     output_verbose_link_cmd=echo
12391     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}"
12392     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12393     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}"
12394     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}"
12395        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12396       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}"
12397       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}"
12398     fi
12399
12400   else
12401   ld_shlibs_CXX=no
12402   fi
12403
12404         ;;
12405
12406       dgux*)
12407         case $cc_basename in
12408           ec++*)
12409             # FIXME: insert proper C++ library support
12410             ld_shlibs_CXX=no
12411             ;;
12412           ghcx*)
12413             # Green Hills C++ Compiler
12414             # FIXME: insert proper C++ library support
12415             ld_shlibs_CXX=no
12416             ;;
12417           *)
12418             # FIXME: insert proper C++ library support
12419             ld_shlibs_CXX=no
12420             ;;
12421         esac
12422         ;;
12423
12424       freebsd[12]*)
12425         # C++ shared libraries reported to be fairly broken before
12426         # switch to ELF
12427         ld_shlibs_CXX=no
12428         ;;
12429
12430       freebsd-elf*)
12431         archive_cmds_need_lc_CXX=no
12432         ;;
12433
12434       freebsd* | dragonfly*)
12435         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12436         # conventions
12437         ld_shlibs_CXX=yes
12438         ;;
12439
12440       gnu*)
12441         ;;
12442
12443       hpux9*)
12444         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12445         hardcode_libdir_separator_CXX=:
12446         export_dynamic_flag_spec_CXX='${wl}-E'
12447         hardcode_direct_CXX=yes
12448         hardcode_minus_L_CXX=yes # Not in the search PATH,
12449                                              # but as the default
12450                                              # location of the library.
12451
12452         case $cc_basename in
12453           CC*)
12454             # FIXME: insert proper C++ library support
12455             ld_shlibs_CXX=no
12456             ;;
12457           aCC*)
12458             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'
12459             # Commands to make compiler produce verbose output that lists
12460             # what "hidden" libraries, object files and flags are used when
12461             # linking a shared library.
12462             #
12463             # There doesn't appear to be a way to prevent this compiler from
12464             # explicitly linking system object files so we need to strip them
12465             # from the output so that they don't get included in the library
12466             # dependencies.
12467             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'
12468             ;;
12469           *)
12470             if test "$GXX" = yes; then
12471               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'
12472             else
12473               # FIXME: insert proper C++ library support
12474               ld_shlibs_CXX=no
12475             fi
12476             ;;
12477         esac
12478         ;;
12479
12480       hpux10*|hpux11*)
12481         if test $with_gnu_ld = no; then
12482           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12483           hardcode_libdir_separator_CXX=:
12484
12485           case $host_cpu in
12486             hppa*64*|ia64*)
12487               ;;
12488             *)
12489               export_dynamic_flag_spec_CXX='${wl}-E'
12490               ;;
12491           esac
12492         fi
12493         case $host_cpu in
12494           hppa*64*|ia64*)
12495             hardcode_direct_CXX=no
12496             hardcode_shlibpath_var_CXX=no
12497             ;;
12498           *)
12499             hardcode_direct_CXX=yes
12500             hardcode_direct_absolute_CXX=yes
12501             hardcode_minus_L_CXX=yes # Not in the search PATH,
12502                                                  # but as the default
12503                                                  # location of the library.
12504             ;;
12505         esac
12506
12507         case $cc_basename in
12508           CC*)
12509             # FIXME: insert proper C++ library support
12510             ld_shlibs_CXX=no
12511             ;;
12512           aCC*)
12513             case $host_cpu in
12514               hppa*64*)
12515                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12516                 ;;
12517               ia64*)
12518                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12519                 ;;
12520               *)
12521                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12522                 ;;
12523             esac
12524             # Commands to make compiler produce verbose output that lists
12525             # what "hidden" libraries, object files and flags are used when
12526             # linking a shared library.
12527             #
12528             # There doesn't appear to be a way to prevent this compiler from
12529             # explicitly linking system object files so we need to strip them
12530             # from the output so that they don't get included in the library
12531             # dependencies.
12532             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'
12533             ;;
12534           *)
12535             if test "$GXX" = yes; then
12536               if test $with_gnu_ld = no; then
12537                 case $host_cpu in
12538                   hppa*64*)
12539                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12540                     ;;
12541                   ia64*)
12542                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12543                     ;;
12544                   *)
12545                     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'
12546                     ;;
12547                 esac
12548               fi
12549             else
12550               # FIXME: insert proper C++ library support
12551               ld_shlibs_CXX=no
12552             fi
12553             ;;
12554         esac
12555         ;;
12556
12557       interix[3-9]*)
12558         hardcode_direct_CXX=no
12559         hardcode_shlibpath_var_CXX=no
12560         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12561         export_dynamic_flag_spec_CXX='${wl}-E'
12562         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12563         # Instead, shared libraries are loaded at an image base (0x10000000 by
12564         # default) and relocated if they conflict, which is a slow very memory
12565         # consuming and fragmenting process.  To avoid this, we pick a random,
12566         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12567         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12568         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'
12569         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'
12570         ;;
12571       irix5* | irix6*)
12572         case $cc_basename in
12573           CC*)
12574             # SGI C++
12575             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'
12576
12577             # Archives containing C++ object files must be created using
12578             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12579             # necessary to make sure instantiated templates are included
12580             # in the archive.
12581             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12582             ;;
12583           *)
12584             if test "$GXX" = yes; then
12585               if test "$with_gnu_ld" = no; then
12586                 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'
12587               else
12588                 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'
12589               fi
12590             fi
12591             link_all_deplibs_CXX=yes
12592             ;;
12593         esac
12594         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12595         hardcode_libdir_separator_CXX=:
12596         inherit_rpath_CXX=yes
12597         ;;
12598
12599       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12600         case $cc_basename in
12601           KCC*)
12602             # Kuck and Associates, Inc. (KAI) C++ Compiler
12603
12604             # KCC will only create a shared library if the output file
12605             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12606             # to its proper name (with version) after linking.
12607             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'
12608             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'
12609             # Commands to make compiler produce verbose output that lists
12610             # what "hidden" libraries, object files and flags are used when
12611             # linking a shared library.
12612             #
12613             # There doesn't appear to be a way to prevent this compiler from
12614             # explicitly linking system object files so we need to strip them
12615             # from the output so that they don't get included in the library
12616             # dependencies.
12617             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'
12618
12619             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12620             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12621
12622             # Archives containing C++ object files must be created using
12623             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12624             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12625             ;;
12626           icpc* | ecpc* )
12627             # Intel C++
12628             with_gnu_ld=yes
12629             # version 8.0 and above of icpc choke on multiply defined symbols
12630             # if we add $predep_objects and $postdep_objects, however 7.1 and
12631             # earlier do not add the objects themselves.
12632             case `$CC -V 2>&1` in
12633               *"Version 7."*)
12634                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12635                 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'
12636                 ;;
12637               *)  # Version 8.0 or newer
12638                 tmp_idyn=
12639                 case $host_cpu in
12640                   ia64*) tmp_idyn=' -i_dynamic';;
12641                 esac
12642                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12643                 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'
12644                 ;;
12645             esac
12646             archive_cmds_need_lc_CXX=no
12647             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12648             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12649             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12650             ;;
12651           pgCC* | pgcpp*)
12652             # Portland Group C++ compiler
12653             case `$CC -V` in
12654             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12655               prelink_cmds_CXX='tpldir=Template.dir~
12656                 rm -rf $tpldir~
12657                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12658                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12659               old_archive_cmds_CXX='tpldir=Template.dir~
12660                 rm -rf $tpldir~
12661                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12662                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12663                 $RANLIB $oldlib'
12664               archive_cmds_CXX='tpldir=Template.dir~
12665                 rm -rf $tpldir~
12666                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12667                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12668               archive_expsym_cmds_CXX='tpldir=Template.dir~
12669                 rm -rf $tpldir~
12670                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12671                 $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'
12672               ;;
12673             *) # Version 6 will use weak symbols
12674               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12675               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'
12676               ;;
12677             esac
12678
12679             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12680             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12681             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'
12682             ;;
12683           cxx*)
12684             # Compaq C++
12685             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12686             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'
12687
12688             runpath_var=LD_RUN_PATH
12689             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12690             hardcode_libdir_separator_CXX=:
12691
12692             # Commands to make compiler produce verbose output that lists
12693             # what "hidden" libraries, object files and flags are used when
12694             # linking a shared library.
12695             #
12696             # There doesn't appear to be a way to prevent this compiler from
12697             # explicitly linking system object files so we need to strip them
12698             # from the output so that they don't get included in the library
12699             # dependencies.
12700             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'
12701             ;;
12702           xl*)
12703             # IBM XL 8.0 on PPC, with GNU ld
12704             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12705             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12706             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12707             if test "x$supports_anon_versioning" = xyes; then
12708               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12709                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12710                 echo "local: *; };" >> $output_objdir/$libname.ver~
12711                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12712             fi
12713             ;;
12714           *)
12715             case `$CC -V 2>&1 | sed 5q` in
12716             *Sun\ C*)
12717               # Sun C++ 5.9
12718               no_undefined_flag_CXX=' -zdefs'
12719               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12720               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'
12721               hardcode_libdir_flag_spec_CXX='-R$libdir'
12722               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'
12723               compiler_needs_object_CXX=yes
12724
12725               # Not sure whether something based on
12726               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12727               # would be better.
12728               output_verbose_link_cmd='echo'
12729
12730               # Archives containing C++ object files must be created using
12731               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12732               # necessary to make sure instantiated templates are included
12733               # in the archive.
12734               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12735               ;;
12736             esac
12737             ;;
12738         esac
12739         ;;
12740
12741       lynxos*)
12742         # FIXME: insert proper C++ library support
12743         ld_shlibs_CXX=no
12744         ;;
12745
12746       m88k*)
12747         # FIXME: insert proper C++ library support
12748         ld_shlibs_CXX=no
12749         ;;
12750
12751       mvs*)
12752         case $cc_basename in
12753           cxx*)
12754             # FIXME: insert proper C++ library support
12755             ld_shlibs_CXX=no
12756             ;;
12757           *)
12758             # FIXME: insert proper C++ library support
12759             ld_shlibs_CXX=no
12760             ;;
12761         esac
12762         ;;
12763
12764       netbsd*)
12765         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12766           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12767           wlarc=
12768           hardcode_libdir_flag_spec_CXX='-R$libdir'
12769           hardcode_direct_CXX=yes
12770           hardcode_shlibpath_var_CXX=no
12771         fi
12772         # Workaround some broken pre-1.5 toolchains
12773         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12774         ;;
12775
12776       *nto* | *qnx*)
12777         ld_shlibs_CXX=yes
12778         ;;
12779
12780       openbsd2*)
12781         # C++ shared libraries are fairly broken
12782         ld_shlibs_CXX=no
12783         ;;
12784
12785       openbsd*)
12786         if test -f /usr/libexec/ld.so; then
12787           hardcode_direct_CXX=yes
12788           hardcode_shlibpath_var_CXX=no
12789           hardcode_direct_absolute_CXX=yes
12790           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12791           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12792           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12793             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12794             export_dynamic_flag_spec_CXX='${wl}-E'
12795             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12796           fi
12797           output_verbose_link_cmd=echo
12798         else
12799           ld_shlibs_CXX=no
12800         fi
12801         ;;
12802
12803       osf3* | osf4* | osf5*)
12804         case $cc_basename in
12805           KCC*)
12806             # Kuck and Associates, Inc. (KAI) C++ Compiler
12807
12808             # KCC will only create a shared library if the output file
12809             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12810             # to its proper name (with version) after linking.
12811             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'
12812
12813             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12814             hardcode_libdir_separator_CXX=:
12815
12816             # Archives containing C++ object files must be created using
12817             # the KAI C++ compiler.
12818             case $host in
12819               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12820               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12821             esac
12822             ;;
12823           RCC*)
12824             # Rational C++ 2.4.1
12825             # FIXME: insert proper C++ library support
12826             ld_shlibs_CXX=no
12827             ;;
12828           cxx*)
12829             case $host in
12830               osf3*)
12831                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12832                 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'
12833                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12834                 ;;
12835               *)
12836                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12837                 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'
12838                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12839                   echo "-hidden">> $lib.exp~
12840                   $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~
12841                   $RM $lib.exp'
12842                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12843                 ;;
12844             esac
12845
12846             hardcode_libdir_separator_CXX=:
12847
12848             # Commands to make compiler produce verbose output that lists
12849             # what "hidden" libraries, object files and flags are used when
12850             # linking a shared library.
12851             #
12852             # There doesn't appear to be a way to prevent this compiler from
12853             # explicitly linking system object files so we need to strip them
12854             # from the output so that they don't get included in the library
12855             # dependencies.
12856             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'
12857             ;;
12858           *)
12859             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12860               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12861               case $host in
12862                 osf3*)
12863                   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'
12864                   ;;
12865                 *)
12866                   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'
12867                   ;;
12868               esac
12869
12870               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12871               hardcode_libdir_separator_CXX=:
12872
12873               # Commands to make compiler produce verbose output that lists
12874               # what "hidden" libraries, object files and flags are used when
12875               # linking a shared library.
12876               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12877
12878             else
12879               # FIXME: insert proper C++ library support
12880               ld_shlibs_CXX=no
12881             fi
12882             ;;
12883         esac
12884         ;;
12885
12886       psos*)
12887         # FIXME: insert proper C++ library support
12888         ld_shlibs_CXX=no
12889         ;;
12890
12891       sunos4*)
12892         case $cc_basename in
12893           CC*)
12894             # Sun C++ 4.x
12895             # FIXME: insert proper C++ library support
12896             ld_shlibs_CXX=no
12897             ;;
12898           lcc*)
12899             # Lucid
12900             # FIXME: insert proper C++ library support
12901             ld_shlibs_CXX=no
12902             ;;
12903           *)
12904             # FIXME: insert proper C++ library support
12905             ld_shlibs_CXX=no
12906             ;;
12907         esac
12908         ;;
12909
12910       solaris*)
12911         case $cc_basename in
12912           CC*)
12913             # Sun C++ 4.2, 5.x and Centerline C++
12914             archive_cmds_need_lc_CXX=yes
12915             no_undefined_flag_CXX=' -zdefs'
12916             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12917             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12918               $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'
12919
12920             hardcode_libdir_flag_spec_CXX='-R$libdir'
12921             hardcode_shlibpath_var_CXX=no
12922             case $host_os in
12923               solaris2.[0-5] | solaris2.[0-5].*) ;;
12924               *)
12925                 # The compiler driver will combine and reorder linker options,
12926                 # but understands `-z linker_flag'.
12927                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12928                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12929                 ;;
12930             esac
12931             link_all_deplibs_CXX=yes
12932
12933             output_verbose_link_cmd='echo'
12934
12935             # Archives containing C++ object files must be created using
12936             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12937             # necessary to make sure instantiated templates are included
12938             # in the archive.
12939             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12940             ;;
12941           gcx*)
12942             # Green Hills C++ Compiler
12943             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12944
12945             # The C++ compiler must be used to create the archive.
12946             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12947             ;;
12948           *)
12949             # GNU C++ compiler with Solaris linker
12950             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12951               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12952               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12953                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12954                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12955                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12956
12957                 # Commands to make compiler produce verbose output that lists
12958                 # what "hidden" libraries, object files and flags are used when
12959                 # linking a shared library.
12960                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12961               else
12962                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12963                 # platform.
12964                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12965                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12966                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12967
12968                 # Commands to make compiler produce verbose output that lists
12969                 # what "hidden" libraries, object files and flags are used when
12970                 # linking a shared library.
12971                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12972               fi
12973
12974               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12975               case $host_os in
12976                 solaris2.[0-5] | solaris2.[0-5].*) ;;
12977                 *)
12978                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12979                   ;;
12980               esac
12981             fi
12982             ;;
12983         esac
12984         ;;
12985
12986     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12987       no_undefined_flag_CXX='${wl}-z,text'
12988       archive_cmds_need_lc_CXX=no
12989       hardcode_shlibpath_var_CXX=no
12990       runpath_var='LD_RUN_PATH'
12991
12992       case $cc_basename in
12993         CC*)
12994           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12995           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12996           ;;
12997         *)
12998           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12999           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13000           ;;
13001       esac
13002       ;;
13003
13004       sysv5* | sco3.2v5* | sco5v6*)
13005         # Note: We can NOT use -z defs as we might desire, because we do not
13006         # link with -lc, and that would cause any symbols used from libc to
13007         # always be unresolved, which means just about no library would
13008         # ever link correctly.  If we're not using GNU ld we use -z text
13009         # though, which does catch some bad symbols but isn't as heavy-handed
13010         # as -z defs.
13011         no_undefined_flag_CXX='${wl}-z,text'
13012         allow_undefined_flag_CXX='${wl}-z,nodefs'
13013         archive_cmds_need_lc_CXX=no
13014         hardcode_shlibpath_var_CXX=no
13015         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13016         hardcode_libdir_separator_CXX=':'
13017         link_all_deplibs_CXX=yes
13018         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13019         runpath_var='LD_RUN_PATH'
13020
13021         case $cc_basename in
13022           CC*)
13023             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13024             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13025             ;;
13026           *)
13027             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13028             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13029             ;;
13030         esac
13031       ;;
13032
13033       tandem*)
13034         case $cc_basename in
13035           NCC*)
13036             # NonStop-UX NCC 3.20
13037             # FIXME: insert proper C++ library support
13038             ld_shlibs_CXX=no
13039             ;;
13040           *)
13041             # FIXME: insert proper C++ library support
13042             ld_shlibs_CXX=no
13043             ;;
13044         esac
13045         ;;
13046
13047       vxworks*)
13048         # FIXME: insert proper C++ library support
13049         ld_shlibs_CXX=no
13050         ;;
13051
13052       *)
13053         # FIXME: insert proper C++ library support
13054         ld_shlibs_CXX=no
13055         ;;
13056     esac
13057
13058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13059 $as_echo "$ld_shlibs_CXX" >&6; }
13060     test "$ld_shlibs_CXX" = no && can_build_shared=no
13061
13062     GCC_CXX="$GXX"
13063     LD_CXX="$LD"
13064
13065     ## CAVEAT EMPTOR:
13066     ## There is no encapsulation within the following macros, do not change
13067     ## the running order or otherwise move them around unless you know exactly
13068     ## what you are doing...
13069     # Dependencies to place before and after the object being linked:
13070 predep_objects_CXX=
13071 postdep_objects_CXX=
13072 predeps_CXX=
13073 postdeps_CXX=
13074 compiler_lib_search_path_CXX=
13075
13076 cat > conftest.$ac_ext <<_LT_EOF
13077 class Foo
13078 {
13079 public:
13080   Foo (void) { a = 0; }
13081 private:
13082   int a;
13083 };
13084 _LT_EOF
13085
13086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13087   (eval $ac_compile) 2>&5
13088   ac_status=$?
13089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13090   test $ac_status = 0; }; then
13091   # Parse the compiler output and extract the necessary
13092   # objects, libraries and library flags.
13093
13094   # Sentinel used to keep track of whether or not we are before
13095   # the conftest object file.
13096   pre_test_object_deps_done=no
13097
13098   for p in `eval "$output_verbose_link_cmd"`; do
13099     case $p in
13100
13101     -L* | -R* | -l*)
13102        # Some compilers place space between "-{L,R}" and the path.
13103        # Remove the space.
13104        if test $p = "-L" ||
13105           test $p = "-R"; then
13106          prev=$p
13107          continue
13108        else
13109          prev=
13110        fi
13111
13112        if test "$pre_test_object_deps_done" = no; then
13113          case $p in
13114          -L* | -R*)
13115            # Internal compiler library paths should come after those
13116            # provided the user.  The postdeps already come after the
13117            # user supplied libs so there is no need to process them.
13118            if test -z "$compiler_lib_search_path_CXX"; then
13119              compiler_lib_search_path_CXX="${prev}${p}"
13120            else
13121              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13122            fi
13123            ;;
13124          # The "-l" case would never come before the object being
13125          # linked, so don't bother handling this case.
13126          esac
13127        else
13128          if test -z "$postdeps_CXX"; then
13129            postdeps_CXX="${prev}${p}"
13130          else
13131            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13132          fi
13133        fi
13134        ;;
13135
13136     *.$objext)
13137        # This assumes that the test object file only shows up
13138        # once in the compiler output.
13139        if test "$p" = "conftest.$objext"; then
13140          pre_test_object_deps_done=yes
13141          continue
13142        fi
13143
13144        if test "$pre_test_object_deps_done" = no; then
13145          if test -z "$predep_objects_CXX"; then
13146            predep_objects_CXX="$p"
13147          else
13148            predep_objects_CXX="$predep_objects_CXX $p"
13149          fi
13150        else
13151          if test -z "$postdep_objects_CXX"; then
13152            postdep_objects_CXX="$p"
13153          else
13154            postdep_objects_CXX="$postdep_objects_CXX $p"
13155          fi
13156        fi
13157        ;;
13158
13159     *) ;; # Ignore the rest.
13160
13161     esac
13162   done
13163
13164   # Clean up.
13165   rm -f a.out a.exe
13166 else
13167   echo "libtool.m4: error: problem compiling CXX test program"
13168 fi
13169
13170 $RM -f confest.$objext
13171
13172 # PORTME: override above test on systems where it is broken
13173 case $host_os in
13174 interix[3-9]*)
13175   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13176   # hack all around it, let's just trust "g++" to DTRT.
13177   predep_objects_CXX=
13178   postdep_objects_CXX=
13179   postdeps_CXX=
13180   ;;
13181
13182 linux*)
13183   case `$CC -V 2>&1 | sed 5q` in
13184   *Sun\ C*)
13185     # Sun C++ 5.9
13186
13187     # The more standards-conforming stlport4 library is
13188     # incompatible with the Cstd library. Avoid specifying
13189     # it if it's in CXXFLAGS. Ignore libCrun as
13190     # -library=stlport4 depends on it.
13191     case " $CXX $CXXFLAGS " in
13192     *" -library=stlport4 "*)
13193       solaris_use_stlport4=yes
13194       ;;
13195     esac
13196
13197     if test "$solaris_use_stlport4" != yes; then
13198       postdeps_CXX='-library=Cstd -library=Crun'
13199     fi
13200     ;;
13201   esac
13202   ;;
13203
13204 solaris*)
13205   case $cc_basename in
13206   CC*)
13207     # The more standards-conforming stlport4 library is
13208     # incompatible with the Cstd library. Avoid specifying
13209     # it if it's in CXXFLAGS. Ignore libCrun as
13210     # -library=stlport4 depends on it.
13211     case " $CXX $CXXFLAGS " in
13212     *" -library=stlport4 "*)
13213       solaris_use_stlport4=yes
13214       ;;
13215     esac
13216
13217     # Adding this requires a known-good setup of shared libraries for
13218     # Sun compiler versions before 5.6, else PIC objects from an old
13219     # archive will be linked into the output, leading to subtle bugs.
13220     if test "$solaris_use_stlport4" != yes; then
13221       postdeps_CXX='-library=Cstd -library=Crun'
13222     fi
13223     ;;
13224   esac
13225   ;;
13226 esac
13227
13228
13229 case " $postdeps_CXX " in
13230 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13231 esac
13232  compiler_lib_search_dirs_CXX=
13233 if test -n "${compiler_lib_search_path_CXX}"; then
13234  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13235 fi
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267     lt_prog_compiler_wl_CXX=
13268 lt_prog_compiler_pic_CXX=
13269 lt_prog_compiler_static_CXX=
13270
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13272 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13273
13274   # C++ specific cases for pic, static, wl, etc.
13275   if test "$GXX" = yes; then
13276     lt_prog_compiler_wl_CXX='-Wl,'
13277     lt_prog_compiler_static_CXX='-static'
13278
13279     case $host_os in
13280     aix*)
13281       # All AIX code is PIC.
13282       if test "$host_cpu" = ia64; then
13283         # AIX 5 now supports IA64 processor
13284         lt_prog_compiler_static_CXX='-Bstatic'
13285       fi
13286       ;;
13287
13288     amigaos*)
13289       case $host_cpu in
13290       powerpc)
13291             # see comment about AmigaOS4 .so support
13292             lt_prog_compiler_pic_CXX='-fPIC'
13293         ;;
13294       m68k)
13295             # FIXME: we need at least 68020 code to build shared libraries, but
13296             # adding the `-m68020' flag to GCC prevents building anything better,
13297             # like `-m68040'.
13298             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13299         ;;
13300       esac
13301       ;;
13302
13303     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13304       # PIC is the default for these OSes.
13305       ;;
13306     mingw* | cygwin* | os2* | pw32* | cegcc*)
13307       # This hack is so that the source file can tell whether it is being
13308       # built for inclusion in a dll (and should export symbols for example).
13309       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13310       # (--disable-auto-import) libraries
13311       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13312       ;;
13313     darwin* | rhapsody*)
13314       # PIC is the default on this platform
13315       # Common symbols not allowed in MH_DYLIB files
13316       lt_prog_compiler_pic_CXX='-fno-common'
13317       ;;
13318     *djgpp*)
13319       # DJGPP does not support shared libraries at all
13320       lt_prog_compiler_pic_CXX=
13321       ;;
13322     interix[3-9]*)
13323       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13324       # Instead, we relocate shared libraries at runtime.
13325       ;;
13326     sysv4*MP*)
13327       if test -d /usr/nec; then
13328         lt_prog_compiler_pic_CXX=-Kconform_pic
13329       fi
13330       ;;
13331     hpux*)
13332       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13333       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13334       # sets the default TLS model and affects inlining.
13335       case $host_cpu in
13336       hppa*64*)
13337         ;;
13338       *)
13339         lt_prog_compiler_pic_CXX='-fPIC'
13340         ;;
13341       esac
13342       ;;
13343     *qnx* | *nto*)
13344       # QNX uses GNU C++, but need to define -shared option too, otherwise
13345       # it will coredump.
13346       lt_prog_compiler_pic_CXX='-fPIC -shared'
13347       ;;
13348     *)
13349       lt_prog_compiler_pic_CXX='-fPIC'
13350       ;;
13351     esac
13352   else
13353     case $host_os in
13354       aix[4-9]*)
13355         # All AIX code is PIC.
13356         if test "$host_cpu" = ia64; then
13357           # AIX 5 now supports IA64 processor
13358           lt_prog_compiler_static_CXX='-Bstatic'
13359         else
13360           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13361         fi
13362         ;;
13363       chorus*)
13364         case $cc_basename in
13365         cxch68*)
13366           # Green Hills C++ Compiler
13367           # _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"
13368           ;;
13369         esac
13370         ;;
13371       dgux*)
13372         case $cc_basename in
13373           ec++*)
13374             lt_prog_compiler_pic_CXX='-KPIC'
13375             ;;
13376           ghcx*)
13377             # Green Hills C++ Compiler
13378             lt_prog_compiler_pic_CXX='-pic'
13379             ;;
13380           *)
13381             ;;
13382         esac
13383         ;;
13384       freebsd* | dragonfly*)
13385         # FreeBSD uses GNU C++
13386         ;;
13387       hpux9* | hpux10* | hpux11*)
13388         case $cc_basename in
13389           CC*)
13390             lt_prog_compiler_wl_CXX='-Wl,'
13391             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13392             if test "$host_cpu" != ia64; then
13393               lt_prog_compiler_pic_CXX='+Z'
13394             fi
13395             ;;
13396           aCC*)
13397             lt_prog_compiler_wl_CXX='-Wl,'
13398             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13399             case $host_cpu in
13400             hppa*64*|ia64*)
13401               # +Z the default
13402               ;;
13403             *)
13404               lt_prog_compiler_pic_CXX='+Z'
13405               ;;
13406             esac
13407             ;;
13408           *)
13409             ;;
13410         esac
13411         ;;
13412       interix*)
13413         # This is c89, which is MS Visual C++ (no shared libs)
13414         # Anyone wants to do a port?
13415         ;;
13416       irix5* | irix6* | nonstopux*)
13417         case $cc_basename in
13418           CC*)
13419             lt_prog_compiler_wl_CXX='-Wl,'
13420             lt_prog_compiler_static_CXX='-non_shared'
13421             # CC pic flag -KPIC is the default.
13422             ;;
13423           *)
13424             ;;
13425         esac
13426         ;;
13427       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13428         case $cc_basename in
13429           KCC*)
13430             # KAI C++ Compiler
13431             lt_prog_compiler_wl_CXX='--backend -Wl,'
13432             lt_prog_compiler_pic_CXX='-fPIC'
13433             ;;
13434           ecpc* )
13435             # old Intel C++ for x86_64 which still supported -KPIC.
13436             lt_prog_compiler_wl_CXX='-Wl,'
13437             lt_prog_compiler_pic_CXX='-KPIC'
13438             lt_prog_compiler_static_CXX='-static'
13439             ;;
13440           icpc* )
13441             # Intel C++, used to be incompatible with GCC.
13442             # ICC 10 doesn't accept -KPIC any more.
13443             lt_prog_compiler_wl_CXX='-Wl,'
13444             lt_prog_compiler_pic_CXX='-fPIC'
13445             lt_prog_compiler_static_CXX='-static'
13446             ;;
13447           pgCC* | pgcpp*)
13448             # Portland Group C++ compiler
13449             lt_prog_compiler_wl_CXX='-Wl,'
13450             lt_prog_compiler_pic_CXX='-fpic'
13451             lt_prog_compiler_static_CXX='-Bstatic'
13452             ;;
13453           cxx*)
13454             # Compaq C++
13455             # Make sure the PIC flag is empty.  It appears that all Alpha
13456             # Linux and Compaq Tru64 Unix objects are PIC.
13457             lt_prog_compiler_pic_CXX=
13458             lt_prog_compiler_static_CXX='-non_shared'
13459             ;;
13460           xlc* | xlC*)
13461             # IBM XL 8.0 on PPC
13462             lt_prog_compiler_wl_CXX='-Wl,'
13463             lt_prog_compiler_pic_CXX='-qpic'
13464             lt_prog_compiler_static_CXX='-qstaticlink'
13465             ;;
13466           *)
13467             case `$CC -V 2>&1 | sed 5q` in
13468             *Sun\ C*)
13469               # Sun C++ 5.9
13470               lt_prog_compiler_pic_CXX='-KPIC'
13471               lt_prog_compiler_static_CXX='-Bstatic'
13472               lt_prog_compiler_wl_CXX='-Qoption ld '
13473               ;;
13474             esac
13475             ;;
13476         esac
13477         ;;
13478       lynxos*)
13479         ;;
13480       m88k*)
13481         ;;
13482       mvs*)
13483         case $cc_basename in
13484           cxx*)
13485             lt_prog_compiler_pic_CXX='-W c,exportall'
13486             ;;
13487           *)
13488             ;;
13489         esac
13490         ;;
13491       netbsd* | netbsdelf*-gnu)
13492         ;;
13493       *qnx* | *nto*)
13494         # QNX uses GNU C++, but need to define -shared option too, otherwise
13495         # it will coredump.
13496         lt_prog_compiler_pic_CXX='-fPIC -shared'
13497         ;;
13498       osf3* | osf4* | osf5*)
13499         case $cc_basename in
13500           KCC*)
13501             lt_prog_compiler_wl_CXX='--backend -Wl,'
13502             ;;
13503           RCC*)
13504             # Rational C++ 2.4.1
13505             lt_prog_compiler_pic_CXX='-pic'
13506             ;;
13507           cxx*)
13508             # Digital/Compaq C++
13509             lt_prog_compiler_wl_CXX='-Wl,'
13510             # Make sure the PIC flag is empty.  It appears that all Alpha
13511             # Linux and Compaq Tru64 Unix objects are PIC.
13512             lt_prog_compiler_pic_CXX=
13513             lt_prog_compiler_static_CXX='-non_shared'
13514             ;;
13515           *)
13516             ;;
13517         esac
13518         ;;
13519       psos*)
13520         ;;
13521       solaris*)
13522         case $cc_basename in
13523           CC*)
13524             # Sun C++ 4.2, 5.x and Centerline C++
13525             lt_prog_compiler_pic_CXX='-KPIC'
13526             lt_prog_compiler_static_CXX='-Bstatic'
13527             lt_prog_compiler_wl_CXX='-Qoption ld '
13528             ;;
13529           gcx*)
13530             # Green Hills C++ Compiler
13531             lt_prog_compiler_pic_CXX='-PIC'
13532             ;;
13533           *)
13534             ;;
13535         esac
13536         ;;
13537       sunos4*)
13538         case $cc_basename in
13539           CC*)
13540             # Sun C++ 4.x
13541             lt_prog_compiler_pic_CXX='-pic'
13542             lt_prog_compiler_static_CXX='-Bstatic'
13543             ;;
13544           lcc*)
13545             # Lucid
13546             lt_prog_compiler_pic_CXX='-pic'
13547             ;;
13548           *)
13549             ;;
13550         esac
13551         ;;
13552       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13553         case $cc_basename in
13554           CC*)
13555             lt_prog_compiler_wl_CXX='-Wl,'
13556             lt_prog_compiler_pic_CXX='-KPIC'
13557             lt_prog_compiler_static_CXX='-Bstatic'
13558             ;;
13559         esac
13560         ;;
13561       tandem*)
13562         case $cc_basename in
13563           NCC*)
13564             # NonStop-UX NCC 3.20
13565             lt_prog_compiler_pic_CXX='-KPIC'
13566             ;;
13567           *)
13568             ;;
13569         esac
13570         ;;
13571       vxworks*)
13572         ;;
13573       *)
13574         lt_prog_compiler_can_build_shared_CXX=no
13575         ;;
13576     esac
13577   fi
13578
13579 case $host_os in
13580   # For platforms which do not support PIC, -DPIC is meaningless:
13581   *djgpp*)
13582     lt_prog_compiler_pic_CXX=
13583     ;;
13584   *)
13585     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13586     ;;
13587 esac
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13589 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13590
13591
13592
13593 #
13594 # Check to make sure the PIC flag actually works.
13595 #
13596 if test -n "$lt_prog_compiler_pic_CXX"; then
13597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13598 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13599 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13600   $as_echo_n "(cached) " >&6
13601 else
13602   lt_cv_prog_compiler_pic_works_CXX=no
13603    ac_outfile=conftest.$ac_objext
13604    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13605    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13606    # Insert the option either (1) after the last *FLAGS variable, or
13607    # (2) before a word containing "conftest.", or (3) at the end.
13608    # Note that $ac_compile itself does not contain backslashes and begins
13609    # with a dollar sign (not a hyphen), so the echo should work correctly.
13610    # The option is referenced via a variable to avoid confusing sed.
13611    lt_compile=`echo "$ac_compile" | $SED \
13612    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13613    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13614    -e 's:$: $lt_compiler_flag:'`
13615    (eval echo "\"\$as_me:13615: $lt_compile\"" >&5)
13616    (eval "$lt_compile" 2>conftest.err)
13617    ac_status=$?
13618    cat conftest.err >&5
13619    echo "$as_me:13619: \$? = $ac_status" >&5
13620    if (exit $ac_status) && test -s "$ac_outfile"; then
13621      # The compiler can only warn and ignore the option if not recognized
13622      # So say no if there are warnings other than the usual output.
13623      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13624      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13625      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13626        lt_cv_prog_compiler_pic_works_CXX=yes
13627      fi
13628    fi
13629    $RM conftest*
13630
13631 fi
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13633 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13634
13635 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13636     case $lt_prog_compiler_pic_CXX in
13637      "" | " "*) ;;
13638      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13639      esac
13640 else
13641     lt_prog_compiler_pic_CXX=
13642      lt_prog_compiler_can_build_shared_CXX=no
13643 fi
13644
13645 fi
13646
13647
13648
13649 #
13650 # Check to make sure the static flag actually works.
13651 #
13652 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13654 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13655 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13656   $as_echo_n "(cached) " >&6
13657 else
13658   lt_cv_prog_compiler_static_works_CXX=no
13659    save_LDFLAGS="$LDFLAGS"
13660    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13661    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13662    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13663      # The linker can only warn and ignore the option if not recognized
13664      # So say no if there are warnings
13665      if test -s conftest.err; then
13666        # Append any errors to the config.log.
13667        cat conftest.err 1>&5
13668        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13669        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13670        if diff conftest.exp conftest.er2 >/dev/null; then
13671          lt_cv_prog_compiler_static_works_CXX=yes
13672        fi
13673      else
13674        lt_cv_prog_compiler_static_works_CXX=yes
13675      fi
13676    fi
13677    $RM -r conftest*
13678    LDFLAGS="$save_LDFLAGS"
13679
13680 fi
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13682 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13683
13684 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13685     :
13686 else
13687     lt_prog_compiler_static_CXX=
13688 fi
13689
13690
13691
13692
13693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13694 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13695 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13696   $as_echo_n "(cached) " >&6
13697 else
13698   lt_cv_prog_compiler_c_o_CXX=no
13699    $RM -r conftest 2>/dev/null
13700    mkdir conftest
13701    cd conftest
13702    mkdir out
13703    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13704
13705    lt_compiler_flag="-o out/conftest2.$ac_objext"
13706    # Insert the option either (1) after the last *FLAGS variable, or
13707    # (2) before a word containing "conftest.", or (3) at the end.
13708    # Note that $ac_compile itself does not contain backslashes and begins
13709    # with a dollar sign (not a hyphen), so the echo should work correctly.
13710    lt_compile=`echo "$ac_compile" | $SED \
13711    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13712    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13713    -e 's:$: $lt_compiler_flag:'`
13714    (eval echo "\"\$as_me:13714: $lt_compile\"" >&5)
13715    (eval "$lt_compile" 2>out/conftest.err)
13716    ac_status=$?
13717    cat out/conftest.err >&5
13718    echo "$as_me:13718: \$? = $ac_status" >&5
13719    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13720    then
13721      # The compiler can only warn and ignore the option if not recognized
13722      # So say no if there are warnings
13723      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13724      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13725      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13726        lt_cv_prog_compiler_c_o_CXX=yes
13727      fi
13728    fi
13729    chmod u+w . 2>&5
13730    $RM conftest*
13731    # SGI C++ compiler will create directory out/ii_files/ for
13732    # template instantiation
13733    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13734    $RM out/* && rmdir out
13735    cd ..
13736    $RM -r conftest
13737    $RM conftest*
13738
13739 fi
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13741 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13742
13743
13744
13745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13747 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13748   $as_echo_n "(cached) " >&6
13749 else
13750   lt_cv_prog_compiler_c_o_CXX=no
13751    $RM -r conftest 2>/dev/null
13752    mkdir conftest
13753    cd conftest
13754    mkdir out
13755    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13756
13757    lt_compiler_flag="-o out/conftest2.$ac_objext"
13758    # Insert the option either (1) after the last *FLAGS variable, or
13759    # (2) before a word containing "conftest.", or (3) at the end.
13760    # Note that $ac_compile itself does not contain backslashes and begins
13761    # with a dollar sign (not a hyphen), so the echo should work correctly.
13762    lt_compile=`echo "$ac_compile" | $SED \
13763    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13764    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13765    -e 's:$: $lt_compiler_flag:'`
13766    (eval echo "\"\$as_me:13766: $lt_compile\"" >&5)
13767    (eval "$lt_compile" 2>out/conftest.err)
13768    ac_status=$?
13769    cat out/conftest.err >&5
13770    echo "$as_me:13770: \$? = $ac_status" >&5
13771    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13772    then
13773      # The compiler can only warn and ignore the option if not recognized
13774      # So say no if there are warnings
13775      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13776      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13777      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13778        lt_cv_prog_compiler_c_o_CXX=yes
13779      fi
13780    fi
13781    chmod u+w . 2>&5
13782    $RM conftest*
13783    # SGI C++ compiler will create directory out/ii_files/ for
13784    # template instantiation
13785    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13786    $RM out/* && rmdir out
13787    cd ..
13788    $RM -r conftest
13789    $RM conftest*
13790
13791 fi
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13793 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13794
13795
13796
13797
13798 hard_links="nottested"
13799 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13800   # do not overwrite the value of need_locks provided by the user
13801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13802 $as_echo_n "checking if we can lock with hard links... " >&6; }
13803   hard_links=yes
13804   $RM conftest*
13805   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13806   touch conftest.a
13807   ln conftest.a conftest.b 2>&5 || hard_links=no
13808   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13810 $as_echo "$hard_links" >&6; }
13811   if test "$hard_links" = no; then
13812     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13813 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13814     need_locks=warn
13815   fi
13816 else
13817   need_locks=no
13818 fi
13819
13820
13821
13822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13823 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13824
13825   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13826   case $host_os in
13827   aix[4-9]*)
13828     # If we're using GNU nm, then we don't want the "-C" option.
13829     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13830     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13831       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'
13832     else
13833       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'
13834     fi
13835     ;;
13836   pw32*)
13837     export_symbols_cmds_CXX="$ltdll_cmds"
13838   ;;
13839   cygwin* | mingw* | cegcc*)
13840     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'
13841   ;;
13842   linux* | k*bsd*-gnu)
13843     link_all_deplibs_CXX=no
13844   ;;
13845   *)
13846     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13847   ;;
13848   esac
13849   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13850
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13852 $as_echo "$ld_shlibs_CXX" >&6; }
13853 test "$ld_shlibs_CXX" = no && can_build_shared=no
13854
13855 with_gnu_ld_CXX=$with_gnu_ld
13856
13857
13858
13859
13860
13861
13862 #
13863 # Do we need to explicitly link libc?
13864 #
13865 case "x$archive_cmds_need_lc_CXX" in
13866 x|xyes)
13867   # Assume -lc should be added
13868   archive_cmds_need_lc_CXX=yes
13869
13870   if test "$enable_shared" = yes && test "$GCC" = yes; then
13871     case $archive_cmds_CXX in
13872     *'~'*)
13873       # FIXME: we may have to deal with multi-command sequences.
13874       ;;
13875     '$CC '*)
13876       # Test whether the compiler implicitly links with -lc since on some
13877       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13878       # to ld, don't add -lc before -lgcc.
13879       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13880 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13881       $RM conftest*
13882       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13883
13884       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13885   (eval $ac_compile) 2>&5
13886   ac_status=$?
13887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13888   test $ac_status = 0; } 2>conftest.err; then
13889         soname=conftest
13890         lib=conftest
13891         libobjs=conftest.$ac_objext
13892         deplibs=
13893         wl=$lt_prog_compiler_wl_CXX
13894         pic_flag=$lt_prog_compiler_pic_CXX
13895         compiler_flags=-v
13896         linker_flags=-v
13897         verstring=
13898         output_objdir=.
13899         libname=conftest
13900         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13901         allow_undefined_flag_CXX=
13902         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13903   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13904   ac_status=$?
13905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13906   test $ac_status = 0; }
13907         then
13908           archive_cmds_need_lc_CXX=no
13909         else
13910           archive_cmds_need_lc_CXX=yes
13911         fi
13912         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13913       else
13914         cat conftest.err 1>&5
13915       fi
13916       $RM conftest*
13917       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13918 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13919       ;;
13920     esac
13921   fi
13922   ;;
13923 esac
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
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13989 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13990
13991 library_names_spec=
13992 libname_spec='lib$name'
13993 soname_spec=
13994 shrext_cmds=".so"
13995 postinstall_cmds=
13996 postuninstall_cmds=
13997 finish_cmds=
13998 finish_eval=
13999 shlibpath_var=
14000 shlibpath_overrides_runpath=unknown
14001 version_type=none
14002 dynamic_linker="$host_os ld.so"
14003 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14004 need_lib_prefix=unknown
14005 hardcode_into_libs=no
14006
14007 # when you set need_version to no, make sure it does not cause -set_version
14008 # flags to be left without arguments
14009 need_version=unknown
14010
14011 case $host_os in
14012 aix3*)
14013   version_type=linux
14014   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14015   shlibpath_var=LIBPATH
14016
14017   # AIX 3 has no versioning support, so we append a major version to the name.
14018   soname_spec='${libname}${release}${shared_ext}$major'
14019   ;;
14020
14021 aix[4-9]*)
14022   version_type=linux
14023   need_lib_prefix=no
14024   need_version=no
14025   hardcode_into_libs=yes
14026   if test "$host_cpu" = ia64; then
14027     # AIX 5 supports IA64
14028     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14029     shlibpath_var=LD_LIBRARY_PATH
14030   else
14031     # With GCC up to 2.95.x, collect2 would create an import file
14032     # for dependence libraries.  The import file would start with
14033     # the line `#! .'.  This would cause the generated library to
14034     # depend on `.', always an invalid library.  This was fixed in
14035     # development snapshots of GCC prior to 3.0.
14036     case $host_os in
14037       aix4 | aix4.[01] | aix4.[01].*)
14038       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14039            echo ' yes '
14040            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14041         :
14042       else
14043         can_build_shared=no
14044       fi
14045       ;;
14046     esac
14047     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14048     # soname into executable. Probably we can add versioning support to
14049     # collect2, so additional links can be useful in future.
14050     if test "$aix_use_runtimelinking" = yes; then
14051       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14052       # instead of lib<name>.a to let people know that these are not
14053       # typical AIX shared libraries.
14054       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14055     else
14056       # We preserve .a as extension for shared libraries through AIX4.2
14057       # and later when we are not doing run time linking.
14058       library_names_spec='${libname}${release}.a $libname.a'
14059       soname_spec='${libname}${release}${shared_ext}$major'
14060     fi
14061     shlibpath_var=LIBPATH
14062   fi
14063   ;;
14064
14065 amigaos*)
14066   case $host_cpu in
14067   powerpc)
14068     # Since July 2007 AmigaOS4 officially supports .so libraries.
14069     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14071     ;;
14072   m68k)
14073     library_names_spec='$libname.ixlibrary $libname.a'
14074     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14075     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'
14076     ;;
14077   esac
14078   ;;
14079
14080 beos*)
14081   library_names_spec='${libname}${shared_ext}'
14082   dynamic_linker="$host_os ld.so"
14083   shlibpath_var=LIBRARY_PATH
14084   ;;
14085
14086 bsdi[45]*)
14087   version_type=linux
14088   need_version=no
14089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14090   soname_spec='${libname}${release}${shared_ext}$major'
14091   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14092   shlibpath_var=LD_LIBRARY_PATH
14093   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14094   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14095   # the default ld.so.conf also contains /usr/contrib/lib and
14096   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14097   # libtool to hard-code these into programs
14098   ;;
14099
14100 cygwin* | mingw* | pw32* | cegcc*)
14101   version_type=windows
14102   shrext_cmds=".dll"
14103   need_version=no
14104   need_lib_prefix=no
14105
14106   case $GCC,$host_os in
14107   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14108     library_names_spec='$libname.dll.a'
14109     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14110     postinstall_cmds='base_file=`basename \${file}`~
14111       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14112       dldir=$destdir/`dirname \$dlpath`~
14113       test -d \$dldir || mkdir -p \$dldir~
14114       $install_prog $dir/$dlname \$dldir/$dlname~
14115       chmod a+x \$dldir/$dlname~
14116       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14117         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14118       fi'
14119     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14120       dlpath=$dir/\$dldll~
14121        $RM \$dlpath'
14122     shlibpath_overrides_runpath=yes
14123
14124     case $host_os in
14125     cygwin*)
14126       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14127       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14128       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14129       ;;
14130     mingw* | cegcc*)
14131       # MinGW DLLs use traditional 'lib' prefix
14132       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14133       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14134       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14135         # It is most probably a Windows format PATH printed by
14136         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14137         # path with ; separators, and with drive letters. We can handle the
14138         # drive letters (cygwin fileutils understands them), so leave them,
14139         # especially as we might pass files found there to a mingw objdump,
14140         # which wouldn't understand a cygwinified path. Ahh.
14141         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14142       else
14143         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14144       fi
14145       ;;
14146     pw32*)
14147       # pw32 DLLs use 'pw' prefix rather than 'lib'
14148       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14149       ;;
14150     esac
14151     ;;
14152
14153   *)
14154     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14155     ;;
14156   esac
14157   dynamic_linker='Win32 ld.exe'
14158   # FIXME: first we should search . and the directory the executable is in
14159   shlibpath_var=PATH
14160   ;;
14161
14162 darwin* | rhapsody*)
14163   dynamic_linker="$host_os dyld"
14164   version_type=darwin
14165   need_lib_prefix=no
14166   need_version=no
14167   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14168   soname_spec='${libname}${release}${major}$shared_ext'
14169   shlibpath_overrides_runpath=yes
14170   shlibpath_var=DYLD_LIBRARY_PATH
14171   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14172
14173   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14174   ;;
14175
14176 dgux*)
14177   version_type=linux
14178   need_lib_prefix=no
14179   need_version=no
14180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14181   soname_spec='${libname}${release}${shared_ext}$major'
14182   shlibpath_var=LD_LIBRARY_PATH
14183   ;;
14184
14185 freebsd1*)
14186   dynamic_linker=no
14187   ;;
14188
14189 freebsd* | dragonfly*)
14190   # DragonFly does not have aout.  When/if they implement a new
14191   # versioning mechanism, adjust this.
14192   if test -x /usr/bin/objformat; then
14193     objformat=`/usr/bin/objformat`
14194   else
14195     case $host_os in
14196     freebsd[123]*) objformat=aout ;;
14197     *) objformat=elf ;;
14198     esac
14199   fi
14200   version_type=freebsd-$objformat
14201   case $version_type in
14202     freebsd-elf*)
14203       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14204       need_version=no
14205       need_lib_prefix=no
14206       ;;
14207     freebsd-*)
14208       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14209       need_version=yes
14210       ;;
14211   esac
14212   shlibpath_var=LD_LIBRARY_PATH
14213   case $host_os in
14214   freebsd2*)
14215     shlibpath_overrides_runpath=yes
14216     ;;
14217   freebsd3.[01]* | freebsdelf3.[01]*)
14218     shlibpath_overrides_runpath=yes
14219     hardcode_into_libs=yes
14220     ;;
14221   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14222   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14223     shlibpath_overrides_runpath=no
14224     hardcode_into_libs=yes
14225     ;;
14226   *) # from 4.6 on, and DragonFly
14227     shlibpath_overrides_runpath=yes
14228     hardcode_into_libs=yes
14229     ;;
14230   esac
14231   ;;
14232
14233 gnu*)
14234   version_type=linux
14235   need_lib_prefix=no
14236   need_version=no
14237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14238   soname_spec='${libname}${release}${shared_ext}$major'
14239   shlibpath_var=LD_LIBRARY_PATH
14240   hardcode_into_libs=yes
14241   ;;
14242
14243 hpux9* | hpux10* | hpux11*)
14244   # Give a soname corresponding to the major version so that dld.sl refuses to
14245   # link against other versions.
14246   version_type=sunos
14247   need_lib_prefix=no
14248   need_version=no
14249   case $host_cpu in
14250   ia64*)
14251     shrext_cmds='.so'
14252     hardcode_into_libs=yes
14253     dynamic_linker="$host_os dld.so"
14254     shlibpath_var=LD_LIBRARY_PATH
14255     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14257     soname_spec='${libname}${release}${shared_ext}$major'
14258     if test "X$HPUX_IA64_MODE" = X32; then
14259       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14260     else
14261       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14262     fi
14263     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14264     ;;
14265   hppa*64*)
14266     shrext_cmds='.sl'
14267     hardcode_into_libs=yes
14268     dynamic_linker="$host_os dld.sl"
14269     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14270     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14271     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14272     soname_spec='${libname}${release}${shared_ext}$major'
14273     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14274     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14275     ;;
14276   *)
14277     shrext_cmds='.sl'
14278     dynamic_linker="$host_os dld.sl"
14279     shlibpath_var=SHLIB_PATH
14280     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
14284   esac
14285   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14286   postinstall_cmds='chmod 555 $lib'
14287   ;;
14288
14289 interix[3-9]*)
14290   version_type=linux
14291   need_lib_prefix=no
14292   need_version=no
14293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14294   soname_spec='${libname}${release}${shared_ext}$major'
14295   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14296   shlibpath_var=LD_LIBRARY_PATH
14297   shlibpath_overrides_runpath=no
14298   hardcode_into_libs=yes
14299   ;;
14300
14301 irix5* | irix6* | nonstopux*)
14302   case $host_os in
14303     nonstopux*) version_type=nonstopux ;;
14304     *)
14305         if test "$lt_cv_prog_gnu_ld" = yes; then
14306                 version_type=linux
14307         else
14308                 version_type=irix
14309         fi ;;
14310   esac
14311   need_lib_prefix=no
14312   need_version=no
14313   soname_spec='${libname}${release}${shared_ext}$major'
14314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14315   case $host_os in
14316   irix5* | nonstopux*)
14317     libsuff= shlibsuff=
14318     ;;
14319   *)
14320     case $LD in # libtool.m4 will add one of these switches to LD
14321     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14322       libsuff= shlibsuff= libmagic=32-bit;;
14323     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14324       libsuff=32 shlibsuff=N32 libmagic=N32;;
14325     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14326       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14327     *) libsuff= shlibsuff= libmagic=never-match;;
14328     esac
14329     ;;
14330   esac
14331   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14332   shlibpath_overrides_runpath=no
14333   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14334   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14335   hardcode_into_libs=yes
14336   ;;
14337
14338 # No shared lib support for Linux oldld, aout, or coff.
14339 linux*oldld* | linux*aout* | linux*coff*)
14340   dynamic_linker=no
14341   ;;
14342
14343 # This must be Linux ELF.
14344 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14345   version_type=linux
14346   need_lib_prefix=no
14347   need_version=no
14348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14349   soname_spec='${libname}${release}${shared_ext}$major'
14350   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14351   shlibpath_var=LD_LIBRARY_PATH
14352   shlibpath_overrides_runpath=no
14353   # Some binutils ld are patched to set DT_RUNPATH
14354   save_LDFLAGS=$LDFLAGS
14355   save_libdir=$libdir
14356   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14357        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h.  */
14360
14361 int
14362 main ()
14363 {
14364
14365   ;
14366   return 0;
14367 }
14368 _ACEOF
14369 if ac_fn_cxx_try_link "$LINENO"; then :
14370   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14371   shlibpath_overrides_runpath=yes
14372 fi
14373 fi
14374 rm -f core conftest.err conftest.$ac_objext \
14375     conftest$ac_exeext conftest.$ac_ext
14376   LDFLAGS=$save_LDFLAGS
14377   libdir=$save_libdir
14378
14379   # This implies no fast_install, which is unacceptable.
14380   # Some rework will be needed to allow for fast_install
14381   # before this can be enabled.
14382   hardcode_into_libs=yes
14383
14384   # Append ld.so.conf contents to the search path
14385   if test -f /etc/ld.so.conf; then
14386     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' ' '`
14387     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14388   fi
14389
14390   # We used to test for /lib/ld.so.1 and disable shared libraries on
14391   # powerpc, because MkLinux only supported shared libraries with the
14392   # GNU dynamic linker.  Since this was broken with cross compilers,
14393   # most powerpc-linux boxes support dynamic linking these days and
14394   # people can always --disable-shared, the test was removed, and we
14395   # assume the GNU/Linux dynamic linker is in use.
14396   dynamic_linker='GNU/Linux ld.so'
14397   ;;
14398
14399 netbsdelf*-gnu)
14400   version_type=linux
14401   need_lib_prefix=no
14402   need_version=no
14403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14404   soname_spec='${libname}${release}${shared_ext}$major'
14405   shlibpath_var=LD_LIBRARY_PATH
14406   shlibpath_overrides_runpath=no
14407   hardcode_into_libs=yes
14408   dynamic_linker='NetBSD ld.elf_so'
14409   ;;
14410
14411 netbsd*)
14412   version_type=sunos
14413   need_lib_prefix=no
14414   need_version=no
14415   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14416     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14417     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14418     dynamic_linker='NetBSD (a.out) ld.so'
14419   else
14420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14421     soname_spec='${libname}${release}${shared_ext}$major'
14422     dynamic_linker='NetBSD ld.elf_so'
14423   fi
14424   shlibpath_var=LD_LIBRARY_PATH
14425   shlibpath_overrides_runpath=yes
14426   hardcode_into_libs=yes
14427   ;;
14428
14429 newsos6)
14430   version_type=linux
14431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14432   shlibpath_var=LD_LIBRARY_PATH
14433   shlibpath_overrides_runpath=yes
14434   ;;
14435
14436 *nto* | *qnx*)
14437   version_type=qnx
14438   need_lib_prefix=no
14439   need_version=no
14440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441   soname_spec='${libname}${release}${shared_ext}$major'
14442   shlibpath_var=LD_LIBRARY_PATH
14443   shlibpath_overrides_runpath=no
14444   hardcode_into_libs=yes
14445   dynamic_linker='ldqnx.so'
14446   ;;
14447
14448 openbsd*)
14449   version_type=sunos
14450   sys_lib_dlsearch_path_spec="/usr/lib"
14451   need_lib_prefix=no
14452   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14453   case $host_os in
14454     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14455     *)                          need_version=no  ;;
14456   esac
14457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14458   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14459   shlibpath_var=LD_LIBRARY_PATH
14460   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14461     case $host_os in
14462       openbsd2.[89] | openbsd2.[89].*)
14463         shlibpath_overrides_runpath=no
14464         ;;
14465       *)
14466         shlibpath_overrides_runpath=yes
14467         ;;
14468       esac
14469   else
14470     shlibpath_overrides_runpath=yes
14471   fi
14472   ;;
14473
14474 os2*)
14475   libname_spec='$name'
14476   shrext_cmds=".dll"
14477   need_lib_prefix=no
14478   library_names_spec='$libname${shared_ext} $libname.a'
14479   dynamic_linker='OS/2 ld.exe'
14480   shlibpath_var=LIBPATH
14481   ;;
14482
14483 osf3* | osf4* | osf5*)
14484   version_type=osf
14485   need_lib_prefix=no
14486   need_version=no
14487   soname_spec='${libname}${release}${shared_ext}$major'
14488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489   shlibpath_var=LD_LIBRARY_PATH
14490   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14491   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14492   ;;
14493
14494 rdos*)
14495   dynamic_linker=no
14496   ;;
14497
14498 solaris*)
14499   version_type=linux
14500   need_lib_prefix=no
14501   need_version=no
14502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503   soname_spec='${libname}${release}${shared_ext}$major'
14504   shlibpath_var=LD_LIBRARY_PATH
14505   shlibpath_overrides_runpath=yes
14506   hardcode_into_libs=yes
14507   # ldd complains unless libraries are executable
14508   postinstall_cmds='chmod +x $lib'
14509   ;;
14510
14511 sunos4*)
14512   version_type=sunos
14513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14514   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14515   shlibpath_var=LD_LIBRARY_PATH
14516   shlibpath_overrides_runpath=yes
14517   if test "$with_gnu_ld" = yes; then
14518     need_lib_prefix=no
14519   fi
14520   need_version=yes
14521   ;;
14522
14523 sysv4 | sysv4.3*)
14524   version_type=linux
14525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526   soname_spec='${libname}${release}${shared_ext}$major'
14527   shlibpath_var=LD_LIBRARY_PATH
14528   case $host_vendor in
14529     sni)
14530       shlibpath_overrides_runpath=no
14531       need_lib_prefix=no
14532       runpath_var=LD_RUN_PATH
14533       ;;
14534     siemens)
14535       need_lib_prefix=no
14536       ;;
14537     motorola)
14538       need_lib_prefix=no
14539       need_version=no
14540       shlibpath_overrides_runpath=no
14541       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14542       ;;
14543   esac
14544   ;;
14545
14546 sysv4*MP*)
14547   if test -d /usr/nec ;then
14548     version_type=linux
14549     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14550     soname_spec='$libname${shared_ext}.$major'
14551     shlibpath_var=LD_LIBRARY_PATH
14552   fi
14553   ;;
14554
14555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14556   version_type=freebsd-elf
14557   need_lib_prefix=no
14558   need_version=no
14559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14560   soname_spec='${libname}${release}${shared_ext}$major'
14561   shlibpath_var=LD_LIBRARY_PATH
14562   shlibpath_overrides_runpath=yes
14563   hardcode_into_libs=yes
14564   if test "$with_gnu_ld" = yes; then
14565     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14566   else
14567     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14568     case $host_os in
14569       sco3.2v5*)
14570         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14571         ;;
14572     esac
14573   fi
14574   sys_lib_dlsearch_path_spec='/usr/lib'
14575   ;;
14576
14577 tpf*)
14578   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14579   version_type=linux
14580   need_lib_prefix=no
14581   need_version=no
14582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14583   shlibpath_var=LD_LIBRARY_PATH
14584   shlibpath_overrides_runpath=no
14585   hardcode_into_libs=yes
14586   ;;
14587
14588 uts4*)
14589   version_type=linux
14590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14591   soname_spec='${libname}${release}${shared_ext}$major'
14592   shlibpath_var=LD_LIBRARY_PATH
14593   ;;
14594
14595 *)
14596   dynamic_linker=no
14597   ;;
14598 esac
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14600 $as_echo "$dynamic_linker" >&6; }
14601 test "$dynamic_linker" = no && can_build_shared=no
14602
14603 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14604 if test "$GCC" = yes; then
14605   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14606 fi
14607
14608 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14609   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14610 fi
14611 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14612   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14613 fi
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
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14651 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14652 hardcode_action_CXX=
14653 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14654    test -n "$runpath_var_CXX" ||
14655    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14656
14657   # We can hardcode non-existent directories.
14658   if test "$hardcode_direct_CXX" != no &&
14659      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14660      # have to relink, otherwise we might link with an installed library
14661      # when we should be linking with a yet-to-be-installed one
14662      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14663      test "$hardcode_minus_L_CXX" != no; then
14664     # Linking always hardcodes the temporary library directory.
14665     hardcode_action_CXX=relink
14666   else
14667     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14668     hardcode_action_CXX=immediate
14669   fi
14670 else
14671   # We cannot hardcode anything, or else we can only hardcode existing
14672   # directories.
14673   hardcode_action_CXX=unsupported
14674 fi
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14676 $as_echo "$hardcode_action_CXX" >&6; }
14677
14678 if test "$hardcode_action_CXX" = relink ||
14679    test "$inherit_rpath_CXX" = yes; then
14680   # Fast installation is not supported
14681   enable_fast_install=no
14682 elif test "$shlibpath_overrides_runpath" = yes ||
14683      test "$enable_shared" = no; then
14684   # Fast installation is not necessary
14685   enable_fast_install=needless
14686 fi
14687
14688
14689
14690
14691
14692
14693
14694   fi # test -n "$compiler"
14695
14696   CC=$lt_save_CC
14697   LDCXX=$LD
14698   LD=$lt_save_LD
14699   GCC=$lt_save_GCC
14700   with_gnu_ld=$lt_save_with_gnu_ld
14701   lt_cv_path_LDCXX=$lt_cv_path_LD
14702   lt_cv_path_LD=$lt_save_path_LD
14703   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14704   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14705 fi # test "$_lt_caught_CXX_error" != yes
14706
14707 ac_ext=cpp
14708 ac_cpp='$CXXCPP $CPPFLAGS'
14709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725         ac_config_commands="$ac_config_commands libtool"
14726
14727
14728
14729
14730 # Only expand once:
14731
14732
14733
14734
14735 # Check whether some low-level functions/files are available
14736
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14738 $as_echo_n "checking for ANSI C header files... " >&6; }
14739 if ${ac_cv_header_stdc+:} false; then :
14740   $as_echo_n "(cached) " >&6
14741 else
14742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h.  */
14744 #include <stdlib.h>
14745 #include <stdarg.h>
14746 #include <string.h>
14747 #include <float.h>
14748
14749 int
14750 main ()
14751 {
14752
14753   ;
14754   return 0;
14755 }
14756 _ACEOF
14757 if ac_fn_cxx_try_compile "$LINENO"; then :
14758   ac_cv_header_stdc=yes
14759 else
14760   ac_cv_header_stdc=no
14761 fi
14762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14763
14764 if test $ac_cv_header_stdc = yes; then
14765   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h.  */
14768 #include <string.h>
14769
14770 _ACEOF
14771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14772   $EGREP "memchr" >/dev/null 2>&1; then :
14773
14774 else
14775   ac_cv_header_stdc=no
14776 fi
14777 rm -f conftest*
14778
14779 fi
14780
14781 if test $ac_cv_header_stdc = yes; then
14782   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h.  */
14785 #include <stdlib.h>
14786
14787 _ACEOF
14788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14789   $EGREP "free" >/dev/null 2>&1; then :
14790
14791 else
14792   ac_cv_header_stdc=no
14793 fi
14794 rm -f conftest*
14795
14796 fi
14797
14798 if test $ac_cv_header_stdc = yes; then
14799   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14800   if test "$cross_compiling" = yes; then :
14801   :
14802 else
14803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h.  */
14805 #include <ctype.h>
14806 #include <stdlib.h>
14807 #if ((' ' & 0x0FF) == 0x020)
14808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14810 #else
14811 # define ISLOWER(c) \
14812                    (('a' <= (c) && (c) <= 'i') \
14813                      || ('j' <= (c) && (c) <= 'r') \
14814                      || ('s' <= (c) && (c) <= 'z'))
14815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14816 #endif
14817
14818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14819 int
14820 main ()
14821 {
14822   int i;
14823   for (i = 0; i < 256; i++)
14824     if (XOR (islower (i), ISLOWER (i))
14825         || toupper (i) != TOUPPER (i))
14826       return 2;
14827   return 0;
14828 }
14829 _ACEOF
14830 if ac_fn_cxx_try_run "$LINENO"; then :
14831
14832 else
14833   ac_cv_header_stdc=no
14834 fi
14835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14836   conftest.$ac_objext conftest.beam conftest.$ac_ext
14837 fi
14838
14839 fi
14840 fi
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14842 $as_echo "$ac_cv_header_stdc" >&6; }
14843 if test $ac_cv_header_stdc = yes; then
14844
14845 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14846
14847 fi
14848
14849
14850 # These are tested for by AC_HEADER_STDC, but I check again to set the var
14851 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14852 if test "x$ac_cv_header_stdint_h" = xyes; then :
14853   ac_cv_have_stdint_h=1
14854 else
14855   ac_cv_have_stdint_h=0
14856 fi
14857
14858
14859 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
14860 if test "x$ac_cv_header_sys_types_h" = xyes; then :
14861   ac_cv_have_systypes_h=1
14862 else
14863   ac_cv_have_systypes_h=0
14864 fi
14865
14866
14867 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14868 if test "x$ac_cv_header_inttypes_h" = xyes; then :
14869   ac_cv_have_inttypes_h=1
14870 else
14871   ac_cv_have_inttypes_h=0
14872 fi
14873
14874
14875 for ac_header in unistd.h
14876 do :
14877   ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14878 if test "x$ac_cv_header_unistd_h" = xyes; then :
14879   cat >>confdefs.h <<_ACEOF
14880 #define HAVE_UNISTD_H 1
14881 _ACEOF
14882  ac_cv_have_unistd_h=1
14883 else
14884   ac_cv_have_unistd_h=0
14885 fi
14886
14887 done
14888
14889 for ac_header in syscall.h
14890 do :
14891   ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
14892 if test "x$ac_cv_header_syscall_h" = xyes; then :
14893   cat >>confdefs.h <<_ACEOF
14894 #define HAVE_SYSCALL_H 1
14895 _ACEOF
14896
14897 fi
14898
14899 done
14900
14901 for ac_header in sys/syscall.h
14902 do :
14903   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
14904 if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
14905   cat >>confdefs.h <<_ACEOF
14906 #define HAVE_SYS_SYSCALL_H 1
14907 _ACEOF
14908
14909 fi
14910
14911 done
14912
14913 # For backtrace with glibc.
14914 for ac_header in execinfo.h
14915 do :
14916   ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
14917 if test "x$ac_cv_header_execinfo_h" = xyes; then :
14918   cat >>confdefs.h <<_ACEOF
14919 #define HAVE_EXECINFO_H 1
14920 _ACEOF
14921
14922 fi
14923
14924 done
14925
14926 # For backtrace with libunwind.
14927 for ac_header in libunwind.h
14928 do :
14929   ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
14930 if test "x$ac_cv_header_libunwind_h" = xyes; then :
14931   cat >>confdefs.h <<_ACEOF
14932 #define HAVE_LIBUNWIND_H 1
14933 _ACEOF
14934  ac_cv_have_libunwind_h=1
14935 else
14936   ac_cv_have_libunwind_h=0
14937 fi
14938
14939 done
14940
14941 for ac_header in ucontext.h
14942 do :
14943   ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
14944 if test "x$ac_cv_header_ucontext_h" = xyes; then :
14945   cat >>confdefs.h <<_ACEOF
14946 #define HAVE_UCONTEXT_H 1
14947 _ACEOF
14948
14949 fi
14950
14951 done
14952
14953 for ac_header in sys/utsname.h
14954 do :
14955   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
14956 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
14957   cat >>confdefs.h <<_ACEOF
14958 #define HAVE_SYS_UTSNAME_H 1
14959 _ACEOF
14960
14961 fi
14962
14963 done
14964
14965 for ac_header in pwd.h
14966 do :
14967   ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
14968 if test "x$ac_cv_header_pwd_h" = xyes; then :
14969   cat >>confdefs.h <<_ACEOF
14970 #define HAVE_PWD_H 1
14971 _ACEOF
14972
14973 fi
14974
14975 done
14976
14977 for ac_header in syslog.h
14978 do :
14979   ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
14980 if test "x$ac_cv_header_syslog_h" = xyes; then :
14981   cat >>confdefs.h <<_ACEOF
14982 #define HAVE_SYSLOG_H 1
14983 _ACEOF
14984
14985 fi
14986
14987 done
14988
14989 for ac_header in sys/time.h
14990 do :
14991   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14992 if test "x$ac_cv_header_sys_time_h" = xyes; then :
14993   cat >>confdefs.h <<_ACEOF
14994 #define HAVE_SYS_TIME_H 1
14995 _ACEOF
14996
14997 fi
14998
14999 done
15000
15001 for ac_header in glob.h
15002 do :
15003   ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
15004 if test "x$ac_cv_header_glob_h" = xyes; then :
15005   cat >>confdefs.h <<_ACEOF
15006 #define HAVE_GLOB_H 1
15007 _ACEOF
15008
15009 fi
15010
15011 done
15012
15013 # For backtrace with gcc.
15014 for ac_header in unwind.h
15015 do :
15016   ac_fn_cxx_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
15017 if test "x$ac_cv_header_unwind_h" = xyes; then :
15018   cat >>confdefs.h <<_ACEOF
15019 #define HAVE_UNWIND_H 1
15020 _ACEOF
15021
15022 fi
15023
15024 done
15025
15026
15027 # The cast to long int works around a bug in the HP C Compiler
15028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15030 # This bug is HP SR number 8606223364.
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15032 $as_echo_n "checking size of void *... " >&6; }
15033 if ${ac_cv_sizeof_void_p+:} false; then :
15034   $as_echo_n "(cached) " >&6
15035 else
15036   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15037
15038 else
15039   if test "$ac_cv_type_void_p" = yes; then
15040      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15042 as_fn_error 77 "cannot compute sizeof (void *)
15043 See \`config.log' for more details" "$LINENO" 5; }
15044    else
15045      ac_cv_sizeof_void_p=0
15046    fi
15047 fi
15048
15049 fi
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15051 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15052
15053
15054
15055 cat >>confdefs.h <<_ACEOF
15056 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15057 _ACEOF
15058
15059
15060
15061 # These are the types I need.  We look for them in either stdint.h,
15062 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
15063 ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15064 if test "x$ac_cv_type_uint16_t" = xyes; then :
15065   ac_cv_have_uint16_t=1
15066 else
15067   ac_cv_have_uint16_t=0
15068 fi
15069
15070 ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
15071 if test "x$ac_cv_type_u_int16_t" = xyes; then :
15072   ac_cv_have_u_int16_t=1
15073 else
15074   ac_cv_have_u_int16_t=0
15075 fi
15076
15077 ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
15078 if test "x$ac_cv_type___uint16" = xyes; then :
15079   ac_cv_have___uint16=1
15080 else
15081   ac_cv_have___uint16=0
15082 fi
15083
15084
15085 ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
15086 if test "x$ac_cv_func_sigaltstack" = xyes; then :
15087
15088 $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
15089
15090 fi
15091
15092 ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
15093 if test "x$ac_cv_func_dladdr" = xyes; then :
15094
15095 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
15096
15097 fi
15098
15099 ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15100 if test "x$ac_cv_func_fcntl" = xyes; then :
15101
15102 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
15103
15104 fi
15105
15106
15107
15108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
15109 $as_echo_n "checking for __attribute__... " >&6; }
15110   if ${ac_cv___attribute__+:} false; then :
15111   $as_echo_n "(cached) " >&6
15112 else
15113
15114     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h.  */
15116 #include <stdlib.h>
15117        static void foo(void) __attribute__ ((unused));
15118        void foo(void) { exit(1); }
15119 int
15120 main ()
15121 {
15122
15123   ;
15124   return 0;
15125 }
15126 _ACEOF
15127 if ac_fn_cxx_try_compile "$LINENO"; then :
15128   ac_cv___attribute__=yes
15129 else
15130   ac_cv___attribute__=no
15131
15132 fi
15133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15134 fi
15135
15136   if test "$ac_cv___attribute__" = "yes"; then
15137
15138 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
15139
15140   fi
15141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
15142 $as_echo "$ac_cv___attribute__" >&6; }
15143
15144 # We only care about these two attributes.
15145 if test x"$ac_cv___attribute__" = x"yes"; then
15146   ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
15147   ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
15148 else
15149   ac_cv___attribute___noreturn=
15150   ac_cv___attribute___printf_4_5=
15151 fi
15152
15153
15154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
15155 $as_echo_n "checking for __builtin_expect... " >&6; }
15156   if ${ac_cv___builtin_expect+:} false; then :
15157   $as_echo_n "(cached) " >&6
15158 else
15159
15160     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h.  */
15162 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
15163 int
15164 main ()
15165 {
15166
15167   ;
15168   return 0;
15169 }
15170 _ACEOF
15171 if ac_fn_cxx_try_compile "$LINENO"; then :
15172   ac_cv___builtin_expect=yes
15173 else
15174   ac_cv___builtin_expect=no
15175
15176 fi
15177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15178 fi
15179
15180   if test "$ac_cv___builtin_expect" = "yes"; then
15181
15182 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
15183
15184   fi
15185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
15186 $as_echo "$ac_cv___builtin_expect" >&6; }
15187
15188 if test x"$ac_cv___builtin_expect" = x"yes"; then
15189   ac_cv_have___builtin_expect=1
15190 else
15191   ac_cv_have___builtin_expect=0
15192 fi
15193
15194
15195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
15196 $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
15197   if ${ac_cv___sync_val_compare_and_swap+:} false; then :
15198   $as_echo_n "(cached) " >&6
15199 else
15200
15201     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h.  */
15203
15204 int
15205 main ()
15206 {
15207 int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
15208   ;
15209   return 0;
15210 }
15211 _ACEOF
15212 if ac_fn_cxx_try_link "$LINENO"; then :
15213   ac_cv___sync_val_compare_and_swap=yes
15214 else
15215   ac_cv___sync_val_compare_and_swap=no
15216
15217 fi
15218 rm -f core conftest.err conftest.$ac_objext \
15219     conftest$ac_exeext conftest.$ac_ext
15220 fi
15221
15222   if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
15223
15224 $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
15225
15226   fi
15227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
15228 $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
15229
15230
15231 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
15232 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
15233 # Check whether --enable-frame_pointers was given.
15234 if test "${enable_frame_pointers+set}" = set; then :
15235   enableval=$enable_frame_pointers;
15236 else
15237   enable_frame_pointers=no
15238 fi
15239
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h.  */
15242
15243 int
15244 main ()
15245 {
15246 return __x86_64__ == 1 ? 0 : 1
15247   ;
15248   return 0;
15249 }
15250 _ACEOF
15251 if ac_fn_cxx_try_compile "$LINENO"; then :
15252   is_x86_64=yes
15253 else
15254   is_x86_64=no
15255 fi
15256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15257  if test "$enable_frame_pointers" = yes; then
15258   ENABLE_FRAME_POINTERS_TRUE=
15259   ENABLE_FRAME_POINTERS_FALSE='#'
15260 else
15261   ENABLE_FRAME_POINTERS_TRUE='#'
15262   ENABLE_FRAME_POINTERS_FALSE=
15263 fi
15264
15265  if test "$is_x86_64" = yes; then
15266   X86_64_TRUE=
15267   X86_64_FALSE='#'
15268 else
15269   X86_64_TRUE='#'
15270   X86_64_FALSE=
15271 fi
15272
15273
15274 # Check whether --enable-rtti was given.
15275 if test "${enable_rtti+set}" = set; then :
15276   enableval=$enable_rtti;
15277 fi
15278
15279  if test x"$enable_rtti" = x"no"; then
15280   DISABLE_RTTI_TRUE=
15281   DISABLE_RTTI_FALSE='#'
15282 else
15283   DISABLE_RTTI_TRUE='#'
15284   DISABLE_RTTI_FALSE=
15285 fi
15286
15287 if test x"$enable_rtti" = x"no"; then
15288
15289 $as_echo "#define DISABLE_RTTI 1" >>confdefs.h
15290
15291 fi
15292
15293 # Some of the code in this directory depends on pthreads
15294
15295
15296
15297 ac_ext=c
15298 ac_cpp='$CPP $CPPFLAGS'
15299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15302
15303 acx_pthread_ok=no
15304
15305 # We used to check for pthread.h first, but this fails if pthread.h
15306 # requires special compiler flags (e.g. on True64 or Sequent).
15307 # It gets checked for in the link test anyway.
15308
15309 # First of all, check if the user has set any of the PTHREAD_LIBS,
15310 # etcetera environment variables, and if threads linking works using
15311 # them:
15312 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15313         save_CFLAGS="$CFLAGS"
15314         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15315         save_LIBS="$LIBS"
15316         LIBS="$PTHREAD_LIBS $LIBS"
15317         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15318 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15319         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h.  */
15321
15322 /* Override any GCC internal prototype to avoid an error.
15323    Use char because int might match the return type of a GCC
15324    builtin and then its argument prototype would still apply.  */
15325 #ifdef __cplusplus
15326 extern "C"
15327 #endif
15328 char pthread_join ();
15329 int
15330 main ()
15331 {
15332 return pthread_join ();
15333   ;
15334   return 0;
15335 }
15336 _ACEOF
15337 if ac_fn_c_try_link "$LINENO"; then :
15338   acx_pthread_ok=yes
15339 fi
15340 rm -f core conftest.err conftest.$ac_objext \
15341     conftest$ac_exeext conftest.$ac_ext
15342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15343 $as_echo "$acx_pthread_ok" >&6; }
15344         if test x"$acx_pthread_ok" = xno; then
15345                 PTHREAD_LIBS=""
15346                 PTHREAD_CFLAGS=""
15347         fi
15348         LIBS="$save_LIBS"
15349         CFLAGS="$save_CFLAGS"
15350 fi
15351
15352 # We must check for the threads library under a number of different
15353 # names; the ordering is very important because some systems
15354 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15355 # libraries is broken (non-POSIX).
15356
15357 # Create a list of thread flags to try.  Items starting with a "-" are
15358 # C compiler flags, and other items are library names, except for "none"
15359 # which indicates that we try without any flags at all, and "pthread-config"
15360 # which is a program returning the flags for the Pth emulation library.
15361
15362 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15363
15364 # The ordering *is* (sometimes) important.  Some notes on the
15365 # individual items follow:
15366
15367 # pthreads: AIX (must check this before -lpthread)
15368 # none: in case threads are in libc; should be tried before -Kthread and
15369 #       other compiler flags to prevent continual compiler warnings
15370 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15371 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15372 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15373 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15374 # -pthreads: Solaris/gcc
15375 # -mthreads: Mingw32/gcc, Lynx/gcc
15376 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15377 #      doesn't hurt to check since this sometimes defines pthreads too;
15378 #      also defines -D_REENTRANT)
15379 #      ... -mt is also the pthreads flag for HP/aCC
15380 # pthread: Linux, etcetera
15381 # --thread-safe: KAI C++
15382 # pthread-config: use pthread-config program (for GNU Pth library)
15383
15384 case "${host_cpu}-${host_os}" in
15385         *solaris*)
15386
15387         # On Solaris (at least, for some versions), libc contains stubbed
15388         # (non-functional) versions of the pthreads routines, so link-based
15389         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15390         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15391         # a function called by this macro, so we could check for that, but
15392         # who knows whether they'll stub that too in a future libc.)  So,
15393         # we'll just look for -pthreads and -lpthread first:
15394
15395         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15396         ;;
15397 esac
15398
15399 if test x"$acx_pthread_ok" = xno; then
15400 for flag in $acx_pthread_flags; do
15401
15402         case $flag in
15403                 none)
15404                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15405 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15406                 ;;
15407
15408                 -*)
15409                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15410 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15411                 PTHREAD_CFLAGS="$flag"
15412                 ;;
15413
15414                 pthread-config)
15415                 # Extract the first word of "pthread-config", so it can be a program name with args.
15416 set dummy pthread-config; ac_word=$2
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15418 $as_echo_n "checking for $ac_word... " >&6; }
15419 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15420   $as_echo_n "(cached) " >&6
15421 else
15422   if test -n "$acx_pthread_config"; then
15423   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15424 else
15425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15426 for as_dir in $PATH
15427 do
15428   IFS=$as_save_IFS
15429   test -z "$as_dir" && as_dir=.
15430     for ac_exec_ext in '' $ac_executable_extensions; do
15431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15432     ac_cv_prog_acx_pthread_config="yes"
15433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15434     break 2
15435   fi
15436 done
15437   done
15438 IFS=$as_save_IFS
15439
15440   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15441 fi
15442 fi
15443 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15444 if test -n "$acx_pthread_config"; then
15445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15446 $as_echo "$acx_pthread_config" >&6; }
15447 else
15448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15449 $as_echo "no" >&6; }
15450 fi
15451
15452
15453                 if test x"$acx_pthread_config" = xno; then continue; fi
15454                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15455                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15456                 ;;
15457
15458                 *)
15459                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15460 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15461                 PTHREAD_LIBS="-l$flag"
15462                 ;;
15463         esac
15464
15465         save_LIBS="$LIBS"
15466         save_CFLAGS="$CFLAGS"
15467         LIBS="$PTHREAD_LIBS $LIBS"
15468         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15469
15470         # Check for various functions.  We must include pthread.h,
15471         # since some functions may be macros.  (On the Sequent, we
15472         # need a special flag -Kthread to make this header compile.)
15473         # We check for pthread_join because it is in -lpthread on IRIX
15474         # while pthread_create is in libc.  We check for pthread_attr_init
15475         # due to DEC craziness with -lpthreads.  We check for
15476         # pthread_cleanup_push because it is one of the few pthread
15477         # functions on Solaris that doesn't have a non-functional libc stub.
15478         # We try pthread_create on general principles.
15479         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15480 /* end confdefs.h.  */
15481 #include <pthread.h>
15482 int
15483 main ()
15484 {
15485 pthread_t th; pthread_join(th, 0);
15486                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
15487                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15488   ;
15489   return 0;
15490 }
15491 _ACEOF
15492 if ac_fn_c_try_link "$LINENO"; then :
15493   acx_pthread_ok=yes
15494 fi
15495 rm -f core conftest.err conftest.$ac_objext \
15496     conftest$ac_exeext conftest.$ac_ext
15497
15498         LIBS="$save_LIBS"
15499         CFLAGS="$save_CFLAGS"
15500
15501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15502 $as_echo "$acx_pthread_ok" >&6; }
15503         if test "x$acx_pthread_ok" = xyes; then
15504                 break;
15505         fi
15506
15507         PTHREAD_LIBS=""
15508         PTHREAD_CFLAGS=""
15509 done
15510 fi
15511
15512 # Various other checks:
15513 if test "x$acx_pthread_ok" = xyes; then
15514         save_LIBS="$LIBS"
15515         LIBS="$PTHREAD_LIBS $LIBS"
15516         save_CFLAGS="$CFLAGS"
15517         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15518
15519         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15520         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15521 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15522         attr_name=unknown
15523         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15524             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h.  */
15526 #include <pthread.h>
15527 int
15528 main ()
15529 {
15530 int attr=$attr; return attr;
15531   ;
15532   return 0;
15533 }
15534 _ACEOF
15535 if ac_fn_c_try_link "$LINENO"; then :
15536   attr_name=$attr; break
15537 fi
15538 rm -f core conftest.err conftest.$ac_objext \
15539     conftest$ac_exeext conftest.$ac_ext
15540         done
15541         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15542 $as_echo "$attr_name" >&6; }
15543         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15544
15545 cat >>confdefs.h <<_ACEOF
15546 #define PTHREAD_CREATE_JOINABLE $attr_name
15547 _ACEOF
15548
15549         fi
15550
15551         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15552 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15553         flag=no
15554         case "${host_cpu}-${host_os}" in
15555             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15556             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15557         esac
15558         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15559 $as_echo "${flag}" >&6; }
15560         if test "x$flag" != xno; then
15561             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15562         fi
15563
15564         LIBS="$save_LIBS"
15565         CFLAGS="$save_CFLAGS"
15566         # More AIX lossage: must compile with xlc_r or cc_r
15567         if test x"$GCC" != xyes; then
15568           for ac_prog in xlc_r cc_r
15569 do
15570   # Extract the first word of "$ac_prog", so it can be a program name with args.
15571 set dummy $ac_prog; ac_word=$2
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15573 $as_echo_n "checking for $ac_word... " >&6; }
15574 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15575   $as_echo_n "(cached) " >&6
15576 else
15577   if test -n "$PTHREAD_CC"; then
15578   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15579 else
15580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15581 for as_dir in $PATH
15582 do
15583   IFS=$as_save_IFS
15584   test -z "$as_dir" && as_dir=.
15585     for ac_exec_ext in '' $ac_executable_extensions; do
15586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15587     ac_cv_prog_PTHREAD_CC="$ac_prog"
15588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15589     break 2
15590   fi
15591 done
15592   done
15593 IFS=$as_save_IFS
15594
15595 fi
15596 fi
15597 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15598 if test -n "$PTHREAD_CC"; then
15599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15600 $as_echo "$PTHREAD_CC" >&6; }
15601 else
15602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15603 $as_echo "no" >&6; }
15604 fi
15605
15606
15607   test -n "$PTHREAD_CC" && break
15608 done
15609 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15610
15611         else
15612           PTHREAD_CC=$CC
15613         fi
15614
15615         # The next part tries to detect GCC inconsistency with -shared on some
15616         # architectures and systems. The problem is that in certain
15617         # configurations, when -shared is specified, GCC "forgets" to
15618         # internally use various flags which are still necessary.
15619
15620         #
15621         # Prepare the flags
15622         #
15623         save_CFLAGS="$CFLAGS"
15624         save_LIBS="$LIBS"
15625         save_CC="$CC"
15626
15627         # Try with the flags determined by the earlier checks.
15628         #
15629         # -Wl,-z,defs forces link-time symbol resolution, so that the
15630         # linking checks with -shared actually have any value
15631         #
15632         # FIXME: -fPIC is required for -shared on many architectures,
15633         # so we specify it here, but the right way would probably be to
15634         # properly detect whether it is actually required.
15635         CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
15636         LIBS="$PTHREAD_LIBS $LIBS"
15637         CC="$PTHREAD_CC"
15638
15639         # In order not to create several levels of indentation, we test
15640         # the value of "$done" until we find the cure or run out of ideas.
15641         done="no"
15642
15643         # First, make sure the CFLAGS we added are actually accepted by our
15644         # compiler.  If not (and OS X's ld, for instance, does not accept -z),
15645         # then we can't do this test.
15646         if test x"$done" = xno; then
15647            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
15648 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
15649            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650 /* end confdefs.h.  */
15651
15652 int
15653 main ()
15654 {
15655
15656   ;
15657   return 0;
15658 }
15659 _ACEOF
15660 if ac_fn_c_try_link "$LINENO"; then :
15661
15662 else
15663   done=yes
15664 fi
15665 rm -f core conftest.err conftest.$ac_objext \
15666     conftest$ac_exeext conftest.$ac_ext
15667
15668            if test "x$done" = xyes ; then
15669               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15670 $as_echo "no" >&6; }
15671            else
15672               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15673 $as_echo "yes" >&6; }
15674            fi
15675         fi
15676
15677         if test x"$done" = xno; then
15678            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
15679 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
15680            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681 /* end confdefs.h.  */
15682 #include <pthread.h>
15683 int
15684 main ()
15685 {
15686 pthread_t th; pthread_join(th, 0);
15687               pthread_attr_init(0); pthread_cleanup_push(0, 0);
15688               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15689   ;
15690   return 0;
15691 }
15692 _ACEOF
15693 if ac_fn_c_try_link "$LINENO"; then :
15694   done=yes
15695 fi
15696 rm -f core conftest.err conftest.$ac_objext \
15697     conftest$ac_exeext conftest.$ac_ext
15698
15699            if test "x$done" = xyes; then
15700               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15701 $as_echo "yes" >&6; }
15702            else
15703               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15704 $as_echo "no" >&6; }
15705            fi
15706         fi
15707
15708         #
15709         # Linux gcc on some architectures such as mips/mipsel forgets
15710         # about -lpthread
15711         #
15712         if test x"$done" = xno; then
15713            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
15714 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
15715            LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
15716            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15717 /* end confdefs.h.  */
15718 #include <pthread.h>
15719 int
15720 main ()
15721 {
15722 pthread_t th; pthread_join(th, 0);
15723               pthread_attr_init(0); pthread_cleanup_push(0, 0);
15724               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15725   ;
15726   return 0;
15727 }
15728 _ACEOF
15729 if ac_fn_c_try_link "$LINENO"; then :
15730   done=yes
15731 fi
15732 rm -f core conftest.err conftest.$ac_objext \
15733     conftest$ac_exeext conftest.$ac_ext
15734
15735            if test "x$done" = xyes; then
15736               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15737 $as_echo "yes" >&6; }
15738               PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15739            else
15740               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15741 $as_echo "no" >&6; }
15742            fi
15743         fi
15744         #
15745         # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15746         #
15747         if test x"$done" = xno; then
15748            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
15749 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
15750            LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
15751            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h.  */
15753 #include <pthread.h>
15754 int
15755 main ()
15756 {
15757 pthread_t th; pthread_join(th, 0);
15758                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15759                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15760   ;
15761   return 0;
15762 }
15763 _ACEOF
15764 if ac_fn_c_try_link "$LINENO"; then :
15765   done=yes
15766 fi
15767 rm -f core conftest.err conftest.$ac_objext \
15768     conftest$ac_exeext conftest.$ac_ext
15769
15770            if test "x$done" = xyes; then
15771               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15772 $as_echo "yes" >&6; }
15773               PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15774            else
15775               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15776 $as_echo "no" >&6; }
15777            fi
15778         fi
15779         if test x"$done" = xno; then
15780            # OK, we have run out of ideas
15781            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15782 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
15783
15784            # so it's not safe to assume that we may use pthreads
15785            acx_pthread_ok=no
15786         fi
15787
15788         CFLAGS="$save_CFLAGS"
15789         LIBS="$save_LIBS"
15790         CC="$save_CC"
15791 else
15792         PTHREAD_CC="$CC"
15793 fi
15794
15795
15796
15797
15798
15799 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15800 if test x"$acx_pthread_ok" = xyes; then
15801
15802 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15803
15804         :
15805 else
15806         acx_pthread_ok=no
15807
15808 fi
15809 ac_ext=cpp
15810 ac_cpp='$CXXCPP $CPPFLAGS'
15811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15814
15815
15816 if test x"$acx_pthread_ok" = x"yes"; then
15817   # To make libglog depend on libpthread on Linux, we need to add
15818   # -lpthread in addition to -pthread.
15819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
15820 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
15821 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
15822   $as_echo_n "(cached) " >&6
15823 else
15824   ac_check_lib_save_LIBS=$LIBS
15825 LIBS="-lpthread  $LIBS"
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h.  */
15828
15829 /* Override any GCC internal prototype to avoid an error.
15830    Use char because int might match the return type of a GCC
15831    builtin and then its argument prototype would still apply.  */
15832 #ifdef __cplusplus
15833 extern "C"
15834 #endif
15835 char pthread_self ();
15836 int
15837 main ()
15838 {
15839 return pthread_self ();
15840   ;
15841   return 0;
15842 }
15843 _ACEOF
15844 if ac_fn_cxx_try_link "$LINENO"; then :
15845   ac_cv_lib_pthread_pthread_self=yes
15846 else
15847   ac_cv_lib_pthread_pthread_self=no
15848 fi
15849 rm -f core conftest.err conftest.$ac_objext \
15850     conftest$ac_exeext conftest.$ac_ext
15851 LIBS=$ac_check_lib_save_LIBS
15852 fi
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
15854 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
15855 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
15856   cat >>confdefs.h <<_ACEOF
15857 #define HAVE_LIBPTHREAD 1
15858 _ACEOF
15859
15860   LIBS="-lpthread $LIBS"
15861
15862 fi
15863
15864 fi
15865
15866 # Check if there is google-gflags library installed.
15867 SAVE_CFLAGS="$CFLAGS"
15868 SAVE_LIBS="$LIBS"
15869
15870 # Check whether --with-gflags was given.
15871 if test "${with_gflags+set}" = set; then :
15872   withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
15873   GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
15874   CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
15875   LIBS="$LIBS $GFLAGS_LIBS"
15876
15877 fi
15878
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
15880 $as_echo_n "checking for main in -lgflags... " >&6; }
15881 if ${ac_cv_lib_gflags_main+:} false; then :
15882   $as_echo_n "(cached) " >&6
15883 else
15884   ac_check_lib_save_LIBS=$LIBS
15885 LIBS="-lgflags  $LIBS"
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h.  */
15888
15889
15890 int
15891 main ()
15892 {
15893 return main ();
15894   ;
15895   return 0;
15896 }
15897 _ACEOF
15898 if ac_fn_cxx_try_link "$LINENO"; then :
15899   ac_cv_lib_gflags_main=yes
15900 else
15901   ac_cv_lib_gflags_main=no
15902 fi
15903 rm -f core conftest.err conftest.$ac_objext \
15904     conftest$ac_exeext conftest.$ac_ext
15905 LIBS=$ac_check_lib_save_LIBS
15906 fi
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
15908 $as_echo "$ac_cv_lib_gflags_main" >&6; }
15909 if test "x$ac_cv_lib_gflags_main" = xyes; then :
15910   ac_cv_have_libgflags=1
15911 else
15912   ac_cv_have_libgflags=0
15913 fi
15914
15915 if test x"$ac_cv_have_libgflags" = x"1"; then
15916
15917 $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
15918
15919   if test x"$GFLAGS_LIBS" = x""; then
15920     GFLAGS_LIBS="-lgflags"
15921   fi
15922 else
15923   GFLAGS_CFLAGS=
15924   GFLAGS_LIBS=
15925 fi
15926 CFLAGS="$SAVE_CFLAGS"
15927 LIBS="$SAVE_LIBS"
15928
15929 # TODO(hamaji): Use official m4 macros provided by testing libraries
15930 #               once the m4 macro of Google Mocking becomes ready.
15931 # Check if there is Google Test library installed.
15932 # Extract the first word of "gtest-config", so it can be a program name with args.
15933 set dummy gtest-config; ac_word=$2
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15935 $as_echo_n "checking for $ac_word... " >&6; }
15936 if ${ac_cv_prog_GTEST_CONFIG+:} false; then :
15937   $as_echo_n "(cached) " >&6
15938 else
15939   if test -n "$GTEST_CONFIG"; then
15940   ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
15941 else
15942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15943 for as_dir in $PATH
15944 do
15945   IFS=$as_save_IFS
15946   test -z "$as_dir" && as_dir=.
15947     for ac_exec_ext in '' $ac_executable_extensions; do
15948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15949     ac_cv_prog_GTEST_CONFIG=""yes""
15950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15951     break 2
15952   fi
15953 done
15954   done
15955 IFS=$as_save_IFS
15956
15957 fi
15958 fi
15959 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
15960 if test -n "$GTEST_CONFIG"; then
15961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
15962 $as_echo "$GTEST_CONFIG" >&6; }
15963 else
15964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15965 $as_echo "no" >&6; }
15966 fi
15967
15968
15969 if test x"$GTEST_CONFIG" = "xyes"; then
15970   GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
15971   GTEST_LIBS=`gtest-config --ldflags --libs`
15972
15973 $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
15974
15975
15976   # Check if there is Google Mocking library installed.
15977   # Extract the first word of "gmock-config", so it can be a program name with args.
15978 set dummy gmock-config; ac_word=$2
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15980 $as_echo_n "checking for $ac_word... " >&6; }
15981 if ${ac_cv_prog_GMOCK_CONFIG+:} false; then :
15982   $as_echo_n "(cached) " >&6
15983 else
15984   if test -n "$GMOCK_CONFIG"; then
15985   ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
15986 else
15987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15988 for as_dir in $PATH
15989 do
15990   IFS=$as_save_IFS
15991   test -z "$as_dir" && as_dir=.
15992     for ac_exec_ext in '' $ac_executable_extensions; do
15993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15994     ac_cv_prog_GMOCK_CONFIG=""yes""
15995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15996     break 2
15997   fi
15998 done
15999   done
16000 IFS=$as_save_IFS
16001
16002 fi
16003 fi
16004 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
16005 if test -n "$GMOCK_CONFIG"; then
16006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
16007 $as_echo "$GMOCK_CONFIG" >&6; }
16008 else
16009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16010 $as_echo "no" >&6; }
16011 fi
16012
16013
16014   if test x"$GMOCK_CONFIG" = "xyes"; then
16015     GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
16016     GMOCK_LIBS=`gmock-config --ldflags --libs`
16017
16018 $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
16019
16020   else
16021     # We don't run test cases which use Google Mocking framework.
16022     GMOCK_CFLAGS=
16023     GMOCK_LIBS=
16024   fi
16025 else
16026   # We'll use src/googletest.h for our unittests.
16027   GTEST_CFLAGS=
16028   GTEST_LIBS=
16029 fi
16030  if test x"$GMOCK_CONFIG" = "xyes"; then
16031   HAVE_GMOCK_TRUE=
16032   HAVE_GMOCK_FALSE='#'
16033 else
16034   HAVE_GMOCK_TRUE='#'
16035   HAVE_GMOCK_FALSE=
16036 fi
16037
16038
16039 # We want to link in libunwind if it exists
16040 UNWIND_LIBS=
16041 # Unfortunately, we need to check the header file in addition to the
16042 # lib file to check if libunwind is available since libunwind-0.98
16043 # doesn't install all necessary header files.
16044 if test x"$ac_cv_have_libunwind_h" = x"1"; then
16045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
16046 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
16047 if ${ac_cv_lib_unwind_backtrace+:} false; then :
16048   $as_echo_n "(cached) " >&6
16049 else
16050   ac_check_lib_save_LIBS=$LIBS
16051 LIBS="-lunwind  $LIBS"
16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h.  */
16054
16055 /* Override any GCC internal prototype to avoid an error.
16056    Use char because int might match the return type of a GCC
16057    builtin and then its argument prototype would still apply.  */
16058 #ifdef __cplusplus
16059 extern "C"
16060 #endif
16061 char backtrace ();
16062 int
16063 main ()
16064 {
16065 return backtrace ();
16066   ;
16067   return 0;
16068 }
16069 _ACEOF
16070 if ac_fn_cxx_try_link "$LINENO"; then :
16071   ac_cv_lib_unwind_backtrace=yes
16072 else
16073   ac_cv_lib_unwind_backtrace=no
16074 fi
16075 rm -f core conftest.err conftest.$ac_objext \
16076     conftest$ac_exeext conftest.$ac_ext
16077 LIBS=$ac_check_lib_save_LIBS
16078 fi
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
16080 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
16081 if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
16082   UNWIND_LIBS=-lunwind
16083 fi
16084
16085 fi
16086
16087 if test x"$UNWIND_LIBS" != x""; then
16088
16089 $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
16090
16091 fi
16092
16093 # We'd like to use read/write locks in several places in the code.
16094 # See if our pthreads support extends to that.  Note: for linux, it
16095 # does as long as you define _XOPEN_SOURCE appropriately.
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
16097 $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
16098 if ${ac_cv_rwlock+:} false; then :
16099   $as_echo_n "(cached) " >&6
16100 else
16101
16102  ac_ext=c
16103 ac_cpp='$CPP $CPPFLAGS'
16104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16107
16108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h.  */
16110 #define _XOPEN_SOURCE 500
16111                  #include <pthread.h>
16112 int
16113 main ()
16114 {
16115 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
16116                  pthread_rwlock_rdlock(&l);
16117                  return 0;
16118   ;
16119   return 0;
16120 }
16121 _ACEOF
16122 if ac_fn_c_try_compile "$LINENO"; then :
16123   ac_cv_rwlock=yes
16124 else
16125   ac_cv_rwlock=no
16126 fi
16127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16128  ac_ext=cpp
16129 ac_cpp='$CXXCPP $CPPFLAGS'
16130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16133
16134
16135 fi
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
16137 $as_echo "$ac_cv_rwlock" >&6; }
16138 if test "$ac_cv_rwlock" = yes; then
16139
16140 $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
16141
16142 fi
16143
16144
16145 # Find out what namespace 'normal' STL code lives in, and also what namespace
16146 # the user wants our classes to be defined in
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
16148 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
16149 if ${ac_cv_cxx_namespaces+:} false; then :
16150   $as_echo_n "(cached) " >&6
16151 else
16152
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                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h.  */
16161 namespace Outer {
16162                                     namespace Inner { int i = 0; }}
16163 int
16164 main ()
16165 {
16166 using namespace Outer::Inner; return i;
16167   ;
16168   return 0;
16169 }
16170 _ACEOF
16171 if ac_fn_cxx_try_compile "$LINENO"; then :
16172   ac_cv_cxx_namespaces=yes
16173 else
16174   ac_cv_cxx_namespaces=no
16175 fi
16176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177                   ac_ext=cpp
16178 ac_cpp='$CXXCPP $CPPFLAGS'
16179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16182
16183 fi
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
16185 $as_echo "$ac_cv_cxx_namespaces" >&6; }
16186   if test "$ac_cv_cxx_namespaces" = yes; then
16187
16188 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
16189
16190   fi
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
16192 $as_echo_n "checking what namespace STL code is in... " >&6; }
16193 if ${ac_cv_cxx_stl_namespace+:} false; then :
16194   $as_echo_n "(cached) " >&6
16195 else
16196
16197
16198       ac_ext=cpp
16199 ac_cpp='$CXXCPP $CPPFLAGS'
16200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16203
16204       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16205 /* end confdefs.h.  */
16206 #include <vector>
16207 int
16208 main ()
16209 {
16210 vector<int> t; return 0;
16211   ;
16212   return 0;
16213 }
16214 _ACEOF
16215 if ac_fn_cxx_try_compile "$LINENO"; then :
16216   ac_cv_cxx_stl_namespace=none
16217 fi
16218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16219       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220 /* end confdefs.h.  */
16221 #include <vector>
16222 int
16223 main ()
16224 {
16225 std::vector<int> t; return 0;
16226   ;
16227   return 0;
16228 }
16229 _ACEOF
16230 if ac_fn_cxx_try_compile "$LINENO"; then :
16231   ac_cv_cxx_stl_namespace=std
16232 fi
16233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16234       ac_ext=cpp
16235 ac_cpp='$CXXCPP $CPPFLAGS'
16236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16239
16240 fi
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
16242 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
16243    if test "$ac_cv_cxx_stl_namespace" = none; then
16244
16245 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
16246
16247    fi
16248    if test "$ac_cv_cxx_stl_namespace" = std; then
16249
16250 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
16251
16252    fi
16253
16254 google_namespace_default=google
16255    # Check whether --enable-namespace was given.
16256 if test "${enable_namespace+set}" = set; then :
16257   enableval=$enable_namespace; case "$enableval" in
16258                     yes) google_namespace="$google_namespace_default" ;;
16259                      no) google_namespace="" ;;
16260                       *) google_namespace="$enableval" ;;
16261                   esac
16262 else
16263   google_namespace="$google_namespace_default"
16264 fi
16265
16266    if test -n "$google_namespace"; then
16267      ac_google_namespace="$google_namespace"
16268      ac_google_start_namespace="namespace $google_namespace {"
16269      ac_google_end_namespace="}"
16270    else
16271      ac_google_namespace=""
16272      ac_google_start_namespace=""
16273      ac_google_end_namespace=""
16274    fi
16275
16276 cat >>confdefs.h <<_ACEOF
16277 #define GOOGLE_NAMESPACE $ac_google_namespace
16278 _ACEOF
16279
16280
16281 cat >>confdefs.h <<_ACEOF
16282 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
16283 _ACEOF
16284
16285
16286 cat >>confdefs.h <<_ACEOF
16287 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
16288 _ACEOF
16289
16290
16291
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
16293 $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
16294 if ${ac_cv_cxx_using_operator+:} false; then :
16295   $as_echo_n "(cached) " >&6
16296 else
16297
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        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h.  */
16306 #include <iostream>
16307                        std::ostream& operator<<(std::ostream&, struct s);
16308 int
16309 main ()
16310 {
16311 using ::operator<<; return 0;
16312   ;
16313   return 0;
16314 }
16315 _ACEOF
16316 if ac_fn_cxx_try_compile "$LINENO"; then :
16317   ac_cv_cxx_using_operator=1
16318 else
16319   ac_cv_cxx_using_operator=0
16320 fi
16321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322       ac_ext=cpp
16323 ac_cpp='$CXXCPP $CPPFLAGS'
16324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16327
16328 fi
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
16330 $as_echo "$ac_cv_cxx_using_operator" >&6; }
16331   if test "$ac_cv_cxx_using_operator" = 1; then
16332
16333 $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
16334
16335   fi
16336
16337 for ac_header in ucontext.h
16338 do :
16339   ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
16340 if test "x$ac_cv_header_ucontext_h" = xyes; then :
16341   cat >>confdefs.h <<_ACEOF
16342 #define HAVE_UCONTEXT_H 1
16343 _ACEOF
16344
16345 fi
16346
16347 done
16348
16349    for ac_header in sys/ucontext.h
16350 do :
16351   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
16352 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
16353   cat >>confdefs.h <<_ACEOF
16354 #define HAVE_SYS_UCONTEXT_H 1
16355 _ACEOF
16356
16357 fi
16358
16359 done
16360        # ucontext on OS X 10.6 (at least)
16361    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
16362 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
16363    pc_fields="           uc_mcontext.gregs[REG_PC]"  # Solaris x86 (32 + 64 bit)
16364    pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
16365    pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
16366    pc_fields="$pc_fields uc_mcontext.sc_ip"            # Linux (ia64)
16367    pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
16368    pc_fields="$pc_fields uc_mcontext.gregs[R15]"     # Linux (arm old [untested])
16369    pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm new [untested])
16370    pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
16371    pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
16372    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]"  # NetBSD (i386)
16373    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]"  # NetBSD (x86_64)
16374    pc_fields="$pc_fields uc_mcontext->ss.eip"          # OS X (i386, <=10.4)
16375    pc_fields="$pc_fields uc_mcontext->__ss.__eip"      # OS X (i386, >=10.5)
16376    pc_fields="$pc_fields uc_mcontext->ss.rip"          # OS X (x86_64)
16377    pc_fields="$pc_fields uc_mcontext->__ss.__rip"      # OS X (>=10.5 [untested])
16378    pc_fields="$pc_fields uc_mcontext->ss.srr0"         # OS X (ppc, ppc64 [untested])
16379    pc_fields="$pc_fields uc_mcontext->__ss.__srr0"     # OS X (>=10.5 [untested])
16380    pc_field_found=false
16381    for pc_field in $pc_fields; do
16382      if ! $pc_field_found; then
16383        if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
16384          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385 /* end confdefs.h.  */
16386 #define _GNU_SOURCE 1
16387                          #include <sys/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        else
16408          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h.  */
16410 #define _GNU_SOURCE 1
16411                          #include <ucontext.h>
16412 int
16413 main ()
16414 {
16415 ucontext_t u; return u.$pc_field == 0;
16416   ;
16417   return 0;
16418 }
16419 _ACEOF
16420 if ac_fn_cxx_try_compile "$LINENO"; then :
16421
16422 cat >>confdefs.h <<_ACEOF
16423 #define PC_FROM_UCONTEXT $pc_field
16424 _ACEOF
16425
16426                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16427 $as_echo "$pc_field" >&6; }
16428                         pc_field_found=true
16429 fi
16430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16431        fi
16432      fi
16433    done
16434    if ! $pc_field_found; then
16435      pc_fields="           sc_eip"  # OpenBSD (i386)
16436      pc_fields="$pc_fields sc_rip"  # OpenBSD (x86_64)
16437      for pc_field in $pc_fields; do
16438        if ! $pc_field_found; then
16439          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h.  */
16441 #include <signal.h>
16442 int
16443 main ()
16444 {
16445 ucontext_t u; return u.$pc_field == 0;
16446   ;
16447   return 0;
16448 }
16449 _ACEOF
16450 if ac_fn_cxx_try_compile "$LINENO"; then :
16451
16452 cat >>confdefs.h <<_ACEOF
16453 #define PC_FROM_UCONTEXT $pc_field
16454 _ACEOF
16455
16456                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
16457 $as_echo "$pc_field" >&6; }
16458                         pc_field_found=true
16459 fi
16460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16461        fi
16462      done
16463    fi
16464    if ! $pc_field_found; then
16465      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC.  Will not output failed addresses..." >&5
16466 $as_echo "$as_me: WARNING: Could not find the PC.  Will not output failed addresses..." >&2;}
16467    fi
16468
16469
16470 cat >>confdefs.h <<_ACEOF
16471 #define TEST_SRC_DIR "$srcdir"
16472 _ACEOF
16473
16474
16475 # These are what's needed by logging.h.in and raw_logging.h.in
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498 # Write generated configuration file
16499 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"
16500
16501 ac_config_files="$ac_config_files libglog.pc"
16502
16503 cat >confcache <<\_ACEOF
16504 # This file is a shell script that caches the results of configure
16505 # tests run on this system so they can be shared between configure
16506 # scripts and configure runs, see configure's option --config-cache.
16507 # It is not useful on other systems.  If it contains results you don't
16508 # want to keep, you may remove or edit it.
16509 #
16510 # config.status only pays attention to the cache file if you give it
16511 # the --recheck option to rerun configure.
16512 #
16513 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16514 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16515 # following values.
16516
16517 _ACEOF
16518
16519 # The following way of writing the cache mishandles newlines in values,
16520 # but we know of no workaround that is simple, portable, and efficient.
16521 # So, we kill variables containing newlines.
16522 # Ultrix sh set writes to stderr and can't be redirected directly,
16523 # and sets the high bit in the cache file unless we assign to the vars.
16524 (
16525   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16526     eval ac_val=\$$ac_var
16527     case $ac_val in #(
16528     *${as_nl}*)
16529       case $ac_var in #(
16530       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16531 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16532       esac
16533       case $ac_var in #(
16534       _ | IFS | as_nl) ;; #(
16535       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16536       *) { eval $ac_var=; unset $ac_var;} ;;
16537       esac ;;
16538     esac
16539   done
16540
16541   (set) 2>&1 |
16542     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16543     *${as_nl}ac_space=\ *)
16544       # `set' does not quote correctly, so add quotes: double-quote
16545       # substitution turns \\\\ into \\, and sed turns \\ into \.
16546       sed -n \
16547         "s/'/'\\\\''/g;
16548           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16549       ;; #(
16550     *)
16551       # `set' quotes correctly as required by POSIX, so do not add quotes.
16552       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16553       ;;
16554     esac |
16555     sort
16556 ) |
16557   sed '
16558      /^ac_cv_env_/b end
16559      t clear
16560      :clear
16561      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16562      t end
16563      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16564      :end' >>confcache
16565 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16566   if test -w "$cache_file"; then
16567     if test "x$cache_file" != "x/dev/null"; then
16568       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16569 $as_echo "$as_me: updating cache $cache_file" >&6;}
16570       if test ! -f "$cache_file" || test -h "$cache_file"; then
16571         cat confcache >"$cache_file"
16572       else
16573         case $cache_file in #(
16574         */* | ?:*)
16575           mv -f confcache "$cache_file"$$ &&
16576           mv -f "$cache_file"$$ "$cache_file" ;; #(
16577         *)
16578           mv -f confcache "$cache_file" ;;
16579         esac
16580       fi
16581     fi
16582   else
16583     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16584 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16585   fi
16586 fi
16587 rm -f confcache
16588
16589 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16590 # Let make expand exec_prefix.
16591 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16592
16593 DEFS=-DHAVE_CONFIG_H
16594
16595 ac_libobjs=
16596 ac_ltlibobjs=
16597 U=
16598 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16599   # 1. Remove the extension, and $U if already installed.
16600   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16601   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16602   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16603   #    will be set to the directory where LIBOBJS objects are built.
16604   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16605   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16606 done
16607 LIBOBJS=$ac_libobjs
16608
16609 LTLIBOBJS=$ac_ltlibobjs
16610
16611
16612  if test -n "$EXEEXT"; then
16613   am__EXEEXT_TRUE=
16614   am__EXEEXT_FALSE='#'
16615 else
16616   am__EXEEXT_TRUE='#'
16617   am__EXEEXT_FALSE=
16618 fi
16619
16620 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16621   as_fn_error $? "conditional \"AMDEP\" was never defined.
16622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16623 fi
16624 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16625   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16627 fi
16628 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16629   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16631 fi
16632 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
16633   as_fn_error $? "conditional \"GCC\" was never defined.
16634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16635 fi
16636 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16637   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16639 fi
16640 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
16641   as_fn_error $? "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
16642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16643 fi
16644 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
16645   as_fn_error $? "conditional \"X86_64\" was never defined.
16646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16647 fi
16648 if test -z "${DISABLE_RTTI_TRUE}" && test -z "${DISABLE_RTTI_FALSE}"; then
16649   as_fn_error $? "conditional \"DISABLE_RTTI\" was never defined.
16650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16651 fi
16652 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
16653   as_fn_error $? "conditional \"HAVE_GMOCK\" was never defined.
16654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16655 fi
16656
16657 : "${CONFIG_STATUS=./config.status}"
16658 ac_write_fail=0
16659 ac_clean_files_save=$ac_clean_files
16660 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16662 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16663 as_write_fail=0
16664 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16665 #! $SHELL
16666 # Generated by $as_me.
16667 # Run this file to recreate the current configuration.
16668 # Compiler output produced by configure, useful for debugging
16669 # configure, is in config.log if it exists.
16670
16671 debug=false
16672 ac_cs_recheck=false
16673 ac_cs_silent=false
16674
16675 SHELL=\${CONFIG_SHELL-$SHELL}
16676 export SHELL
16677 _ASEOF
16678 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16679 ## -------------------- ##
16680 ## M4sh Initialization. ##
16681 ## -------------------- ##
16682
16683 # Be more Bourne compatible
16684 DUALCASE=1; export DUALCASE # for MKS sh
16685 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16686   emulate sh
16687   NULLCMD=:
16688   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16689   # is contrary to our usage.  Disable this feature.
16690   alias -g '${1+"$@"}'='"$@"'
16691   setopt NO_GLOB_SUBST
16692 else
16693   case `(set -o) 2>/dev/null` in #(
16694   *posix*) :
16695     set -o posix ;; #(
16696   *) :
16697      ;;
16698 esac
16699 fi
16700
16701
16702 as_nl='
16703 '
16704 export as_nl
16705 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16706 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16707 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16708 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16709 # Prefer a ksh shell builtin over an external printf program on Solaris,
16710 # but without wasting forks for bash or zsh.
16711 if test -z "$BASH_VERSION$ZSH_VERSION" \
16712     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16713   as_echo='print -r --'
16714   as_echo_n='print -rn --'
16715 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16716   as_echo='printf %s\n'
16717   as_echo_n='printf %s'
16718 else
16719   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16720     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16721     as_echo_n='/usr/ucb/echo -n'
16722   else
16723     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16724     as_echo_n_body='eval
16725       arg=$1;
16726       case $arg in #(
16727       *"$as_nl"*)
16728         expr "X$arg" : "X\\(.*\\)$as_nl";
16729         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16730       esac;
16731       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16732     '
16733     export as_echo_n_body
16734     as_echo_n='sh -c $as_echo_n_body as_echo'
16735   fi
16736   export as_echo_body
16737   as_echo='sh -c $as_echo_body as_echo'
16738 fi
16739
16740 # The user is always right.
16741 if test "${PATH_SEPARATOR+set}" != set; then
16742   PATH_SEPARATOR=:
16743   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16744     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16745       PATH_SEPARATOR=';'
16746   }
16747 fi
16748
16749
16750 # IFS
16751 # We need space, tab and new line, in precisely that order.  Quoting is
16752 # there to prevent editors from complaining about space-tab.
16753 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16754 # splitting by setting IFS to empty value.)
16755 IFS=" ""        $as_nl"
16756
16757 # Find who we are.  Look in the path if we contain no directory separator.
16758 as_myself=
16759 case $0 in #((
16760   *[\\/]* ) as_myself=$0 ;;
16761   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16762 for as_dir in $PATH
16763 do
16764   IFS=$as_save_IFS
16765   test -z "$as_dir" && as_dir=.
16766     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16767   done
16768 IFS=$as_save_IFS
16769
16770      ;;
16771 esac
16772 # We did not find ourselves, most probably we were run as `sh COMMAND'
16773 # in which case we are not to be found in the path.
16774 if test "x$as_myself" = x; then
16775   as_myself=$0
16776 fi
16777 if test ! -f "$as_myself"; then
16778   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16779   exit 1
16780 fi
16781
16782 # Unset variables that we do not need and which cause bugs (e.g. in
16783 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16784 # suppresses any "Segmentation fault" message there.  '((' could
16785 # trigger a bug in pdksh 5.2.14.
16786 for as_var in BASH_ENV ENV MAIL MAILPATH
16787 do eval test x\${$as_var+set} = xset \
16788   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16789 done
16790 PS1='$ '
16791 PS2='> '
16792 PS4='+ '
16793
16794 # NLS nuisances.
16795 LC_ALL=C
16796 export LC_ALL
16797 LANGUAGE=C
16798 export LANGUAGE
16799
16800 # CDPATH.
16801 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16802
16803
16804 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16805 # ----------------------------------------
16806 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16807 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16808 # script with STATUS, using 1 if that was 0.
16809 as_fn_error ()
16810 {
16811   as_status=$1; test $as_status -eq 0 && as_status=1
16812   if test "$4"; then
16813     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16814     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16815   fi
16816   $as_echo "$as_me: error: $2" >&2
16817   as_fn_exit $as_status
16818 } # as_fn_error
16819
16820
16821 # as_fn_set_status STATUS
16822 # -----------------------
16823 # Set $? to STATUS, without forking.
16824 as_fn_set_status ()
16825 {
16826   return $1
16827 } # as_fn_set_status
16828
16829 # as_fn_exit STATUS
16830 # -----------------
16831 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16832 as_fn_exit ()
16833 {
16834   set +e
16835   as_fn_set_status $1
16836   exit $1
16837 } # as_fn_exit
16838
16839 # as_fn_unset VAR
16840 # ---------------
16841 # Portably unset VAR.
16842 as_fn_unset ()
16843 {
16844   { eval $1=; unset $1;}
16845 }
16846 as_unset=as_fn_unset
16847 # as_fn_append VAR VALUE
16848 # ----------------------
16849 # Append the text in VALUE to the end of the definition contained in VAR. Take
16850 # advantage of any shell optimizations that allow amortized linear growth over
16851 # repeated appends, instead of the typical quadratic growth present in naive
16852 # implementations.
16853 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16854   eval 'as_fn_append ()
16855   {
16856     eval $1+=\$2
16857   }'
16858 else
16859   as_fn_append ()
16860   {
16861     eval $1=\$$1\$2
16862   }
16863 fi # as_fn_append
16864
16865 # as_fn_arith ARG...
16866 # ------------------
16867 # Perform arithmetic evaluation on the ARGs, and store the result in the
16868 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16869 # must be portable across $(()) and expr.
16870 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16871   eval 'as_fn_arith ()
16872   {
16873     as_val=$(( $* ))
16874   }'
16875 else
16876   as_fn_arith ()
16877   {
16878     as_val=`expr "$@" || test $? -eq 1`
16879   }
16880 fi # as_fn_arith
16881
16882
16883 if expr a : '\(a\)' >/dev/null 2>&1 &&
16884    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16885   as_expr=expr
16886 else
16887   as_expr=false
16888 fi
16889
16890 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16891   as_basename=basename
16892 else
16893   as_basename=false
16894 fi
16895
16896 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16897   as_dirname=dirname
16898 else
16899   as_dirname=false
16900 fi
16901
16902 as_me=`$as_basename -- "$0" ||
16903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16904          X"$0" : 'X\(//\)$' \| \
16905          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16906 $as_echo X/"$0" |
16907     sed '/^.*\/\([^/][^/]*\)\/*$/{
16908             s//\1/
16909             q
16910           }
16911           /^X\/\(\/\/\)$/{
16912             s//\1/
16913             q
16914           }
16915           /^X\/\(\/\).*/{
16916             s//\1/
16917             q
16918           }
16919           s/.*/./; q'`
16920
16921 # Avoid depending upon Character Ranges.
16922 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16923 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16924 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16925 as_cr_digits='0123456789'
16926 as_cr_alnum=$as_cr_Letters$as_cr_digits
16927
16928 ECHO_C= ECHO_N= ECHO_T=
16929 case `echo -n x` in #(((((
16930 -n*)
16931   case `echo 'xy\c'` in
16932   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16933   xy)  ECHO_C='\c';;
16934   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16935        ECHO_T=' ';;
16936   esac;;
16937 *)
16938   ECHO_N='-n';;
16939 esac
16940
16941 rm -f conf$$ conf$$.exe conf$$.file
16942 if test -d conf$$.dir; then
16943   rm -f conf$$.dir/conf$$.file
16944 else
16945   rm -f conf$$.dir
16946   mkdir conf$$.dir 2>/dev/null
16947 fi
16948 if (echo >conf$$.file) 2>/dev/null; then
16949   if ln -s conf$$.file conf$$ 2>/dev/null; then
16950     as_ln_s='ln -s'
16951     # ... but there are two gotchas:
16952     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16953     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16954     # In both cases, we have to default to `cp -p'.
16955     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16956       as_ln_s='cp -p'
16957   elif ln conf$$.file conf$$ 2>/dev/null; then
16958     as_ln_s=ln
16959   else
16960     as_ln_s='cp -p'
16961   fi
16962 else
16963   as_ln_s='cp -p'
16964 fi
16965 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16966 rmdir conf$$.dir 2>/dev/null
16967
16968
16969 # as_fn_mkdir_p
16970 # -------------
16971 # Create "$as_dir" as a directory, including parents if necessary.
16972 as_fn_mkdir_p ()
16973 {
16974
16975   case $as_dir in #(
16976   -*) as_dir=./$as_dir;;
16977   esac
16978   test -d "$as_dir" || eval $as_mkdir_p || {
16979     as_dirs=
16980     while :; do
16981       case $as_dir in #(
16982       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16983       *) as_qdir=$as_dir;;
16984       esac
16985       as_dirs="'$as_qdir' $as_dirs"
16986       as_dir=`$as_dirname -- "$as_dir" ||
16987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16988          X"$as_dir" : 'X\(//\)[^/]' \| \
16989          X"$as_dir" : 'X\(//\)$' \| \
16990          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16991 $as_echo X"$as_dir" |
16992     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16993             s//\1/
16994             q
16995           }
16996           /^X\(\/\/\)[^/].*/{
16997             s//\1/
16998             q
16999           }
17000           /^X\(\/\/\)$/{
17001             s//\1/
17002             q
17003           }
17004           /^X\(\/\).*/{
17005             s//\1/
17006             q
17007           }
17008           s/.*/./; q'`
17009       test -d "$as_dir" && break
17010     done
17011     test -z "$as_dirs" || eval "mkdir $as_dirs"
17012   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17013
17014
17015 } # as_fn_mkdir_p
17016 if mkdir -p . 2>/dev/null; then
17017   as_mkdir_p='mkdir -p "$as_dir"'
17018 else
17019   test -d ./-p && rmdir ./-p
17020   as_mkdir_p=false
17021 fi
17022
17023 if test -x / >/dev/null 2>&1; then
17024   as_test_x='test -x'
17025 else
17026   if ls -dL / >/dev/null 2>&1; then
17027     as_ls_L_option=L
17028   else
17029     as_ls_L_option=
17030   fi
17031   as_test_x='
17032     eval sh -c '\''
17033       if test -d "$1"; then
17034         test -d "$1/.";
17035       else
17036         case $1 in #(
17037         -*)set "./$1";;
17038         esac;
17039         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17040         ???[sx]*):;;*)false;;esac;fi
17041     '\'' sh
17042   '
17043 fi
17044 as_executable_p=$as_test_x
17045
17046 # Sed expression to map a string onto a valid CPP name.
17047 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17048
17049 # Sed expression to map a string onto a valid variable name.
17050 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17051
17052
17053 exec 6>&1
17054 ## ----------------------------------- ##
17055 ## Main body of $CONFIG_STATUS script. ##
17056 ## ----------------------------------- ##
17057 _ASEOF
17058 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17059
17060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17061 # Save the log message, to keep $0 and so on meaningful, and to
17062 # report actual input values of CONFIG_FILES etc. instead of their
17063 # values after options handling.
17064 ac_log="
17065 This file was extended by glog $as_me 0.3.2, which was
17066 generated by GNU Autoconf 2.68.  Invocation command line was
17067
17068   CONFIG_FILES    = $CONFIG_FILES
17069   CONFIG_HEADERS  = $CONFIG_HEADERS
17070   CONFIG_LINKS    = $CONFIG_LINKS
17071   CONFIG_COMMANDS = $CONFIG_COMMANDS
17072   $ $0 $@
17073
17074 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17075 "
17076
17077 _ACEOF
17078
17079 case $ac_config_files in *"
17080 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17081 esac
17082
17083 case $ac_config_headers in *"
17084 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17085 esac
17086
17087
17088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17089 # Files that config.status was made for.
17090 config_files="$ac_config_files"
17091 config_headers="$ac_config_headers"
17092 config_commands="$ac_config_commands"
17093
17094 _ACEOF
17095
17096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17097 ac_cs_usage="\
17098 \`$as_me' instantiates files and other configuration actions
17099 from templates according to the current configuration.  Unless the files
17100 and actions are specified as TAGs, all are instantiated by default.
17101
17102 Usage: $0 [OPTION]... [TAG]...
17103
17104   -h, --help       print this help, then exit
17105   -V, --version    print version number and configuration settings, then exit
17106       --config     print configuration, then exit
17107   -q, --quiet, --silent
17108                    do not print progress messages
17109   -d, --debug      don't remove temporary files
17110       --recheck    update $as_me by reconfiguring in the same conditions
17111       --file=FILE[:TEMPLATE]
17112                    instantiate the configuration file FILE
17113       --header=FILE[:TEMPLATE]
17114                    instantiate the configuration header FILE
17115
17116 Configuration files:
17117 $config_files
17118
17119 Configuration headers:
17120 $config_headers
17121
17122 Configuration commands:
17123 $config_commands
17124
17125 Report bugs to <opensource@google.com>."
17126
17127 _ACEOF
17128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17129 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17130 ac_cs_version="\\
17131 glog config.status 0.3.2
17132 configured by $0, generated by GNU Autoconf 2.68,
17133   with options \\"\$ac_cs_config\\"
17134
17135 Copyright (C) 2010 Free Software Foundation, Inc.
17136 This config.status script is free software; the Free Software Foundation
17137 gives unlimited permission to copy, distribute and modify it."
17138
17139 ac_pwd='$ac_pwd'
17140 srcdir='$srcdir'
17141 INSTALL='$INSTALL'
17142 MKDIR_P='$MKDIR_P'
17143 AWK='$AWK'
17144 test -n "\$AWK" || AWK=awk
17145 _ACEOF
17146
17147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17148 # The default lists apply if the user does not specify any file.
17149 ac_need_defaults=:
17150 while test $# != 0
17151 do
17152   case $1 in
17153   --*=?*)
17154     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17155     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17156     ac_shift=:
17157     ;;
17158   --*=)
17159     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17160     ac_optarg=
17161     ac_shift=:
17162     ;;
17163   *)
17164     ac_option=$1
17165     ac_optarg=$2
17166     ac_shift=shift
17167     ;;
17168   esac
17169
17170   case $ac_option in
17171   # Handling of the options.
17172   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17173     ac_cs_recheck=: ;;
17174   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17175     $as_echo "$ac_cs_version"; exit ;;
17176   --config | --confi | --conf | --con | --co | --c )
17177     $as_echo "$ac_cs_config"; exit ;;
17178   --debug | --debu | --deb | --de | --d | -d )
17179     debug=: ;;
17180   --file | --fil | --fi | --f )
17181     $ac_shift
17182     case $ac_optarg in
17183     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17184     '') as_fn_error $? "missing file argument" ;;
17185     esac
17186     as_fn_append CONFIG_FILES " '$ac_optarg'"
17187     ac_need_defaults=false;;
17188   --header | --heade | --head | --hea )
17189     $ac_shift
17190     case $ac_optarg in
17191     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17192     esac
17193     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17194     ac_need_defaults=false;;
17195   --he | --h)
17196     # Conflict between --help and --header
17197     as_fn_error $? "ambiguous option: \`$1'
17198 Try \`$0 --help' for more information.";;
17199   --help | --hel | -h )
17200     $as_echo "$ac_cs_usage"; exit ;;
17201   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17202   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17203     ac_cs_silent=: ;;
17204
17205   # This is an error.
17206   -*) as_fn_error $? "unrecognized option: \`$1'
17207 Try \`$0 --help' for more information." ;;
17208
17209   *) as_fn_append ac_config_targets " $1"
17210      ac_need_defaults=false ;;
17211
17212   esac
17213   shift
17214 done
17215
17216 ac_configure_extra_args=
17217
17218 if $ac_cs_silent; then
17219   exec 6>/dev/null
17220   ac_configure_extra_args="$ac_configure_extra_args --silent"
17221 fi
17222
17223 _ACEOF
17224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17225 if \$ac_cs_recheck; then
17226   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17227   shift
17228   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17229   CONFIG_SHELL='$SHELL'
17230   export CONFIG_SHELL
17231   exec "\$@"
17232 fi
17233
17234 _ACEOF
17235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17236 exec 5>>config.log
17237 {
17238   echo
17239   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17240 ## Running $as_me. ##
17241 _ASBOX
17242   $as_echo "$ac_log"
17243 } >&5
17244
17245 _ACEOF
17246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17247 #
17248 # INIT-COMMANDS
17249 #
17250 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17251
17252
17253 # The HP-UX ksh and POSIX shell print the target directory to stdout
17254 # if CDPATH is set.
17255 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17256
17257 sed_quote_subst='$sed_quote_subst'
17258 double_quote_subst='$double_quote_subst'
17259 delay_variable_subst='$delay_variable_subst'
17260 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17261 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17262 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17263 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17264 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17265 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17266 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17267 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17268 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17269 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17270 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17271 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17272 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17273 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17274 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17275 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17276 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17277 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17278 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17279 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17280 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17281 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17282 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17283 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17284 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17285 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17286 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17287 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17288 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17289 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17290 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17291 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17292 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17293 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17294 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17295 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17296 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17297 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17298 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17299 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17300 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17301 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17302 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17303 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17304 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"`'
17305 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"`'
17306 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17307 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17308 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17309 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17310 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17311 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17312 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17313 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17314 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17315 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17316 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17317 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17318 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17319 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17320 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17321 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17322 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17323 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17324 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17325 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17326 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17327 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17328 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17329 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17330 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17331 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17332 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17333 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17334 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17335 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17336 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17337 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17338 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17339 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17340 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17341 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17342 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17343 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17344 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17345 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17346 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17347 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17348 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17349 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17350 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17351 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17352 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17353 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17354 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17355 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17356 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17357 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17358 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17359 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17360 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17361 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17362 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17363 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17364 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17365 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17366 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17367 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17368 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17369 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17370 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17371 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17372 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17373 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17374 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17375 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17376 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17377 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17378 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17379 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17380 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17381 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17382 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17383 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17384 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17385 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17386 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17387 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17388 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17389 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17390 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17391 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17392 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17393 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17394 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17395 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17396 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17397 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17398 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17399 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17400 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17401 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17402 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17403 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17404 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17405 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17406 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17407 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17408 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17409 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17410 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17411 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17412 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17413 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17414 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17415 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17416 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17417 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17418 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17419 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17420 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17421 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17422 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17423 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17424 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17425 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17426 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17427 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17428 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17429 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17430 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17431
17432 LTCC='$LTCC'
17433 LTCFLAGS='$LTCFLAGS'
17434 compiler='$compiler_DEFAULT'
17435
17436 # Quote evaled strings.
17437 for var in SED \
17438 GREP \
17439 EGREP \
17440 FGREP \
17441 LD \
17442 NM \
17443 LN_S \
17444 lt_SP2NL \
17445 lt_NL2SP \
17446 reload_flag \
17447 OBJDUMP \
17448 deplibs_check_method \
17449 file_magic_cmd \
17450 AR \
17451 AR_FLAGS \
17452 STRIP \
17453 RANLIB \
17454 CC \
17455 CFLAGS \
17456 compiler \
17457 lt_cv_sys_global_symbol_pipe \
17458 lt_cv_sys_global_symbol_to_cdecl \
17459 lt_cv_sys_global_symbol_to_c_name_address \
17460 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17461 SHELL \
17462 ECHO \
17463 lt_prog_compiler_no_builtin_flag \
17464 lt_prog_compiler_wl \
17465 lt_prog_compiler_pic \
17466 lt_prog_compiler_static \
17467 lt_cv_prog_compiler_c_o \
17468 need_locks \
17469 DSYMUTIL \
17470 NMEDIT \
17471 LIPO \
17472 OTOOL \
17473 OTOOL64 \
17474 shrext_cmds \
17475 export_dynamic_flag_spec \
17476 whole_archive_flag_spec \
17477 compiler_needs_object \
17478 with_gnu_ld \
17479 allow_undefined_flag \
17480 no_undefined_flag \
17481 hardcode_libdir_flag_spec \
17482 hardcode_libdir_flag_spec_ld \
17483 hardcode_libdir_separator \
17484 fix_srcfile_path \
17485 exclude_expsyms \
17486 include_expsyms \
17487 file_list_spec \
17488 variables_saved_for_relink \
17489 libname_spec \
17490 library_names_spec \
17491 soname_spec \
17492 finish_eval \
17493 old_striplib \
17494 striplib \
17495 compiler_lib_search_dirs \
17496 predep_objects \
17497 postdep_objects \
17498 predeps \
17499 postdeps \
17500 compiler_lib_search_path \
17501 LD_CXX \
17502 compiler_CXX \
17503 lt_prog_compiler_no_builtin_flag_CXX \
17504 lt_prog_compiler_wl_CXX \
17505 lt_prog_compiler_pic_CXX \
17506 lt_prog_compiler_static_CXX \
17507 lt_cv_prog_compiler_c_o_CXX \
17508 export_dynamic_flag_spec_CXX \
17509 whole_archive_flag_spec_CXX \
17510 compiler_needs_object_CXX \
17511 with_gnu_ld_CXX \
17512 allow_undefined_flag_CXX \
17513 no_undefined_flag_CXX \
17514 hardcode_libdir_flag_spec_CXX \
17515 hardcode_libdir_flag_spec_ld_CXX \
17516 hardcode_libdir_separator_CXX \
17517 fix_srcfile_path_CXX \
17518 exclude_expsyms_CXX \
17519 include_expsyms_CXX \
17520 file_list_spec_CXX \
17521 compiler_lib_search_dirs_CXX \
17522 predep_objects_CXX \
17523 postdep_objects_CXX \
17524 predeps_CXX \
17525 postdeps_CXX \
17526 compiler_lib_search_path_CXX; do
17527     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17528     *[\\\\\\\`\\"\\\$]*)
17529       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17530       ;;
17531     *)
17532       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17533       ;;
17534     esac
17535 done
17536
17537 # Double-quote double-evaled strings.
17538 for var in reload_cmds \
17539 old_postinstall_cmds \
17540 old_postuninstall_cmds \
17541 old_archive_cmds \
17542 extract_expsyms_cmds \
17543 old_archive_from_new_cmds \
17544 old_archive_from_expsyms_cmds \
17545 archive_cmds \
17546 archive_expsym_cmds \
17547 module_cmds \
17548 module_expsym_cmds \
17549 export_symbols_cmds \
17550 prelink_cmds \
17551 postinstall_cmds \
17552 postuninstall_cmds \
17553 finish_cmds \
17554 sys_lib_search_path_spec \
17555 sys_lib_dlsearch_path_spec \
17556 old_archive_cmds_CXX \
17557 old_archive_from_new_cmds_CXX \
17558 old_archive_from_expsyms_cmds_CXX \
17559 archive_cmds_CXX \
17560 archive_expsym_cmds_CXX \
17561 module_cmds_CXX \
17562 module_expsym_cmds_CXX \
17563 export_symbols_cmds_CXX \
17564 prelink_cmds_CXX; do
17565     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17566     *[\\\\\\\`\\"\\\$]*)
17567       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17568       ;;
17569     *)
17570       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17571       ;;
17572     esac
17573 done
17574
17575 # Fix-up fallback echo if it was mangled by the above quoting rules.
17576 case \$lt_ECHO in
17577 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17578   ;;
17579 esac
17580
17581 ac_aux_dir='$ac_aux_dir'
17582 xsi_shell='$xsi_shell'
17583 lt_shell_append='$lt_shell_append'
17584
17585 # See if we are running on zsh, and set the options which allow our
17586 # commands through without removal of \ escapes INIT.
17587 if test -n "\${ZSH_VERSION+set}" ; then
17588    setopt NO_GLOB_SUBST
17589 fi
17590
17591
17592     PACKAGE='$PACKAGE'
17593     VERSION='$VERSION'
17594     TIMESTAMP='$TIMESTAMP'
17595     RM='$RM'
17596     ofile='$ofile'
17597
17598
17599
17600
17601
17602
17603 _ACEOF
17604
17605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17606
17607 # Handling of arguments.
17608 for ac_config_target in $ac_config_targets
17609 do
17610   case $ac_config_target in
17611     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17612     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17613     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17614     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17615     "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
17616     "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
17617     "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
17618     "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
17619     "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
17620
17621   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17622   esac
17623 done
17624
17625
17626 # If the user did not use the arguments to specify the items to instantiate,
17627 # then the envvar interface is used.  Set only those that are not.
17628 # We use the long form for the default assignment because of an extremely
17629 # bizarre bug on SunOS 4.1.3.
17630 if $ac_need_defaults; then
17631   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17632   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17633   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17634 fi
17635
17636 # Have a temporary directory for convenience.  Make it in the build tree
17637 # simply because there is no reason against having it here, and in addition,
17638 # creating and moving files from /tmp can sometimes cause problems.
17639 # Hook for its removal unless debugging.
17640 # Note that there is a small window in which the directory will not be cleaned:
17641 # after its creation but before its name has been assigned to `$tmp'.
17642 $debug ||
17643 {
17644   tmp= ac_tmp=
17645   trap 'exit_status=$?
17646   : "${ac_tmp:=$tmp}"
17647   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17648 ' 0
17649   trap 'as_fn_exit 1' 1 2 13 15
17650 }
17651 # Create a (secure) tmp directory for tmp files.
17652
17653 {
17654   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17655   test -d "$tmp"
17656 }  ||
17657 {
17658   tmp=./conf$$-$RANDOM
17659   (umask 077 && mkdir "$tmp")
17660 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17661 ac_tmp=$tmp
17662
17663 # Set up the scripts for CONFIG_FILES section.
17664 # No need to generate them if there are no CONFIG_FILES.
17665 # This happens for instance with `./config.status config.h'.
17666 if test -n "$CONFIG_FILES"; then
17667
17668
17669 ac_cr=`echo X | tr X '\015'`
17670 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17671 # But we know of no other shell where ac_cr would be empty at this
17672 # point, so we can use a bashism as a fallback.
17673 if test "x$ac_cr" = x; then
17674   eval ac_cr=\$\'\\r\'
17675 fi
17676 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17677 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17678   ac_cs_awk_cr='\\r'
17679 else
17680   ac_cs_awk_cr=$ac_cr
17681 fi
17682
17683 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17684 _ACEOF
17685
17686
17687 {
17688   echo "cat >conf$$subs.awk <<_ACEOF" &&
17689   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17690   echo "_ACEOF"
17691 } >conf$$subs.sh ||
17692   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17693 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17694 ac_delim='%!_!# '
17695 for ac_last_try in false false false false false :; do
17696   . ./conf$$subs.sh ||
17697     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17698
17699   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17700   if test $ac_delim_n = $ac_delim_num; then
17701     break
17702   elif $ac_last_try; then
17703     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17704   else
17705     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17706   fi
17707 done
17708 rm -f conf$$subs.sh
17709
17710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17711 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17712 _ACEOF
17713 sed -n '
17714 h
17715 s/^/S["/; s/!.*/"]=/
17716 p
17717 g
17718 s/^[^!]*!//
17719 :repl
17720 t repl
17721 s/'"$ac_delim"'$//
17722 t delim
17723 :nl
17724 h
17725 s/\(.\{148\}\)..*/\1/
17726 t more1
17727 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17728 p
17729 n
17730 b repl
17731 :more1
17732 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17733 p
17734 g
17735 s/.\{148\}//
17736 t nl
17737 :delim
17738 h
17739 s/\(.\{148\}\)..*/\1/
17740 t more2
17741 s/["\\]/\\&/g; s/^/"/; s/$/"/
17742 p
17743 b
17744 :more2
17745 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17746 p
17747 g
17748 s/.\{148\}//
17749 t delim
17750 ' <conf$$subs.awk | sed '
17751 /^[^""]/{
17752   N
17753   s/\n//
17754 }
17755 ' >>$CONFIG_STATUS || ac_write_fail=1
17756 rm -f conf$$subs.awk
17757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17758 _ACAWK
17759 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17760   for (key in S) S_is_set[key] = 1
17761   FS = "\a"
17762
17763 }
17764 {
17765   line = $ 0
17766   nfields = split(line, field, "@")
17767   substed = 0
17768   len = length(field[1])
17769   for (i = 2; i < nfields; i++) {
17770     key = field[i]
17771     keylen = length(key)
17772     if (S_is_set[key]) {
17773       value = S[key]
17774       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17775       len += length(value) + length(field[++i])
17776       substed = 1
17777     } else
17778       len += 1 + keylen
17779   }
17780
17781   print line
17782 }
17783
17784 _ACAWK
17785 _ACEOF
17786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17787 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17788   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17789 else
17790   cat
17791 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17792   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17793 _ACEOF
17794
17795 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17796 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17797 # trailing colons and then remove the whole line if VPATH becomes empty
17798 # (actually we leave an empty line to preserve line numbers).
17799 if test "x$srcdir" = x.; then
17800   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17801 h
17802 s///
17803 s/^/:/
17804 s/[      ]*$/:/
17805 s/:\$(srcdir):/:/g
17806 s/:\${srcdir}:/:/g
17807 s/:@srcdir@:/:/g
17808 s/^:*//
17809 s/:*$//
17810 x
17811 s/\(=[   ]*\).*/\1/
17812 G
17813 s/\n//
17814 s/^[^=]*=[       ]*$//
17815 }'
17816 fi
17817
17818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17819 fi # test -n "$CONFIG_FILES"
17820
17821 # Set up the scripts for CONFIG_HEADERS section.
17822 # No need to generate them if there are no CONFIG_HEADERS.
17823 # This happens for instance with `./config.status Makefile'.
17824 if test -n "$CONFIG_HEADERS"; then
17825 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17826 BEGIN {
17827 _ACEOF
17828
17829 # Transform confdefs.h into an awk script `defines.awk', embedded as
17830 # here-document in config.status, that substitutes the proper values into
17831 # config.h.in to produce config.h.
17832
17833 # Create a delimiter string that does not exist in confdefs.h, to ease
17834 # handling of long lines.
17835 ac_delim='%!_!# '
17836 for ac_last_try in false false :; do
17837   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17838   if test -z "$ac_tt"; then
17839     break
17840   elif $ac_last_try; then
17841     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17842   else
17843     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17844   fi
17845 done
17846
17847 # For the awk script, D is an array of macro values keyed by name,
17848 # likewise P contains macro parameters if any.  Preserve backslash
17849 # newline sequences.
17850
17851 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17852 sed -n '
17853 s/.\{148\}/&'"$ac_delim"'/g
17854 t rset
17855 :rset
17856 s/^[     ]*#[    ]*define[       ][      ]*/ /
17857 t def
17858 d
17859 :def
17860 s/\\$//
17861 t bsnl
17862 s/["\\]/\\&/g
17863 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17864 D["\1"]=" \3"/p
17865 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17866 d
17867 :bsnl
17868 s/["\\]/\\&/g
17869 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17870 D["\1"]=" \3\\\\\\n"\\/p
17871 t cont
17872 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17873 t cont
17874 d
17875 :cont
17876 n
17877 s/.\{148\}/&'"$ac_delim"'/g
17878 t clear
17879 :clear
17880 s/\\$//
17881 t bsnlc
17882 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17883 d
17884 :bsnlc
17885 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17886 b cont
17887 ' <confdefs.h | sed '
17888 s/'"$ac_delim"'/"\\\
17889 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17890
17891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17892   for (key in D) D_is_set[key] = 1
17893   FS = "\a"
17894 }
17895 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17896   line = \$ 0
17897   split(line, arg, " ")
17898   if (arg[1] == "#") {
17899     defundef = arg[2]
17900     mac1 = arg[3]
17901   } else {
17902     defundef = substr(arg[1], 2)
17903     mac1 = arg[2]
17904   }
17905   split(mac1, mac2, "(") #)
17906   macro = mac2[1]
17907   prefix = substr(line, 1, index(line, defundef) - 1)
17908   if (D_is_set[macro]) {
17909     # Preserve the white space surrounding the "#".
17910     print prefix "define", macro P[macro] D[macro]
17911     next
17912   } else {
17913     # Replace #undef with comments.  This is necessary, for example,
17914     # in the case of _POSIX_SOURCE, which is predefined and required
17915     # on some systems where configure will not decide to define it.
17916     if (defundef == "undef") {
17917       print "/*", prefix defundef, macro, "*/"
17918       next
17919     }
17920   }
17921 }
17922 { print }
17923 _ACAWK
17924 _ACEOF
17925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17926   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17927 fi # test -n "$CONFIG_HEADERS"
17928
17929
17930 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17931 shift
17932 for ac_tag
17933 do
17934   case $ac_tag in
17935   :[FHLC]) ac_mode=$ac_tag; continue;;
17936   esac
17937   case $ac_mode$ac_tag in
17938   :[FHL]*:*);;
17939   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17940   :[FH]-) ac_tag=-:-;;
17941   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17942   esac
17943   ac_save_IFS=$IFS
17944   IFS=:
17945   set x $ac_tag
17946   IFS=$ac_save_IFS
17947   shift
17948   ac_file=$1
17949   shift
17950
17951   case $ac_mode in
17952   :L) ac_source=$1;;
17953   :[FH])
17954     ac_file_inputs=
17955     for ac_f
17956     do
17957       case $ac_f in
17958       -) ac_f="$ac_tmp/stdin";;
17959       *) # Look for the file first in the build tree, then in the source tree
17960          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17961          # because $ac_f cannot contain `:'.
17962          test -f "$ac_f" ||
17963            case $ac_f in
17964            [\\/$]*) false;;
17965            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17966            esac ||
17967            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17968       esac
17969       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17970       as_fn_append ac_file_inputs " '$ac_f'"
17971     done
17972
17973     # Let's still pretend it is `configure' which instantiates (i.e., don't
17974     # use $as_me), people would be surprised to read:
17975     #    /* config.h.  Generated by config.status.  */
17976     configure_input='Generated from '`
17977           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17978         `' by configure.'
17979     if test x"$ac_file" != x-; then
17980       configure_input="$ac_file.  $configure_input"
17981       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17982 $as_echo "$as_me: creating $ac_file" >&6;}
17983     fi
17984     # Neutralize special characters interpreted by sed in replacement strings.
17985     case $configure_input in #(
17986     *\&* | *\|* | *\\* )
17987        ac_sed_conf_input=`$as_echo "$configure_input" |
17988        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17989     *) ac_sed_conf_input=$configure_input;;
17990     esac
17991
17992     case $ac_tag in
17993     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17994       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17995     esac
17996     ;;
17997   esac
17998
17999   ac_dir=`$as_dirname -- "$ac_file" ||
18000 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18001          X"$ac_file" : 'X\(//\)[^/]' \| \
18002          X"$ac_file" : 'X\(//\)$' \| \
18003          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18004 $as_echo X"$ac_file" |
18005     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18006             s//\1/
18007             q
18008           }
18009           /^X\(\/\/\)[^/].*/{
18010             s//\1/
18011             q
18012           }
18013           /^X\(\/\/\)$/{
18014             s//\1/
18015             q
18016           }
18017           /^X\(\/\).*/{
18018             s//\1/
18019             q
18020           }
18021           s/.*/./; q'`
18022   as_dir="$ac_dir"; as_fn_mkdir_p
18023   ac_builddir=.
18024
18025 case "$ac_dir" in
18026 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18027 *)
18028   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18029   # A ".." for each directory in $ac_dir_suffix.
18030   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18031   case $ac_top_builddir_sub in
18032   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18033   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18034   esac ;;
18035 esac
18036 ac_abs_top_builddir=$ac_pwd
18037 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18038 # for backward compatibility:
18039 ac_top_builddir=$ac_top_build_prefix
18040
18041 case $srcdir in
18042   .)  # We are building in place.
18043     ac_srcdir=.
18044     ac_top_srcdir=$ac_top_builddir_sub
18045     ac_abs_top_srcdir=$ac_pwd ;;
18046   [\\/]* | ?:[\\/]* )  # Absolute name.
18047     ac_srcdir=$srcdir$ac_dir_suffix;
18048     ac_top_srcdir=$srcdir
18049     ac_abs_top_srcdir=$srcdir ;;
18050   *) # Relative name.
18051     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18052     ac_top_srcdir=$ac_top_build_prefix$srcdir
18053     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18054 esac
18055 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18056
18057
18058   case $ac_mode in
18059   :F)
18060   #
18061   # CONFIG_FILE
18062   #
18063
18064   case $INSTALL in
18065   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18066   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18067   esac
18068   ac_MKDIR_P=$MKDIR_P
18069   case $MKDIR_P in
18070   [\\/$]* | ?:[\\/]* ) ;;
18071   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18072   esac
18073 _ACEOF
18074
18075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18076 # If the template does not know about datarootdir, expand it.
18077 # FIXME: This hack should be removed a few years after 2.60.
18078 ac_datarootdir_hack=; ac_datarootdir_seen=
18079 ac_sed_dataroot='
18080 /datarootdir/ {
18081   p
18082   q
18083 }
18084 /@datadir@/p
18085 /@docdir@/p
18086 /@infodir@/p
18087 /@localedir@/p
18088 /@mandir@/p'
18089 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18090 *datarootdir*) ac_datarootdir_seen=yes;;
18091 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18092   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18093 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18094 _ACEOF
18095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18096   ac_datarootdir_hack='
18097   s&@datadir@&$datadir&g
18098   s&@docdir@&$docdir&g
18099   s&@infodir@&$infodir&g
18100   s&@localedir@&$localedir&g
18101   s&@mandir@&$mandir&g
18102   s&\\\${datarootdir}&$datarootdir&g' ;;
18103 esac
18104 _ACEOF
18105
18106 # Neutralize VPATH when `$srcdir' = `.'.
18107 # Shell code in configure.ac might set extrasub.
18108 # FIXME: do we really want to maintain this feature?
18109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18110 ac_sed_extra="$ac_vpsub
18111 $extrasub
18112 _ACEOF
18113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18114 :t
18115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18116 s|@configure_input@|$ac_sed_conf_input|;t t
18117 s&@top_builddir@&$ac_top_builddir_sub&;t t
18118 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18119 s&@srcdir@&$ac_srcdir&;t t
18120 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18121 s&@top_srcdir@&$ac_top_srcdir&;t t
18122 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18123 s&@builddir@&$ac_builddir&;t t
18124 s&@abs_builddir@&$ac_abs_builddir&;t t
18125 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18126 s&@INSTALL@&$ac_INSTALL&;t t
18127 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18128 $ac_datarootdir_hack
18129 "
18130 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18131   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18132
18133 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18134   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18135   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18136       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18137   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18138 which seems to be undefined.  Please make sure it is defined" >&5
18139 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18140 which seems to be undefined.  Please make sure it is defined" >&2;}
18141
18142   rm -f "$ac_tmp/stdin"
18143   case $ac_file in
18144   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18145   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18146   esac \
18147   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18148  ;;
18149   :H)
18150   #
18151   # CONFIG_HEADER
18152   #
18153   if test x"$ac_file" != x-; then
18154     {
18155       $as_echo "/* $configure_input  */" \
18156       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18157     } >"$ac_tmp/config.h" \
18158       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18159     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18160       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18161 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18162     else
18163       rm -f "$ac_file"
18164       mv "$ac_tmp/config.h" "$ac_file" \
18165         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18166     fi
18167   else
18168     $as_echo "/* $configure_input  */" \
18169       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18170       || as_fn_error $? "could not create -" "$LINENO" 5
18171   fi
18172 # Compute "$ac_file"'s index in $config_headers.
18173 _am_arg="$ac_file"
18174 _am_stamp_count=1
18175 for _am_header in $config_headers :; do
18176   case $_am_header in
18177     $_am_arg | $_am_arg:* )
18178       break ;;
18179     * )
18180       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18181   esac
18182 done
18183 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18184 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18185          X"$_am_arg" : 'X\(//\)[^/]' \| \
18186          X"$_am_arg" : 'X\(//\)$' \| \
18187          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18188 $as_echo X"$_am_arg" |
18189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18190             s//\1/
18191             q
18192           }
18193           /^X\(\/\/\)[^/].*/{
18194             s//\1/
18195             q
18196           }
18197           /^X\(\/\/\)$/{
18198             s//\1/
18199             q
18200           }
18201           /^X\(\/\).*/{
18202             s//\1/
18203             q
18204           }
18205           s/.*/./; q'`/stamp-h$_am_stamp_count
18206  ;;
18207
18208   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18209 $as_echo "$as_me: executing $ac_file commands" >&6;}
18210  ;;
18211   esac
18212
18213
18214   case $ac_file$ac_mode in
18215     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18216   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18217   # are listed without --file.  Let's play safe and only enable the eval
18218   # if we detect the quoting.
18219   case $CONFIG_FILES in
18220   *\'*) eval set x "$CONFIG_FILES" ;;
18221   *)   set x $CONFIG_FILES ;;
18222   esac
18223   shift
18224   for mf
18225   do
18226     # Strip MF so we end up with the name of the file.
18227     mf=`echo "$mf" | sed -e 's/:.*$//'`
18228     # Check whether this is an Automake generated Makefile or not.
18229     # We used to match only the files named `Makefile.in', but
18230     # some people rename them; so instead we look at the file content.
18231     # Grep'ing the first line is not enough: some people post-process
18232     # each Makefile.in and add a new line on top of each file to say so.
18233     # Grep'ing the whole file is not good either: AIX grep has a line
18234     # limit of 2048, but all sed's we know have understand at least 4000.
18235     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18236       dirpart=`$as_dirname -- "$mf" ||
18237 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18238          X"$mf" : 'X\(//\)[^/]' \| \
18239          X"$mf" : 'X\(//\)$' \| \
18240          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18241 $as_echo X"$mf" |
18242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18243             s//\1/
18244             q
18245           }
18246           /^X\(\/\/\)[^/].*/{
18247             s//\1/
18248             q
18249           }
18250           /^X\(\/\/\)$/{
18251             s//\1/
18252             q
18253           }
18254           /^X\(\/\).*/{
18255             s//\1/
18256             q
18257           }
18258           s/.*/./; q'`
18259     else
18260       continue
18261     fi
18262     # Extract the definition of DEPDIR, am__include, and am__quote
18263     # from the Makefile without running `make'.
18264     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18265     test -z "$DEPDIR" && continue
18266     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18267     test -z "am__include" && continue
18268     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18269     # When using ansi2knr, U may be empty or an underscore; expand it
18270     U=`sed -n 's/^U = //p' < "$mf"`
18271     # Find all dependency output files, they are included files with
18272     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18273     # simplest approach to changing $(DEPDIR) to its actual value in the
18274     # expansion.
18275     for file in `sed -n "
18276       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18277          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18278       # Make sure the directory exists.
18279       test -f "$dirpart/$file" && continue
18280       fdir=`$as_dirname -- "$file" ||
18281 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18282          X"$file" : 'X\(//\)[^/]' \| \
18283          X"$file" : 'X\(//\)$' \| \
18284          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18285 $as_echo X"$file" |
18286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18287             s//\1/
18288             q
18289           }
18290           /^X\(\/\/\)[^/].*/{
18291             s//\1/
18292             q
18293           }
18294           /^X\(\/\/\)$/{
18295             s//\1/
18296             q
18297           }
18298           /^X\(\/\).*/{
18299             s//\1/
18300             q
18301           }
18302           s/.*/./; q'`
18303       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18304       # echo "creating $dirpart/$file"
18305       echo '# dummy' > "$dirpart/$file"
18306     done
18307   done
18308 }
18309  ;;
18310     "libtool":C)
18311
18312     # See if we are running on zsh, and set the options which allow our
18313     # commands through without removal of \ escapes.
18314     if test -n "${ZSH_VERSION+set}" ; then
18315       setopt NO_GLOB_SUBST
18316     fi
18317
18318     cfgfile="${ofile}T"
18319     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18320     $RM "$cfgfile"
18321
18322     cat <<_LT_EOF >> "$cfgfile"
18323 #! $SHELL
18324
18325 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18326 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18327 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18328 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18329 #
18330 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18331 #                 2006, 2007, 2008 Free Software Foundation, Inc.
18332 #   Written by Gordon Matzigkeit, 1996
18333 #
18334 #   This file is part of GNU Libtool.
18335 #
18336 # GNU Libtool is free software; you can redistribute it and/or
18337 # modify it under the terms of the GNU General Public License as
18338 # published by the Free Software Foundation; either version 2 of
18339 # the License, or (at your option) any later version.
18340 #
18341 # As a special exception to the GNU General Public License,
18342 # if you distribute this file as part of a program or library that
18343 # is built using GNU Libtool, you may include this file under the
18344 # same distribution terms that you use for the rest of that program.
18345 #
18346 # GNU Libtool is distributed in the hope that it will be useful,
18347 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18348 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18349 # GNU General Public License for more details.
18350 #
18351 # You should have received a copy of the GNU General Public License
18352 # along with GNU Libtool; see the file COPYING.  If not, a copy
18353 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18354 # obtained by writing to the Free Software Foundation, Inc.,
18355 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18356
18357
18358 # The names of the tagged configurations supported by this script.
18359 available_tags="CXX "
18360
18361 # ### BEGIN LIBTOOL CONFIG
18362
18363 # Which release of libtool.m4 was used?
18364 macro_version=$macro_version
18365 macro_revision=$macro_revision
18366
18367 # Whether or not to build shared libraries.
18368 build_libtool_libs=$enable_shared
18369
18370 # Whether or not to build static libraries.
18371 build_old_libs=$enable_static
18372
18373 # What type of objects to build.
18374 pic_mode=$pic_mode
18375
18376 # Whether or not to optimize for fast installation.
18377 fast_install=$enable_fast_install
18378
18379 # The host system.
18380 host_alias=$host_alias
18381 host=$host
18382 host_os=$host_os
18383
18384 # The build system.
18385 build_alias=$build_alias
18386 build=$build
18387 build_os=$build_os
18388
18389 # A sed program that does not truncate output.
18390 SED=$lt_SED
18391
18392 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18393 Xsed="\$SED -e 1s/^X//"
18394
18395 # A grep program that handles long lines.
18396 GREP=$lt_GREP
18397
18398 # An ERE matcher.
18399 EGREP=$lt_EGREP
18400
18401 # A literal string matcher.
18402 FGREP=$lt_FGREP
18403
18404 # A BSD- or MS-compatible name lister.
18405 NM=$lt_NM
18406
18407 # Whether we need soft or hard links.
18408 LN_S=$lt_LN_S
18409
18410 # What is the maximum length of a command?
18411 max_cmd_len=$max_cmd_len
18412
18413 # Object file suffix (normally "o").
18414 objext=$ac_objext
18415
18416 # Executable file suffix (normally "").
18417 exeext=$exeext
18418
18419 # whether the shell understands "unset".
18420 lt_unset=$lt_unset
18421
18422 # turn spaces into newlines.
18423 SP2NL=$lt_lt_SP2NL
18424
18425 # turn newlines into spaces.
18426 NL2SP=$lt_lt_NL2SP
18427
18428 # How to create reloadable object files.
18429 reload_flag=$lt_reload_flag
18430 reload_cmds=$lt_reload_cmds
18431
18432 # An object symbol dumper.
18433 OBJDUMP=$lt_OBJDUMP
18434
18435 # Method to check whether dependent libraries are shared objects.
18436 deplibs_check_method=$lt_deplibs_check_method
18437
18438 # Command to use when deplibs_check_method == "file_magic".
18439 file_magic_cmd=$lt_file_magic_cmd
18440
18441 # The archiver.
18442 AR=$lt_AR
18443 AR_FLAGS=$lt_AR_FLAGS
18444
18445 # A symbol stripping program.
18446 STRIP=$lt_STRIP
18447
18448 # Commands used to install an old-style archive.
18449 RANLIB=$lt_RANLIB
18450 old_postinstall_cmds=$lt_old_postinstall_cmds
18451 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18452
18453 # A C compiler.
18454 LTCC=$lt_CC
18455
18456 # LTCC compiler flags.
18457 LTCFLAGS=$lt_CFLAGS
18458
18459 # Take the output of nm and produce a listing of raw symbols and C names.
18460 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18461
18462 # Transform the output of nm in a proper C declaration.
18463 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18464
18465 # Transform the output of nm in a C name address pair.
18466 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18467
18468 # Transform the output of nm in a C name address pair when lib prefix is needed.
18469 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18470
18471 # The name of the directory that contains temporary libtool files.
18472 objdir=$objdir
18473
18474 # Shell to use when invoking shell scripts.
18475 SHELL=$lt_SHELL
18476
18477 # An echo program that does not interpret backslashes.
18478 ECHO=$lt_ECHO
18479
18480 # Used to examine libraries when file_magic_cmd begins with "file".
18481 MAGIC_CMD=$MAGIC_CMD
18482
18483 # Must we lock files when doing compilation?
18484 need_locks=$lt_need_locks
18485
18486 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18487 DSYMUTIL=$lt_DSYMUTIL
18488
18489 # Tool to change global to local symbols on Mac OS X.
18490 NMEDIT=$lt_NMEDIT
18491
18492 # Tool to manipulate fat objects and archives on Mac OS X.
18493 LIPO=$lt_LIPO
18494
18495 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18496 OTOOL=$lt_OTOOL
18497
18498 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18499 OTOOL64=$lt_OTOOL64
18500
18501 # Old archive suffix (normally "a").
18502 libext=$libext
18503
18504 # Shared library suffix (normally ".so").
18505 shrext_cmds=$lt_shrext_cmds
18506
18507 # The commands to extract the exported symbol list from a shared archive.
18508 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18509
18510 # Variables whose values should be saved in libtool wrapper scripts and
18511 # restored at link time.
18512 variables_saved_for_relink=$lt_variables_saved_for_relink
18513
18514 # Do we need the "lib" prefix for modules?
18515 need_lib_prefix=$need_lib_prefix
18516
18517 # Do we need a version for libraries?
18518 need_version=$need_version
18519
18520 # Library versioning type.
18521 version_type=$version_type
18522
18523 # Shared library runtime path variable.
18524 runpath_var=$runpath_var
18525
18526 # Shared library path variable.
18527 shlibpath_var=$shlibpath_var
18528
18529 # Is shlibpath searched before the hard-coded library search path?
18530 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18531
18532 # Format of library name prefix.
18533 libname_spec=$lt_libname_spec
18534
18535 # List of archive names.  First name is the real one, the rest are links.
18536 # The last name is the one that the linker finds with -lNAME
18537 library_names_spec=$lt_library_names_spec
18538
18539 # The coded name of the library, if different from the real name.
18540 soname_spec=$lt_soname_spec
18541
18542 # Command to use after installation of a shared archive.
18543 postinstall_cmds=$lt_postinstall_cmds
18544
18545 # Command to use after uninstallation of a shared archive.
18546 postuninstall_cmds=$lt_postuninstall_cmds
18547
18548 # Commands used to finish a libtool library installation in a directory.
18549 finish_cmds=$lt_finish_cmds
18550
18551 # As "finish_cmds", except a single script fragment to be evaled but
18552 # not shown.
18553 finish_eval=$lt_finish_eval
18554
18555 # Whether we should hardcode library paths into libraries.
18556 hardcode_into_libs=$hardcode_into_libs
18557
18558 # Compile-time system search path for libraries.
18559 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18560
18561 # Run-time system search path for libraries.
18562 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18563
18564 # Whether dlopen is supported.
18565 dlopen_support=$enable_dlopen
18566
18567 # Whether dlopen of programs is supported.
18568 dlopen_self=$enable_dlopen_self
18569
18570 # Whether dlopen of statically linked programs is supported.
18571 dlopen_self_static=$enable_dlopen_self_static
18572
18573 # Commands to strip libraries.
18574 old_striplib=$lt_old_striplib
18575 striplib=$lt_striplib
18576
18577
18578 # The linker used to build libraries.
18579 LD=$lt_LD
18580
18581 # Commands used to build an old-style archive.
18582 old_archive_cmds=$lt_old_archive_cmds
18583
18584 # A language specific compiler.
18585 CC=$lt_compiler
18586
18587 # Is the compiler the GNU compiler?
18588 with_gcc=$GCC
18589
18590 # Compiler flag to turn off builtin functions.
18591 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18592
18593 # How to pass a linker flag through the compiler.
18594 wl=$lt_lt_prog_compiler_wl
18595
18596 # Additional compiler flags for building library objects.
18597 pic_flag=$lt_lt_prog_compiler_pic
18598
18599 # Compiler flag to prevent dynamic linking.
18600 link_static_flag=$lt_lt_prog_compiler_static
18601
18602 # Does compiler simultaneously support -c and -o options?
18603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18604
18605 # Whether or not to add -lc for building shared libraries.
18606 build_libtool_need_lc=$archive_cmds_need_lc
18607
18608 # Whether or not to disallow shared libs when runtime libs are static.
18609 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18610
18611 # Compiler flag to allow reflexive dlopens.
18612 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18613
18614 # Compiler flag to generate shared objects directly from archives.
18615 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18616
18617 # Whether the compiler copes with passing no objects directly.
18618 compiler_needs_object=$lt_compiler_needs_object
18619
18620 # Create an old-style archive from a shared archive.
18621 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18622
18623 # Create a temporary old-style archive to link instead of a shared archive.
18624 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18625
18626 # Commands used to build a shared archive.
18627 archive_cmds=$lt_archive_cmds
18628 archive_expsym_cmds=$lt_archive_expsym_cmds
18629
18630 # Commands used to build a loadable module if different from building
18631 # a shared archive.
18632 module_cmds=$lt_module_cmds
18633 module_expsym_cmds=$lt_module_expsym_cmds
18634
18635 # Whether we are building with GNU ld or not.
18636 with_gnu_ld=$lt_with_gnu_ld
18637
18638 # Flag that allows shared libraries with undefined symbols to be built.
18639 allow_undefined_flag=$lt_allow_undefined_flag
18640
18641 # Flag that enforces no undefined symbols.
18642 no_undefined_flag=$lt_no_undefined_flag
18643
18644 # Flag to hardcode \$libdir into a binary during linking.
18645 # This must work even if \$libdir does not exist
18646 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18647
18648 # If ld is used when linking, flag to hardcode \$libdir into a binary
18649 # during linking.  This must work even if \$libdir does not exist.
18650 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18651
18652 # Whether we need a single "-rpath" flag with a separated argument.
18653 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18654
18655 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18656 # DIR into the resulting binary.
18657 hardcode_direct=$hardcode_direct
18658
18659 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18660 # DIR into the resulting binary and the resulting library dependency is
18661 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18662 # library is relocated.
18663 hardcode_direct_absolute=$hardcode_direct_absolute
18664
18665 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18666 # into the resulting binary.
18667 hardcode_minus_L=$hardcode_minus_L
18668
18669 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18670 # into the resulting binary.
18671 hardcode_shlibpath_var=$hardcode_shlibpath_var
18672
18673 # Set to "yes" if building a shared library automatically hardcodes DIR
18674 # into the library and all subsequent libraries and executables linked
18675 # against it.
18676 hardcode_automatic=$hardcode_automatic
18677
18678 # Set to yes if linker adds runtime paths of dependent libraries
18679 # to runtime path list.
18680 inherit_rpath=$inherit_rpath
18681
18682 # Whether libtool must link a program against all its dependency libraries.
18683 link_all_deplibs=$link_all_deplibs
18684
18685 # Fix the shell variable \$srcfile for the compiler.
18686 fix_srcfile_path=$lt_fix_srcfile_path
18687
18688 # Set to "yes" if exported symbols are required.
18689 always_export_symbols=$always_export_symbols
18690
18691 # The commands to list exported symbols.
18692 export_symbols_cmds=$lt_export_symbols_cmds
18693
18694 # Symbols that should not be listed in the preloaded symbols.
18695 exclude_expsyms=$lt_exclude_expsyms
18696
18697 # Symbols that must always be exported.
18698 include_expsyms=$lt_include_expsyms
18699
18700 # Commands necessary for linking programs (against libraries) with templates.
18701 prelink_cmds=$lt_prelink_cmds
18702
18703 # Specify filename containing input files.
18704 file_list_spec=$lt_file_list_spec
18705
18706 # How to hardcode a shared library path into an executable.
18707 hardcode_action=$hardcode_action
18708
18709 # The directories searched by this compiler when creating a shared library.
18710 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18711
18712 # Dependencies to place before and after the objects being linked to
18713 # create a shared library.
18714 predep_objects=$lt_predep_objects
18715 postdep_objects=$lt_postdep_objects
18716 predeps=$lt_predeps
18717 postdeps=$lt_postdeps
18718
18719 # The library search path used internally by the compiler when linking
18720 # a shared library.
18721 compiler_lib_search_path=$lt_compiler_lib_search_path
18722
18723 # ### END LIBTOOL CONFIG
18724
18725 _LT_EOF
18726
18727   case $host_os in
18728   aix3*)
18729     cat <<\_LT_EOF >> "$cfgfile"
18730 # AIX sometimes has problems with the GCC collect2 program.  For some
18731 # reason, if we set the COLLECT_NAMES environment variable, the problems
18732 # vanish in a puff of smoke.
18733 if test "X${COLLECT_NAMES+set}" != Xset; then
18734   COLLECT_NAMES=
18735   export COLLECT_NAMES
18736 fi
18737 _LT_EOF
18738     ;;
18739   esac
18740
18741
18742 ltmain="$ac_aux_dir/ltmain.sh"
18743
18744
18745   # We use sed instead of cat because bash on DJGPP gets confused if
18746   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18747   # text mode, it properly converts lines to CR/LF.  This bash problem
18748   # is reportedly fixed, but why not run on old versions too?
18749   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18750     || (rm -f "$cfgfile"; exit 1)
18751
18752   case $xsi_shell in
18753   yes)
18754     cat << \_LT_EOF >> "$cfgfile"
18755
18756 # func_dirname file append nondir_replacement
18757 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18758 # otherwise set result to NONDIR_REPLACEMENT.
18759 func_dirname ()
18760 {
18761   case ${1} in
18762     */*) func_dirname_result="${1%/*}${2}" ;;
18763     *  ) func_dirname_result="${3}" ;;
18764   esac
18765 }
18766
18767 # func_basename file
18768 func_basename ()
18769 {
18770   func_basename_result="${1##*/}"
18771 }
18772
18773 # func_dirname_and_basename file append nondir_replacement
18774 # perform func_basename and func_dirname in a single function
18775 # call:
18776 #   dirname:  Compute the dirname of FILE.  If nonempty,
18777 #             add APPEND to the result, otherwise set result
18778 #             to NONDIR_REPLACEMENT.
18779 #             value returned in "$func_dirname_result"
18780 #   basename: Compute filename of FILE.
18781 #             value retuned in "$func_basename_result"
18782 # Implementation must be kept synchronized with func_dirname
18783 # and func_basename. For efficiency, we do not delegate to
18784 # those functions but instead duplicate the functionality here.
18785 func_dirname_and_basename ()
18786 {
18787   case ${1} in
18788     */*) func_dirname_result="${1%/*}${2}" ;;
18789     *  ) func_dirname_result="${3}" ;;
18790   esac
18791   func_basename_result="${1##*/}"
18792 }
18793
18794 # func_stripname prefix suffix name
18795 # strip PREFIX and SUFFIX off of NAME.
18796 # PREFIX and SUFFIX must not contain globbing or regex special
18797 # characters, hashes, percent signs, but SUFFIX may contain a leading
18798 # dot (in which case that matches only a dot).
18799 func_stripname ()
18800 {
18801   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18802   # positional parameters, so assign one to ordinary parameter first.
18803   func_stripname_result=${3}
18804   func_stripname_result=${func_stripname_result#"${1}"}
18805   func_stripname_result=${func_stripname_result%"${2}"}
18806 }
18807
18808 # func_opt_split
18809 func_opt_split ()
18810 {
18811   func_opt_split_opt=${1%%=*}
18812   func_opt_split_arg=${1#*=}
18813 }
18814
18815 # func_lo2o object
18816 func_lo2o ()
18817 {
18818   case ${1} in
18819     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18820     *)    func_lo2o_result=${1} ;;
18821   esac
18822 }
18823
18824 # func_xform libobj-or-source
18825 func_xform ()
18826 {
18827   func_xform_result=${1%.*}.lo
18828 }
18829
18830 # func_arith arithmetic-term...
18831 func_arith ()
18832 {
18833   func_arith_result=$(( $* ))
18834 }
18835
18836 # func_len string
18837 # STRING may not start with a hyphen.
18838 func_len ()
18839 {
18840   func_len_result=${#1}
18841 }
18842
18843 _LT_EOF
18844     ;;
18845   *) # Bourne compatible functions.
18846     cat << \_LT_EOF >> "$cfgfile"
18847
18848 # func_dirname file append nondir_replacement
18849 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18850 # otherwise set result to NONDIR_REPLACEMENT.
18851 func_dirname ()
18852 {
18853   # Extract subdirectory from the argument.
18854   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18855   if test "X$func_dirname_result" = "X${1}"; then
18856     func_dirname_result="${3}"
18857   else
18858     func_dirname_result="$func_dirname_result${2}"
18859   fi
18860 }
18861
18862 # func_basename file
18863 func_basename ()
18864 {
18865   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18866 }
18867
18868
18869 # func_stripname prefix suffix name
18870 # strip PREFIX and SUFFIX off of NAME.
18871 # PREFIX and SUFFIX must not contain globbing or regex special
18872 # characters, hashes, percent signs, but SUFFIX may contain a leading
18873 # dot (in which case that matches only a dot).
18874 # func_strip_suffix prefix name
18875 func_stripname ()
18876 {
18877   case ${2} in
18878     .*) func_stripname_result=`$ECHO "X${3}" \
18879            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18880     *)  func_stripname_result=`$ECHO "X${3}" \
18881            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18882   esac
18883 }
18884
18885 # sed scripts:
18886 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18887 my_sed_long_arg='1s/^-[^=]*=//'
18888
18889 # func_opt_split
18890 func_opt_split ()
18891 {
18892   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18893   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18894 }
18895
18896 # func_lo2o object
18897 func_lo2o ()
18898 {
18899   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18900 }
18901
18902 # func_xform libobj-or-source
18903 func_xform ()
18904 {
18905   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18906 }
18907
18908 # func_arith arithmetic-term...
18909 func_arith ()
18910 {
18911   func_arith_result=`expr "$@"`
18912 }
18913
18914 # func_len string
18915 # STRING may not start with a hyphen.
18916 func_len ()
18917 {
18918   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18919 }
18920
18921 _LT_EOF
18922 esac
18923
18924 case $lt_shell_append in
18925   yes)
18926     cat << \_LT_EOF >> "$cfgfile"
18927
18928 # func_append var value
18929 # Append VALUE to the end of shell variable VAR.
18930 func_append ()
18931 {
18932   eval "$1+=\$2"
18933 }
18934 _LT_EOF
18935     ;;
18936   *)
18937     cat << \_LT_EOF >> "$cfgfile"
18938
18939 # func_append var value
18940 # Append VALUE to the end of shell variable VAR.
18941 func_append ()
18942 {
18943   eval "$1=\$$1\$2"
18944 }
18945
18946 _LT_EOF
18947     ;;
18948   esac
18949
18950
18951   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18952     || (rm -f "$cfgfile"; exit 1)
18953
18954   mv -f "$cfgfile" "$ofile" ||
18955     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18956   chmod +x "$ofile"
18957
18958
18959     cat <<_LT_EOF >> "$ofile"
18960
18961 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18962
18963 # The linker used to build libraries.
18964 LD=$lt_LD_CXX
18965
18966 # Commands used to build an old-style archive.
18967 old_archive_cmds=$lt_old_archive_cmds_CXX
18968
18969 # A language specific compiler.
18970 CC=$lt_compiler_CXX
18971
18972 # Is the compiler the GNU compiler?
18973 with_gcc=$GCC_CXX
18974
18975 # Compiler flag to turn off builtin functions.
18976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18977
18978 # How to pass a linker flag through the compiler.
18979 wl=$lt_lt_prog_compiler_wl_CXX
18980
18981 # Additional compiler flags for building library objects.
18982 pic_flag=$lt_lt_prog_compiler_pic_CXX
18983
18984 # Compiler flag to prevent dynamic linking.
18985 link_static_flag=$lt_lt_prog_compiler_static_CXX
18986
18987 # Does compiler simultaneously support -c and -o options?
18988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18989
18990 # Whether or not to add -lc for building shared libraries.
18991 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18992
18993 # Whether or not to disallow shared libs when runtime libs are static.
18994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18995
18996 # Compiler flag to allow reflexive dlopens.
18997 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18998
18999 # Compiler flag to generate shared objects directly from archives.
19000 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19001
19002 # Whether the compiler copes with passing no objects directly.
19003 compiler_needs_object=$lt_compiler_needs_object_CXX
19004
19005 # Create an old-style archive from a shared archive.
19006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19007
19008 # Create a temporary old-style archive to link instead of a shared archive.
19009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19010
19011 # Commands used to build a shared archive.
19012 archive_cmds=$lt_archive_cmds_CXX
19013 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19014
19015 # Commands used to build a loadable module if different from building
19016 # a shared archive.
19017 module_cmds=$lt_module_cmds_CXX
19018 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19019
19020 # Whether we are building with GNU ld or not.
19021 with_gnu_ld=$lt_with_gnu_ld_CXX
19022
19023 # Flag that allows shared libraries with undefined symbols to be built.
19024 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19025
19026 # Flag that enforces no undefined symbols.
19027 no_undefined_flag=$lt_no_undefined_flag_CXX
19028
19029 # Flag to hardcode \$libdir into a binary during linking.
19030 # This must work even if \$libdir does not exist
19031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19032
19033 # If ld is used when linking, flag to hardcode \$libdir into a binary
19034 # during linking.  This must work even if \$libdir does not exist.
19035 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19036
19037 # Whether we need a single "-rpath" flag with a separated argument.
19038 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19039
19040 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19041 # DIR into the resulting binary.
19042 hardcode_direct=$hardcode_direct_CXX
19043
19044 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19045 # DIR into the resulting binary and the resulting library dependency is
19046 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19047 # library is relocated.
19048 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19049
19050 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19051 # into the resulting binary.
19052 hardcode_minus_L=$hardcode_minus_L_CXX
19053
19054 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19055 # into the resulting binary.
19056 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19057
19058 # Set to "yes" if building a shared library automatically hardcodes DIR
19059 # into the library and all subsequent libraries and executables linked
19060 # against it.
19061 hardcode_automatic=$hardcode_automatic_CXX
19062
19063 # Set to yes if linker adds runtime paths of dependent libraries
19064 # to runtime path list.
19065 inherit_rpath=$inherit_rpath_CXX
19066
19067 # Whether libtool must link a program against all its dependency libraries.
19068 link_all_deplibs=$link_all_deplibs_CXX
19069
19070 # Fix the shell variable \$srcfile for the compiler.
19071 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19072
19073 # Set to "yes" if exported symbols are required.
19074 always_export_symbols=$always_export_symbols_CXX
19075
19076 # The commands to list exported symbols.
19077 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19078
19079 # Symbols that should not be listed in the preloaded symbols.
19080 exclude_expsyms=$lt_exclude_expsyms_CXX
19081
19082 # Symbols that must always be exported.
19083 include_expsyms=$lt_include_expsyms_CXX
19084
19085 # Commands necessary for linking programs (against libraries) with templates.
19086 prelink_cmds=$lt_prelink_cmds_CXX
19087
19088 # Specify filename containing input files.
19089 file_list_spec=$lt_file_list_spec_CXX
19090
19091 # How to hardcode a shared library path into an executable.
19092 hardcode_action=$hardcode_action_CXX
19093
19094 # The directories searched by this compiler when creating a shared library.
19095 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19096
19097 # Dependencies to place before and after the objects being linked to
19098 # create a shared library.
19099 predep_objects=$lt_predep_objects_CXX
19100 postdep_objects=$lt_postdep_objects_CXX
19101 predeps=$lt_predeps_CXX
19102 postdeps=$lt_postdeps_CXX
19103
19104 # The library search path used internally by the compiler when linking
19105 # a shared library.
19106 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19107
19108 # ### END LIBTOOL TAG CONFIG: CXX
19109 _LT_EOF
19110
19111  ;;
19112
19113   esac
19114 done # for ac_tag
19115
19116
19117 as_fn_exit 0
19118 _ACEOF
19119 ac_clean_files=$ac_clean_files_save
19120
19121 test $ac_write_fail = 0 ||
19122   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19123
19124
19125 # configure is writing to config.log, and then calls config.status.
19126 # config.status does its own redirection, appending to config.log.
19127 # Unfortunately, on DOS this fails, as config.log is still kept open
19128 # by configure, so config.status won't be able to write to it; its
19129 # output is simply discarded.  So we exec the FD to /dev/null,
19130 # effectively closing config.log, so it can be properly (re)opened and
19131 # appended to by config.status.  When coming back to configure, we
19132 # need to make the FD available again.
19133 if test "$no_create" != yes; then
19134   ac_cs_success=:
19135   ac_config_status_args=
19136   test "$silent" = yes &&
19137     ac_config_status_args="$ac_config_status_args --quiet"
19138   exec 5>/dev/null
19139   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19140   exec 5>>config.log
19141   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19142   # would make configure fail if this is the last instruction.
19143   $ac_cs_success || as_fn_exit 1
19144 fi
19145 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19146   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19147 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19148 fi
19149