remove .lib dir as it's a temporary files
[platform/upstream/gtest.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Google C++ Testing Framework 1.6.0.
4 #
5 # Report bugs to <googletestframework@googlegroups.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: googletestframework@googlegroups.com about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
683
684 # Name of the host.
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689 #
690 # Initializations.
691 #
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
700
701 # Identity of this package.
702 PACKAGE_NAME='Google C++ Testing Framework'
703 PACKAGE_TARNAME='gtest'
704 PACKAGE_VERSION='1.6.0'
705 PACKAGE_STRING='Google C++ Testing Framework 1.6.0'
706 PACKAGE_BUGREPORT='googletestframework@googlegroups.com'
707 PACKAGE_URL=''
708
709 ac_unique_file="./COPYING"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 #  include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #  include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
745
746 ac_subst_vars='am__EXEEXT_FALSE
747 am__EXEEXT_TRUE
748 LTLIBOBJS
749 LIBOBJS
750 HAVE_PTHREADS_FALSE
751 HAVE_PTHREADS_TRUE
752 PTHREAD_CFLAGS
753 PTHREAD_LIBS
754 PTHREAD_CC
755 acx_pthread_config
756 HAVE_PYTHON_FALSE
757 HAVE_PYTHON_TRUE
758 PYTHON
759 CXXCPP
760 CPP
761 OTOOL64
762 OTOOL
763 LIPO
764 NMEDIT
765 DSYMUTIL
766 lt_ECHO
767 RANLIB
768 AR
769 OBJDUMP
770 LN_S
771 NM
772 ac_ct_DUMPBIN
773 DUMPBIN
774 LD
775 FGREP
776 EGREP
777 GREP
778 SED
779 host_os
780 host_vendor
781 host_cpu
782 host
783 build_os
784 build_vendor
785 build_cpu
786 build
787 LIBTOOL
788 am__fastdepCXX_FALSE
789 am__fastdepCXX_TRUE
790 CXXDEPMODE
791 ac_ct_CXX
792 CXXFLAGS
793 CXX
794 am__fastdepCC_FALSE
795 am__fastdepCC_TRUE
796 CCDEPMODE
797 AMDEPBACKSLASH
798 AMDEP_FALSE
799 AMDEP_TRUE
800 am__quote
801 am__include
802 DEPDIR
803 OBJEXT
804 EXEEXT
805 ac_ct_CC
806 CPPFLAGS
807 LDFLAGS
808 CFLAGS
809 CC
810 am__untar
811 am__tar
812 AMTAR
813 am__leading_dot
814 SET_MAKE
815 AWK
816 mkdir_p
817 MKDIR_P
818 INSTALL_STRIP_PROGRAM
819 STRIP
820 install_sh
821 MAKEINFO
822 AUTOHEADER
823 AUTOMAKE
824 AUTOCONF
825 ACLOCAL
826 VERSION
827 PACKAGE
828 CYGPATH_W
829 am__isrc
830 INSTALL_DATA
831 INSTALL_SCRIPT
832 INSTALL_PROGRAM
833 target_alias
834 host_alias
835 build_alias
836 LIBS
837 ECHO_T
838 ECHO_N
839 ECHO_C
840 DEFS
841 mandir
842 localedir
843 libdir
844 psdir
845 pdfdir
846 dvidir
847 htmldir
848 infodir
849 docdir
850 oldincludedir
851 includedir
852 localstatedir
853 sharedstatedir
854 sysconfdir
855 datadir
856 datarootdir
857 libexecdir
858 sbindir
859 bindir
860 program_transform_name
861 prefix
862 exec_prefix
863 PACKAGE_URL
864 PACKAGE_BUGREPORT
865 PACKAGE_STRING
866 PACKAGE_VERSION
867 PACKAGE_TARNAME
868 PACKAGE_NAME
869 PATH_SEPARATOR
870 SHELL'
871 ac_subst_files=''
872 ac_user_opts='
873 enable_option_checking
874 enable_dependency_tracking
875 enable_shared
876 enable_static
877 with_pic
878 enable_fast_install
879 with_gnu_ld
880 enable_libtool_lock
881 with_pthreads
882 '
883       ac_precious_vars='build_alias
884 host_alias
885 target_alias
886 CC
887 CFLAGS
888 LDFLAGS
889 LIBS
890 CPPFLAGS
891 CXX
892 CXXFLAGS
893 CCC
894 CPP
895 CXXCPP'
896
897
898 # Initialize some variables set by options.
899 ac_init_help=
900 ac_init_version=false
901 ac_unrecognized_opts=
902 ac_unrecognized_sep=
903 # The variables have the same names as the options, with
904 # dashes changed to underlines.
905 cache_file=/dev/null
906 exec_prefix=NONE
907 no_create=
908 no_recursion=
909 prefix=NONE
910 program_prefix=NONE
911 program_suffix=NONE
912 program_transform_name=s,x,x,
913 silent=
914 site=
915 srcdir=
916 verbose=
917 x_includes=NONE
918 x_libraries=NONE
919
920 # Installation directory options.
921 # These are left unexpanded so users can "make install exec_prefix=/foo"
922 # and all the variables that are supposed to be based on exec_prefix
923 # by default will actually change.
924 # Use braces instead of parens because sh, perl, etc. also accept them.
925 # (The list follows the same order as the GNU Coding Standards.)
926 bindir='${exec_prefix}/bin'
927 sbindir='${exec_prefix}/sbin'
928 libexecdir='${exec_prefix}/libexec'
929 datarootdir='${prefix}/share'
930 datadir='${datarootdir}'
931 sysconfdir='${prefix}/etc'
932 sharedstatedir='${prefix}/com'
933 localstatedir='${prefix}/var'
934 includedir='${prefix}/include'
935 oldincludedir='/usr/include'
936 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
937 infodir='${datarootdir}/info'
938 htmldir='${docdir}'
939 dvidir='${docdir}'
940 pdfdir='${docdir}'
941 psdir='${docdir}'
942 libdir='${exec_prefix}/lib'
943 localedir='${datarootdir}/locale'
944 mandir='${datarootdir}/man'
945
946 ac_prev=
947 ac_dashdash=
948 for ac_option
949 do
950   # If the previous option needs an argument, assign it.
951   if test -n "$ac_prev"; then
952     eval $ac_prev=\$ac_option
953     ac_prev=
954     continue
955   fi
956
957   case $ac_option in
958   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959   *)    ac_optarg=yes ;;
960   esac
961
962   # Accept the important Cygnus configure options, so we can diagnose typos.
963
964   case $ac_dashdash$ac_option in
965   --)
966     ac_dashdash=yes ;;
967
968   -bindir | --bindir | --bindi | --bind | --bin | --bi)
969     ac_prev=bindir ;;
970   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971     bindir=$ac_optarg ;;
972
973   -build | --build | --buil | --bui | --bu)
974     ac_prev=build_alias ;;
975   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976     build_alias=$ac_optarg ;;
977
978   -cache-file | --cache-file | --cache-fil | --cache-fi \
979   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980     ac_prev=cache_file ;;
981   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983     cache_file=$ac_optarg ;;
984
985   --config-cache | -C)
986     cache_file=config.cache ;;
987
988   -datadir | --datadir | --datadi | --datad)
989     ac_prev=datadir ;;
990   -datadir=* | --datadir=* | --datadi=* | --datad=*)
991     datadir=$ac_optarg ;;
992
993   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994   | --dataroo | --dataro | --datar)
995     ac_prev=datarootdir ;;
996   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998     datarootdir=$ac_optarg ;;
999
1000   -disable-* | --disable-*)
1001     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002     # Reject names that are not valid shell variable names.
1003     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004       as_fn_error "invalid feature name: $ac_useropt"
1005     ac_useropt_orig=$ac_useropt
1006     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007     case $ac_user_opts in
1008       *"
1009 "enable_$ac_useropt"
1010 "*) ;;
1011       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012          ac_unrecognized_sep=', ';;
1013     esac
1014     eval enable_$ac_useropt=no ;;
1015
1016   -docdir | --docdir | --docdi | --doc | --do)
1017     ac_prev=docdir ;;
1018   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019     docdir=$ac_optarg ;;
1020
1021   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022     ac_prev=dvidir ;;
1023   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024     dvidir=$ac_optarg ;;
1025
1026   -enable-* | --enable-*)
1027     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028     # Reject names that are not valid shell variable names.
1029     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030       as_fn_error "invalid feature name: $ac_useropt"
1031     ac_useropt_orig=$ac_useropt
1032     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033     case $ac_user_opts in
1034       *"
1035 "enable_$ac_useropt"
1036 "*) ;;
1037       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038          ac_unrecognized_sep=', ';;
1039     esac
1040     eval enable_$ac_useropt=\$ac_optarg ;;
1041
1042   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044   | --exec | --exe | --ex)
1045     ac_prev=exec_prefix ;;
1046   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048   | --exec=* | --exe=* | --ex=*)
1049     exec_prefix=$ac_optarg ;;
1050
1051   -gas | --gas | --ga | --g)
1052     # Obsolete; use --with-gas.
1053     with_gas=yes ;;
1054
1055   -help | --help | --hel | --he | -h)
1056     ac_init_help=long ;;
1057   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058     ac_init_help=recursive ;;
1059   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060     ac_init_help=short ;;
1061
1062   -host | --host | --hos | --ho)
1063     ac_prev=host_alias ;;
1064   -host=* | --host=* | --hos=* | --ho=*)
1065     host_alias=$ac_optarg ;;
1066
1067   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068     ac_prev=htmldir ;;
1069   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070   | --ht=*)
1071     htmldir=$ac_optarg ;;
1072
1073   -includedir | --includedir | --includedi | --included | --include \
1074   | --includ | --inclu | --incl | --inc)
1075     ac_prev=includedir ;;
1076   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077   | --includ=* | --inclu=* | --incl=* | --inc=*)
1078     includedir=$ac_optarg ;;
1079
1080   -infodir | --infodir | --infodi | --infod | --info | --inf)
1081     ac_prev=infodir ;;
1082   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083     infodir=$ac_optarg ;;
1084
1085   -libdir | --libdir | --libdi | --libd)
1086     ac_prev=libdir ;;
1087   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088     libdir=$ac_optarg ;;
1089
1090   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091   | --libexe | --libex | --libe)
1092     ac_prev=libexecdir ;;
1093   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094   | --libexe=* | --libex=* | --libe=*)
1095     libexecdir=$ac_optarg ;;
1096
1097   -localedir | --localedir | --localedi | --localed | --locale)
1098     ac_prev=localedir ;;
1099   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100     localedir=$ac_optarg ;;
1101
1102   -localstatedir | --localstatedir | --localstatedi | --localstated \
1103   | --localstate | --localstat | --localsta | --localst | --locals)
1104     ac_prev=localstatedir ;;
1105   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107     localstatedir=$ac_optarg ;;
1108
1109   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110     ac_prev=mandir ;;
1111   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112     mandir=$ac_optarg ;;
1113
1114   -nfp | --nfp | --nf)
1115     # Obsolete; use --without-fp.
1116     with_fp=no ;;
1117
1118   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119   | --no-cr | --no-c | -n)
1120     no_create=yes ;;
1121
1122   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124     no_recursion=yes ;;
1125
1126   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128   | --oldin | --oldi | --old | --ol | --o)
1129     ac_prev=oldincludedir ;;
1130   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133     oldincludedir=$ac_optarg ;;
1134
1135   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136     ac_prev=prefix ;;
1137   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138     prefix=$ac_optarg ;;
1139
1140   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141   | --program-pre | --program-pr | --program-p)
1142     ac_prev=program_prefix ;;
1143   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145     program_prefix=$ac_optarg ;;
1146
1147   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148   | --program-suf | --program-su | --program-s)
1149     ac_prev=program_suffix ;;
1150   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152     program_suffix=$ac_optarg ;;
1153
1154   -program-transform-name | --program-transform-name \
1155   | --program-transform-nam | --program-transform-na \
1156   | --program-transform-n | --program-transform- \
1157   | --program-transform | --program-transfor \
1158   | --program-transfo | --program-transf \
1159   | --program-trans | --program-tran \
1160   | --progr-tra | --program-tr | --program-t)
1161     ac_prev=program_transform_name ;;
1162   -program-transform-name=* | --program-transform-name=* \
1163   | --program-transform-nam=* | --program-transform-na=* \
1164   | --program-transform-n=* | --program-transform-=* \
1165   | --program-transform=* | --program-transfor=* \
1166   | --program-transfo=* | --program-transf=* \
1167   | --program-trans=* | --program-tran=* \
1168   | --progr-tra=* | --program-tr=* | --program-t=*)
1169     program_transform_name=$ac_optarg ;;
1170
1171   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172     ac_prev=pdfdir ;;
1173   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174     pdfdir=$ac_optarg ;;
1175
1176   -psdir | --psdir | --psdi | --psd | --ps)
1177     ac_prev=psdir ;;
1178   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179     psdir=$ac_optarg ;;
1180
1181   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182   | -silent | --silent | --silen | --sile | --sil)
1183     silent=yes ;;
1184
1185   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186     ac_prev=sbindir ;;
1187   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188   | --sbi=* | --sb=*)
1189     sbindir=$ac_optarg ;;
1190
1191   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193   | --sharedst | --shareds | --shared | --share | --shar \
1194   | --sha | --sh)
1195     ac_prev=sharedstatedir ;;
1196   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199   | --sha=* | --sh=*)
1200     sharedstatedir=$ac_optarg ;;
1201
1202   -site | --site | --sit)
1203     ac_prev=site ;;
1204   -site=* | --site=* | --sit=*)
1205     site=$ac_optarg ;;
1206
1207   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208     ac_prev=srcdir ;;
1209   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210     srcdir=$ac_optarg ;;
1211
1212   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213   | --syscon | --sysco | --sysc | --sys | --sy)
1214     ac_prev=sysconfdir ;;
1215   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217     sysconfdir=$ac_optarg ;;
1218
1219   -target | --target | --targe | --targ | --tar | --ta | --t)
1220     ac_prev=target_alias ;;
1221   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222     target_alias=$ac_optarg ;;
1223
1224   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225     verbose=yes ;;
1226
1227   -version | --version | --versio | --versi | --vers | -V)
1228     ac_init_version=: ;;
1229
1230   -with-* | --with-*)
1231     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232     # Reject names that are not valid shell variable names.
1233     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234       as_fn_error "invalid package name: $ac_useropt"
1235     ac_useropt_orig=$ac_useropt
1236     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237     case $ac_user_opts in
1238       *"
1239 "with_$ac_useropt"
1240 "*) ;;
1241       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1242          ac_unrecognized_sep=', ';;
1243     esac
1244     eval with_$ac_useropt=\$ac_optarg ;;
1245
1246   -without-* | --without-*)
1247     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248     # Reject names that are not valid shell variable names.
1249     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1250       as_fn_error "invalid package name: $ac_useropt"
1251     ac_useropt_orig=$ac_useropt
1252     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253     case $ac_user_opts in
1254       *"
1255 "with_$ac_useropt"
1256 "*) ;;
1257       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258          ac_unrecognized_sep=', ';;
1259     esac
1260     eval with_$ac_useropt=no ;;
1261
1262   --x)
1263     # Obsolete; use --with-x.
1264     with_x=yes ;;
1265
1266   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267   | --x-incl | --x-inc | --x-in | --x-i)
1268     ac_prev=x_includes ;;
1269   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271     x_includes=$ac_optarg ;;
1272
1273   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275     ac_prev=x_libraries ;;
1276   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278     x_libraries=$ac_optarg ;;
1279
1280   -*) as_fn_error "unrecognized option: \`$ac_option'
1281 Try \`$0 --help' for more information."
1282     ;;
1283
1284   *=*)
1285     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1286     # Reject names that are not valid shell variable names.
1287     case $ac_envvar in #(
1288       '' | [0-9]* | *[!_$as_cr_alnum]* )
1289       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1290     esac
1291     eval $ac_envvar=\$ac_optarg
1292     export $ac_envvar ;;
1293
1294   *)
1295     # FIXME: should be removed in autoconf 3.0.
1296     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1300     ;;
1301
1302   esac
1303 done
1304
1305 if test -n "$ac_prev"; then
1306   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307   as_fn_error "missing argument to $ac_option"
1308 fi
1309
1310 if test -n "$ac_unrecognized_opts"; then
1311   case $enable_option_checking in
1312     no) ;;
1313     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1314     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1315   esac
1316 fi
1317
1318 # Check all directory arguments for consistency.
1319 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320                 datadir sysconfdir sharedstatedir localstatedir includedir \
1321                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322                 libdir localedir mandir
1323 do
1324   eval ac_val=\$$ac_var
1325   # Remove trailing slashes.
1326   case $ac_val in
1327     */ )
1328       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329       eval $ac_var=\$ac_val;;
1330   esac
1331   # Be sure to have absolute directory names.
1332   case $ac_val in
1333     [\\/$]* | ?:[\\/]* )  continue;;
1334     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1335   esac
1336   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1337 done
1338
1339 # There might be people who depend on the old broken behavior: `$host'
1340 # used to hold the argument of --host etc.
1341 # FIXME: To remove some day.
1342 build=$build_alias
1343 host=$host_alias
1344 target=$target_alias
1345
1346 # FIXME: To remove some day.
1347 if test "x$host_alias" != x; then
1348   if test "x$build_alias" = x; then
1349     cross_compiling=maybe
1350     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1351     If a cross compiler is detected then cross compile mode will be used." >&2
1352   elif test "x$build_alias" != "x$host_alias"; then
1353     cross_compiling=yes
1354   fi
1355 fi
1356
1357 ac_tool_prefix=
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1359
1360 test "$silent" = yes && exec 6>/dev/null
1361
1362
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366   as_fn_error "working directory cannot be determined"
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368   as_fn_error "pwd does not report name of working directory"
1369
1370
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373   ac_srcdir_defaulted=yes
1374   # Try the directory containing this script, then the parent directory.
1375   ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377          X"$as_myself" : 'X\(//\)[^/]' \| \
1378          X"$as_myself" : 'X\(//\)$' \| \
1379          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 $as_echo X"$as_myself" |
1381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382             s//\1/
1383             q
1384           }
1385           /^X\(\/\/\)[^/].*/{
1386             s//\1/
1387             q
1388           }
1389           /^X\(\/\/\)$/{
1390             s//\1/
1391             q
1392           }
1393           /^X\(\/\).*/{
1394             s//\1/
1395             q
1396           }
1397           s/.*/./; q'`
1398   srcdir=$ac_confdir
1399   if test ! -r "$srcdir/$ac_unique_file"; then
1400     srcdir=..
1401   fi
1402 else
1403   ac_srcdir_defaulted=no
1404 fi
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1408 fi
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1412         pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415   srcdir=.
1416 fi
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 for ac_var in $ac_precious_vars; do
1424   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425   eval ac_env_${ac_var}_value=\$${ac_var}
1426   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 done
1429
1430 #
1431 # Report the --help message.
1432 #
1433 if test "$ac_init_help" = "long"; then
1434   # Omit some internal or obsolete options to make the list less imposing.
1435   # This message is too long to be a string in the A/UX 3.1 sh.
1436   cat <<_ACEOF
1437 \`configure' configures Google C++ Testing Framework 1.6.0 to adapt to many kinds of systems.
1438
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE.  See below for descriptions of some of the useful variables.
1443
1444 Defaults for the options are specified in brackets.
1445
1446 Configuration:
1447   -h, --help              display this help and exit
1448       --help=short        display options specific to this package
1449       --help=recursive    display the short help of all the included packages
1450   -V, --version           display version information and exit
1451   -q, --quiet, --silent   do not print \`checking...' messages
1452       --cache-file=FILE   cache test results in FILE [disabled]
1453   -C, --config-cache      alias for \`--cache-file=config.cache'
1454   -n, --no-create         do not create output files
1455       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1456
1457 Installation directories:
1458   --prefix=PREFIX         install architecture-independent files in PREFIX
1459                           [$ac_default_prefix]
1460   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1461                           [PREFIX]
1462
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1467
1468 For better control, use the options below.
1469
1470 Fine tuning of the installation directories:
1471   --bindir=DIR            user executables [EPREFIX/bin]
1472   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1473   --libexecdir=DIR        program executables [EPREFIX/libexec]
1474   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1475   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1476   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1477   --libdir=DIR            object code libraries [EPREFIX/lib]
1478   --includedir=DIR        C header files [PREFIX/include]
1479   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1480   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1481   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1482   --infodir=DIR           info documentation [DATAROOTDIR/info]
1483   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1484   --mandir=DIR            man documentation [DATAROOTDIR/man]
1485   --docdir=DIR            documentation root [DATAROOTDIR/doc/gtest]
1486   --htmldir=DIR           html documentation [DOCDIR]
1487   --dvidir=DIR            dvi documentation [DOCDIR]
1488   --pdfdir=DIR            pdf documentation [DOCDIR]
1489   --psdir=DIR             ps documentation [DOCDIR]
1490 _ACEOF
1491
1492   cat <<\_ACEOF
1493
1494 Program names:
1495   --program-prefix=PREFIX            prepend PREFIX to installed program names
1496   --program-suffix=SUFFIX            append SUFFIX to installed program names
1497   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1498
1499 System types:
1500   --build=BUILD     configure for building on BUILD [guessed]
1501   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1502 _ACEOF
1503 fi
1504
1505 if test -n "$ac_init_help"; then
1506   case $ac_init_help in
1507      short | recursive ) echo "Configuration of Google C++ Testing Framework 1.6.0:";;
1508    esac
1509   cat <<\_ACEOF
1510
1511 Optional Features:
1512   --disable-option-checking  ignore unrecognized --enable/--with options
1513   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1514   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1515   --disable-dependency-tracking  speeds up one-time build
1516   --enable-dependency-tracking   do not reject slow dependency extractors
1517   --enable-shared[=PKGS]  build shared libraries [default=yes]
1518   --enable-static[=PKGS]  build static libraries [default=yes]
1519   --enable-fast-install[=PKGS]
1520                           optimize for fast installation [default=yes]
1521   --disable-libtool-lock  avoid locking (might break parallel builds)
1522
1523 Optional Packages:
1524   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1525   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1526   --with-pic              try to use only PIC/non-PIC objects [default=use
1527                           both]
1528   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1529   --with-pthreads         use pthreads (default is yes)
1530
1531 Some influential environment variables:
1532   CC          C compiler command
1533   CFLAGS      C compiler flags
1534   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1535               nonstandard directory <lib dir>
1536   LIBS        libraries to pass to the linker, e.g. -l<library>
1537   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538               you have headers in a nonstandard directory <include dir>
1539   CXX         C++ compiler command
1540   CXXFLAGS    C++ compiler flags
1541   CPP         C preprocessor
1542   CXXCPP      C++ preprocessor
1543
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1546
1547 Report bugs to <googletestframework@googlegroups.com>.
1548 _ACEOF
1549 ac_status=$?
1550 fi
1551
1552 if test "$ac_init_help" = "recursive"; then
1553   # If there are subdirs, report their specific --help.
1554   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555     test -d "$ac_dir" ||
1556       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557       continue
1558     ac_builddir=.
1559
1560 case "$ac_dir" in
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *)
1563   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564   # A ".." for each directory in $ac_dir_suffix.
1565   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566   case $ac_top_builddir_sub in
1567   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569   esac ;;
1570 esac
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1575
1576 case $srcdir in
1577   .)  # We are building in place.
1578     ac_srcdir=.
1579     ac_top_srcdir=$ac_top_builddir_sub
1580     ac_abs_top_srcdir=$ac_pwd ;;
1581   [\\/]* | ?:[\\/]* )  # Absolute name.
1582     ac_srcdir=$srcdir$ac_dir_suffix;
1583     ac_top_srcdir=$srcdir
1584     ac_abs_top_srcdir=$srcdir ;;
1585   *) # Relative name.
1586     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587     ac_top_srcdir=$ac_top_build_prefix$srcdir
1588     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 esac
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592     cd "$ac_dir" || { ac_status=$?; continue; }
1593     # Check for guested configure.
1594     if test -f "$ac_srcdir/configure.gnu"; then
1595       echo &&
1596       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597     elif test -f "$ac_srcdir/configure"; then
1598       echo &&
1599       $SHELL "$ac_srcdir/configure" --help=recursive
1600     else
1601       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602     fi || ac_status=$?
1603     cd "$ac_pwd" || { ac_status=$?; break; }
1604   done
1605 fi
1606
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1609   cat <<\_ACEOF
1610 Google C++ Testing Framework configure 1.6.0
1611 generated by GNU Autoconf 2.65
1612
1613 Copyright (C) 2009 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1616 _ACEOF
1617   exit
1618 fi
1619
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1623
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1628 {
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   rm -f conftest.$ac_objext
1631   if { { ac_try="$ac_compile"
1632 case "(($ac_try" in
1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634   *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638   (eval "$ac_compile") 2>conftest.err
1639   ac_status=$?
1640   if test -s conftest.err; then
1641     grep -v '^ *+' conftest.err >conftest.er1
1642     cat conftest.er1 >&5
1643     mv -f conftest.er1 conftest.err
1644   fi
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; } && {
1647          test -z "$ac_c_werror_flag" ||
1648          test ! -s conftest.err
1649        } && test -s conftest.$ac_objext; then :
1650   ac_retval=0
1651 else
1652   $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655         ac_retval=1
1656 fi
1657   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1658   as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_compile
1661
1662 # ac_fn_cxx_try_compile LINENO
1663 # ----------------------------
1664 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1665 ac_fn_cxx_try_compile ()
1666 {
1667   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668   rm -f conftest.$ac_objext
1669   if { { ac_try="$ac_compile"
1670 case "(($ac_try" in
1671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672   *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676   (eval "$ac_compile") 2>conftest.err
1677   ac_status=$?
1678   if test -s conftest.err; then
1679     grep -v '^ *+' conftest.err >conftest.er1
1680     cat conftest.er1 >&5
1681     mv -f conftest.er1 conftest.err
1682   fi
1683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684   test $ac_status = 0; } && {
1685          test -z "$ac_cxx_werror_flag" ||
1686          test ! -s conftest.err
1687        } && test -s conftest.$ac_objext; then :
1688   ac_retval=0
1689 else
1690   $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693         ac_retval=1
1694 fi
1695   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696   as_fn_set_status $ac_retval
1697
1698 } # ac_fn_cxx_try_compile
1699
1700 # ac_fn_c_try_link LINENO
1701 # -----------------------
1702 # Try to link conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_link ()
1704 {
1705   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706   rm -f conftest.$ac_objext conftest$ac_exeext
1707   if { { ac_try="$ac_link"
1708 case "(($ac_try" in
1709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710   *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714   (eval "$ac_link") 2>conftest.err
1715   ac_status=$?
1716   if test -s conftest.err; then
1717     grep -v '^ *+' conftest.err >conftest.er1
1718     cat conftest.er1 >&5
1719     mv -f conftest.er1 conftest.err
1720   fi
1721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722   test $ac_status = 0; } && {
1723          test -z "$ac_c_werror_flag" ||
1724          test ! -s conftest.err
1725        } && test -s conftest$ac_exeext && {
1726          test "$cross_compiling" = yes ||
1727          $as_test_x conftest$ac_exeext
1728        }; then :
1729   ac_retval=0
1730 else
1731   $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734         ac_retval=1
1735 fi
1736   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1737   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1738   # interfere with the next link command; also delete a directory that is
1739   # left behind by Apple's compiler.  We do this before executing the actions.
1740   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742   as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_link
1745
1746 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1747 # -------------------------------------------------------
1748 # Tests whether HEADER exists and can be compiled using the include files in
1749 # INCLUDES, setting the cache variable VAR accordingly.
1750 ac_fn_c_check_header_compile ()
1751 {
1752   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756   $as_echo_n "(cached) " >&6
1757 else
1758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h.  */
1760 $4
1761 #include <$2>
1762 _ACEOF
1763 if ac_fn_c_try_compile "$LINENO"; then :
1764   eval "$3=yes"
1765 else
1766   eval "$3=no"
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 fi
1770 eval ac_res=\$$3
1771                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774
1775 } # ac_fn_c_check_header_compile
1776
1777 # ac_fn_c_try_cpp LINENO
1778 # ----------------------
1779 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_cpp ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   if { { ac_try="$ac_cpp conftest.$ac_ext"
1784 case "(($ac_try" in
1785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786   *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1791   ac_status=$?
1792   if test -s conftest.err; then
1793     grep -v '^ *+' conftest.err >conftest.er1
1794     cat conftest.er1 >&5
1795     mv -f conftest.er1 conftest.err
1796   fi
1797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798   test $ac_status = 0; } >/dev/null && {
1799          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1800          test ! -s conftest.err
1801        }; then :
1802   ac_retval=0
1803 else
1804   $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807     ac_retval=1
1808 fi
1809   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810   as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_cpp
1813
1814 # ac_fn_c_try_run LINENO
1815 # ----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817 # that executables *can* be run.
1818 ac_fn_c_try_run ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   if { { ac_try="$ac_link"
1822 case "(($ac_try" in
1823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824   *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828   (eval "$ac_link") 2>&5
1829   ac_status=$?
1830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1832   { { case "(($ac_try" in
1833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834   *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838   (eval "$ac_try") 2>&5
1839   ac_status=$?
1840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841   test $ac_status = 0; }; }; then :
1842   ac_retval=0
1843 else
1844   $as_echo "$as_me: program exited with status $ac_status" >&5
1845        $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848        ac_retval=$ac_status
1849 fi
1850   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852   as_fn_set_status $ac_retval
1853
1854 } # ac_fn_c_try_run
1855
1856 # ac_fn_c_check_func LINENO FUNC VAR
1857 # ----------------------------------
1858 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1859 ac_fn_c_check_func ()
1860 {
1861   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865   $as_echo_n "(cached) " >&6
1866 else
1867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h.  */
1869 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1871 #define $2 innocuous_$2
1872
1873 /* System header to define __stub macros and hopefully few prototypes,
1874     which can conflict with char $2 (); below.
1875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1876     <limits.h> exists even on freestanding compilers.  */
1877
1878 #ifdef __STDC__
1879 # include <limits.h>
1880 #else
1881 # include <assert.h>
1882 #endif
1883
1884 #undef $2
1885
1886 /* Override any GCC internal prototype to avoid an error.
1887    Use char because int might match the return type of a GCC
1888    builtin and then its argument prototype would still apply.  */
1889 #ifdef __cplusplus
1890 extern "C"
1891 #endif
1892 char $2 ();
1893 /* The GNU C library defines this for functions which it implements
1894     to always fail with ENOSYS.  Some functions are actually named
1895     something starting with __ and the normal name is an alias.  */
1896 #if defined __stub_$2 || defined __stub___$2
1897 choke me
1898 #endif
1899
1900 int
1901 main ()
1902 {
1903 return $2 ();
1904   ;
1905   return 0;
1906 }
1907 _ACEOF
1908 if ac_fn_c_try_link "$LINENO"; then :
1909   eval "$3=yes"
1910 else
1911   eval "$3=no"
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext \
1914     conftest$ac_exeext conftest.$ac_ext
1915 fi
1916 eval ac_res=\$$3
1917                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920
1921 } # ac_fn_c_check_func
1922
1923 # ac_fn_cxx_try_cpp LINENO
1924 # ------------------------
1925 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1926 ac_fn_cxx_try_cpp ()
1927 {
1928   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929   if { { ac_try="$ac_cpp conftest.$ac_ext"
1930 case "(($ac_try" in
1931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932   *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1937   ac_status=$?
1938   if test -s conftest.err; then
1939     grep -v '^ *+' conftest.err >conftest.er1
1940     cat conftest.er1 >&5
1941     mv -f conftest.er1 conftest.err
1942   fi
1943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944   test $ac_status = 0; } >/dev/null && {
1945          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1946          test ! -s conftest.err
1947        }; then :
1948   ac_retval=0
1949 else
1950   $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1952
1953     ac_retval=1
1954 fi
1955   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956   as_fn_set_status $ac_retval
1957
1958 } # ac_fn_cxx_try_cpp
1959
1960 # ac_fn_cxx_try_link LINENO
1961 # -------------------------
1962 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 ac_fn_cxx_try_link ()
1964 {
1965   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966   rm -f conftest.$ac_objext conftest$ac_exeext
1967   if { { ac_try="$ac_link"
1968 case "(($ac_try" in
1969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970   *) ac_try_echo=$ac_try;;
1971 esac
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974   (eval "$ac_link") 2>conftest.err
1975   ac_status=$?
1976   if test -s conftest.err; then
1977     grep -v '^ *+' conftest.err >conftest.er1
1978     cat conftest.er1 >&5
1979     mv -f conftest.er1 conftest.err
1980   fi
1981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982   test $ac_status = 0; } && {
1983          test -z "$ac_cxx_werror_flag" ||
1984          test ! -s conftest.err
1985        } && test -s conftest$ac_exeext && {
1986          test "$cross_compiling" = yes ||
1987          $as_test_x conftest$ac_exeext
1988        }; then :
1989   ac_retval=0
1990 else
1991   $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1993
1994         ac_retval=1
1995 fi
1996   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1997   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1998   # interfere with the next link command; also delete a directory that is
1999   # left behind by Apple's compiler.  We do this before executing the actions.
2000   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002   as_fn_set_status $ac_retval
2003
2004 } # ac_fn_cxx_try_link
2005 cat >config.log <<_ACEOF
2006 This file contains any messages produced by compilers while
2007 running configure, to aid debugging if configure makes a mistake.
2008
2009 It was created by Google C++ Testing Framework $as_me 1.6.0, which was
2010 generated by GNU Autoconf 2.65.  Invocation command line was
2011
2012   $ $0 $@
2013
2014 _ACEOF
2015 exec 5>>config.log
2016 {
2017 cat <<_ASUNAME
2018 ## --------- ##
2019 ## Platform. ##
2020 ## --------- ##
2021
2022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2027
2028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2029 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2030
2031 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2032 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2034 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2035 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2036 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2037 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2038
2039 _ASUNAME
2040
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044   IFS=$as_save_IFS
2045   test -z "$as_dir" && as_dir=.
2046     $as_echo "PATH: $as_dir"
2047   done
2048 IFS=$as_save_IFS
2049
2050 } >&5
2051
2052 cat >&5 <<_ACEOF
2053
2054
2055 ## ----------- ##
2056 ## Core tests. ##
2057 ## ----------- ##
2058
2059 _ACEOF
2060
2061
2062 # Keep a trace of the command line.
2063 # Strip out --no-create and --no-recursion so they do not pile up.
2064 # Strip out --silent because we don't want to record it for future runs.
2065 # Also quote any args containing shell meta-characters.
2066 # Make two passes to allow for proper duplicate-argument suppression.
2067 ac_configure_args=
2068 ac_configure_args0=
2069 ac_configure_args1=
2070 ac_must_keep_next=false
2071 for ac_pass in 1 2
2072 do
2073   for ac_arg
2074   do
2075     case $ac_arg in
2076     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2077     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2078     | -silent | --silent | --silen | --sile | --sil)
2079       continue ;;
2080     *\'*)
2081       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2082     esac
2083     case $ac_pass in
2084     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2085     2)
2086       as_fn_append ac_configure_args1 " '$ac_arg'"
2087       if test $ac_must_keep_next = true; then
2088         ac_must_keep_next=false # Got value, back to normal.
2089       else
2090         case $ac_arg in
2091           *=* | --config-cache | -C | -disable-* | --disable-* \
2092           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2093           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2094           | -with-* | --with-* | -without-* | --without-* | --x)
2095             case "$ac_configure_args0 " in
2096               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2097             esac
2098             ;;
2099           -* ) ac_must_keep_next=true ;;
2100         esac
2101       fi
2102       as_fn_append ac_configure_args " '$ac_arg'"
2103       ;;
2104     esac
2105   done
2106 done
2107 { ac_configure_args0=; unset ac_configure_args0;}
2108 { ac_configure_args1=; unset ac_configure_args1;}
2109
2110 # When interrupted or exit'd, cleanup temporary files, and complete
2111 # config.log.  We remove comments because anyway the quotes in there
2112 # would cause problems or look ugly.
2113 # WARNING: Use '\'' to represent an apostrophe within the trap.
2114 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2115 trap 'exit_status=$?
2116   # Save into config.log some information that might help in debugging.
2117   {
2118     echo
2119
2120     cat <<\_ASBOX
2121 ## ---------------- ##
2122 ## Cache variables. ##
2123 ## ---------------- ##
2124 _ASBOX
2125     echo
2126     # The following way of writing the cache mishandles newlines in values,
2127 (
2128   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2129     eval ac_val=\$$ac_var
2130     case $ac_val in #(
2131     *${as_nl}*)
2132       case $ac_var in #(
2133       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2134 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2135       esac
2136       case $ac_var in #(
2137       _ | IFS | as_nl) ;; #(
2138       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2139       *) { eval $ac_var=; unset $ac_var;} ;;
2140       esac ;;
2141     esac
2142   done
2143   (set) 2>&1 |
2144     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2145     *${as_nl}ac_space=\ *)
2146       sed -n \
2147         "s/'\''/'\''\\\\'\'''\''/g;
2148           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2149       ;; #(
2150     *)
2151       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2152       ;;
2153     esac |
2154     sort
2155 )
2156     echo
2157
2158     cat <<\_ASBOX
2159 ## ----------------- ##
2160 ## Output variables. ##
2161 ## ----------------- ##
2162 _ASBOX
2163     echo
2164     for ac_var in $ac_subst_vars
2165     do
2166       eval ac_val=\$$ac_var
2167       case $ac_val in
2168       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2169       esac
2170       $as_echo "$ac_var='\''$ac_val'\''"
2171     done | sort
2172     echo
2173
2174     if test -n "$ac_subst_files"; then
2175       cat <<\_ASBOX
2176 ## ------------------- ##
2177 ## File substitutions. ##
2178 ## ------------------- ##
2179 _ASBOX
2180       echo
2181       for ac_var in $ac_subst_files
2182       do
2183         eval ac_val=\$$ac_var
2184         case $ac_val in
2185         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186         esac
2187         $as_echo "$ac_var='\''$ac_val'\''"
2188       done | sort
2189       echo
2190     fi
2191
2192     if test -s confdefs.h; then
2193       cat <<\_ASBOX
2194 ## ----------- ##
2195 ## confdefs.h. ##
2196 ## ----------- ##
2197 _ASBOX
2198       echo
2199       cat confdefs.h
2200       echo
2201     fi
2202     test "$ac_signal" != 0 &&
2203       $as_echo "$as_me: caught signal $ac_signal"
2204     $as_echo "$as_me: exit $exit_status"
2205   } >&5
2206   rm -f core *.core core.conftest.* &&
2207     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2208     exit $exit_status
2209 ' 0
2210 for ac_signal in 1 2 13 15; do
2211   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2212 done
2213 ac_signal=0
2214
2215 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2216 rm -f -r conftest* confdefs.h
2217
2218 $as_echo "/* confdefs.h */" > confdefs.h
2219
2220 # Predefined preprocessor variables.
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_NAME "$PACKAGE_NAME"
2224 _ACEOF
2225
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2228 _ACEOF
2229
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2232 _ACEOF
2233
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_STRING "$PACKAGE_STRING"
2236 _ACEOF
2237
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2240 _ACEOF
2241
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_URL "$PACKAGE_URL"
2244 _ACEOF
2245
2246
2247 # Let the site file select an alternate cache file if it wants to.
2248 # Prefer an explicitly selected file to automatically selected ones.
2249 ac_site_file1=NONE
2250 ac_site_file2=NONE
2251 if test -n "$CONFIG_SITE"; then
2252   ac_site_file1=$CONFIG_SITE
2253 elif test "x$prefix" != xNONE; then
2254   ac_site_file1=$prefix/share/config.site
2255   ac_site_file2=$prefix/etc/config.site
2256 else
2257   ac_site_file1=$ac_default_prefix/share/config.site
2258   ac_site_file2=$ac_default_prefix/etc/config.site
2259 fi
2260 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2261 do
2262   test "x$ac_site_file" = xNONE && continue
2263   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2264     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2265 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2266     sed 's/^/| /' "$ac_site_file" >&5
2267     . "$ac_site_file"
2268   fi
2269 done
2270
2271 if test -r "$cache_file"; then
2272   # Some versions of bash will fail to source /dev/null (special files
2273   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2274   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2275     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2276 $as_echo "$as_me: loading cache $cache_file" >&6;}
2277     case $cache_file in
2278       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2279       *)                      . "./$cache_file";;
2280     esac
2281   fi
2282 else
2283   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2284 $as_echo "$as_me: creating cache $cache_file" >&6;}
2285   >$cache_file
2286 fi
2287
2288 # Check that the precious variables saved in the cache have kept the same
2289 # value.
2290 ac_cache_corrupted=false
2291 for ac_var in $ac_precious_vars; do
2292   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2293   eval ac_new_set=\$ac_env_${ac_var}_set
2294   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2295   eval ac_new_val=\$ac_env_${ac_var}_value
2296   case $ac_old_set,$ac_new_set in
2297     set,)
2298       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2299 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2300       ac_cache_corrupted=: ;;
2301     ,set)
2302       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2303 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2304       ac_cache_corrupted=: ;;
2305     ,);;
2306     *)
2307       if test "x$ac_old_val" != "x$ac_new_val"; then
2308         # differences in whitespace do not lead to failure.
2309         ac_old_val_w=`echo x $ac_old_val`
2310         ac_new_val_w=`echo x $ac_new_val`
2311         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2312           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2313 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2314           ac_cache_corrupted=:
2315         else
2316           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2317 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2318           eval $ac_var=\$ac_old_val
2319         fi
2320         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2321 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2322         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2323 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2324       fi;;
2325   esac
2326   # Pass precious variables to config.status.
2327   if test "$ac_new_set" = set; then
2328     case $ac_new_val in
2329     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2330     *) ac_arg=$ac_var=$ac_new_val ;;
2331     esac
2332     case " $ac_configure_args " in
2333       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2334       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2335     esac
2336   fi
2337 done
2338 if $ac_cache_corrupted; then
2339   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2342 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2343   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2344 fi
2345 ## -------------------- ##
2346 ## Main body of script. ##
2347 ## -------------------- ##
2348
2349 ac_ext=c
2350 ac_cpp='$CPP $CPPFLAGS'
2351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2354
2355
2356
2357 # Provide various options to initialize the Autoconf and configure processes.
2358
2359
2360
2361 ac_aux_dir=
2362 for ac_dir in build-aux "$srcdir"/build-aux; do
2363   for ac_t in install-sh install.sh shtool; do
2364     if test -f "$ac_dir/$ac_t"; then
2365       ac_aux_dir=$ac_dir
2366       ac_install_sh="$ac_aux_dir/$ac_t -c"
2367       break 2
2368     fi
2369   done
2370 done
2371 if test -z "$ac_aux_dir"; then
2372   as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2373 fi
2374
2375 # These three variables are undocumented and unsupported,
2376 # and are intended to be withdrawn in a future Autoconf release.
2377 # They can cause serious problems if a builder's source tree is in a directory
2378 # whose full name contains unusual characters.
2379 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2380 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2381 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2382
2383
2384 ac_config_headers="$ac_config_headers build-aux/config.h"
2385
2386 ac_config_files="$ac_config_files Makefile"
2387
2388 ac_config_files="$ac_config_files scripts/gtest-config"
2389
2390
2391 # Initialize Automake with various options. We require at least v1.9, prevent
2392 # pedantic complaints about package files, and enable various distribution
2393 # targets.
2394 am__api_version='1.11'
2395
2396 # Find a good install program.  We prefer a C program (faster),
2397 # so one script is as good as another.  But avoid the broken or
2398 # incompatible versions:
2399 # SysV /etc/install, /usr/sbin/install
2400 # SunOS /usr/etc/install
2401 # IRIX /sbin/install
2402 # AIX /bin/install
2403 # AmigaOS /C/install, which installs bootblocks on floppy discs
2404 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2405 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2406 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2407 # OS/2's system install, which has a completely different semantic
2408 # ./install, which can be erroneously created by make from ./install.sh.
2409 # Reject install programs that cannot install multiple files.
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2411 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2412 if test -z "$INSTALL"; then
2413 if test "${ac_cv_path_install+set}" = set; then :
2414   $as_echo_n "(cached) " >&6
2415 else
2416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419   IFS=$as_save_IFS
2420   test -z "$as_dir" && as_dir=.
2421     # Account for people who put trailing slashes in PATH elements.
2422 case $as_dir/ in #((
2423   ./ | .// | /[cC]/* | \
2424   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2425   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2426   /usr/ucb/* ) ;;
2427   *)
2428     # OSF1 and SCO ODT 3.0 have their own names for install.
2429     # Don't use installbsd from OSF since it installs stuff as root
2430     # by default.
2431     for ac_prog in ginstall scoinst install; do
2432       for ac_exec_ext in '' $ac_executable_extensions; do
2433         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2434           if test $ac_prog = install &&
2435             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2436             # AIX install.  It has an incompatible calling convention.
2437             :
2438           elif test $ac_prog = install &&
2439             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2440             # program-specific install script used by HP pwplus--don't use.
2441             :
2442           else
2443             rm -rf conftest.one conftest.two conftest.dir
2444             echo one > conftest.one
2445             echo two > conftest.two
2446             mkdir conftest.dir
2447             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2448               test -s conftest.one && test -s conftest.two &&
2449               test -s conftest.dir/conftest.one &&
2450               test -s conftest.dir/conftest.two
2451             then
2452               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2453               break 3
2454             fi
2455           fi
2456         fi
2457       done
2458     done
2459     ;;
2460 esac
2461
2462   done
2463 IFS=$as_save_IFS
2464
2465 rm -rf conftest.one conftest.two conftest.dir
2466
2467 fi
2468   if test "${ac_cv_path_install+set}" = set; then
2469     INSTALL=$ac_cv_path_install
2470   else
2471     # As a last resort, use the slow shell script.  Don't cache a
2472     # value for INSTALL within a source directory, because that will
2473     # break other packages using the cache if that directory is
2474     # removed, or if the value is a relative name.
2475     INSTALL=$ac_install_sh
2476   fi
2477 fi
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2479 $as_echo "$INSTALL" >&6; }
2480
2481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2482 # It thinks the first close brace ends the variable substitution.
2483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2484
2485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2486
2487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2488
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2490 $as_echo_n "checking whether build environment is sane... " >&6; }
2491 # Just in case
2492 sleep 1
2493 echo timestamp > conftest.file
2494 # Reject unsafe characters in $srcdir or the absolute working directory
2495 # name.  Accept space and tab only in the latter.
2496 am_lf='
2497 '
2498 case `pwd` in
2499   *[\\\"\#\$\&\'\`$am_lf]*)
2500     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2501 esac
2502 case $srcdir in
2503   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2504     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2505 esac
2506
2507 # Do `set' in a subshell so we don't clobber the current shell's
2508 # arguments.  Must try -L first in case configure is actually a
2509 # symlink; some systems play weird games with the mod time of symlinks
2510 # (eg FreeBSD returns the mod time of the symlink's containing
2511 # directory).
2512 if (
2513    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2514    if test "$*" = "X"; then
2515       # -L didn't work.
2516       set X `ls -t "$srcdir/configure" conftest.file`
2517    fi
2518    rm -f conftest.file
2519    if test "$*" != "X $srcdir/configure conftest.file" \
2520       && test "$*" != "X conftest.file $srcdir/configure"; then
2521
2522       # If neither matched, then we have a broken ls.  This can happen
2523       # if, for instance, CONFIG_SHELL is bash and it inherits a
2524       # broken ls alias from the environment.  This has actually
2525       # happened.  Such a system could not be considered "sane".
2526       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2527 alias in your environment" "$LINENO" 5
2528    fi
2529
2530    test "$2" = conftest.file
2531    )
2532 then
2533    # Ok.
2534    :
2535 else
2536    as_fn_error "newly created file is older than distributed files!
2537 Check your system clock" "$LINENO" 5
2538 fi
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2540 $as_echo "yes" >&6; }
2541 test "$program_prefix" != NONE &&
2542   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2543 # Use a double $ so make ignores it.
2544 test "$program_suffix" != NONE &&
2545   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2546 # Double any \ or $.
2547 # By default was `s,x,x', remove it if useless.
2548 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2549 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2550
2551 # expand $ac_aux_dir to an absolute path
2552 am_aux_dir=`cd $ac_aux_dir && pwd`
2553
2554 if test x"${MISSING+set}" != xset; then
2555   case $am_aux_dir in
2556   *\ * | *\     *)
2557     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2558   *)
2559     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2560   esac
2561 fi
2562 # Use eval to expand $SHELL
2563 if eval "$MISSING --run true"; then
2564   am_missing_run="$MISSING --run "
2565 else
2566   am_missing_run=
2567   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2568 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2569 fi
2570
2571 if test x"${install_sh}" != xset; then
2572   case $am_aux_dir in
2573   *\ * | *\     *)
2574     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2575   *)
2576     install_sh="\${SHELL} $am_aux_dir/install-sh"
2577   esac
2578 fi
2579
2580 # Installed binaries are usually stripped using `strip' when the user
2581 # run `make install-strip'.  However `strip' might not be the right
2582 # tool to use in cross-compilation environments, therefore Automake
2583 # will honor the `STRIP' environment variable to overrule this program.
2584 if test "$cross_compiling" != no; then
2585   if test -n "$ac_tool_prefix"; then
2586   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2587 set dummy ${ac_tool_prefix}strip; ac_word=$2
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if test "${ac_cv_prog_STRIP+set}" = set; then :
2591   $as_echo_n "(cached) " >&6
2592 else
2593   if test -n "$STRIP"; then
2594   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599   IFS=$as_save_IFS
2600   test -z "$as_dir" && as_dir=.
2601     for ac_exec_ext in '' $ac_executable_extensions; do
2602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605     break 2
2606   fi
2607 done
2608   done
2609 IFS=$as_save_IFS
2610
2611 fi
2612 fi
2613 STRIP=$ac_cv_prog_STRIP
2614 if test -n "$STRIP"; then
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2616 $as_echo "$STRIP" >&6; }
2617 else
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2620 fi
2621
2622
2623 fi
2624 if test -z "$ac_cv_prog_STRIP"; then
2625   ac_ct_STRIP=$STRIP
2626   # Extract the first word of "strip", so it can be a program name with args.
2627 set dummy strip; ac_word=$2
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2631   $as_echo_n "(cached) " >&6
2632 else
2633   if test -n "$ac_ct_STRIP"; then
2634   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639   IFS=$as_save_IFS
2640   test -z "$as_dir" && as_dir=.
2641     for ac_exec_ext in '' $ac_executable_extensions; do
2642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643     ac_cv_prog_ac_ct_STRIP="strip"
2644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645     break 2
2646   fi
2647 done
2648   done
2649 IFS=$as_save_IFS
2650
2651 fi
2652 fi
2653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2654 if test -n "$ac_ct_STRIP"; then
2655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2656 $as_echo "$ac_ct_STRIP" >&6; }
2657 else
2658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2660 fi
2661
2662   if test "x$ac_ct_STRIP" = x; then
2663     STRIP=":"
2664   else
2665     case $cross_compiling:$ac_tool_warned in
2666 yes:)
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2669 ac_tool_warned=yes ;;
2670 esac
2671     STRIP=$ac_ct_STRIP
2672   fi
2673 else
2674   STRIP="$ac_cv_prog_STRIP"
2675 fi
2676
2677 fi
2678 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2679
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2681 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2682 if test -z "$MKDIR_P"; then
2683   if test "${ac_cv_path_mkdir+set}" = set; then :
2684   $as_echo_n "(cached) " >&6
2685 else
2686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2688 do
2689   IFS=$as_save_IFS
2690   test -z "$as_dir" && as_dir=.
2691     for ac_prog in mkdir gmkdir; do
2692          for ac_exec_ext in '' $ac_executable_extensions; do
2693            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2694            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2695              'mkdir (GNU coreutils) '* | \
2696              'mkdir (coreutils) '* | \
2697              'mkdir (fileutils) '4.1*)
2698                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2699                break 3;;
2700            esac
2701          done
2702        done
2703   done
2704 IFS=$as_save_IFS
2705
2706 fi
2707
2708   test -d ./--version && rmdir ./--version
2709   if test "${ac_cv_path_mkdir+set}" = set; then
2710     MKDIR_P="$ac_cv_path_mkdir -p"
2711   else
2712     # As a last resort, use the slow shell script.  Don't cache a
2713     # value for MKDIR_P within a source directory, because that will
2714     # break other packages using the cache if that directory is
2715     # removed, or if the value is a relative name.
2716     MKDIR_P="$ac_install_sh -d"
2717   fi
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2720 $as_echo "$MKDIR_P" >&6; }
2721
2722 mkdir_p="$MKDIR_P"
2723 case $mkdir_p in
2724   [\\/$]* | ?:[\\/]*) ;;
2725   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2726 esac
2727
2728 for ac_prog in gawk mawk nawk awk
2729 do
2730   # Extract the first word of "$ac_prog", so it can be a program name with args.
2731 set dummy $ac_prog; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if test "${ac_cv_prog_AWK+set}" = set; then :
2735   $as_echo_n "(cached) " >&6
2736 else
2737   if test -n "$AWK"; then
2738   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743   IFS=$as_save_IFS
2744   test -z "$as_dir" && as_dir=.
2745     for ac_exec_ext in '' $ac_executable_extensions; do
2746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747     ac_cv_prog_AWK="$ac_prog"
2748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749     break 2
2750   fi
2751 done
2752   done
2753 IFS=$as_save_IFS
2754
2755 fi
2756 fi
2757 AWK=$ac_cv_prog_AWK
2758 if test -n "$AWK"; then
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2760 $as_echo "$AWK" >&6; }
2761 else
2762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2764 fi
2765
2766
2767   test -n "$AWK" && break
2768 done
2769
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2771 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2772 set x ${MAKE-make}
2773 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2774 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2775   $as_echo_n "(cached) " >&6
2776 else
2777   cat >conftest.make <<\_ACEOF
2778 SHELL = /bin/sh
2779 all:
2780         @echo '@@@%%%=$(MAKE)=@@@%%%'
2781 _ACEOF
2782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2783 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2784   *@@@%%%=?*=@@@%%%*)
2785     eval ac_cv_prog_make_${ac_make}_set=yes;;
2786   *)
2787     eval ac_cv_prog_make_${ac_make}_set=no;;
2788 esac
2789 rm -f conftest.make
2790 fi
2791 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2793 $as_echo "yes" >&6; }
2794   SET_MAKE=
2795 else
2796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798   SET_MAKE="MAKE=${MAKE-make}"
2799 fi
2800
2801 rm -rf .tst 2>/dev/null
2802 mkdir .tst 2>/dev/null
2803 if test -d .tst; then
2804   am__leading_dot=.
2805 else
2806   am__leading_dot=_
2807 fi
2808 rmdir .tst 2>/dev/null
2809
2810 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2811   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2812   # is not polluted with repeated "-I."
2813   am__isrc=' -I$(srcdir)'
2814   # test to see if srcdir already configured
2815   if test -f $srcdir/config.status; then
2816     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2817   fi
2818 fi
2819
2820 # test whether we have cygpath
2821 if test -z "$CYGPATH_W"; then
2822   if (cygpath --version) >/dev/null 2>/dev/null; then
2823     CYGPATH_W='cygpath -w'
2824   else
2825     CYGPATH_W=echo
2826   fi
2827 fi
2828
2829
2830 # Define the identity of the package.
2831  PACKAGE='gtest'
2832  VERSION='1.6.0'
2833
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE "$PACKAGE"
2837 _ACEOF
2838
2839
2840 cat >>confdefs.h <<_ACEOF
2841 #define VERSION "$VERSION"
2842 _ACEOF
2843
2844 # Some tools Automake needs.
2845
2846 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2847
2848
2849 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2850
2851
2852 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2853
2854
2855 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2856
2857
2858 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2859
2860 # We need awk for the "check" target.  The system "awk" is bad on
2861 # some platforms.
2862 # Always define AMTAR for backward compatibility.
2863
2864 AMTAR=${AMTAR-"${am_missing_run}tar"}
2865
2866 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2867
2868
2869
2870
2871
2872
2873 # Check for programs used in building Google Test.
2874 ac_ext=c
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 if test -n "$ac_tool_prefix"; then
2880   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then :
2885   $as_echo_n "(cached) " >&6
2886 else
2887   if test -n "$CC"; then
2888   ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895     for ac_exec_ext in '' $ac_executable_extensions; do
2896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899     break 2
2900   fi
2901 done
2902   done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2911 else
2912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916
2917 fi
2918 if test -z "$ac_cv_prog_CC"; then
2919   ac_ct_CC=$CC
2920   # Extract the first word of "gcc", so it can be a program name with args.
2921 set dummy gcc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2925   $as_echo_n "(cached) " >&6
2926 else
2927   if test -n "$ac_ct_CC"; then
2928   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935     for ac_exec_ext in '' $ac_executable_extensions; do
2936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937     ac_cv_prog_ac_ct_CC="gcc"
2938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942   done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948 if test -n "$ac_ct_CC"; then
2949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2950 $as_echo "$ac_ct_CC" >&6; }
2951 else
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 fi
2955
2956   if test "x$ac_ct_CC" = x; then
2957     CC=""
2958   else
2959     case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2964 esac
2965     CC=$ac_ct_CC
2966   fi
2967 else
2968   CC="$ac_cv_prog_CC"
2969 fi
2970
2971 if test -z "$CC"; then
2972           if test -n "$ac_tool_prefix"; then
2973     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2974 set dummy ${ac_tool_prefix}cc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if test "${ac_cv_prog_CC+set}" = set; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   if test -n "$CC"; then
2981   ac_cv_prog_CC="$CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988     for ac_exec_ext in '' $ac_executable_extensions; do
2989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990     ac_cv_prog_CC="${ac_tool_prefix}cc"
2991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992     break 2
2993   fi
2994 done
2995   done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 CC=$ac_cv_prog_CC
3001 if test -n "$CC"; then
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003 $as_echo "$CC" >&6; }
3004 else
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009
3010   fi
3011 fi
3012 if test -z "$CC"; then
3013   # Extract the first word of "cc", so it can be a program name with args.
3014 set dummy cc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if test "${ac_cv_prog_CC+set}" = set; then :
3018   $as_echo_n "(cached) " >&6
3019 else
3020   if test -n "$CC"; then
3021   ac_cv_prog_CC="$CC" # Let the user override the test.
3022 else
3023   ac_prog_rejected=no
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027   IFS=$as_save_IFS
3028   test -z "$as_dir" && as_dir=.
3029     for ac_exec_ext in '' $ac_executable_extensions; do
3030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3032        ac_prog_rejected=yes
3033        continue
3034      fi
3035     ac_cv_prog_CC="cc"
3036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037     break 2
3038   fi
3039 done
3040   done
3041 IFS=$as_save_IFS
3042
3043 if test $ac_prog_rejected = yes; then
3044   # We found a bogon in the path, so make sure we never use it.
3045   set dummy $ac_cv_prog_CC
3046   shift
3047   if test $# != 0; then
3048     # We chose a different compiler from the bogus one.
3049     # However, it has the same basename, so the bogon will be chosen
3050     # first if we set CC to just the basename; use the full file name.
3051     shift
3052     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3053   fi
3054 fi
3055 fi
3056 fi
3057 CC=$ac_cv_prog_CC
3058 if test -n "$CC"; then
3059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3061 else
3062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3064 fi
3065
3066
3067 fi
3068 if test -z "$CC"; then
3069   if test -n "$ac_tool_prefix"; then
3070   for ac_prog in cl.exe
3071   do
3072     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if test "${ac_cv_prog_CC+set}" = set; then :
3077   $as_echo_n "(cached) " >&6
3078 else
3079   if test -n "$CC"; then
3080   ac_cv_prog_CC="$CC" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085   IFS=$as_save_IFS
3086   test -z "$as_dir" && as_dir=.
3087     for ac_exec_ext in '' $ac_executable_extensions; do
3088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091     break 2
3092   fi
3093 done
3094   done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 CC=$ac_cv_prog_CC
3100 if test -n "$CC"; then
3101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3103 else
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108
3109     test -n "$CC" && break
3110   done
3111 fi
3112 if test -z "$CC"; then
3113   ac_ct_CC=$CC
3114   for ac_prog in cl.exe
3115 do
3116   # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3121   $as_echo_n "(cached) " >&6
3122 else
3123   if test -n "$ac_ct_CC"; then
3124   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129   IFS=$as_save_IFS
3130   test -z "$as_dir" && as_dir=.
3131     for ac_exec_ext in '' $ac_executable_extensions; do
3132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133     ac_cv_prog_ac_ct_CC="$ac_prog"
3134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135     break 2
3136   fi
3137 done
3138   done
3139 IFS=$as_save_IFS
3140
3141 fi
3142 fi
3143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3144 if test -n "$ac_ct_CC"; then
3145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3146 $as_echo "$ac_ct_CC" >&6; }
3147 else
3148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152
3153   test -n "$ac_ct_CC" && break
3154 done
3155
3156   if test "x$ac_ct_CC" = x; then
3157     CC=""
3158   else
3159     case $cross_compiling:$ac_tool_warned in
3160 yes:)
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3163 ac_tool_warned=yes ;;
3164 esac
3165     CC=$ac_ct_CC
3166   fi
3167 fi
3168
3169 fi
3170
3171
3172 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error "no acceptable C compiler found in \$PATH
3175 See \`config.log' for more details." "$LINENO" 5; }
3176
3177 # Provide some information about the compiler.
3178 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3179 set X $ac_compile
3180 ac_compiler=$2
3181 for ac_option in --version -v -V -qversion; do
3182   { { ac_try="$ac_compiler $ac_option >&5"
3183 case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3190   ac_status=$?
3191   if test -s conftest.err; then
3192     sed '10a\
3193 ... rest of stderr output deleted ...
3194          10q' conftest.err >conftest.er1
3195     cat conftest.er1 >&5
3196   fi
3197   rm -f conftest.er1 conftest.err
3198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199   test $ac_status = 0; }
3200 done
3201
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h.  */
3204
3205 int
3206 main ()
3207 {
3208
3209   ;
3210   return 0;
3211 }
3212 _ACEOF
3213 ac_clean_files_save=$ac_clean_files
3214 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3215 # Try to create an executable without -o first, disregard a.out.
3216 # It will help us diagnose broken compilers, and finding out an intuition
3217 # of exeext.
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3219 $as_echo_n "checking whether the C compiler works... " >&6; }
3220 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3221
3222 # The possible output files:
3223 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3224
3225 ac_rmfiles=
3226 for ac_file in $ac_files
3227 do
3228   case $ac_file in
3229     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3231   esac
3232 done
3233 rm -f $ac_rmfiles
3234
3235 if { { ac_try="$ac_link_default"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242   (eval "$ac_link_default") 2>&5
3243   ac_status=$?
3244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245   test $ac_status = 0; }; then :
3246   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3247 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3248 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3249 # so that the user can short-circuit this test for compilers unknown to
3250 # Autoconf.
3251 for ac_file in $ac_files ''
3252 do
3253   test -f "$ac_file" || continue
3254   case $ac_file in
3255     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3256         ;;
3257     [ab].out )
3258         # We found the default executable, but exeext='' is most
3259         # certainly right.
3260         break;;
3261     *.* )
3262         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3263         then :; else
3264            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3265         fi
3266         # We set ac_cv_exeext here because the later test for it is not
3267         # safe: cross compilers may not add the suffix if given an `-o'
3268         # argument, so we may need to know it at that point already.
3269         # Even if this section looks crufty: it has the advantage of
3270         # actually working.
3271         break;;
3272     * )
3273         break;;
3274   esac
3275 done
3276 test "$ac_cv_exeext" = no && ac_cv_exeext=
3277
3278 else
3279   ac_file=''
3280 fi
3281 if test -z "$ac_file"; then :
3282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 { as_fn_set_status 77
3290 as_fn_error "C compiler cannot create executables
3291 See \`config.log' for more details." "$LINENO" 5; }; }
3292 else
3293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3295 fi
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3297 $as_echo_n "checking for C compiler default output file name... " >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3299 $as_echo "$ac_file" >&6; }
3300 ac_exeext=$ac_cv_exeext
3301
3302 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3303 ac_clean_files=$ac_clean_files_save
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3305 $as_echo_n "checking for suffix of executables... " >&6; }
3306 if { { ac_try="$ac_link"
3307 case "(($ac_try" in
3308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309   *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313   (eval "$ac_link") 2>&5
3314   ac_status=$?
3315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316   test $ac_status = 0; }; then :
3317   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3318 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3319 # work properly (i.e., refer to `conftest.exe'), while it won't with
3320 # `rm'.
3321 for ac_file in conftest.exe conftest conftest.*; do
3322   test -f "$ac_file" || continue
3323   case $ac_file in
3324     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326           break;;
3327     * ) break;;
3328   esac
3329 done
3330 else
3331   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error "cannot compute suffix of executables: cannot compile and link
3334 See \`config.log' for more details." "$LINENO" 5; }
3335 fi
3336 rm -f conftest conftest$ac_cv_exeext
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3338 $as_echo "$ac_cv_exeext" >&6; }
3339
3340 rm -f conftest.$ac_ext
3341 EXEEXT=$ac_cv_exeext
3342 ac_exeext=$EXEEXT
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h.  */
3345 #include <stdio.h>
3346 int
3347 main ()
3348 {
3349 FILE *f = fopen ("conftest.out", "w");
3350  return ferror (f) || fclose (f) != 0;
3351
3352   ;
3353   return 0;
3354 }
3355 _ACEOF
3356 ac_clean_files="$ac_clean_files conftest.out"
3357 # Check that the compiler produces executables we can run.  If not, either
3358 # the compiler is broken, or we cross compile.
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3360 $as_echo_n "checking whether we are cross compiling... " >&6; }
3361 if test "$cross_compiling" != yes; then
3362   { { ac_try="$ac_link"
3363 case "(($ac_try" in
3364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365   *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369   (eval "$ac_link") 2>&5
3370   ac_status=$?
3371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372   test $ac_status = 0; }
3373   if { ac_try='./conftest$ac_cv_exeext'
3374   { { case "(($ac_try" in
3375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376   *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380   (eval "$ac_try") 2>&5
3381   ac_status=$?
3382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383   test $ac_status = 0; }; }; then
3384     cross_compiling=no
3385   else
3386     if test "$cross_compiling" = maybe; then
3387         cross_compiling=yes
3388     else
3389         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error "cannot run C compiled programs.
3392 If you meant to cross compile, use \`--host'.
3393 See \`config.log' for more details." "$LINENO" 5; }
3394     fi
3395   fi
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3398 $as_echo "$cross_compiling" >&6; }
3399
3400 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3401 ac_clean_files=$ac_clean_files_save
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3403 $as_echo_n "checking for suffix of object files... " >&6; }
3404 if test "${ac_cv_objext+set}" = set; then :
3405   $as_echo_n "(cached) " >&6
3406 else
3407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h.  */
3409
3410 int
3411 main ()
3412 {
3413
3414   ;
3415   return 0;
3416 }
3417 _ACEOF
3418 rm -f conftest.o conftest.obj
3419 if { { ac_try="$ac_compile"
3420 case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426   (eval "$ac_compile") 2>&5
3427   ac_status=$?
3428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429   test $ac_status = 0; }; then :
3430   for ac_file in conftest.o conftest.obj conftest.*; do
3431   test -f "$ac_file" || continue;
3432   case $ac_file in
3433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3434     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3435        break;;
3436   esac
3437 done
3438 else
3439   $as_echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error "cannot compute suffix of object files: cannot compile
3445 See \`config.log' for more details." "$LINENO" 5; }
3446 fi
3447 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3450 $as_echo "$ac_cv_objext" >&6; }
3451 OBJEXT=$ac_cv_objext
3452 ac_objext=$OBJEXT
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3454 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3455 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3456   $as_echo_n "(cached) " >&6
3457 else
3458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h.  */
3460
3461 int
3462 main ()
3463 {
3464 #ifndef __GNUC__
3465        choke me
3466 #endif
3467
3468   ;
3469   return 0;
3470 }
3471 _ACEOF
3472 if ac_fn_c_try_compile "$LINENO"; then :
3473   ac_compiler_gnu=yes
3474 else
3475   ac_compiler_gnu=no
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3479
3480 fi
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3482 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3483 if test $ac_compiler_gnu = yes; then
3484   GCC=yes
3485 else
3486   GCC=
3487 fi
3488 ac_test_CFLAGS=${CFLAGS+set}
3489 ac_save_CFLAGS=$CFLAGS
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3491 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3492 if test "${ac_cv_prog_cc_g+set}" = set; then :
3493   $as_echo_n "(cached) " >&6
3494 else
3495   ac_save_c_werror_flag=$ac_c_werror_flag
3496    ac_c_werror_flag=yes
3497    ac_cv_prog_cc_g=no
3498    CFLAGS="-g"
3499    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h.  */
3501
3502 int
3503 main ()
3504 {
3505
3506   ;
3507   return 0;
3508 }
3509 _ACEOF
3510 if ac_fn_c_try_compile "$LINENO"; then :
3511   ac_cv_prog_cc_g=yes
3512 else
3513   CFLAGS=""
3514       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h.  */
3516
3517 int
3518 main ()
3519 {
3520
3521   ;
3522   return 0;
3523 }
3524 _ACEOF
3525 if ac_fn_c_try_compile "$LINENO"; then :
3526
3527 else
3528   ac_c_werror_flag=$ac_save_c_werror_flag
3529          CFLAGS="-g"
3530          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h.  */
3532
3533 int
3534 main ()
3535 {
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 if ac_fn_c_try_compile "$LINENO"; then :
3542   ac_cv_prog_cc_g=yes
3543 fi
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 fi
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 fi
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549    ac_c_werror_flag=$ac_save_c_werror_flag
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3552 $as_echo "$ac_cv_prog_cc_g" >&6; }
3553 if test "$ac_test_CFLAGS" = set; then
3554   CFLAGS=$ac_save_CFLAGS
3555 elif test $ac_cv_prog_cc_g = yes; then
3556   if test "$GCC" = yes; then
3557     CFLAGS="-g -O2"
3558   else
3559     CFLAGS="-g"
3560   fi
3561 else
3562   if test "$GCC" = yes; then
3563     CFLAGS="-O2"
3564   else
3565     CFLAGS=
3566   fi
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3569 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3570 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3571   $as_echo_n "(cached) " >&6
3572 else
3573   ac_cv_prog_cc_c89=no
3574 ac_save_CC=$CC
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h.  */
3577 #include <stdarg.h>
3578 #include <stdio.h>
3579 #include <sys/types.h>
3580 #include <sys/stat.h>
3581 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3582 struct buf { int x; };
3583 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3584 static char *e (p, i)
3585      char **p;
3586      int i;
3587 {
3588   return p[i];
3589 }
3590 static char *f (char * (*g) (char **, int), char **p, ...)
3591 {
3592   char *s;
3593   va_list v;
3594   va_start (v,p);
3595   s = g (p, va_arg (v,int));
3596   va_end (v);
3597   return s;
3598 }
3599
3600 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3601    function prototypes and stuff, but not '\xHH' hex character constants.
3602    These don't provoke an error unfortunately, instead are silently treated
3603    as 'x'.  The following induces an error, until -std is added to get
3604    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3605    array size at least.  It's necessary to write '\x00'==0 to get something
3606    that's true only with -std.  */
3607 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3608
3609 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3610    inside strings and character constants.  */
3611 #define FOO(x) 'x'
3612 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3613
3614 int test (int i, double x);
3615 struct s1 {int (*f) (int a);};
3616 struct s2 {int (*f) (double a);};
3617 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3618 int argc;
3619 char **argv;
3620 int
3621 main ()
3622 {
3623 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3624   ;
3625   return 0;
3626 }
3627 _ACEOF
3628 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3629         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3630 do
3631   CC="$ac_save_CC $ac_arg"
3632   if ac_fn_c_try_compile "$LINENO"; then :
3633   ac_cv_prog_cc_c89=$ac_arg
3634 fi
3635 rm -f core conftest.err conftest.$ac_objext
3636   test "x$ac_cv_prog_cc_c89" != "xno" && break
3637 done
3638 rm -f conftest.$ac_ext
3639 CC=$ac_save_CC
3640
3641 fi
3642 # AC_CACHE_VAL
3643 case "x$ac_cv_prog_cc_c89" in
3644   x)
3645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3646 $as_echo "none needed" >&6; } ;;
3647   xno)
3648     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3649 $as_echo "unsupported" >&6; } ;;
3650   *)
3651     CC="$CC $ac_cv_prog_cc_c89"
3652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3653 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3654 esac
3655 if test "x$ac_cv_prog_cc_c89" != xno; then :
3656
3657 fi
3658
3659 ac_ext=c
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664 DEPDIR="${am__leading_dot}deps"
3665
3666 ac_config_commands="$ac_config_commands depfiles"
3667
3668
3669 am_make=${MAKE-make}
3670 cat > confinc << 'END'
3671 am__doit:
3672         @echo this is the am__doit target
3673 .PHONY: am__doit
3674 END
3675 # If we don't find an include directive, just comment out the code.
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3677 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3678 am__include="#"
3679 am__quote=
3680 _am_result=none
3681 # First try GNU make style include.
3682 echo "include confinc" > confmf
3683 # Ignore all kinds of additional output from `make'.
3684 case `$am_make -s -f confmf 2> /dev/null` in #(
3685 *the\ am__doit\ target*)
3686   am__include=include
3687   am__quote=
3688   _am_result=GNU
3689   ;;
3690 esac
3691 # Now try BSD make style include.
3692 if test "$am__include" = "#"; then
3693    echo '.include "confinc"' > confmf
3694    case `$am_make -s -f confmf 2> /dev/null` in #(
3695    *the\ am__doit\ target*)
3696      am__include=.include
3697      am__quote="\""
3698      _am_result=BSD
3699      ;;
3700    esac
3701 fi
3702
3703
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3705 $as_echo "$_am_result" >&6; }
3706 rm -f confinc confmf
3707
3708 # Check whether --enable-dependency-tracking was given.
3709 if test "${enable_dependency_tracking+set}" = set; then :
3710   enableval=$enable_dependency_tracking;
3711 fi
3712
3713 if test "x$enable_dependency_tracking" != xno; then
3714   am_depcomp="$ac_aux_dir/depcomp"
3715   AMDEPBACKSLASH='\'
3716 fi
3717  if test "x$enable_dependency_tracking" != xno; then
3718   AMDEP_TRUE=
3719   AMDEP_FALSE='#'
3720 else
3721   AMDEP_TRUE='#'
3722   AMDEP_FALSE=
3723 fi
3724
3725
3726
3727 depcc="$CC"   am_compiler_list=
3728
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3730 $as_echo_n "checking dependency style of $depcc... " >&6; }
3731 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3732   $as_echo_n "(cached) " >&6
3733 else
3734   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3735   # We make a subdir and do the tests there.  Otherwise we can end up
3736   # making bogus files that we don't know about and never remove.  For
3737   # instance it was reported that on HP-UX the gcc test will end up
3738   # making a dummy file named `D' -- because `-MD' means `put the output
3739   # in D'.
3740   mkdir conftest.dir
3741   # Copy depcomp to subdir because otherwise we won't find it if we're
3742   # using a relative directory.
3743   cp "$am_depcomp" conftest.dir
3744   cd conftest.dir
3745   # We will build objects and dependencies in a subdirectory because
3746   # it helps to detect inapplicable dependency modes.  For instance
3747   # both Tru64's cc and ICC support -MD to output dependencies as a
3748   # side effect of compilation, but ICC will put the dependencies in
3749   # the current directory while Tru64 will put them in the object
3750   # directory.
3751   mkdir sub
3752
3753   am_cv_CC_dependencies_compiler_type=none
3754   if test "$am_compiler_list" = ""; then
3755      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3756   fi
3757   am__universal=false
3758   case " $depcc " in #(
3759      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3760      esac
3761
3762   for depmode in $am_compiler_list; do
3763     # Setup a source with many dependencies, because some compilers
3764     # like to wrap large dependency lists on column 80 (with \), and
3765     # we should not choose a depcomp mode which is confused by this.
3766     #
3767     # We need to recreate these files for each test, as the compiler may
3768     # overwrite some of them when testing with obscure command lines.
3769     # This happens at least with the AIX C compiler.
3770     : > sub/conftest.c
3771     for i in 1 2 3 4 5 6; do
3772       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3773       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3774       # Solaris 8's {/usr,}/bin/sh.
3775       touch sub/conftst$i.h
3776     done
3777     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3778
3779     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3780     # mode.  It turns out that the SunPro C++ compiler does not properly
3781     # handle `-M -o', and we need to detect this.  Also, some Intel
3782     # versions had trouble with output in subdirs
3783     am__obj=sub/conftest.${OBJEXT-o}
3784     am__minus_obj="-o $am__obj"
3785     case $depmode in
3786     gcc)
3787       # This depmode causes a compiler race in universal mode.
3788       test "$am__universal" = false || continue
3789       ;;
3790     nosideeffect)
3791       # after this tag, mechanisms are not by side-effect, so they'll
3792       # only be used when explicitly requested
3793       if test "x$enable_dependency_tracking" = xyes; then
3794         continue
3795       else
3796         break
3797       fi
3798       ;;
3799     msvisualcpp | msvcmsys)
3800       # This compiler won't grok `-c -o', but also, the minuso test has
3801       # not run yet.  These depmodes are late enough in the game, and
3802       # so weak that their functioning should not be impacted.
3803       am__obj=conftest.${OBJEXT-o}
3804       am__minus_obj=
3805       ;;
3806     none) break ;;
3807     esac
3808     if depmode=$depmode \
3809        source=sub/conftest.c object=$am__obj \
3810        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3811        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3812          >/dev/null 2>conftest.err &&
3813        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3814        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3815        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3816        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3817       # icc doesn't choke on unknown options, it will just issue warnings
3818       # or remarks (even with -Werror).  So we grep stderr for any message
3819       # that says an option was ignored or not supported.
3820       # When given -MP, icc 7.0 and 7.1 complain thusly:
3821       #   icc: Command line warning: ignoring option '-M'; no argument required
3822       # The diagnosis changed in icc 8.0:
3823       #   icc: Command line remark: option '-MP' not supported
3824       if (grep 'ignoring option' conftest.err ||
3825           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3826         am_cv_CC_dependencies_compiler_type=$depmode
3827         break
3828       fi
3829     fi
3830   done
3831
3832   cd ..
3833   rm -rf conftest.dir
3834 else
3835   am_cv_CC_dependencies_compiler_type=none
3836 fi
3837
3838 fi
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3840 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3841 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3842
3843  if
3844   test "x$enable_dependency_tracking" != xno \
3845   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3846   am__fastdepCC_TRUE=
3847   am__fastdepCC_FALSE='#'
3848 else
3849   am__fastdepCC_TRUE='#'
3850   am__fastdepCC_FALSE=
3851 fi
3852
3853
3854 ac_ext=cpp
3855 ac_cpp='$CXXCPP $CPPFLAGS'
3856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3859 if test -z "$CXX"; then
3860   if test -n "$CCC"; then
3861     CXX=$CCC
3862   else
3863     if test -n "$ac_tool_prefix"; then
3864   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3865   do
3866     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869 $as_echo_n "checking for $ac_word... " >&6; }
3870 if test "${ac_cv_prog_CXX+set}" = set; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   if test -n "$CXX"; then
3874   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3878 do
3879   IFS=$as_save_IFS
3880   test -z "$as_dir" && as_dir=.
3881     for ac_exec_ext in '' $ac_executable_extensions; do
3882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3883     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3885     break 2
3886   fi
3887 done
3888   done
3889 IFS=$as_save_IFS
3890
3891 fi
3892 fi
3893 CXX=$ac_cv_prog_CXX
3894 if test -n "$CXX"; then
3895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3896 $as_echo "$CXX" >&6; }
3897 else
3898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 $as_echo "no" >&6; }
3900 fi
3901
3902
3903     test -n "$CXX" && break
3904   done
3905 fi
3906 if test -z "$CXX"; then
3907   ac_ct_CXX=$CXX
3908   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3909 do
3910   # Extract the first word of "$ac_prog", so it can be a program name with args.
3911 set dummy $ac_prog; ac_word=$2
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 $as_echo_n "checking for $ac_word... " >&6; }
3914 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3915   $as_echo_n "(cached) " >&6
3916 else
3917   if test -n "$ac_ct_CXX"; then
3918   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923   IFS=$as_save_IFS
3924   test -z "$as_dir" && as_dir=.
3925     for ac_exec_ext in '' $ac_executable_extensions; do
3926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3927     ac_cv_prog_ac_ct_CXX="$ac_prog"
3928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929     break 2
3930   fi
3931 done
3932   done
3933 IFS=$as_save_IFS
3934
3935 fi
3936 fi
3937 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3938 if test -n "$ac_ct_CXX"; then
3939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3940 $as_echo "$ac_ct_CXX" >&6; }
3941 else
3942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3944 fi
3945
3946
3947   test -n "$ac_ct_CXX" && break
3948 done
3949
3950   if test "x$ac_ct_CXX" = x; then
3951     CXX="g++"
3952   else
3953     case $cross_compiling:$ac_tool_warned in
3954 yes:)
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3957 ac_tool_warned=yes ;;
3958 esac
3959     CXX=$ac_ct_CXX
3960   fi
3961 fi
3962
3963   fi
3964 fi
3965 # Provide some information about the compiler.
3966 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3967 set X $ac_compile
3968 ac_compiler=$2
3969 for ac_option in --version -v -V -qversion; do
3970   { { ac_try="$ac_compiler $ac_option >&5"
3971 case "(($ac_try" in
3972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973   *) ac_try_echo=$ac_try;;
3974 esac
3975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976 $as_echo "$ac_try_echo"; } >&5
3977   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3978   ac_status=$?
3979   if test -s conftest.err; then
3980     sed '10a\
3981 ... rest of stderr output deleted ...
3982          10q' conftest.err >conftest.er1
3983     cat conftest.er1 >&5
3984   fi
3985   rm -f conftest.er1 conftest.err
3986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987   test $ac_status = 0; }
3988 done
3989
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3991 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3992 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3993   $as_echo_n "(cached) " >&6
3994 else
3995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h.  */
3997
3998 int
3999 main ()
4000 {
4001 #ifndef __GNUC__
4002        choke me
4003 #endif
4004
4005   ;
4006   return 0;
4007 }
4008 _ACEOF
4009 if ac_fn_cxx_try_compile "$LINENO"; then :
4010   ac_compiler_gnu=yes
4011 else
4012   ac_compiler_gnu=no
4013 fi
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4016
4017 fi
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4019 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4020 if test $ac_compiler_gnu = yes; then
4021   GXX=yes
4022 else
4023   GXX=
4024 fi
4025 ac_test_CXXFLAGS=${CXXFLAGS+set}
4026 ac_save_CXXFLAGS=$CXXFLAGS
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4028 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4029 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4030   $as_echo_n "(cached) " >&6
4031 else
4032   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4033    ac_cxx_werror_flag=yes
4034    ac_cv_prog_cxx_g=no
4035    CXXFLAGS="-g"
4036    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h.  */
4038
4039 int
4040 main ()
4041 {
4042
4043   ;
4044   return 0;
4045 }
4046 _ACEOF
4047 if ac_fn_cxx_try_compile "$LINENO"; then :
4048   ac_cv_prog_cxx_g=yes
4049 else
4050   CXXFLAGS=""
4051       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h.  */
4053
4054 int
4055 main ()
4056 {
4057
4058   ;
4059   return 0;
4060 }
4061 _ACEOF
4062 if ac_fn_cxx_try_compile "$LINENO"; then :
4063
4064 else
4065   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4066          CXXFLAGS="-g"
4067          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h.  */
4069
4070 int
4071 main ()
4072 {
4073
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078 if ac_fn_cxx_try_compile "$LINENO"; then :
4079   ac_cv_prog_cxx_g=yes
4080 fi
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 fi
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 fi
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4089 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4090 if test "$ac_test_CXXFLAGS" = set; then
4091   CXXFLAGS=$ac_save_CXXFLAGS
4092 elif test $ac_cv_prog_cxx_g = yes; then
4093   if test "$GXX" = yes; then
4094     CXXFLAGS="-g -O2"
4095   else
4096     CXXFLAGS="-g"
4097   fi
4098 else
4099   if test "$GXX" = yes; then
4100     CXXFLAGS="-O2"
4101   else
4102     CXXFLAGS=
4103   fi
4104 fi
4105 ac_ext=c
4106 ac_cpp='$CPP $CPPFLAGS'
4107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110
4111 depcc="$CXX"  am_compiler_list=
4112
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4114 $as_echo_n "checking dependency style of $depcc... " >&6; }
4115 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4116   $as_echo_n "(cached) " >&6
4117 else
4118   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4119   # We make a subdir and do the tests there.  Otherwise we can end up
4120   # making bogus files that we don't know about and never remove.  For
4121   # instance it was reported that on HP-UX the gcc test will end up
4122   # making a dummy file named `D' -- because `-MD' means `put the output
4123   # in D'.
4124   mkdir conftest.dir
4125   # Copy depcomp to subdir because otherwise we won't find it if we're
4126   # using a relative directory.
4127   cp "$am_depcomp" conftest.dir
4128   cd conftest.dir
4129   # We will build objects and dependencies in a subdirectory because
4130   # it helps to detect inapplicable dependency modes.  For instance
4131   # both Tru64's cc and ICC support -MD to output dependencies as a
4132   # side effect of compilation, but ICC will put the dependencies in
4133   # the current directory while Tru64 will put them in the object
4134   # directory.
4135   mkdir sub
4136
4137   am_cv_CXX_dependencies_compiler_type=none
4138   if test "$am_compiler_list" = ""; then
4139      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4140   fi
4141   am__universal=false
4142   case " $depcc " in #(
4143      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4144      esac
4145
4146   for depmode in $am_compiler_list; do
4147     # Setup a source with many dependencies, because some compilers
4148     # like to wrap large dependency lists on column 80 (with \), and
4149     # we should not choose a depcomp mode which is confused by this.
4150     #
4151     # We need to recreate these files for each test, as the compiler may
4152     # overwrite some of them when testing with obscure command lines.
4153     # This happens at least with the AIX C compiler.
4154     : > sub/conftest.c
4155     for i in 1 2 3 4 5 6; do
4156       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4157       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4158       # Solaris 8's {/usr,}/bin/sh.
4159       touch sub/conftst$i.h
4160     done
4161     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4162
4163     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4164     # mode.  It turns out that the SunPro C++ compiler does not properly
4165     # handle `-M -o', and we need to detect this.  Also, some Intel
4166     # versions had trouble with output in subdirs
4167     am__obj=sub/conftest.${OBJEXT-o}
4168     am__minus_obj="-o $am__obj"
4169     case $depmode in
4170     gcc)
4171       # This depmode causes a compiler race in universal mode.
4172       test "$am__universal" = false || continue
4173       ;;
4174     nosideeffect)
4175       # after this tag, mechanisms are not by side-effect, so they'll
4176       # only be used when explicitly requested
4177       if test "x$enable_dependency_tracking" = xyes; then
4178         continue
4179       else
4180         break
4181       fi
4182       ;;
4183     msvisualcpp | msvcmsys)
4184       # This compiler won't grok `-c -o', but also, the minuso test has
4185       # not run yet.  These depmodes are late enough in the game, and
4186       # so weak that their functioning should not be impacted.
4187       am__obj=conftest.${OBJEXT-o}
4188       am__minus_obj=
4189       ;;
4190     none) break ;;
4191     esac
4192     if depmode=$depmode \
4193        source=sub/conftest.c object=$am__obj \
4194        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4195        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4196          >/dev/null 2>conftest.err &&
4197        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4198        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4199        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4200        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4201       # icc doesn't choke on unknown options, it will just issue warnings
4202       # or remarks (even with -Werror).  So we grep stderr for any message
4203       # that says an option was ignored or not supported.
4204       # When given -MP, icc 7.0 and 7.1 complain thusly:
4205       #   icc: Command line warning: ignoring option '-M'; no argument required
4206       # The diagnosis changed in icc 8.0:
4207       #   icc: Command line remark: option '-MP' not supported
4208       if (grep 'ignoring option' conftest.err ||
4209           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4210         am_cv_CXX_dependencies_compiler_type=$depmode
4211         break
4212       fi
4213     fi
4214   done
4215
4216   cd ..
4217   rm -rf conftest.dir
4218 else
4219   am_cv_CXX_dependencies_compiler_type=none
4220 fi
4221
4222 fi
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4224 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4225 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4226
4227  if
4228   test "x$enable_dependency_tracking" != xno \
4229   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4230   am__fastdepCXX_TRUE=
4231   am__fastdepCXX_FALSE='#'
4232 else
4233   am__fastdepCXX_TRUE='#'
4234   am__fastdepCXX_FALSE=
4235 fi
4236
4237
4238 ac_ext=cpp
4239 ac_cpp='$CXXCPP $CPPFLAGS'
4240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4243
4244 case `pwd` in
4245   *\ * | *\     *)
4246     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4247 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4248 esac
4249
4250
4251
4252 macro_version='2.2.6b'
4253 macro_revision='1.3017'
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267 ltmain="$ac_aux_dir/ltmain.sh"
4268
4269 # Make sure we can run config.sub.
4270 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4271   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4272
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4274 $as_echo_n "checking build system type... " >&6; }
4275 if test "${ac_cv_build+set}" = set; then :
4276   $as_echo_n "(cached) " >&6
4277 else
4278   ac_build_alias=$build_alias
4279 test "x$ac_build_alias" = x &&
4280   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4281 test "x$ac_build_alias" = x &&
4282   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4283 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4284   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4285
4286 fi
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4288 $as_echo "$ac_cv_build" >&6; }
4289 case $ac_cv_build in
4290 *-*-*) ;;
4291 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4292 esac
4293 build=$ac_cv_build
4294 ac_save_IFS=$IFS; IFS='-'
4295 set x $ac_cv_build
4296 shift
4297 build_cpu=$1
4298 build_vendor=$2
4299 shift; shift
4300 # Remember, the first character of IFS is used to create $*,
4301 # except with old shells:
4302 build_os=$*
4303 IFS=$ac_save_IFS
4304 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4305
4306
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4308 $as_echo_n "checking host system type... " >&6; }
4309 if test "${ac_cv_host+set}" = set; then :
4310   $as_echo_n "(cached) " >&6
4311 else
4312   if test "x$host_alias" = x; then
4313   ac_cv_host=$ac_cv_build
4314 else
4315   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4316     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4317 fi
4318
4319 fi
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4321 $as_echo "$ac_cv_host" >&6; }
4322 case $ac_cv_host in
4323 *-*-*) ;;
4324 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4325 esac
4326 host=$ac_cv_host
4327 ac_save_IFS=$IFS; IFS='-'
4328 set x $ac_cv_host
4329 shift
4330 host_cpu=$1
4331 host_vendor=$2
4332 shift; shift
4333 # Remember, the first character of IFS is used to create $*,
4334 # except with old shells:
4335 host_os=$*
4336 IFS=$ac_save_IFS
4337 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4338
4339
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4341 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4342 if test "${ac_cv_path_SED+set}" = set; then :
4343   $as_echo_n "(cached) " >&6
4344 else
4345             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4346      for ac_i in 1 2 3 4 5 6 7; do
4347        ac_script="$ac_script$as_nl$ac_script"
4348      done
4349      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4350      { ac_script=; unset ac_script;}
4351      if test -z "$SED"; then
4352   ac_path_SED_found=false
4353   # Loop through the user's path and test for each of PROGNAME-LIST
4354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH
4356 do
4357   IFS=$as_save_IFS
4358   test -z "$as_dir" && as_dir=.
4359     for ac_prog in sed gsed; do
4360     for ac_exec_ext in '' $ac_executable_extensions; do
4361       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4362       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4363 # Check for GNU ac_path_SED and select it if it is found.
4364   # Check for GNU $ac_path_SED
4365 case `"$ac_path_SED" --version 2>&1` in
4366 *GNU*)
4367   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4368 *)
4369   ac_count=0
4370   $as_echo_n 0123456789 >"conftest.in"
4371   while :
4372   do
4373     cat "conftest.in" "conftest.in" >"conftest.tmp"
4374     mv "conftest.tmp" "conftest.in"
4375     cp "conftest.in" "conftest.nl"
4376     $as_echo '' >> "conftest.nl"
4377     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4378     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4379     as_fn_arith $ac_count + 1 && ac_count=$as_val
4380     if test $ac_count -gt ${ac_path_SED_max-0}; then
4381       # Best one so far, save it but keep looking for a better one
4382       ac_cv_path_SED="$ac_path_SED"
4383       ac_path_SED_max=$ac_count
4384     fi
4385     # 10*(2^10) chars as input seems more than enough
4386     test $ac_count -gt 10 && break
4387   done
4388   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4389 esac
4390
4391       $ac_path_SED_found && break 3
4392     done
4393   done
4394   done
4395 IFS=$as_save_IFS
4396   if test -z "$ac_cv_path_SED"; then
4397     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4398   fi
4399 else
4400   ac_cv_path_SED=$SED
4401 fi
4402
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4405 $as_echo "$ac_cv_path_SED" >&6; }
4406  SED="$ac_cv_path_SED"
4407   rm -f conftest.sed
4408
4409 test -z "$SED" && SED=sed
4410 Xsed="$SED -e 1s/^X//"
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4423 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4424 if test "${ac_cv_path_GREP+set}" = set; then :
4425   $as_echo_n "(cached) " >&6
4426 else
4427   if test -z "$GREP"; then
4428   ac_path_GREP_found=false
4429   # Loop through the user's path and test for each of PROGNAME-LIST
4430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4432 do
4433   IFS=$as_save_IFS
4434   test -z "$as_dir" && as_dir=.
4435     for ac_prog in grep ggrep; do
4436     for ac_exec_ext in '' $ac_executable_extensions; do
4437       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4438       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4439 # Check for GNU ac_path_GREP and select it if it is found.
4440   # Check for GNU $ac_path_GREP
4441 case `"$ac_path_GREP" --version 2>&1` in
4442 *GNU*)
4443   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4444 *)
4445   ac_count=0
4446   $as_echo_n 0123456789 >"conftest.in"
4447   while :
4448   do
4449     cat "conftest.in" "conftest.in" >"conftest.tmp"
4450     mv "conftest.tmp" "conftest.in"
4451     cp "conftest.in" "conftest.nl"
4452     $as_echo 'GREP' >> "conftest.nl"
4453     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4454     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4455     as_fn_arith $ac_count + 1 && ac_count=$as_val
4456     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4457       # Best one so far, save it but keep looking for a better one
4458       ac_cv_path_GREP="$ac_path_GREP"
4459       ac_path_GREP_max=$ac_count
4460     fi
4461     # 10*(2^10) chars as input seems more than enough
4462     test $ac_count -gt 10 && break
4463   done
4464   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4465 esac
4466
4467       $ac_path_GREP_found && break 3
4468     done
4469   done
4470   done
4471 IFS=$as_save_IFS
4472   if test -z "$ac_cv_path_GREP"; then
4473     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4474   fi
4475 else
4476   ac_cv_path_GREP=$GREP
4477 fi
4478
4479 fi
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4481 $as_echo "$ac_cv_path_GREP" >&6; }
4482  GREP="$ac_cv_path_GREP"
4483
4484
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4486 $as_echo_n "checking for egrep... " >&6; }
4487 if test "${ac_cv_path_EGREP+set}" = set; then :
4488   $as_echo_n "(cached) " >&6
4489 else
4490   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4491    then ac_cv_path_EGREP="$GREP -E"
4492    else
4493      if test -z "$EGREP"; then
4494   ac_path_EGREP_found=false
4495   # Loop through the user's path and test for each of PROGNAME-LIST
4496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4498 do
4499   IFS=$as_save_IFS
4500   test -z "$as_dir" && as_dir=.
4501     for ac_prog in egrep; do
4502     for ac_exec_ext in '' $ac_executable_extensions; do
4503       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4504       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4505 # Check for GNU ac_path_EGREP and select it if it is found.
4506   # Check for GNU $ac_path_EGREP
4507 case `"$ac_path_EGREP" --version 2>&1` in
4508 *GNU*)
4509   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4510 *)
4511   ac_count=0
4512   $as_echo_n 0123456789 >"conftest.in"
4513   while :
4514   do
4515     cat "conftest.in" "conftest.in" >"conftest.tmp"
4516     mv "conftest.tmp" "conftest.in"
4517     cp "conftest.in" "conftest.nl"
4518     $as_echo 'EGREP' >> "conftest.nl"
4519     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521     as_fn_arith $ac_count + 1 && ac_count=$as_val
4522     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4523       # Best one so far, save it but keep looking for a better one
4524       ac_cv_path_EGREP="$ac_path_EGREP"
4525       ac_path_EGREP_max=$ac_count
4526     fi
4527     # 10*(2^10) chars as input seems more than enough
4528     test $ac_count -gt 10 && break
4529   done
4530   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4531 esac
4532
4533       $ac_path_EGREP_found && break 3
4534     done
4535   done
4536   done
4537 IFS=$as_save_IFS
4538   if test -z "$ac_cv_path_EGREP"; then
4539     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4540   fi
4541 else
4542   ac_cv_path_EGREP=$EGREP
4543 fi
4544
4545    fi
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4548 $as_echo "$ac_cv_path_EGREP" >&6; }
4549  EGREP="$ac_cv_path_EGREP"
4550
4551
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4553 $as_echo_n "checking for fgrep... " >&6; }
4554 if test "${ac_cv_path_FGREP+set}" = set; then :
4555   $as_echo_n "(cached) " >&6
4556 else
4557   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4558    then ac_cv_path_FGREP="$GREP -F"
4559    else
4560      if test -z "$FGREP"; then
4561   ac_path_FGREP_found=false
4562   # Loop through the user's path and test for each of PROGNAME-LIST
4563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568     for ac_prog in fgrep; do
4569     for ac_exec_ext in '' $ac_executable_extensions; do
4570       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4571       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4572 # Check for GNU ac_path_FGREP and select it if it is found.
4573   # Check for GNU $ac_path_FGREP
4574 case `"$ac_path_FGREP" --version 2>&1` in
4575 *GNU*)
4576   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4577 *)
4578   ac_count=0
4579   $as_echo_n 0123456789 >"conftest.in"
4580   while :
4581   do
4582     cat "conftest.in" "conftest.in" >"conftest.tmp"
4583     mv "conftest.tmp" "conftest.in"
4584     cp "conftest.in" "conftest.nl"
4585     $as_echo 'FGREP' >> "conftest.nl"
4586     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588     as_fn_arith $ac_count + 1 && ac_count=$as_val
4589     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4590       # Best one so far, save it but keep looking for a better one
4591       ac_cv_path_FGREP="$ac_path_FGREP"
4592       ac_path_FGREP_max=$ac_count
4593     fi
4594     # 10*(2^10) chars as input seems more than enough
4595     test $ac_count -gt 10 && break
4596   done
4597   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598 esac
4599
4600       $ac_path_FGREP_found && break 3
4601     done
4602   done
4603   done
4604 IFS=$as_save_IFS
4605   if test -z "$ac_cv_path_FGREP"; then
4606     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4607   fi
4608 else
4609   ac_cv_path_FGREP=$FGREP
4610 fi
4611
4612    fi
4613 fi
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4615 $as_echo "$ac_cv_path_FGREP" >&6; }
4616  FGREP="$ac_cv_path_FGREP"
4617
4618
4619 test -z "$GREP" && GREP=grep
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639 # Check whether --with-gnu-ld was given.
4640 if test "${with_gnu_ld+set}" = set; then :
4641   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4642 else
4643   with_gnu_ld=no
4644 fi
4645
4646 ac_prog=ld
4647 if test "$GCC" = yes; then
4648   # Check if gcc -print-prog-name=ld gives a path.
4649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4650 $as_echo_n "checking for ld used by $CC... " >&6; }
4651   case $host in
4652   *-*-mingw*)
4653     # gcc leaves a trailing carriage return which upsets mingw
4654     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4655   *)
4656     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4657   esac
4658   case $ac_prog in
4659     # Accept absolute paths.
4660     [\\/]* | ?:[\\/]*)
4661       re_direlt='/[^/][^/]*/\.\./'
4662       # Canonicalize the pathname of ld
4663       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4664       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4665         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4666       done
4667       test -z "$LD" && LD="$ac_prog"
4668       ;;
4669   "")
4670     # If it fails, then pretend we aren't using GCC.
4671     ac_prog=ld
4672     ;;
4673   *)
4674     # If it is relative, then search for the first ld in PATH.
4675     with_gnu_ld=unknown
4676     ;;
4677   esac
4678 elif test "$with_gnu_ld" = yes; then
4679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4680 $as_echo_n "checking for GNU ld... " >&6; }
4681 else
4682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4683 $as_echo_n "checking for non-GNU ld... " >&6; }
4684 fi
4685 if test "${lt_cv_path_LD+set}" = set; then :
4686   $as_echo_n "(cached) " >&6
4687 else
4688   if test -z "$LD"; then
4689   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4690   for ac_dir in $PATH; do
4691     IFS="$lt_save_ifs"
4692     test -z "$ac_dir" && ac_dir=.
4693     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4694       lt_cv_path_LD="$ac_dir/$ac_prog"
4695       # Check to see if the program is GNU ld.  I'd rather use --version,
4696       # but apparently some variants of GNU ld only accept -v.
4697       # Break only if it was the GNU/non-GNU ld that we prefer.
4698       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4699       *GNU* | *'with BFD'*)
4700         test "$with_gnu_ld" != no && break
4701         ;;
4702       *)
4703         test "$with_gnu_ld" != yes && break
4704         ;;
4705       esac
4706     fi
4707   done
4708   IFS="$lt_save_ifs"
4709 else
4710   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4711 fi
4712 fi
4713
4714 LD="$lt_cv_path_LD"
4715 if test -n "$LD"; then
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4717 $as_echo "$LD" >&6; }
4718 else
4719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4721 fi
4722 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4724 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4725 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4726   $as_echo_n "(cached) " >&6
4727 else
4728   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4729 case `$LD -v 2>&1 </dev/null` in
4730 *GNU* | *'with BFD'*)
4731   lt_cv_prog_gnu_ld=yes
4732   ;;
4733 *)
4734   lt_cv_prog_gnu_ld=no
4735   ;;
4736 esac
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4739 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4740 with_gnu_ld=$lt_cv_prog_gnu_ld
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4751 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4752 if test "${lt_cv_path_NM+set}" = set; then :
4753   $as_echo_n "(cached) " >&6
4754 else
4755   if test -n "$NM"; then
4756   # Let the user override the test.
4757   lt_cv_path_NM="$NM"
4758 else
4759   lt_nm_to_check="${ac_tool_prefix}nm"
4760   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4761     lt_nm_to_check="$lt_nm_to_check nm"
4762   fi
4763   for lt_tmp_nm in $lt_nm_to_check; do
4764     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4765     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4766       IFS="$lt_save_ifs"
4767       test -z "$ac_dir" && ac_dir=.
4768       tmp_nm="$ac_dir/$lt_tmp_nm"
4769       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4770         # Check to see if the nm accepts a BSD-compat flag.
4771         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4772         #   nm: unknown option "B" ignored
4773         # Tru64's nm complains that /dev/null is an invalid object file
4774         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4775         */dev/null* | *'Invalid file or object type'*)
4776           lt_cv_path_NM="$tmp_nm -B"
4777           break
4778           ;;
4779         *)
4780           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4781           */dev/null*)
4782             lt_cv_path_NM="$tmp_nm -p"
4783             break
4784             ;;
4785           *)
4786             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4787             continue # so that we can try to find one that supports BSD flags
4788             ;;
4789           esac
4790           ;;
4791         esac
4792       fi
4793     done
4794     IFS="$lt_save_ifs"
4795   done
4796   : ${lt_cv_path_NM=no}
4797 fi
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4800 $as_echo "$lt_cv_path_NM" >&6; }
4801 if test "$lt_cv_path_NM" != "no"; then
4802   NM="$lt_cv_path_NM"
4803 else
4804   # Didn't find any BSD compatible name lister, look for dumpbin.
4805   if test -n "$ac_tool_prefix"; then
4806   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4807   do
4808     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4813   $as_echo_n "(cached) " >&6
4814 else
4815   if test -n "$DUMPBIN"; then
4816   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821   IFS=$as_save_IFS
4822   test -z "$as_dir" && as_dir=.
4823     for ac_exec_ext in '' $ac_executable_extensions; do
4824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827     break 2
4828   fi
4829 done
4830   done
4831 IFS=$as_save_IFS
4832
4833 fi
4834 fi
4835 DUMPBIN=$ac_cv_prog_DUMPBIN
4836 if test -n "$DUMPBIN"; then
4837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4838 $as_echo "$DUMPBIN" >&6; }
4839 else
4840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4842 fi
4843
4844
4845     test -n "$DUMPBIN" && break
4846   done
4847 fi
4848 if test -z "$DUMPBIN"; then
4849   ac_ct_DUMPBIN=$DUMPBIN
4850   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4851 do
4852   # Extract the first word of "$ac_prog", so it can be a program name with args.
4853 set dummy $ac_prog; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4857   $as_echo_n "(cached) " >&6
4858 else
4859   if test -n "$ac_ct_DUMPBIN"; then
4860   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865   IFS=$as_save_IFS
4866   test -z "$as_dir" && as_dir=.
4867     for ac_exec_ext in '' $ac_executable_extensions; do
4868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871     break 2
4872   fi
4873 done
4874   done
4875 IFS=$as_save_IFS
4876
4877 fi
4878 fi
4879 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4880 if test -n "$ac_ct_DUMPBIN"; then
4881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4882 $as_echo "$ac_ct_DUMPBIN" >&6; }
4883 else
4884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4886 fi
4887
4888
4889   test -n "$ac_ct_DUMPBIN" && break
4890 done
4891
4892   if test "x$ac_ct_DUMPBIN" = x; then
4893     DUMPBIN=":"
4894   else
4895     case $cross_compiling:$ac_tool_warned in
4896 yes:)
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899 ac_tool_warned=yes ;;
4900 esac
4901     DUMPBIN=$ac_ct_DUMPBIN
4902   fi
4903 fi
4904
4905
4906   if test "$DUMPBIN" != ":"; then
4907     NM="$DUMPBIN"
4908   fi
4909 fi
4910 test -z "$NM" && NM=nm
4911
4912
4913
4914
4915
4916
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4918 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4919 if test "${lt_cv_nm_interface+set}" = set; then :
4920   $as_echo_n "(cached) " >&6
4921 else
4922   lt_cv_nm_interface="BSD nm"
4923   echo "int some_variable = 0;" > conftest.$ac_ext
4924   (eval echo "\"\$as_me:4924: $ac_compile\"" >&5)
4925   (eval "$ac_compile" 2>conftest.err)
4926   cat conftest.err >&5
4927   (eval echo "\"\$as_me:4927: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4928   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4929   cat conftest.err >&5
4930   (eval echo "\"\$as_me:4930: output\"" >&5)
4931   cat conftest.out >&5
4932   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4933     lt_cv_nm_interface="MS dumpbin"
4934   fi
4935   rm -f conftest*
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4938 $as_echo "$lt_cv_nm_interface" >&6; }
4939
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4941 $as_echo_n "checking whether ln -s works... " >&6; }
4942 LN_S=$as_ln_s
4943 if test "$LN_S" = "ln -s"; then
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4945 $as_echo "yes" >&6; }
4946 else
4947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4948 $as_echo "no, using $LN_S" >&6; }
4949 fi
4950
4951 # find the maximum length of command line arguments
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4953 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4954 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4955   $as_echo_n "(cached) " >&6
4956 else
4957     i=0
4958   teststring="ABCD"
4959
4960   case $build_os in
4961   msdosdjgpp*)
4962     # On DJGPP, this test can blow up pretty badly due to problems in libc
4963     # (any single argument exceeding 2000 bytes causes a buffer overrun
4964     # during glob expansion).  Even if it were fixed, the result of this
4965     # check would be larger than it should be.
4966     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4967     ;;
4968
4969   gnu*)
4970     # Under GNU Hurd, this test is not required because there is
4971     # no limit to the length of command line arguments.
4972     # Libtool will interpret -1 as no limit whatsoever
4973     lt_cv_sys_max_cmd_len=-1;
4974     ;;
4975
4976   cygwin* | mingw* | cegcc*)
4977     # On Win9x/ME, this test blows up -- it succeeds, but takes
4978     # about 5 minutes as the teststring grows exponentially.
4979     # Worse, since 9x/ME are not pre-emptively multitasking,
4980     # you end up with a "frozen" computer, even though with patience
4981     # the test eventually succeeds (with a max line length of 256k).
4982     # Instead, let's just punt: use the minimum linelength reported by
4983     # all of the supported platforms: 8192 (on NT/2K/XP).
4984     lt_cv_sys_max_cmd_len=8192;
4985     ;;
4986
4987   amigaos*)
4988     # On AmigaOS with pdksh, this test takes hours, literally.
4989     # So we just punt and use a minimum line length of 8192.
4990     lt_cv_sys_max_cmd_len=8192;
4991     ;;
4992
4993   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4994     # This has been around since 386BSD, at least.  Likely further.
4995     if test -x /sbin/sysctl; then
4996       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4997     elif test -x /usr/sbin/sysctl; then
4998       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4999     else
5000       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5001     fi
5002     # And add a safety zone
5003     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5004     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5005     ;;
5006
5007   interix*)
5008     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5009     lt_cv_sys_max_cmd_len=196608
5010     ;;
5011
5012   osf*)
5013     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5014     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5015     # nice to cause kernel panics so lets avoid the loop below.
5016     # First set a reasonable default.
5017     lt_cv_sys_max_cmd_len=16384
5018     #
5019     if test -x /sbin/sysconfig; then
5020       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5021         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5022       esac
5023     fi
5024     ;;
5025   sco3.2v5*)
5026     lt_cv_sys_max_cmd_len=102400
5027     ;;
5028   sysv5* | sco5v6* | sysv4.2uw2*)
5029     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5030     if test -n "$kargmax"; then
5031       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5032     else
5033       lt_cv_sys_max_cmd_len=32768
5034     fi
5035     ;;
5036   *)
5037     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5038     if test -n "$lt_cv_sys_max_cmd_len"; then
5039       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5040       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5041     else
5042       # Make teststring a little bigger before we do anything with it.
5043       # a 1K string should be a reasonable start.
5044       for i in 1 2 3 4 5 6 7 8 ; do
5045         teststring=$teststring$teststring
5046       done
5047       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5048       # If test is not a shell built-in, we'll probably end up computing a
5049       # maximum length that is only half of the actual maximum length, but
5050       # we can't tell.
5051       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5052                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5053               test $i != 17 # 1/2 MB should be enough
5054       do
5055         i=`expr $i + 1`
5056         teststring=$teststring$teststring
5057       done
5058       # Only check the string length outside the loop.
5059       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5060       teststring=
5061       # Add a significant safety factor because C++ compilers can tack on
5062       # massive amounts of additional arguments before passing them to the
5063       # linker.  It appears as though 1/2 is a usable value.
5064       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5065     fi
5066     ;;
5067   esac
5068
5069 fi
5070
5071 if test -n $lt_cv_sys_max_cmd_len ; then
5072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5073 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5074 else
5075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5076 $as_echo "none" >&6; }
5077 fi
5078 max_cmd_len=$lt_cv_sys_max_cmd_len
5079
5080
5081
5082
5083
5084
5085 : ${CP="cp -f"}
5086 : ${MV="mv -f"}
5087 : ${RM="rm -f"}
5088
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5090 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5091 # Try some XSI features
5092 xsi_shell=no
5093 ( _lt_dummy="a/b/c"
5094   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5095       = c,a/b,, \
5096     && eval 'test $(( 1 + 1 )) -eq 2 \
5097     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5098   && xsi_shell=yes
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5100 $as_echo "$xsi_shell" >&6; }
5101
5102
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5104 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5105 lt_shell_append=no
5106 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5107     >/dev/null 2>&1 \
5108   && lt_shell_append=yes
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5110 $as_echo "$lt_shell_append" >&6; }
5111
5112
5113 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5114   lt_unset=unset
5115 else
5116   lt_unset=false
5117 fi
5118
5119
5120
5121
5122
5123 # test EBCDIC or ASCII
5124 case `echo X|tr X '\101'` in
5125  A) # ASCII based system
5126     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5127   lt_SP2NL='tr \040 \012'
5128   lt_NL2SP='tr \015\012 \040\040'
5129   ;;
5130  *) # EBCDIC based system
5131   lt_SP2NL='tr \100 \n'
5132   lt_NL2SP='tr \r\n \100\100'
5133   ;;
5134 esac
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5145 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5146 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5147   $as_echo_n "(cached) " >&6
5148 else
5149   lt_cv_ld_reload_flag='-r'
5150 fi
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5152 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5153 reload_flag=$lt_cv_ld_reload_flag
5154 case $reload_flag in
5155 "" | " "*) ;;
5156 *) reload_flag=" $reload_flag" ;;
5157 esac
5158 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5159 case $host_os in
5160   darwin*)
5161     if test "$GCC" = yes; then
5162       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5163     else
5164       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5165     fi
5166     ;;
5167 esac
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177 if test -n "$ac_tool_prefix"; then
5178   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5179 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5183   $as_echo_n "(cached) " >&6
5184 else
5185   if test -n "$OBJDUMP"; then
5186   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193     for ac_exec_ext in '' $ac_executable_extensions; do
5194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200   done
5201 IFS=$as_save_IFS
5202
5203 fi
5204 fi
5205 OBJDUMP=$ac_cv_prog_OBJDUMP
5206 if test -n "$OBJDUMP"; then
5207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5208 $as_echo "$OBJDUMP" >&6; }
5209 else
5210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5212 fi
5213
5214
5215 fi
5216 if test -z "$ac_cv_prog_OBJDUMP"; then
5217   ac_ct_OBJDUMP=$OBJDUMP
5218   # Extract the first word of "objdump", so it can be a program name with args.
5219 set dummy objdump; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   if test -n "$ac_ct_OBJDUMP"; then
5226   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233     for ac_exec_ext in '' $ac_executable_extensions; do
5234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240   done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5246 if test -n "$ac_ct_OBJDUMP"; then
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5248 $as_echo "$ac_ct_OBJDUMP" >&6; }
5249 else
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253
5254   if test "x$ac_ct_OBJDUMP" = x; then
5255     OBJDUMP="false"
5256   else
5257     case $cross_compiling:$ac_tool_warned in
5258 yes:)
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5261 ac_tool_warned=yes ;;
5262 esac
5263     OBJDUMP=$ac_ct_OBJDUMP
5264   fi
5265 else
5266   OBJDUMP="$ac_cv_prog_OBJDUMP"
5267 fi
5268
5269 test -z "$OBJDUMP" && OBJDUMP=objdump
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5280 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5281 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   lt_cv_file_magic_cmd='$MAGIC_CMD'
5285 lt_cv_file_magic_test_file=
5286 lt_cv_deplibs_check_method='unknown'
5287 # Need to set the preceding variable on all platforms that support
5288 # interlibrary dependencies.
5289 # 'none' -- dependencies not supported.
5290 # `unknown' -- same as none, but documents that we really don't know.
5291 # 'pass_all' -- all dependencies passed with no checks.
5292 # 'test_compile' -- check by making test program.
5293 # 'file_magic [[regex]]' -- check by looking for files in library path
5294 # which responds to the $file_magic_cmd with a given extended regex.
5295 # If you have `file' or equivalent on your system and you're not sure
5296 # whether `pass_all' will *always* work, you probably want this one.
5297
5298 case $host_os in
5299 aix[4-9]*)
5300   lt_cv_deplibs_check_method=pass_all
5301   ;;
5302
5303 beos*)
5304   lt_cv_deplibs_check_method=pass_all
5305   ;;
5306
5307 bsdi[45]*)
5308   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5309   lt_cv_file_magic_cmd='/usr/bin/file -L'
5310   lt_cv_file_magic_test_file=/shlib/libc.so
5311   ;;
5312
5313 cygwin*)
5314   # func_win32_libid is a shell function defined in ltmain.sh
5315   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5316   lt_cv_file_magic_cmd='func_win32_libid'
5317   ;;
5318
5319 mingw* | pw32*)
5320   # Base MSYS/MinGW do not provide the 'file' command needed by
5321   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5322   # unless we find 'file', for example because we are cross-compiling.
5323   if ( file / ) >/dev/null 2>&1; then
5324     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5325     lt_cv_file_magic_cmd='func_win32_libid'
5326   else
5327     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5328     lt_cv_file_magic_cmd='$OBJDUMP -f'
5329   fi
5330   ;;
5331
5332 cegcc)
5333   # use the weaker test based on 'objdump'. See mingw*.
5334   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5335   lt_cv_file_magic_cmd='$OBJDUMP -f'
5336   ;;
5337
5338 darwin* | rhapsody*)
5339   lt_cv_deplibs_check_method=pass_all
5340   ;;
5341
5342 freebsd* | dragonfly*)
5343   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5344     case $host_cpu in
5345     i*86 )
5346       # Not sure whether the presence of OpenBSD here was a mistake.
5347       # Let's accept both of them until this is cleared up.
5348       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5349       lt_cv_file_magic_cmd=/usr/bin/file
5350       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5351       ;;
5352     esac
5353   else
5354     lt_cv_deplibs_check_method=pass_all
5355   fi
5356   ;;
5357
5358 gnu*)
5359   lt_cv_deplibs_check_method=pass_all
5360   ;;
5361
5362 hpux10.20* | hpux11*)
5363   lt_cv_file_magic_cmd=/usr/bin/file
5364   case $host_cpu in
5365   ia64*)
5366     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5367     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5368     ;;
5369   hppa*64*)
5370     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]'
5371     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5372     ;;
5373   *)
5374     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5375     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5376     ;;
5377   esac
5378   ;;
5379
5380 interix[3-9]*)
5381   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5382   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5383   ;;
5384
5385 irix5* | irix6* | nonstopux*)
5386   case $LD in
5387   *-32|*"-32 ") libmagic=32-bit;;
5388   *-n32|*"-n32 ") libmagic=N32;;
5389   *-64|*"-64 ") libmagic=64-bit;;
5390   *) libmagic=never-match;;
5391   esac
5392   lt_cv_deplibs_check_method=pass_all
5393   ;;
5394
5395 # This must be Linux ELF.
5396 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5397   lt_cv_deplibs_check_method=pass_all
5398   ;;
5399
5400 netbsd* | netbsdelf*-gnu)
5401   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5402     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5403   else
5404     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5405   fi
5406   ;;
5407
5408 newos6*)
5409   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5410   lt_cv_file_magic_cmd=/usr/bin/file
5411   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5412   ;;
5413
5414 *nto* | *qnx*)
5415   lt_cv_deplibs_check_method=pass_all
5416   ;;
5417
5418 openbsd*)
5419   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5420     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5421   else
5422     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5423   fi
5424   ;;
5425
5426 osf3* | osf4* | osf5*)
5427   lt_cv_deplibs_check_method=pass_all
5428   ;;
5429
5430 rdos*)
5431   lt_cv_deplibs_check_method=pass_all
5432   ;;
5433
5434 solaris*)
5435   lt_cv_deplibs_check_method=pass_all
5436   ;;
5437
5438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5439   lt_cv_deplibs_check_method=pass_all
5440   ;;
5441
5442 sysv4 | sysv4.3*)
5443   case $host_vendor in
5444   motorola)
5445     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]'
5446     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5447     ;;
5448   ncr)
5449     lt_cv_deplibs_check_method=pass_all
5450     ;;
5451   sequent)
5452     lt_cv_file_magic_cmd='/bin/file'
5453     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5454     ;;
5455   sni)
5456     lt_cv_file_magic_cmd='/bin/file'
5457     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5458     lt_cv_file_magic_test_file=/lib/libc.so
5459     ;;
5460   siemens)
5461     lt_cv_deplibs_check_method=pass_all
5462     ;;
5463   pc)
5464     lt_cv_deplibs_check_method=pass_all
5465     ;;
5466   esac
5467   ;;
5468
5469 tpf*)
5470   lt_cv_deplibs_check_method=pass_all
5471   ;;
5472 esac
5473
5474 fi
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5476 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5477 file_magic_cmd=$lt_cv_file_magic_cmd
5478 deplibs_check_method=$lt_cv_deplibs_check_method
5479 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492 if test -n "$ac_tool_prefix"; then
5493   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5494 set dummy ${ac_tool_prefix}ar; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if test "${ac_cv_prog_AR+set}" = set; then :
5498   $as_echo_n "(cached) " >&6
5499 else
5500   if test -n "$AR"; then
5501   ac_cv_prog_AR="$AR" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506   IFS=$as_save_IFS
5507   test -z "$as_dir" && as_dir=.
5508     for ac_exec_ext in '' $ac_executable_extensions; do
5509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510     ac_cv_prog_AR="${ac_tool_prefix}ar"
5511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512     break 2
5513   fi
5514 done
5515   done
5516 IFS=$as_save_IFS
5517
5518 fi
5519 fi
5520 AR=$ac_cv_prog_AR
5521 if test -n "$AR"; then
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5523 $as_echo "$AR" >&6; }
5524 else
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528
5529
5530 fi
5531 if test -z "$ac_cv_prog_AR"; then
5532   ac_ct_AR=$AR
5533   # Extract the first word of "ar", so it can be a program name with args.
5534 set dummy ar; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5538   $as_echo_n "(cached) " >&6
5539 else
5540   if test -n "$ac_ct_AR"; then
5541   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546   IFS=$as_save_IFS
5547   test -z "$as_dir" && as_dir=.
5548     for ac_exec_ext in '' $ac_executable_extensions; do
5549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550     ac_cv_prog_ac_ct_AR="ar"
5551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552     break 2
5553   fi
5554 done
5555   done
5556 IFS=$as_save_IFS
5557
5558 fi
5559 fi
5560 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5561 if test -n "$ac_ct_AR"; then
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5563 $as_echo "$ac_ct_AR" >&6; }
5564 else
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5568
5569   if test "x$ac_ct_AR" = x; then
5570     AR="false"
5571   else
5572     case $cross_compiling:$ac_tool_warned in
5573 yes:)
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5576 ac_tool_warned=yes ;;
5577 esac
5578     AR=$ac_ct_AR
5579   fi
5580 else
5581   AR="$ac_cv_prog_AR"
5582 fi
5583
5584 test -z "$AR" && AR=ar
5585 test -z "$AR_FLAGS" && AR_FLAGS=cru
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597 if test -n "$ac_tool_prefix"; then
5598   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}strip; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if test "${ac_cv_prog_STRIP+set}" = set; then :
5603   $as_echo_n "(cached) " >&6
5604 else
5605   if test -n "$STRIP"; then
5606   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611   IFS=$as_save_IFS
5612   test -z "$as_dir" && as_dir=.
5613     for ac_exec_ext in '' $ac_executable_extensions; do
5614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617     break 2
5618   fi
5619 done
5620   done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 STRIP=$ac_cv_prog_STRIP
5626 if test -n "$STRIP"; then
5627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5628 $as_echo "$STRIP" >&6; }
5629 else
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634
5635 fi
5636 if test -z "$ac_cv_prog_STRIP"; then
5637   ac_ct_STRIP=$STRIP
5638   # Extract the first word of "strip", so it can be a program name with args.
5639 set dummy strip; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   if test -n "$ac_ct_STRIP"; then
5646   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651   IFS=$as_save_IFS
5652   test -z "$as_dir" && as_dir=.
5653     for ac_exec_ext in '' $ac_executable_extensions; do
5654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655     ac_cv_prog_ac_ct_STRIP="strip"
5656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657     break 2
5658   fi
5659 done
5660   done
5661 IFS=$as_save_IFS
5662
5663 fi
5664 fi
5665 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5666 if test -n "$ac_ct_STRIP"; then
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5668 $as_echo "$ac_ct_STRIP" >&6; }
5669 else
5670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672 fi
5673
5674   if test "x$ac_ct_STRIP" = x; then
5675     STRIP=":"
5676   else
5677     case $cross_compiling:$ac_tool_warned in
5678 yes:)
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned=yes ;;
5682 esac
5683     STRIP=$ac_ct_STRIP
5684   fi
5685 else
5686   STRIP="$ac_cv_prog_STRIP"
5687 fi
5688
5689 test -z "$STRIP" && STRIP=:
5690
5691
5692
5693
5694
5695
5696 if test -n "$ac_tool_prefix"; then
5697   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5698 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5702   $as_echo_n "(cached) " >&6
5703 else
5704   if test -n "$RANLIB"; then
5705   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5709 do
5710   IFS=$as_save_IFS
5711   test -z "$as_dir" && as_dir=.
5712     for ac_exec_ext in '' $ac_executable_extensions; do
5713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5714     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716     break 2
5717   fi
5718 done
5719   done
5720 IFS=$as_save_IFS
5721
5722 fi
5723 fi
5724 RANLIB=$ac_cv_prog_RANLIB
5725 if test -n "$RANLIB"; then
5726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5727 $as_echo "$RANLIB" >&6; }
5728 else
5729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5731 fi
5732
5733
5734 fi
5735 if test -z "$ac_cv_prog_RANLIB"; then
5736   ac_ct_RANLIB=$RANLIB
5737   # Extract the first word of "ranlib", so it can be a program name with args.
5738 set dummy ranlib; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5742   $as_echo_n "(cached) " >&6
5743 else
5744   if test -n "$ac_ct_RANLIB"; then
5745   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5746 else
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750   IFS=$as_save_IFS
5751   test -z "$as_dir" && as_dir=.
5752     for ac_exec_ext in '' $ac_executable_extensions; do
5753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5754     ac_cv_prog_ac_ct_RANLIB="ranlib"
5755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756     break 2
5757   fi
5758 done
5759   done
5760 IFS=$as_save_IFS
5761
5762 fi
5763 fi
5764 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5765 if test -n "$ac_ct_RANLIB"; then
5766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5767 $as_echo "$ac_ct_RANLIB" >&6; }
5768 else
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5771 fi
5772
5773   if test "x$ac_ct_RANLIB" = x; then
5774     RANLIB=":"
5775   else
5776     case $cross_compiling:$ac_tool_warned in
5777 yes:)
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5780 ac_tool_warned=yes ;;
5781 esac
5782     RANLIB=$ac_ct_RANLIB
5783   fi
5784 else
5785   RANLIB="$ac_cv_prog_RANLIB"
5786 fi
5787
5788 test -z "$RANLIB" && RANLIB=:
5789
5790
5791
5792
5793
5794
5795 # Determine commands to create old-style static archives.
5796 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5797 old_postinstall_cmds='chmod 644 $oldlib'
5798 old_postuninstall_cmds=
5799
5800 if test -n "$RANLIB"; then
5801   case $host_os in
5802   openbsd*)
5803     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5804     ;;
5805   *)
5806     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5807     ;;
5808   esac
5809   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5810 fi
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845 # If no C compiler was specified, use CC.
5846 LTCC=${LTCC-"$CC"}
5847
5848 # If no C compiler flags were specified, use CFLAGS.
5849 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5850
5851 # Allow CC to be a program name with arguments.
5852 compiler=$CC
5853
5854
5855 # Check for command to grab the raw symbol name followed by C symbol from nm.
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5857 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5858 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5859   $as_echo_n "(cached) " >&6
5860 else
5861
5862 # These are sane defaults that work on at least a few old systems.
5863 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5864
5865 # Character class describing NM global symbol codes.
5866 symcode='[BCDEGRST]'
5867
5868 # Regexp to match symbols that can be accessed directly from C.
5869 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5870
5871 # Define system-specific variables.
5872 case $host_os in
5873 aix*)
5874   symcode='[BCDT]'
5875   ;;
5876 cygwin* | mingw* | pw32* | cegcc*)
5877   symcode='[ABCDGISTW]'
5878   ;;
5879 hpux*)
5880   if test "$host_cpu" = ia64; then
5881     symcode='[ABCDEGRST]'
5882   fi
5883   ;;
5884 irix* | nonstopux*)
5885   symcode='[BCDEGRST]'
5886   ;;
5887 osf*)
5888   symcode='[BCDEGQRST]'
5889   ;;
5890 solaris*)
5891   symcode='[BDRT]'
5892   ;;
5893 sco3.2v5*)
5894   symcode='[DT]'
5895   ;;
5896 sysv4.2uw2*)
5897   symcode='[DT]'
5898   ;;
5899 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5900   symcode='[ABDT]'
5901   ;;
5902 sysv4)
5903   symcode='[DFNSTU]'
5904   ;;
5905 esac
5906
5907 # If we're using GNU nm, then use its standard symbol codes.
5908 case `$NM -V 2>&1` in
5909 *GNU* | *'with BFD'*)
5910   symcode='[ABCDGIRSTW]' ;;
5911 esac
5912
5913 # Transform an extracted symbol line into a proper C declaration.
5914 # Some systems (esp. on ia64) link data and code symbols differently,
5915 # so use this general approach.
5916 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5917
5918 # Transform an extracted symbol line into symbol name and symbol address
5919 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5920 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'"
5921
5922 # Handle CRLF in mingw tool chain
5923 opt_cr=
5924 case $build_os in
5925 mingw*)
5926   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5927   ;;
5928 esac
5929
5930 # Try without a prefix underscore, then with it.
5931 for ac_symprfx in "" "_"; do
5932
5933   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5934   symxfrm="\\1 $ac_symprfx\\2 \\2"
5935
5936   # Write the raw and C identifiers.
5937   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5938     # Fake it for dumpbin and say T for any non-static function
5939     # and D for any global variable.
5940     # Also find C++ and __fastcall symbols from MSVC++,
5941     # which start with @ or ?.
5942     lt_cv_sys_global_symbol_pipe="$AWK '"\
5943 "     {last_section=section; section=\$ 3};"\
5944 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5945 "     \$ 0!~/External *\|/{next};"\
5946 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5947 "     {if(hide[section]) next};"\
5948 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5949 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5950 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5951 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5952 "     ' prfx=^$ac_symprfx"
5953   else
5954     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5955   fi
5956
5957   # Check to see that the pipe works correctly.
5958   pipe_works=no
5959
5960   rm -f conftest*
5961   cat > conftest.$ac_ext <<_LT_EOF
5962 #ifdef __cplusplus
5963 extern "C" {
5964 #endif
5965 char nm_test_var;
5966 void nm_test_func(void);
5967 void nm_test_func(void){}
5968 #ifdef __cplusplus
5969 }
5970 #endif
5971 int main(){nm_test_var='a';nm_test_func();return(0);}
5972 _LT_EOF
5973
5974   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5975   (eval $ac_compile) 2>&5
5976   ac_status=$?
5977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5978   test $ac_status = 0; }; then
5979     # Now try to grab the symbols.
5980     nlist=conftest.nm
5981     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5982   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5983   ac_status=$?
5984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5985   test $ac_status = 0; } && test -s "$nlist"; then
5986       # Try sorting and uniquifying the output.
5987       if sort "$nlist" | uniq > "$nlist"T; then
5988         mv -f "$nlist"T "$nlist"
5989       else
5990         rm -f "$nlist"T
5991       fi
5992
5993       # Make sure that we snagged all the symbols we need.
5994       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5995         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5996           cat <<_LT_EOF > conftest.$ac_ext
5997 #ifdef __cplusplus
5998 extern "C" {
5999 #endif
6000
6001 _LT_EOF
6002           # Now generate the symbol file.
6003           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6004
6005           cat <<_LT_EOF >> conftest.$ac_ext
6006
6007 /* The mapping between symbol names and symbols.  */
6008 const struct {
6009   const char *name;
6010   void       *address;
6011 }
6012 lt__PROGRAM__LTX_preloaded_symbols[] =
6013 {
6014   { "@PROGRAM@", (void *) 0 },
6015 _LT_EOF
6016           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6017           cat <<\_LT_EOF >> conftest.$ac_ext
6018   {0, (void *) 0}
6019 };
6020
6021 /* This works around a problem in FreeBSD linker */
6022 #ifdef FREEBSD_WORKAROUND
6023 static const void *lt_preloaded_setup() {
6024   return lt__PROGRAM__LTX_preloaded_symbols;
6025 }
6026 #endif
6027
6028 #ifdef __cplusplus
6029 }
6030 #endif
6031 _LT_EOF
6032           # Now try linking the two files.
6033           mv conftest.$ac_objext conftstm.$ac_objext
6034           lt_save_LIBS="$LIBS"
6035           lt_save_CFLAGS="$CFLAGS"
6036           LIBS="conftstm.$ac_objext"
6037           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6038           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6039   (eval $ac_link) 2>&5
6040   ac_status=$?
6041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6042   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6043             pipe_works=yes
6044           fi
6045           LIBS="$lt_save_LIBS"
6046           CFLAGS="$lt_save_CFLAGS"
6047         else
6048           echo "cannot find nm_test_func in $nlist" >&5
6049         fi
6050       else
6051         echo "cannot find nm_test_var in $nlist" >&5
6052       fi
6053     else
6054       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6055     fi
6056   else
6057     echo "$progname: failed program was:" >&5
6058     cat conftest.$ac_ext >&5
6059   fi
6060   rm -rf conftest* conftst*
6061
6062   # Do not use the global_symbol_pipe unless it works.
6063   if test "$pipe_works" = yes; then
6064     break
6065   else
6066     lt_cv_sys_global_symbol_pipe=
6067   fi
6068 done
6069
6070 fi
6071
6072 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6073   lt_cv_sys_global_symbol_to_cdecl=
6074 fi
6075 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6077 $as_echo "failed" >&6; }
6078 else
6079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6080 $as_echo "ok" >&6; }
6081 fi
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105 # Check whether --enable-libtool-lock was given.
6106 if test "${enable_libtool_lock+set}" = set; then :
6107   enableval=$enable_libtool_lock;
6108 fi
6109
6110 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6111
6112 # Some flags need to be propagated to the compiler or linker for good
6113 # libtool support.
6114 case $host in
6115 ia64-*-hpux*)
6116   # Find out which ABI we are using.
6117   echo 'int i;' > conftest.$ac_ext
6118   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6119   (eval $ac_compile) 2>&5
6120   ac_status=$?
6121   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6122   test $ac_status = 0; }; then
6123     case `/usr/bin/file conftest.$ac_objext` in
6124       *ELF-32*)
6125         HPUX_IA64_MODE="32"
6126         ;;
6127       *ELF-64*)
6128         HPUX_IA64_MODE="64"
6129         ;;
6130     esac
6131   fi
6132   rm -rf conftest*
6133   ;;
6134 *-*-irix6*)
6135   # Find out which ABI we are using.
6136   echo '#line 6136 "configure"' > conftest.$ac_ext
6137   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6138   (eval $ac_compile) 2>&5
6139   ac_status=$?
6140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6141   test $ac_status = 0; }; then
6142     if test "$lt_cv_prog_gnu_ld" = yes; then
6143       case `/usr/bin/file conftest.$ac_objext` in
6144         *32-bit*)
6145           LD="${LD-ld} -melf32bsmip"
6146           ;;
6147         *N32*)
6148           LD="${LD-ld} -melf32bmipn32"
6149           ;;
6150         *64-bit*)
6151           LD="${LD-ld} -melf64bmip"
6152         ;;
6153       esac
6154     else
6155       case `/usr/bin/file conftest.$ac_objext` in
6156         *32-bit*)
6157           LD="${LD-ld} -32"
6158           ;;
6159         *N32*)
6160           LD="${LD-ld} -n32"
6161           ;;
6162         *64-bit*)
6163           LD="${LD-ld} -64"
6164           ;;
6165       esac
6166     fi
6167   fi
6168   rm -rf conftest*
6169   ;;
6170
6171 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6172 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6173   # Find out which ABI we are using.
6174   echo 'int i;' > conftest.$ac_ext
6175   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6176   (eval $ac_compile) 2>&5
6177   ac_status=$?
6178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179   test $ac_status = 0; }; then
6180     case `/usr/bin/file conftest.o` in
6181       *32-bit*)
6182         case $host in
6183           x86_64-*kfreebsd*-gnu)
6184             LD="${LD-ld} -m elf_i386_fbsd"
6185             ;;
6186           x86_64-*linux*)
6187             LD="${LD-ld} -m elf_i386"
6188             ;;
6189           ppc64-*linux*|powerpc64-*linux*)
6190             LD="${LD-ld} -m elf32ppclinux"
6191             ;;
6192           s390x-*linux*)
6193             LD="${LD-ld} -m elf_s390"
6194             ;;
6195           sparc64-*linux*)
6196             LD="${LD-ld} -m elf32_sparc"
6197             ;;
6198         esac
6199         ;;
6200       *64-bit*)
6201         case $host in
6202           x86_64-*kfreebsd*-gnu)
6203             LD="${LD-ld} -m elf_x86_64_fbsd"
6204             ;;
6205           x86_64-*linux*)
6206             LD="${LD-ld} -m elf_x86_64"
6207             ;;
6208           ppc*-*linux*|powerpc*-*linux*)
6209             LD="${LD-ld} -m elf64ppc"
6210             ;;
6211           s390*-*linux*|s390*-*tpf*)
6212             LD="${LD-ld} -m elf64_s390"
6213             ;;
6214           sparc*-*linux*)
6215             LD="${LD-ld} -m elf64_sparc"
6216             ;;
6217         esac
6218         ;;
6219     esac
6220   fi
6221   rm -rf conftest*
6222   ;;
6223
6224 *-*-sco3.2v5*)
6225   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6226   SAVE_CFLAGS="$CFLAGS"
6227   CFLAGS="$CFLAGS -belf"
6228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6229 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6230 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6231   $as_echo_n "(cached) " >&6
6232 else
6233   ac_ext=c
6234 ac_cpp='$CPP $CPPFLAGS'
6235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6238
6239      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h.  */
6241
6242 int
6243 main ()
6244 {
6245
6246   ;
6247   return 0;
6248 }
6249 _ACEOF
6250 if ac_fn_c_try_link "$LINENO"; then :
6251   lt_cv_cc_needs_belf=yes
6252 else
6253   lt_cv_cc_needs_belf=no
6254 fi
6255 rm -f core conftest.err conftest.$ac_objext \
6256     conftest$ac_exeext conftest.$ac_ext
6257      ac_ext=c
6258 ac_cpp='$CPP $CPPFLAGS'
6259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6262
6263 fi
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6265 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6266   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6267     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6268     CFLAGS="$SAVE_CFLAGS"
6269   fi
6270   ;;
6271 sparc*-*solaris*)
6272   # Find out which ABI we are using.
6273   echo 'int i;' > conftest.$ac_ext
6274   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6275   (eval $ac_compile) 2>&5
6276   ac_status=$?
6277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278   test $ac_status = 0; }; then
6279     case `/usr/bin/file conftest.o` in
6280     *64-bit*)
6281       case $lt_cv_prog_gnu_ld in
6282       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6283       *)
6284         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6285           LD="${LD-ld} -64"
6286         fi
6287         ;;
6288       esac
6289       ;;
6290     esac
6291   fi
6292   rm -rf conftest*
6293   ;;
6294 esac
6295
6296 need_locks="$enable_libtool_lock"
6297
6298
6299   case $host_os in
6300     rhapsody* | darwin*)
6301     if test -n "$ac_tool_prefix"; then
6302   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6303 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6307   $as_echo_n "(cached) " >&6
6308 else
6309   if test -n "$DSYMUTIL"; then
6310   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315   IFS=$as_save_IFS
6316   test -z "$as_dir" && as_dir=.
6317     for ac_exec_ext in '' $ac_executable_extensions; do
6318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321     break 2
6322   fi
6323 done
6324   done
6325 IFS=$as_save_IFS
6326
6327 fi
6328 fi
6329 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6330 if test -n "$DSYMUTIL"; then
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6332 $as_echo "$DSYMUTIL" >&6; }
6333 else
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6336 fi
6337
6338
6339 fi
6340 if test -z "$ac_cv_prog_DSYMUTIL"; then
6341   ac_ct_DSYMUTIL=$DSYMUTIL
6342   # Extract the first word of "dsymutil", so it can be a program name with args.
6343 set dummy dsymutil; ac_word=$2
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6347   $as_echo_n "(cached) " >&6
6348 else
6349   if test -n "$ac_ct_DSYMUTIL"; then
6350   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355   IFS=$as_save_IFS
6356   test -z "$as_dir" && as_dir=.
6357     for ac_exec_ext in '' $ac_executable_extensions; do
6358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6359     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361     break 2
6362   fi
6363 done
6364   done
6365 IFS=$as_save_IFS
6366
6367 fi
6368 fi
6369 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6370 if test -n "$ac_ct_DSYMUTIL"; then
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6372 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6373 else
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377
6378   if test "x$ac_ct_DSYMUTIL" = x; then
6379     DSYMUTIL=":"
6380   else
6381     case $cross_compiling:$ac_tool_warned in
6382 yes:)
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6385 ac_tool_warned=yes ;;
6386 esac
6387     DSYMUTIL=$ac_ct_DSYMUTIL
6388   fi
6389 else
6390   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6391 fi
6392
6393     if test -n "$ac_tool_prefix"; then
6394   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6395 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6399   $as_echo_n "(cached) " >&6
6400 else
6401   if test -n "$NMEDIT"; then
6402   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6403 else
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407   IFS=$as_save_IFS
6408   test -z "$as_dir" && as_dir=.
6409     for ac_exec_ext in '' $ac_executable_extensions; do
6410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6413     break 2
6414   fi
6415 done
6416   done
6417 IFS=$as_save_IFS
6418
6419 fi
6420 fi
6421 NMEDIT=$ac_cv_prog_NMEDIT
6422 if test -n "$NMEDIT"; then
6423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6424 $as_echo "$NMEDIT" >&6; }
6425 else
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6428 fi
6429
6430
6431 fi
6432 if test -z "$ac_cv_prog_NMEDIT"; then
6433   ac_ct_NMEDIT=$NMEDIT
6434   # Extract the first word of "nmedit", so it can be a program name with args.
6435 set dummy nmedit; ac_word=$2
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6439   $as_echo_n "(cached) " >&6
6440 else
6441   if test -n "$ac_ct_NMEDIT"; then
6442   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447   IFS=$as_save_IFS
6448   test -z "$as_dir" && as_dir=.
6449     for ac_exec_ext in '' $ac_executable_extensions; do
6450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453     break 2
6454   fi
6455 done
6456   done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6462 if test -n "$ac_ct_NMEDIT"; then
6463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6464 $as_echo "$ac_ct_NMEDIT" >&6; }
6465 else
6466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6468 fi
6469
6470   if test "x$ac_ct_NMEDIT" = x; then
6471     NMEDIT=":"
6472   else
6473     case $cross_compiling:$ac_tool_warned in
6474 yes:)
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6478 esac
6479     NMEDIT=$ac_ct_NMEDIT
6480   fi
6481 else
6482   NMEDIT="$ac_cv_prog_NMEDIT"
6483 fi
6484
6485     if test -n "$ac_tool_prefix"; then
6486   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6487 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if test "${ac_cv_prog_LIPO+set}" = set; then :
6491   $as_echo_n "(cached) " >&6
6492 else
6493   if test -n "$LIPO"; then
6494   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499   IFS=$as_save_IFS
6500   test -z "$as_dir" && as_dir=.
6501     for ac_exec_ext in '' $ac_executable_extensions; do
6502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505     break 2
6506   fi
6507 done
6508   done
6509 IFS=$as_save_IFS
6510
6511 fi
6512 fi
6513 LIPO=$ac_cv_prog_LIPO
6514 if test -n "$LIPO"; then
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6516 $as_echo "$LIPO" >&6; }
6517 else
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6520 fi
6521
6522
6523 fi
6524 if test -z "$ac_cv_prog_LIPO"; then
6525   ac_ct_LIPO=$LIPO
6526   # Extract the first word of "lipo", so it can be a program name with args.
6527 set dummy lipo; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6531   $as_echo_n "(cached) " >&6
6532 else
6533   if test -n "$ac_ct_LIPO"; then
6534   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539   IFS=$as_save_IFS
6540   test -z "$as_dir" && as_dir=.
6541     for ac_exec_ext in '' $ac_executable_extensions; do
6542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543     ac_cv_prog_ac_ct_LIPO="lipo"
6544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545     break 2
6546   fi
6547 done
6548   done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6554 if test -n "$ac_ct_LIPO"; then
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6556 $as_echo "$ac_ct_LIPO" >&6; }
6557 else
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6560 fi
6561
6562   if test "x$ac_ct_LIPO" = x; then
6563     LIPO=":"
6564   else
6565     case $cross_compiling:$ac_tool_warned in
6566 yes:)
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6569 ac_tool_warned=yes ;;
6570 esac
6571     LIPO=$ac_ct_LIPO
6572   fi
6573 else
6574   LIPO="$ac_cv_prog_LIPO"
6575 fi
6576
6577     if test -n "$ac_tool_prefix"; then
6578   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6579 set dummy ${ac_tool_prefix}otool; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6583   $as_echo_n "(cached) " >&6
6584 else
6585   if test -n "$OTOOL"; then
6586   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6590 do
6591   IFS=$as_save_IFS
6592   test -z "$as_dir" && as_dir=.
6593     for ac_exec_ext in '' $ac_executable_extensions; do
6594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597     break 2
6598   fi
6599 done
6600   done
6601 IFS=$as_save_IFS
6602
6603 fi
6604 fi
6605 OTOOL=$ac_cv_prog_OTOOL
6606 if test -n "$OTOOL"; then
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6608 $as_echo "$OTOOL" >&6; }
6609 else
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6612 fi
6613
6614
6615 fi
6616 if test -z "$ac_cv_prog_OTOOL"; then
6617   ac_ct_OTOOL=$OTOOL
6618   # Extract the first word of "otool", so it can be a program name with args.
6619 set dummy otool; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6623   $as_echo_n "(cached) " >&6
6624 else
6625   if test -n "$ac_ct_OTOOL"; then
6626   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6627 else
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6630 do
6631   IFS=$as_save_IFS
6632   test -z "$as_dir" && as_dir=.
6633     for ac_exec_ext in '' $ac_executable_extensions; do
6634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6635     ac_cv_prog_ac_ct_OTOOL="otool"
6636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637     break 2
6638   fi
6639 done
6640   done
6641 IFS=$as_save_IFS
6642
6643 fi
6644 fi
6645 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6646 if test -n "$ac_ct_OTOOL"; then
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6648 $as_echo "$ac_ct_OTOOL" >&6; }
6649 else
6650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6652 fi
6653
6654   if test "x$ac_ct_OTOOL" = x; then
6655     OTOOL=":"
6656   else
6657     case $cross_compiling:$ac_tool_warned in
6658 yes:)
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6661 ac_tool_warned=yes ;;
6662 esac
6663     OTOOL=$ac_ct_OTOOL
6664   fi
6665 else
6666   OTOOL="$ac_cv_prog_OTOOL"
6667 fi
6668
6669     if test -n "$ac_tool_prefix"; then
6670   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6671 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6675   $as_echo_n "(cached) " >&6
6676 else
6677   if test -n "$OTOOL64"; then
6678   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683   IFS=$as_save_IFS
6684   test -z "$as_dir" && as_dir=.
6685     for ac_exec_ext in '' $ac_executable_extensions; do
6686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689     break 2
6690   fi
6691 done
6692   done
6693 IFS=$as_save_IFS
6694
6695 fi
6696 fi
6697 OTOOL64=$ac_cv_prog_OTOOL64
6698 if test -n "$OTOOL64"; then
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6700 $as_echo "$OTOOL64" >&6; }
6701 else
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704 fi
6705
6706
6707 fi
6708 if test -z "$ac_cv_prog_OTOOL64"; then
6709   ac_ct_OTOOL64=$OTOOL64
6710   # Extract the first word of "otool64", so it can be a program name with args.
6711 set dummy otool64; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6715   $as_echo_n "(cached) " >&6
6716 else
6717   if test -n "$ac_ct_OTOOL64"; then
6718   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723   IFS=$as_save_IFS
6724   test -z "$as_dir" && as_dir=.
6725     for ac_exec_ext in '' $ac_executable_extensions; do
6726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727     ac_cv_prog_ac_ct_OTOOL64="otool64"
6728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729     break 2
6730   fi
6731 done
6732   done
6733 IFS=$as_save_IFS
6734
6735 fi
6736 fi
6737 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6738 if test -n "$ac_ct_OTOOL64"; then
6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6740 $as_echo "$ac_ct_OTOOL64" >&6; }
6741 else
6742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6744 fi
6745
6746   if test "x$ac_ct_OTOOL64" = x; then
6747     OTOOL64=":"
6748   else
6749     case $cross_compiling:$ac_tool_warned in
6750 yes:)
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753 ac_tool_warned=yes ;;
6754 esac
6755     OTOOL64=$ac_ct_OTOOL64
6756   fi
6757 else
6758   OTOOL64="$ac_cv_prog_OTOOL64"
6759 fi
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6788 $as_echo_n "checking for -single_module linker flag... " >&6; }
6789 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6790   $as_echo_n "(cached) " >&6
6791 else
6792   lt_cv_apple_cc_single_mod=no
6793       if test -z "${LT_MULTI_MODULE}"; then
6794         # By default we will add the -single_module flag. You can override
6795         # by either setting the environment variable LT_MULTI_MODULE
6796         # non-empty at configure time, or by adding -multi_module to the
6797         # link flags.
6798         rm -rf libconftest.dylib*
6799         echo "int foo(void){return 1;}" > conftest.c
6800         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6801 -dynamiclib -Wl,-single_module conftest.c" >&5
6802         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6803           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6804         _lt_result=$?
6805         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6806           lt_cv_apple_cc_single_mod=yes
6807         else
6808           cat conftest.err >&5
6809         fi
6810         rm -rf libconftest.dylib*
6811         rm -f conftest.*
6812       fi
6813 fi
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6815 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6817 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6818 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6819   $as_echo_n "(cached) " >&6
6820 else
6821   lt_cv_ld_exported_symbols_list=no
6822       save_LDFLAGS=$LDFLAGS
6823       echo "_main" > conftest.sym
6824       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6825       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h.  */
6827
6828 int
6829 main ()
6830 {
6831
6832   ;
6833   return 0;
6834 }
6835 _ACEOF
6836 if ac_fn_c_try_link "$LINENO"; then :
6837   lt_cv_ld_exported_symbols_list=yes
6838 else
6839   lt_cv_ld_exported_symbols_list=no
6840 fi
6841 rm -f core conftest.err conftest.$ac_objext \
6842     conftest$ac_exeext conftest.$ac_ext
6843         LDFLAGS="$save_LDFLAGS"
6844
6845 fi
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6847 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6848     case $host_os in
6849     rhapsody* | darwin1.[012])
6850       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6851     darwin1.*)
6852       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6853     darwin*) # darwin 5.x on
6854       # if running on 10.5 or later, the deployment target defaults
6855       # to the OS version, if on x86, and 10.4, the deployment
6856       # target defaults to 10.4. Don't you love it?
6857       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6858         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6859           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6860         10.[012]*)
6861           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6862         10.*)
6863           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6864       esac
6865     ;;
6866   esac
6867     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6868       _lt_dar_single_mod='$single_module'
6869     fi
6870     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6871       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6872     else
6873       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6874     fi
6875     if test "$DSYMUTIL" != ":"; then
6876       _lt_dsymutil='~$DSYMUTIL $lib || :'
6877     else
6878       _lt_dsymutil=
6879     fi
6880     ;;
6881   esac
6882
6883 ac_ext=c
6884 ac_cpp='$CPP $CPPFLAGS'
6885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6889 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6890 # On Suns, sometimes $CPP names a directory.
6891 if test -n "$CPP" && test -d "$CPP"; then
6892   CPP=
6893 fi
6894 if test -z "$CPP"; then
6895   if test "${ac_cv_prog_CPP+set}" = set; then :
6896   $as_echo_n "(cached) " >&6
6897 else
6898       # Double quotes because CPP needs to be expanded
6899     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6900     do
6901       ac_preproc_ok=false
6902 for ac_c_preproc_warn_flag in '' yes
6903 do
6904   # Use a header file that comes with gcc, so configuring glibc
6905   # with a fresh cross-compiler works.
6906   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6907   # <limits.h> exists even on freestanding compilers.
6908   # On the NeXT, cc -E runs the code through the compiler's parser,
6909   # not just through cpp. "Syntax error" is here to catch this case.
6910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h.  */
6912 #ifdef __STDC__
6913 # include <limits.h>
6914 #else
6915 # include <assert.h>
6916 #endif
6917                      Syntax error
6918 _ACEOF
6919 if ac_fn_c_try_cpp "$LINENO"; then :
6920
6921 else
6922   # Broken: fails on valid input.
6923 continue
6924 fi
6925 rm -f conftest.err conftest.$ac_ext
6926
6927   # OK, works on sane cases.  Now check whether nonexistent headers
6928   # can be detected and how.
6929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h.  */
6931 #include <ac_nonexistent.h>
6932 _ACEOF
6933 if ac_fn_c_try_cpp "$LINENO"; then :
6934   # Broken: success on invalid input.
6935 continue
6936 else
6937   # Passes both tests.
6938 ac_preproc_ok=:
6939 break
6940 fi
6941 rm -f conftest.err conftest.$ac_ext
6942
6943 done
6944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6945 rm -f conftest.err conftest.$ac_ext
6946 if $ac_preproc_ok; then :
6947   break
6948 fi
6949
6950     done
6951     ac_cv_prog_CPP=$CPP
6952
6953 fi
6954   CPP=$ac_cv_prog_CPP
6955 else
6956   ac_cv_prog_CPP=$CPP
6957 fi
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6959 $as_echo "$CPP" >&6; }
6960 ac_preproc_ok=false
6961 for ac_c_preproc_warn_flag in '' yes
6962 do
6963   # Use a header file that comes with gcc, so configuring glibc
6964   # with a fresh cross-compiler works.
6965   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6966   # <limits.h> exists even on freestanding compilers.
6967   # On the NeXT, cc -E runs the code through the compiler's parser,
6968   # not just through cpp. "Syntax error" is here to catch this case.
6969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h.  */
6971 #ifdef __STDC__
6972 # include <limits.h>
6973 #else
6974 # include <assert.h>
6975 #endif
6976                      Syntax error
6977 _ACEOF
6978 if ac_fn_c_try_cpp "$LINENO"; then :
6979
6980 else
6981   # Broken: fails on valid input.
6982 continue
6983 fi
6984 rm -f conftest.err conftest.$ac_ext
6985
6986   # OK, works on sane cases.  Now check whether nonexistent headers
6987   # can be detected and how.
6988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989 /* end confdefs.h.  */
6990 #include <ac_nonexistent.h>
6991 _ACEOF
6992 if ac_fn_c_try_cpp "$LINENO"; then :
6993   # Broken: success on invalid input.
6994 continue
6995 else
6996   # Passes both tests.
6997 ac_preproc_ok=:
6998 break
6999 fi
7000 rm -f conftest.err conftest.$ac_ext
7001
7002 done
7003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7004 rm -f conftest.err conftest.$ac_ext
7005 if $ac_preproc_ok; then :
7006
7007 else
7008   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7010 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7011 See \`config.log' for more details." "$LINENO" 5; }
7012 fi
7013
7014 ac_ext=c
7015 ac_cpp='$CPP $CPPFLAGS'
7016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019
7020
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7022 $as_echo_n "checking for ANSI C header files... " >&6; }
7023 if test "${ac_cv_header_stdc+set}" = set; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h.  */
7028 #include <stdlib.h>
7029 #include <stdarg.h>
7030 #include <string.h>
7031 #include <float.h>
7032
7033 int
7034 main ()
7035 {
7036
7037   ;
7038   return 0;
7039 }
7040 _ACEOF
7041 if ac_fn_c_try_compile "$LINENO"; then :
7042   ac_cv_header_stdc=yes
7043 else
7044   ac_cv_header_stdc=no
7045 fi
7046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7047
7048 if test $ac_cv_header_stdc = yes; then
7049   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h.  */
7052 #include <string.h>
7053
7054 _ACEOF
7055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7056   $EGREP "memchr" >/dev/null 2>&1; then :
7057
7058 else
7059   ac_cv_header_stdc=no
7060 fi
7061 rm -f conftest*
7062
7063 fi
7064
7065 if test $ac_cv_header_stdc = yes; then
7066   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h.  */
7069 #include <stdlib.h>
7070
7071 _ACEOF
7072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7073   $EGREP "free" >/dev/null 2>&1; then :
7074
7075 else
7076   ac_cv_header_stdc=no
7077 fi
7078 rm -f conftest*
7079
7080 fi
7081
7082 if test $ac_cv_header_stdc = yes; then
7083   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7084   if test "$cross_compiling" = yes; then :
7085   :
7086 else
7087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h.  */
7089 #include <ctype.h>
7090 #include <stdlib.h>
7091 #if ((' ' & 0x0FF) == 0x020)
7092 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7093 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7094 #else
7095 # define ISLOWER(c) \
7096                    (('a' <= (c) && (c) <= 'i') \
7097                      || ('j' <= (c) && (c) <= 'r') \
7098                      || ('s' <= (c) && (c) <= 'z'))
7099 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7100 #endif
7101
7102 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7103 int
7104 main ()
7105 {
7106   int i;
7107   for (i = 0; i < 256; i++)
7108     if (XOR (islower (i), ISLOWER (i))
7109         || toupper (i) != TOUPPER (i))
7110       return 2;
7111   return 0;
7112 }
7113 _ACEOF
7114 if ac_fn_c_try_run "$LINENO"; then :
7115
7116 else
7117   ac_cv_header_stdc=no
7118 fi
7119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7120   conftest.$ac_objext conftest.beam conftest.$ac_ext
7121 fi
7122
7123 fi
7124 fi
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7126 $as_echo "$ac_cv_header_stdc" >&6; }
7127 if test $ac_cv_header_stdc = yes; then
7128
7129 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7130
7131 fi
7132
7133 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7134 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7135                   inttypes.h stdint.h unistd.h
7136 do :
7137   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7138 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7139 "
7140 eval as_val=\$$as_ac_Header
7141    if test "x$as_val" = x""yes; then :
7142   cat >>confdefs.h <<_ACEOF
7143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7144 _ACEOF
7145
7146 fi
7147
7148 done
7149
7150
7151 for ac_header in dlfcn.h
7152 do :
7153   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7154 "
7155 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7156   cat >>confdefs.h <<_ACEOF
7157 #define HAVE_DLFCN_H 1
7158 _ACEOF
7159
7160 fi
7161
7162 done
7163
7164
7165
7166 ac_ext=cpp
7167 ac_cpp='$CXXCPP $CPPFLAGS'
7168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7171 if test -z "$CXX"; then
7172   if test -n "$CCC"; then
7173     CXX=$CCC
7174   else
7175     if test -n "$ac_tool_prefix"; then
7176   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7177   do
7178     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if test "${ac_cv_prog_CXX+set}" = set; then :
7183   $as_echo_n "(cached) " >&6
7184 else
7185   if test -n "$CXX"; then
7186   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191   IFS=$as_save_IFS
7192   test -z "$as_dir" && as_dir=.
7193     for ac_exec_ext in '' $ac_executable_extensions; do
7194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7195     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197     break 2
7198   fi
7199 done
7200   done
7201 IFS=$as_save_IFS
7202
7203 fi
7204 fi
7205 CXX=$ac_cv_prog_CXX
7206 if test -n "$CXX"; then
7207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7208 $as_echo "$CXX" >&6; }
7209 else
7210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213
7214
7215     test -n "$CXX" && break
7216   done
7217 fi
7218 if test -z "$CXX"; then
7219   ac_ct_CXX=$CXX
7220   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7221 do
7222   # Extract the first word of "$ac_prog", so it can be a program name with args.
7223 set dummy $ac_prog; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7227   $as_echo_n "(cached) " >&6
7228 else
7229   if test -n "$ac_ct_CXX"; then
7230   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   test -z "$as_dir" && as_dir=.
7237     for ac_exec_ext in '' $ac_executable_extensions; do
7238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7239     ac_cv_prog_ac_ct_CXX="$ac_prog"
7240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241     break 2
7242   fi
7243 done
7244   done
7245 IFS=$as_save_IFS
7246
7247 fi
7248 fi
7249 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7250 if test -n "$ac_ct_CXX"; then
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7252 $as_echo "$ac_ct_CXX" >&6; }
7253 else
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7257
7258
7259   test -n "$ac_ct_CXX" && break
7260 done
7261
7262   if test "x$ac_ct_CXX" = x; then
7263     CXX="g++"
7264   else
7265     case $cross_compiling:$ac_tool_warned in
7266 yes:)
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269 ac_tool_warned=yes ;;
7270 esac
7271     CXX=$ac_ct_CXX
7272   fi
7273 fi
7274
7275   fi
7276 fi
7277 # Provide some information about the compiler.
7278 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7279 set X $ac_compile
7280 ac_compiler=$2
7281 for ac_option in --version -v -V -qversion; do
7282   { { ac_try="$ac_compiler $ac_option >&5"
7283 case "(($ac_try" in
7284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285   *) ac_try_echo=$ac_try;;
7286 esac
7287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7288 $as_echo "$ac_try_echo"; } >&5
7289   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7290   ac_status=$?
7291   if test -s conftest.err; then
7292     sed '10a\
7293 ... rest of stderr output deleted ...
7294          10q' conftest.err >conftest.er1
7295     cat conftest.er1 >&5
7296   fi
7297   rm -f conftest.er1 conftest.err
7298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7299   test $ac_status = 0; }
7300 done
7301
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7303 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7304 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7305   $as_echo_n "(cached) " >&6
7306 else
7307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h.  */
7309
7310 int
7311 main ()
7312 {
7313 #ifndef __GNUC__
7314        choke me
7315 #endif
7316
7317   ;
7318   return 0;
7319 }
7320 _ACEOF
7321 if ac_fn_cxx_try_compile "$LINENO"; then :
7322   ac_compiler_gnu=yes
7323 else
7324   ac_compiler_gnu=no
7325 fi
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7328
7329 fi
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7331 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7332 if test $ac_compiler_gnu = yes; then
7333   GXX=yes
7334 else
7335   GXX=
7336 fi
7337 ac_test_CXXFLAGS=${CXXFLAGS+set}
7338 ac_save_CXXFLAGS=$CXXFLAGS
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7340 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7341 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7342   $as_echo_n "(cached) " >&6
7343 else
7344   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7345    ac_cxx_werror_flag=yes
7346    ac_cv_prog_cxx_g=no
7347    CXXFLAGS="-g"
7348    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h.  */
7350
7351 int
7352 main ()
7353 {
7354
7355   ;
7356   return 0;
7357 }
7358 _ACEOF
7359 if ac_fn_cxx_try_compile "$LINENO"; then :
7360   ac_cv_prog_cxx_g=yes
7361 else
7362   CXXFLAGS=""
7363       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h.  */
7365
7366 int
7367 main ()
7368 {
7369
7370   ;
7371   return 0;
7372 }
7373 _ACEOF
7374 if ac_fn_cxx_try_compile "$LINENO"; then :
7375
7376 else
7377   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7378          CXXFLAGS="-g"
7379          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h.  */
7381
7382 int
7383 main ()
7384 {
7385
7386   ;
7387   return 0;
7388 }
7389 _ACEOF
7390 if ac_fn_cxx_try_compile "$LINENO"; then :
7391   ac_cv_prog_cxx_g=yes
7392 fi
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394 fi
7395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7396 fi
7397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7398    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7399 fi
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7401 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7402 if test "$ac_test_CXXFLAGS" = set; then
7403   CXXFLAGS=$ac_save_CXXFLAGS
7404 elif test $ac_cv_prog_cxx_g = yes; then
7405   if test "$GXX" = yes; then
7406     CXXFLAGS="-g -O2"
7407   else
7408     CXXFLAGS="-g"
7409   fi
7410 else
7411   if test "$GXX" = yes; then
7412     CXXFLAGS="-O2"
7413   else
7414     CXXFLAGS=
7415   fi
7416 fi
7417 ac_ext=cpp
7418 ac_cpp='$CXXCPP $CPPFLAGS'
7419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7422
7423 depcc="$CXX"  am_compiler_list=
7424
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7426 $as_echo_n "checking dependency style of $depcc... " >&6; }
7427 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7428   $as_echo_n "(cached) " >&6
7429 else
7430   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7431   # We make a subdir and do the tests there.  Otherwise we can end up
7432   # making bogus files that we don't know about and never remove.  For
7433   # instance it was reported that on HP-UX the gcc test will end up
7434   # making a dummy file named `D' -- because `-MD' means `put the output
7435   # in D'.
7436   mkdir conftest.dir
7437   # Copy depcomp to subdir because otherwise we won't find it if we're
7438   # using a relative directory.
7439   cp "$am_depcomp" conftest.dir
7440   cd conftest.dir
7441   # We will build objects and dependencies in a subdirectory because
7442   # it helps to detect inapplicable dependency modes.  For instance
7443   # both Tru64's cc and ICC support -MD to output dependencies as a
7444   # side effect of compilation, but ICC will put the dependencies in
7445   # the current directory while Tru64 will put them in the object
7446   # directory.
7447   mkdir sub
7448
7449   am_cv_CXX_dependencies_compiler_type=none
7450   if test "$am_compiler_list" = ""; then
7451      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7452   fi
7453   am__universal=false
7454   case " $depcc " in #(
7455      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7456      esac
7457
7458   for depmode in $am_compiler_list; do
7459     # Setup a source with many dependencies, because some compilers
7460     # like to wrap large dependency lists on column 80 (with \), and
7461     # we should not choose a depcomp mode which is confused by this.
7462     #
7463     # We need to recreate these files for each test, as the compiler may
7464     # overwrite some of them when testing with obscure command lines.
7465     # This happens at least with the AIX C compiler.
7466     : > sub/conftest.c
7467     for i in 1 2 3 4 5 6; do
7468       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7469       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7470       # Solaris 8's {/usr,}/bin/sh.
7471       touch sub/conftst$i.h
7472     done
7473     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7474
7475     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7476     # mode.  It turns out that the SunPro C++ compiler does not properly
7477     # handle `-M -o', and we need to detect this.  Also, some Intel
7478     # versions had trouble with output in subdirs
7479     am__obj=sub/conftest.${OBJEXT-o}
7480     am__minus_obj="-o $am__obj"
7481     case $depmode in
7482     gcc)
7483       # This depmode causes a compiler race in universal mode.
7484       test "$am__universal" = false || continue
7485       ;;
7486     nosideeffect)
7487       # after this tag, mechanisms are not by side-effect, so they'll
7488       # only be used when explicitly requested
7489       if test "x$enable_dependency_tracking" = xyes; then
7490         continue
7491       else
7492         break
7493       fi
7494       ;;
7495     msvisualcpp | msvcmsys)
7496       # This compiler won't grok `-c -o', but also, the minuso test has
7497       # not run yet.  These depmodes are late enough in the game, and
7498       # so weak that their functioning should not be impacted.
7499       am__obj=conftest.${OBJEXT-o}
7500       am__minus_obj=
7501       ;;
7502     none) break ;;
7503     esac
7504     if depmode=$depmode \
7505        source=sub/conftest.c object=$am__obj \
7506        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7507        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7508          >/dev/null 2>conftest.err &&
7509        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7510        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7511        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7512        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7513       # icc doesn't choke on unknown options, it will just issue warnings
7514       # or remarks (even with -Werror).  So we grep stderr for any message
7515       # that says an option was ignored or not supported.
7516       # When given -MP, icc 7.0 and 7.1 complain thusly:
7517       #   icc: Command line warning: ignoring option '-M'; no argument required
7518       # The diagnosis changed in icc 8.0:
7519       #   icc: Command line remark: option '-MP' not supported
7520       if (grep 'ignoring option' conftest.err ||
7521           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7522         am_cv_CXX_dependencies_compiler_type=$depmode
7523         break
7524       fi
7525     fi
7526   done
7527
7528   cd ..
7529   rm -rf conftest.dir
7530 else
7531   am_cv_CXX_dependencies_compiler_type=none
7532 fi
7533
7534 fi
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7536 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7537 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7538
7539  if
7540   test "x$enable_dependency_tracking" != xno \
7541   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7542   am__fastdepCXX_TRUE=
7543   am__fastdepCXX_FALSE='#'
7544 else
7545   am__fastdepCXX_TRUE='#'
7546   am__fastdepCXX_FALSE=
7547 fi
7548
7549
7550 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7551     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7552     (test "X$CXX" != "Xg++"))) ; then
7553   ac_ext=cpp
7554 ac_cpp='$CXXCPP $CPPFLAGS'
7555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7559 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7560 if test -z "$CXXCPP"; then
7561   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7562   $as_echo_n "(cached) " >&6
7563 else
7564       # Double quotes because CXXCPP needs to be expanded
7565     for CXXCPP in "$CXX -E" "/lib/cpp"
7566     do
7567       ac_preproc_ok=false
7568 for ac_cxx_preproc_warn_flag in '' yes
7569 do
7570   # Use a header file that comes with gcc, so configuring glibc
7571   # with a fresh cross-compiler works.
7572   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7573   # <limits.h> exists even on freestanding compilers.
7574   # On the NeXT, cc -E runs the code through the compiler's parser,
7575   # not just through cpp. "Syntax error" is here to catch this case.
7576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h.  */
7578 #ifdef __STDC__
7579 # include <limits.h>
7580 #else
7581 # include <assert.h>
7582 #endif
7583                      Syntax error
7584 _ACEOF
7585 if ac_fn_cxx_try_cpp "$LINENO"; then :
7586
7587 else
7588   # Broken: fails on valid input.
7589 continue
7590 fi
7591 rm -f conftest.err conftest.$ac_ext
7592
7593   # OK, works on sane cases.  Now check whether nonexistent headers
7594   # can be detected and how.
7595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h.  */
7597 #include <ac_nonexistent.h>
7598 _ACEOF
7599 if ac_fn_cxx_try_cpp "$LINENO"; then :
7600   # Broken: success on invalid input.
7601 continue
7602 else
7603   # Passes both tests.
7604 ac_preproc_ok=:
7605 break
7606 fi
7607 rm -f conftest.err conftest.$ac_ext
7608
7609 done
7610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7611 rm -f conftest.err conftest.$ac_ext
7612 if $ac_preproc_ok; then :
7613   break
7614 fi
7615
7616     done
7617     ac_cv_prog_CXXCPP=$CXXCPP
7618
7619 fi
7620   CXXCPP=$ac_cv_prog_CXXCPP
7621 else
7622   ac_cv_prog_CXXCPP=$CXXCPP
7623 fi
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7625 $as_echo "$CXXCPP" >&6; }
7626 ac_preproc_ok=false
7627 for ac_cxx_preproc_warn_flag in '' yes
7628 do
7629   # Use a header file that comes with gcc, so configuring glibc
7630   # with a fresh cross-compiler works.
7631   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7632   # <limits.h> exists even on freestanding compilers.
7633   # On the NeXT, cc -E runs the code through the compiler's parser,
7634   # not just through cpp. "Syntax error" is here to catch this case.
7635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h.  */
7637 #ifdef __STDC__
7638 # include <limits.h>
7639 #else
7640 # include <assert.h>
7641 #endif
7642                      Syntax error
7643 _ACEOF
7644 if ac_fn_cxx_try_cpp "$LINENO"; then :
7645
7646 else
7647   # Broken: fails on valid input.
7648 continue
7649 fi
7650 rm -f conftest.err conftest.$ac_ext
7651
7652   # OK, works on sane cases.  Now check whether nonexistent headers
7653   # can be detected and how.
7654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h.  */
7656 #include <ac_nonexistent.h>
7657 _ACEOF
7658 if ac_fn_cxx_try_cpp "$LINENO"; then :
7659   # Broken: success on invalid input.
7660 continue
7661 else
7662   # Passes both tests.
7663 ac_preproc_ok=:
7664 break
7665 fi
7666 rm -f conftest.err conftest.$ac_ext
7667
7668 done
7669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7670 rm -f conftest.err conftest.$ac_ext
7671 if $ac_preproc_ok; then :
7672
7673 else
7674   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7676 _lt_caught_CXX_error=yes; }
7677 fi
7678
7679 ac_ext=cpp
7680 ac_cpp='$CXXCPP $CPPFLAGS'
7681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7684
7685 else
7686   _lt_caught_CXX_error=yes
7687 fi
7688
7689
7690
7691
7692
7693 # Set options
7694
7695
7696
7697         enable_dlopen=no
7698
7699
7700   enable_win32_dll=no
7701
7702
7703             # Check whether --enable-shared was given.
7704 if test "${enable_shared+set}" = set; then :
7705   enableval=$enable_shared; p=${PACKAGE-default}
7706     case $enableval in
7707     yes) enable_shared=yes ;;
7708     no) enable_shared=no ;;
7709     *)
7710       enable_shared=no
7711       # Look at the argument we got.  We use all the common list separators.
7712       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7713       for pkg in $enableval; do
7714         IFS="$lt_save_ifs"
7715         if test "X$pkg" = "X$p"; then
7716           enable_shared=yes
7717         fi
7718       done
7719       IFS="$lt_save_ifs"
7720       ;;
7721     esac
7722 else
7723   enable_shared=yes
7724 fi
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734   # Check whether --enable-static was given.
7735 if test "${enable_static+set}" = set; then :
7736   enableval=$enable_static; p=${PACKAGE-default}
7737     case $enableval in
7738     yes) enable_static=yes ;;
7739     no) enable_static=no ;;
7740     *)
7741      enable_static=no
7742       # Look at the argument we got.  We use all the common list separators.
7743       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7744       for pkg in $enableval; do
7745         IFS="$lt_save_ifs"
7746         if test "X$pkg" = "X$p"; then
7747           enable_static=yes
7748         fi
7749       done
7750       IFS="$lt_save_ifs"
7751       ;;
7752     esac
7753 else
7754   enable_static=yes
7755 fi
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766 # Check whether --with-pic was given.
7767 if test "${with_pic+set}" = set; then :
7768   withval=$with_pic; pic_mode="$withval"
7769 else
7770   pic_mode=default
7771 fi
7772
7773
7774 test -z "$pic_mode" && pic_mode=default
7775
7776
7777
7778
7779
7780
7781
7782   # Check whether --enable-fast-install was given.
7783 if test "${enable_fast_install+set}" = set; then :
7784   enableval=$enable_fast_install; p=${PACKAGE-default}
7785     case $enableval in
7786     yes) enable_fast_install=yes ;;
7787     no) enable_fast_install=no ;;
7788     *)
7789       enable_fast_install=no
7790       # Look at the argument we got.  We use all the common list separators.
7791       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7792       for pkg in $enableval; do
7793         IFS="$lt_save_ifs"
7794         if test "X$pkg" = "X$p"; then
7795           enable_fast_install=yes
7796         fi
7797       done
7798       IFS="$lt_save_ifs"
7799       ;;
7800     esac
7801 else
7802   enable_fast_install=yes
7803 fi
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815 # This can be used to rebuild libtool when needed
7816 LIBTOOL_DEPS="$ltmain"
7817
7818 # Always use our own libtool.
7819 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845 test -z "$LN_S" && LN_S="ln -s"
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860 if test -n "${ZSH_VERSION+set}" ; then
7861    setopt NO_GLOB_SUBST
7862 fi
7863
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7865 $as_echo_n "checking for objdir... " >&6; }
7866 if test "${lt_cv_objdir+set}" = set; then :
7867   $as_echo_n "(cached) " >&6
7868 else
7869   rm -f .libs 2>/dev/null
7870 mkdir .libs 2>/dev/null
7871 if test -d .libs; then
7872   lt_cv_objdir=.libs
7873 else
7874   # MS-DOS does not allow filenames that begin with a dot.
7875   lt_cv_objdir=_libs
7876 fi
7877 rmdir .libs 2>/dev/null
7878 fi
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7880 $as_echo "$lt_cv_objdir" >&6; }
7881 objdir=$lt_cv_objdir
7882
7883
7884
7885
7886
7887 cat >>confdefs.h <<_ACEOF
7888 #define LT_OBJDIR "$lt_cv_objdir/"
7889 _ACEOF
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907 case $host_os in
7908 aix3*)
7909   # AIX sometimes has problems with the GCC collect2 program.  For some
7910   # reason, if we set the COLLECT_NAMES environment variable, the problems
7911   # vanish in a puff of smoke.
7912   if test "X${COLLECT_NAMES+set}" != Xset; then
7913     COLLECT_NAMES=
7914     export COLLECT_NAMES
7915   fi
7916   ;;
7917 esac
7918
7919 # Sed substitution that helps us do robust quoting.  It backslashifies
7920 # metacharacters that are still active within double-quoted strings.
7921 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7922
7923 # Same as above, but do not quote variable references.
7924 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7925
7926 # Sed substitution to delay expansion of an escaped shell variable in a
7927 # double_quote_subst'ed string.
7928 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7929
7930 # Sed substitution to delay expansion of an escaped single quote.
7931 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7932
7933 # Sed substitution to avoid accidental globbing in evaled expressions
7934 no_glob_subst='s/\*/\\\*/g'
7935
7936 # Global variables:
7937 ofile=libtool
7938 can_build_shared=yes
7939
7940 # All known linkers require a `.a' archive for static linking (except MSVC,
7941 # which needs '.lib').
7942 libext=a
7943
7944 with_gnu_ld="$lt_cv_prog_gnu_ld"
7945
7946 old_CC="$CC"
7947 old_CFLAGS="$CFLAGS"
7948
7949 # Set sane defaults for various variables
7950 test -z "$CC" && CC=cc
7951 test -z "$LTCC" && LTCC=$CC
7952 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7953 test -z "$LD" && LD=ld
7954 test -z "$ac_objext" && ac_objext=o
7955
7956 for cc_temp in $compiler""; do
7957   case $cc_temp in
7958     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7959     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7960     \-*) ;;
7961     *) break;;
7962   esac
7963 done
7964 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7965
7966
7967 # Only perform the check for file, if the check method requires it
7968 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7969 case $deplibs_check_method in
7970 file_magic*)
7971   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7973 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7974 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7975   $as_echo_n "(cached) " >&6
7976 else
7977   case $MAGIC_CMD in
7978 [\\/*] |  ?:[\\/]*)
7979   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7980   ;;
7981 *)
7982   lt_save_MAGIC_CMD="$MAGIC_CMD"
7983   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7984   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7985   for ac_dir in $ac_dummy; do
7986     IFS="$lt_save_ifs"
7987     test -z "$ac_dir" && ac_dir=.
7988     if test -f $ac_dir/${ac_tool_prefix}file; then
7989       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7990       if test -n "$file_magic_test_file"; then
7991         case $deplibs_check_method in
7992         "file_magic "*)
7993           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7994           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7995           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7996             $EGREP "$file_magic_regex" > /dev/null; then
7997             :
7998           else
7999             cat <<_LT_EOF 1>&2
8000
8001 *** Warning: the command libtool uses to detect shared libraries,
8002 *** $file_magic_cmd, produces output that libtool cannot recognize.
8003 *** The result is that libtool may fail to recognize shared libraries
8004 *** as such.  This will affect the creation of libtool libraries that
8005 *** depend on shared libraries, but programs linked with such libtool
8006 *** libraries will work regardless of this problem.  Nevertheless, you
8007 *** may want to report the problem to your system manager and/or to
8008 *** bug-libtool@gnu.org
8009
8010 _LT_EOF
8011           fi ;;
8012         esac
8013       fi
8014       break
8015     fi
8016   done
8017   IFS="$lt_save_ifs"
8018   MAGIC_CMD="$lt_save_MAGIC_CMD"
8019   ;;
8020 esac
8021 fi
8022
8023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8024 if test -n "$MAGIC_CMD"; then
8025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8026 $as_echo "$MAGIC_CMD" >&6; }
8027 else
8028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8030 fi
8031
8032
8033
8034
8035
8036 if test -z "$lt_cv_path_MAGIC_CMD"; then
8037   if test -n "$ac_tool_prefix"; then
8038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8039 $as_echo_n "checking for file... " >&6; }
8040 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8041   $as_echo_n "(cached) " >&6
8042 else
8043   case $MAGIC_CMD in
8044 [\\/*] |  ?:[\\/]*)
8045   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8046   ;;
8047 *)
8048   lt_save_MAGIC_CMD="$MAGIC_CMD"
8049   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8050   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8051   for ac_dir in $ac_dummy; do
8052     IFS="$lt_save_ifs"
8053     test -z "$ac_dir" && ac_dir=.
8054     if test -f $ac_dir/file; then
8055       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8056       if test -n "$file_magic_test_file"; then
8057         case $deplibs_check_method in
8058         "file_magic "*)
8059           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8060           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8061           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8062             $EGREP "$file_magic_regex" > /dev/null; then
8063             :
8064           else
8065             cat <<_LT_EOF 1>&2
8066
8067 *** Warning: the command libtool uses to detect shared libraries,
8068 *** $file_magic_cmd, produces output that libtool cannot recognize.
8069 *** The result is that libtool may fail to recognize shared libraries
8070 *** as such.  This will affect the creation of libtool libraries that
8071 *** depend on shared libraries, but programs linked with such libtool
8072 *** libraries will work regardless of this problem.  Nevertheless, you
8073 *** may want to report the problem to your system manager and/or to
8074 *** bug-libtool@gnu.org
8075
8076 _LT_EOF
8077           fi ;;
8078         esac
8079       fi
8080       break
8081     fi
8082   done
8083   IFS="$lt_save_ifs"
8084   MAGIC_CMD="$lt_save_MAGIC_CMD"
8085   ;;
8086 esac
8087 fi
8088
8089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8090 if test -n "$MAGIC_CMD"; then
8091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8092 $as_echo "$MAGIC_CMD" >&6; }
8093 else
8094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095 $as_echo "no" >&6; }
8096 fi
8097
8098
8099   else
8100     MAGIC_CMD=:
8101   fi
8102 fi
8103
8104   fi
8105   ;;
8106 esac
8107
8108 # Use C for the default configuration in the libtool script
8109
8110 lt_save_CC="$CC"
8111 ac_ext=c
8112 ac_cpp='$CPP $CPPFLAGS'
8113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8116
8117
8118 # Source file extension for C test sources.
8119 ac_ext=c
8120
8121 # Object file extension for compiled C test sources.
8122 objext=o
8123 objext=$objext
8124
8125 # Code to be used in simple compile tests
8126 lt_simple_compile_test_code="int some_variable = 0;"
8127
8128 # Code to be used in simple link tests
8129 lt_simple_link_test_code='int main(){return(0);}'
8130
8131
8132
8133
8134
8135
8136
8137 # If no C compiler was specified, use CC.
8138 LTCC=${LTCC-"$CC"}
8139
8140 # If no C compiler flags were specified, use CFLAGS.
8141 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8142
8143 # Allow CC to be a program name with arguments.
8144 compiler=$CC
8145
8146 # Save the default compiler, since it gets overwritten when the other
8147 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8148 compiler_DEFAULT=$CC
8149
8150 # save warnings/boilerplate of simple test code
8151 ac_outfile=conftest.$ac_objext
8152 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8154 _lt_compiler_boilerplate=`cat conftest.err`
8155 $RM conftest*
8156
8157 ac_outfile=conftest.$ac_objext
8158 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8160 _lt_linker_boilerplate=`cat conftest.err`
8161 $RM -r conftest*
8162
8163
8164 ## CAVEAT EMPTOR:
8165 ## There is no encapsulation within the following macros, do not change
8166 ## the running order or otherwise move them around unless you know exactly
8167 ## what you are doing...
8168 if test -n "$compiler"; then
8169
8170 lt_prog_compiler_no_builtin_flag=
8171
8172 if test "$GCC" = yes; then
8173   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8174
8175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8176 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8177 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8178   $as_echo_n "(cached) " >&6
8179 else
8180   lt_cv_prog_compiler_rtti_exceptions=no
8181    ac_outfile=conftest.$ac_objext
8182    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8183    lt_compiler_flag="-fno-rtti -fno-exceptions"
8184    # Insert the option either (1) after the last *FLAGS variable, or
8185    # (2) before a word containing "conftest.", or (3) at the end.
8186    # Note that $ac_compile itself does not contain backslashes and begins
8187    # with a dollar sign (not a hyphen), so the echo should work correctly.
8188    # The option is referenced via a variable to avoid confusing sed.
8189    lt_compile=`echo "$ac_compile" | $SED \
8190    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8191    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8192    -e 's:$: $lt_compiler_flag:'`
8193    (eval echo "\"\$as_me:8193: $lt_compile\"" >&5)
8194    (eval "$lt_compile" 2>conftest.err)
8195    ac_status=$?
8196    cat conftest.err >&5
8197    echo "$as_me:8197: \$? = $ac_status" >&5
8198    if (exit $ac_status) && test -s "$ac_outfile"; then
8199      # The compiler can only warn and ignore the option if not recognized
8200      # So say no if there are warnings other than the usual output.
8201      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8202      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8203      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8204        lt_cv_prog_compiler_rtti_exceptions=yes
8205      fi
8206    fi
8207    $RM conftest*
8208
8209 fi
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8211 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8212
8213 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8214     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8215 else
8216     :
8217 fi
8218
8219 fi
8220
8221
8222
8223
8224
8225
8226   lt_prog_compiler_wl=
8227 lt_prog_compiler_pic=
8228 lt_prog_compiler_static=
8229
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8231 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8232
8233   if test "$GCC" = yes; then
8234     lt_prog_compiler_wl='-Wl,'
8235     lt_prog_compiler_static='-static'
8236
8237     case $host_os in
8238       aix*)
8239       # All AIX code is PIC.
8240       if test "$host_cpu" = ia64; then
8241         # AIX 5 now supports IA64 processor
8242         lt_prog_compiler_static='-Bstatic'
8243       fi
8244       ;;
8245
8246     amigaos*)
8247       case $host_cpu in
8248       powerpc)
8249             # see comment about AmigaOS4 .so support
8250             lt_prog_compiler_pic='-fPIC'
8251         ;;
8252       m68k)
8253             # FIXME: we need at least 68020 code to build shared libraries, but
8254             # adding the `-m68020' flag to GCC prevents building anything better,
8255             # like `-m68040'.
8256             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8257         ;;
8258       esac
8259       ;;
8260
8261     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8262       # PIC is the default for these OSes.
8263       ;;
8264
8265     mingw* | cygwin* | pw32* | os2* | cegcc*)
8266       # This hack is so that the source file can tell whether it is being
8267       # built for inclusion in a dll (and should export symbols for example).
8268       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8269       # (--disable-auto-import) libraries
8270       lt_prog_compiler_pic='-DDLL_EXPORT'
8271       ;;
8272
8273     darwin* | rhapsody*)
8274       # PIC is the default on this platform
8275       # Common symbols not allowed in MH_DYLIB files
8276       lt_prog_compiler_pic='-fno-common'
8277       ;;
8278
8279     hpux*)
8280       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8281       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8282       # sets the default TLS model and affects inlining.
8283       case $host_cpu in
8284       hppa*64*)
8285         # +Z the default
8286         ;;
8287       *)
8288         lt_prog_compiler_pic='-fPIC'
8289         ;;
8290       esac
8291       ;;
8292
8293     interix[3-9]*)
8294       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8295       # Instead, we relocate shared libraries at runtime.
8296       ;;
8297
8298     msdosdjgpp*)
8299       # Just because we use GCC doesn't mean we suddenly get shared libraries
8300       # on systems that don't support them.
8301       lt_prog_compiler_can_build_shared=no
8302       enable_shared=no
8303       ;;
8304
8305     *nto* | *qnx*)
8306       # QNX uses GNU C++, but need to define -shared option too, otherwise
8307       # it will coredump.
8308       lt_prog_compiler_pic='-fPIC -shared'
8309       ;;
8310
8311     sysv4*MP*)
8312       if test -d /usr/nec; then
8313         lt_prog_compiler_pic=-Kconform_pic
8314       fi
8315       ;;
8316
8317     *)
8318       lt_prog_compiler_pic='-fPIC'
8319       ;;
8320     esac
8321   else
8322     # PORTME Check for flag to pass linker flags through the system compiler.
8323     case $host_os in
8324     aix*)
8325       lt_prog_compiler_wl='-Wl,'
8326       if test "$host_cpu" = ia64; then
8327         # AIX 5 now supports IA64 processor
8328         lt_prog_compiler_static='-Bstatic'
8329       else
8330         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8331       fi
8332       ;;
8333
8334     mingw* | cygwin* | pw32* | os2* | cegcc*)
8335       # This hack is so that the source file can tell whether it is being
8336       # built for inclusion in a dll (and should export symbols for example).
8337       lt_prog_compiler_pic='-DDLL_EXPORT'
8338       ;;
8339
8340     hpux9* | hpux10* | hpux11*)
8341       lt_prog_compiler_wl='-Wl,'
8342       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8343       # not for PA HP-UX.
8344       case $host_cpu in
8345       hppa*64*|ia64*)
8346         # +Z the default
8347         ;;
8348       *)
8349         lt_prog_compiler_pic='+Z'
8350         ;;
8351       esac
8352       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8353       lt_prog_compiler_static='${wl}-a ${wl}archive'
8354       ;;
8355
8356     irix5* | irix6* | nonstopux*)
8357       lt_prog_compiler_wl='-Wl,'
8358       # PIC (with -KPIC) is the default.
8359       lt_prog_compiler_static='-non_shared'
8360       ;;
8361
8362     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8363       case $cc_basename in
8364       # old Intel for x86_64 which still supported -KPIC.
8365       ecc*)
8366         lt_prog_compiler_wl='-Wl,'
8367         lt_prog_compiler_pic='-KPIC'
8368         lt_prog_compiler_static='-static'
8369         ;;
8370       # icc used to be incompatible with GCC.
8371       # ICC 10 doesn't accept -KPIC any more.
8372       icc* | ifort*)
8373         lt_prog_compiler_wl='-Wl,'
8374         lt_prog_compiler_pic='-fPIC'
8375         lt_prog_compiler_static='-static'
8376         ;;
8377       # Lahey Fortran 8.1.
8378       lf95*)
8379         lt_prog_compiler_wl='-Wl,'
8380         lt_prog_compiler_pic='--shared'
8381         lt_prog_compiler_static='--static'
8382         ;;
8383       pgcc* | pgf77* | pgf90* | pgf95*)
8384         # Portland Group compilers (*not* the Pentium gcc compiler,
8385         # which looks to be a dead project)
8386         lt_prog_compiler_wl='-Wl,'
8387         lt_prog_compiler_pic='-fpic'
8388         lt_prog_compiler_static='-Bstatic'
8389         ;;
8390       ccc*)
8391         lt_prog_compiler_wl='-Wl,'
8392         # All Alpha code is PIC.
8393         lt_prog_compiler_static='-non_shared'
8394         ;;
8395       xl*)
8396         # IBM XL C 8.0/Fortran 10.1 on PPC
8397         lt_prog_compiler_wl='-Wl,'
8398         lt_prog_compiler_pic='-qpic'
8399         lt_prog_compiler_static='-qstaticlink'
8400         ;;
8401       *)
8402         case `$CC -V 2>&1 | sed 5q` in
8403         *Sun\ C*)
8404           # Sun C 5.9
8405           lt_prog_compiler_pic='-KPIC'
8406           lt_prog_compiler_static='-Bstatic'
8407           lt_prog_compiler_wl='-Wl,'
8408           ;;
8409         *Sun\ F*)
8410           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8411           lt_prog_compiler_pic='-KPIC'
8412           lt_prog_compiler_static='-Bstatic'
8413           lt_prog_compiler_wl=''
8414           ;;
8415         esac
8416         ;;
8417       esac
8418       ;;
8419
8420     newsos6)
8421       lt_prog_compiler_pic='-KPIC'
8422       lt_prog_compiler_static='-Bstatic'
8423       ;;
8424
8425     *nto* | *qnx*)
8426       # QNX uses GNU C++, but need to define -shared option too, otherwise
8427       # it will coredump.
8428       lt_prog_compiler_pic='-fPIC -shared'
8429       ;;
8430
8431     osf3* | osf4* | osf5*)
8432       lt_prog_compiler_wl='-Wl,'
8433       # All OSF/1 code is PIC.
8434       lt_prog_compiler_static='-non_shared'
8435       ;;
8436
8437     rdos*)
8438       lt_prog_compiler_static='-non_shared'
8439       ;;
8440
8441     solaris*)
8442       lt_prog_compiler_pic='-KPIC'
8443       lt_prog_compiler_static='-Bstatic'
8444       case $cc_basename in
8445       f77* | f90* | f95*)
8446         lt_prog_compiler_wl='-Qoption ld ';;
8447       *)
8448         lt_prog_compiler_wl='-Wl,';;
8449       esac
8450       ;;
8451
8452     sunos4*)
8453       lt_prog_compiler_wl='-Qoption ld '
8454       lt_prog_compiler_pic='-PIC'
8455       lt_prog_compiler_static='-Bstatic'
8456       ;;
8457
8458     sysv4 | sysv4.2uw2* | sysv4.3*)
8459       lt_prog_compiler_wl='-Wl,'
8460       lt_prog_compiler_pic='-KPIC'
8461       lt_prog_compiler_static='-Bstatic'
8462       ;;
8463
8464     sysv4*MP*)
8465       if test -d /usr/nec ;then
8466         lt_prog_compiler_pic='-Kconform_pic'
8467         lt_prog_compiler_static='-Bstatic'
8468       fi
8469       ;;
8470
8471     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8472       lt_prog_compiler_wl='-Wl,'
8473       lt_prog_compiler_pic='-KPIC'
8474       lt_prog_compiler_static='-Bstatic'
8475       ;;
8476
8477     unicos*)
8478       lt_prog_compiler_wl='-Wl,'
8479       lt_prog_compiler_can_build_shared=no
8480       ;;
8481
8482     uts4*)
8483       lt_prog_compiler_pic='-pic'
8484       lt_prog_compiler_static='-Bstatic'
8485       ;;
8486
8487     *)
8488       lt_prog_compiler_can_build_shared=no
8489       ;;
8490     esac
8491   fi
8492
8493 case $host_os in
8494   # For platforms which do not support PIC, -DPIC is meaningless:
8495   *djgpp*)
8496     lt_prog_compiler_pic=
8497     ;;
8498   *)
8499     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8500     ;;
8501 esac
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8503 $as_echo "$lt_prog_compiler_pic" >&6; }
8504
8505
8506
8507
8508
8509
8510 #
8511 # Check to make sure the PIC flag actually works.
8512 #
8513 if test -n "$lt_prog_compiler_pic"; then
8514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8515 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8516 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8517   $as_echo_n "(cached) " >&6
8518 else
8519   lt_cv_prog_compiler_pic_works=no
8520    ac_outfile=conftest.$ac_objext
8521    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8522    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8523    # Insert the option either (1) after the last *FLAGS variable, or
8524    # (2) before a word containing "conftest.", or (3) at the end.
8525    # Note that $ac_compile itself does not contain backslashes and begins
8526    # with a dollar sign (not a hyphen), so the echo should work correctly.
8527    # The option is referenced via a variable to avoid confusing sed.
8528    lt_compile=`echo "$ac_compile" | $SED \
8529    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8530    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8531    -e 's:$: $lt_compiler_flag:'`
8532    (eval echo "\"\$as_me:8532: $lt_compile\"" >&5)
8533    (eval "$lt_compile" 2>conftest.err)
8534    ac_status=$?
8535    cat conftest.err >&5
8536    echo "$as_me:8536: \$? = $ac_status" >&5
8537    if (exit $ac_status) && test -s "$ac_outfile"; then
8538      # The compiler can only warn and ignore the option if not recognized
8539      # So say no if there are warnings other than the usual output.
8540      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8541      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8542      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8543        lt_cv_prog_compiler_pic_works=yes
8544      fi
8545    fi
8546    $RM conftest*
8547
8548 fi
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8550 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8551
8552 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8553     case $lt_prog_compiler_pic in
8554      "" | " "*) ;;
8555      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8556      esac
8557 else
8558     lt_prog_compiler_pic=
8559      lt_prog_compiler_can_build_shared=no
8560 fi
8561
8562 fi
8563
8564
8565
8566
8567
8568
8569 #
8570 # Check to make sure the static flag actually works.
8571 #
8572 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8574 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8575 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8576   $as_echo_n "(cached) " >&6
8577 else
8578   lt_cv_prog_compiler_static_works=no
8579    save_LDFLAGS="$LDFLAGS"
8580    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8581    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8582    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8583      # The linker can only warn and ignore the option if not recognized
8584      # So say no if there are warnings
8585      if test -s conftest.err; then
8586        # Append any errors to the config.log.
8587        cat conftest.err 1>&5
8588        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8589        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8590        if diff conftest.exp conftest.er2 >/dev/null; then
8591          lt_cv_prog_compiler_static_works=yes
8592        fi
8593      else
8594        lt_cv_prog_compiler_static_works=yes
8595      fi
8596    fi
8597    $RM -r conftest*
8598    LDFLAGS="$save_LDFLAGS"
8599
8600 fi
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8602 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8603
8604 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8605     :
8606 else
8607     lt_prog_compiler_static=
8608 fi
8609
8610
8611
8612
8613
8614
8615
8616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8617 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8618 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8619   $as_echo_n "(cached) " >&6
8620 else
8621   lt_cv_prog_compiler_c_o=no
8622    $RM -r conftest 2>/dev/null
8623    mkdir conftest
8624    cd conftest
8625    mkdir out
8626    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8627
8628    lt_compiler_flag="-o out/conftest2.$ac_objext"
8629    # Insert the option either (1) after the last *FLAGS variable, or
8630    # (2) before a word containing "conftest.", or (3) at the end.
8631    # Note that $ac_compile itself does not contain backslashes and begins
8632    # with a dollar sign (not a hyphen), so the echo should work correctly.
8633    lt_compile=`echo "$ac_compile" | $SED \
8634    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8635    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8636    -e 's:$: $lt_compiler_flag:'`
8637    (eval echo "\"\$as_me:8637: $lt_compile\"" >&5)
8638    (eval "$lt_compile" 2>out/conftest.err)
8639    ac_status=$?
8640    cat out/conftest.err >&5
8641    echo "$as_me:8641: \$? = $ac_status" >&5
8642    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8643    then
8644      # The compiler can only warn and ignore the option if not recognized
8645      # So say no if there are warnings
8646      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8647      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8648      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8649        lt_cv_prog_compiler_c_o=yes
8650      fi
8651    fi
8652    chmod u+w . 2>&5
8653    $RM conftest*
8654    # SGI C++ compiler will create directory out/ii_files/ for
8655    # template instantiation
8656    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8657    $RM out/* && rmdir out
8658    cd ..
8659    $RM -r conftest
8660    $RM conftest*
8661
8662 fi
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8664 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8665
8666
8667
8668
8669
8670
8671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8672 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8673 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8674   $as_echo_n "(cached) " >&6
8675 else
8676   lt_cv_prog_compiler_c_o=no
8677    $RM -r conftest 2>/dev/null
8678    mkdir conftest
8679    cd conftest
8680    mkdir out
8681    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8682
8683    lt_compiler_flag="-o out/conftest2.$ac_objext"
8684    # Insert the option either (1) after the last *FLAGS variable, or
8685    # (2) before a word containing "conftest.", or (3) at the end.
8686    # Note that $ac_compile itself does not contain backslashes and begins
8687    # with a dollar sign (not a hyphen), so the echo should work correctly.
8688    lt_compile=`echo "$ac_compile" | $SED \
8689    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8690    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8691    -e 's:$: $lt_compiler_flag:'`
8692    (eval echo "\"\$as_me:8692: $lt_compile\"" >&5)
8693    (eval "$lt_compile" 2>out/conftest.err)
8694    ac_status=$?
8695    cat out/conftest.err >&5
8696    echo "$as_me:8696: \$? = $ac_status" >&5
8697    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8698    then
8699      # The compiler can only warn and ignore the option if not recognized
8700      # So say no if there are warnings
8701      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8702      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8703      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8704        lt_cv_prog_compiler_c_o=yes
8705      fi
8706    fi
8707    chmod u+w . 2>&5
8708    $RM conftest*
8709    # SGI C++ compiler will create directory out/ii_files/ for
8710    # template instantiation
8711    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8712    $RM out/* && rmdir out
8713    cd ..
8714    $RM -r conftest
8715    $RM conftest*
8716
8717 fi
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8719 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8720
8721
8722
8723
8724 hard_links="nottested"
8725 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8726   # do not overwrite the value of need_locks provided by the user
8727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8728 $as_echo_n "checking if we can lock with hard links... " >&6; }
8729   hard_links=yes
8730   $RM conftest*
8731   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8732   touch conftest.a
8733   ln conftest.a conftest.b 2>&5 || hard_links=no
8734   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8736 $as_echo "$hard_links" >&6; }
8737   if test "$hard_links" = no; then
8738     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8739 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8740     need_locks=warn
8741   fi
8742 else
8743   need_locks=no
8744 fi
8745
8746
8747
8748
8749
8750
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8752 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8753
8754   runpath_var=
8755   allow_undefined_flag=
8756   always_export_symbols=no
8757   archive_cmds=
8758   archive_expsym_cmds=
8759   compiler_needs_object=no
8760   enable_shared_with_static_runtimes=no
8761   export_dynamic_flag_spec=
8762   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8763   hardcode_automatic=no
8764   hardcode_direct=no
8765   hardcode_direct_absolute=no
8766   hardcode_libdir_flag_spec=
8767   hardcode_libdir_flag_spec_ld=
8768   hardcode_libdir_separator=
8769   hardcode_minus_L=no
8770   hardcode_shlibpath_var=unsupported
8771   inherit_rpath=no
8772   link_all_deplibs=unknown
8773   module_cmds=
8774   module_expsym_cmds=
8775   old_archive_from_new_cmds=
8776   old_archive_from_expsyms_cmds=
8777   thread_safe_flag_spec=
8778   whole_archive_flag_spec=
8779   # include_expsyms should be a list of space-separated symbols to be *always*
8780   # included in the symbol list
8781   include_expsyms=
8782   # exclude_expsyms can be an extended regexp of symbols to exclude
8783   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8784   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8785   # as well as any symbol that contains `d'.
8786   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8787   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8788   # platforms (ab)use it in PIC code, but their linkers get confused if
8789   # the symbol is explicitly referenced.  Since portable code cannot
8790   # rely on this symbol name, it's probably fine to never include it in
8791   # preloaded symbol tables.
8792   # Exclude shared library initialization/finalization symbols.
8793   extract_expsyms_cmds=
8794
8795   case $host_os in
8796   cygwin* | mingw* | pw32* | cegcc*)
8797     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8798     # When not using gcc, we currently assume that we are using
8799     # Microsoft Visual C++.
8800     if test "$GCC" != yes; then
8801       with_gnu_ld=no
8802     fi
8803     ;;
8804   interix*)
8805     # we just hope/assume this is gcc and not c89 (= MSVC++)
8806     with_gnu_ld=yes
8807     ;;
8808   openbsd*)
8809     with_gnu_ld=no
8810     ;;
8811   linux* | k*bsd*-gnu)
8812     link_all_deplibs=no
8813     ;;
8814   esac
8815
8816   ld_shlibs=yes
8817   if test "$with_gnu_ld" = yes; then
8818     # If archive_cmds runs LD, not CC, wlarc should be empty
8819     wlarc='${wl}'
8820
8821     # Set some defaults for GNU ld with shared library support. These
8822     # are reset later if shared libraries are not supported. Putting them
8823     # here allows them to be overridden if necessary.
8824     runpath_var=LD_RUN_PATH
8825     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8826     export_dynamic_flag_spec='${wl}--export-dynamic'
8827     # ancient GNU ld didn't support --whole-archive et. al.
8828     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8829       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8830     else
8831       whole_archive_flag_spec=
8832     fi
8833     supports_anon_versioning=no
8834     case `$LD -v 2>&1` in
8835       *GNU\ gold*) supports_anon_versioning=yes ;;
8836       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8837       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8838       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8839       *\ 2.11.*) ;; # other 2.11 versions
8840       *) supports_anon_versioning=yes ;;
8841     esac
8842
8843     # See if GNU ld supports shared libraries.
8844     case $host_os in
8845     aix[3-9]*)
8846       # On AIX/PPC, the GNU linker is very broken
8847       if test "$host_cpu" != ia64; then
8848         ld_shlibs=no
8849         cat <<_LT_EOF 1>&2
8850
8851 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8852 *** to be unable to reliably create shared libraries on AIX.
8853 *** Therefore, libtool is disabling shared libraries support.  If you
8854 *** really care for shared libraries, you may want to modify your PATH
8855 *** so that a non-GNU linker is found, and then restart.
8856
8857 _LT_EOF
8858       fi
8859       ;;
8860
8861     amigaos*)
8862       case $host_cpu in
8863       powerpc)
8864             # see comment about AmigaOS4 .so support
8865             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8866             archive_expsym_cmds=''
8867         ;;
8868       m68k)
8869             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)'
8870             hardcode_libdir_flag_spec='-L$libdir'
8871             hardcode_minus_L=yes
8872         ;;
8873       esac
8874       ;;
8875
8876     beos*)
8877       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8878         allow_undefined_flag=unsupported
8879         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8880         # support --undefined.  This deserves some investigation.  FIXME
8881         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8882       else
8883         ld_shlibs=no
8884       fi
8885       ;;
8886
8887     cygwin* | mingw* | pw32* | cegcc*)
8888       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8889       # as there is no search path for DLLs.
8890       hardcode_libdir_flag_spec='-L$libdir'
8891       allow_undefined_flag=unsupported
8892       always_export_symbols=no
8893       enable_shared_with_static_runtimes=yes
8894       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8895
8896       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8897         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8898         # If the export-symbols file already is a .def file (1st line
8899         # is EXPORTS), use it as is; otherwise, prepend...
8900         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8901           cp $export_symbols $output_objdir/$soname.def;
8902         else
8903           echo EXPORTS > $output_objdir/$soname.def;
8904           cat $export_symbols >> $output_objdir/$soname.def;
8905         fi~
8906         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8907       else
8908         ld_shlibs=no
8909       fi
8910       ;;
8911
8912     interix[3-9]*)
8913       hardcode_direct=no
8914       hardcode_shlibpath_var=no
8915       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916       export_dynamic_flag_spec='${wl}-E'
8917       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8918       # Instead, shared libraries are loaded at an image base (0x10000000 by
8919       # default) and relocated if they conflict, which is a slow very memory
8920       # consuming and fragmenting process.  To avoid this, we pick a random,
8921       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8922       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8923       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8924       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'
8925       ;;
8926
8927     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8928       tmp_diet=no
8929       if test "$host_os" = linux-dietlibc; then
8930         case $cc_basename in
8931           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8932         esac
8933       fi
8934       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8935          && test "$tmp_diet" = no
8936       then
8937         tmp_addflag=
8938         tmp_sharedflag='-shared'
8939         case $cc_basename,$host_cpu in
8940         pgcc*)                          # Portland Group C compiler
8941           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'
8942           tmp_addflag=' $pic_flag'
8943           ;;
8944         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8945           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'
8946           tmp_addflag=' $pic_flag -Mnomain' ;;
8947         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8948           tmp_addflag=' -i_dynamic' ;;
8949         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8950           tmp_addflag=' -i_dynamic -nofor_main' ;;
8951         ifc* | ifort*)                  # Intel Fortran compiler
8952           tmp_addflag=' -nofor_main' ;;
8953         lf95*)                          # Lahey Fortran 8.1
8954           whole_archive_flag_spec=
8955           tmp_sharedflag='--shared' ;;
8956         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8957           tmp_sharedflag='-qmkshrobj'
8958           tmp_addflag= ;;
8959         esac
8960         case `$CC -V 2>&1 | sed 5q` in
8961         *Sun\ C*)                       # Sun C 5.9
8962           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'
8963           compiler_needs_object=yes
8964           tmp_sharedflag='-G' ;;
8965         *Sun\ F*)                       # Sun Fortran 8.3
8966           tmp_sharedflag='-G' ;;
8967         esac
8968         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969
8970         if test "x$supports_anon_versioning" = xyes; then
8971           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8972             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8973             echo "local: *; };" >> $output_objdir/$libname.ver~
8974             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8975         fi
8976
8977         case $cc_basename in
8978         xlf*)
8979           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8980           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8981           hardcode_libdir_flag_spec=
8982           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8983           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8984           if test "x$supports_anon_versioning" = xyes; then
8985             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8986               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8987               echo "local: *; };" >> $output_objdir/$libname.ver~
8988               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8989           fi
8990           ;;
8991         esac
8992       else
8993         ld_shlibs=no
8994       fi
8995       ;;
8996
8997     netbsd* | netbsdelf*-gnu)
8998       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8999         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9000         wlarc=
9001       else
9002         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9003         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9004       fi
9005       ;;
9006
9007     solaris*)
9008       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9009         ld_shlibs=no
9010         cat <<_LT_EOF 1>&2
9011
9012 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9013 *** create shared libraries on Solaris systems.  Therefore, libtool
9014 *** is disabling shared libraries support.  We urge you to upgrade GNU
9015 *** binutils to release 2.9.1 or newer.  Another option is to modify
9016 *** your PATH or compiler configuration so that the native linker is
9017 *** used, and then restart.
9018
9019 _LT_EOF
9020       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9021         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9022         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9023       else
9024         ld_shlibs=no
9025       fi
9026       ;;
9027
9028     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9029       case `$LD -v 2>&1` in
9030         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9031         ld_shlibs=no
9032         cat <<_LT_EOF 1>&2
9033
9034 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9035 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9036 *** is disabling shared libraries support.  We urge you to upgrade GNU
9037 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9038 *** your PATH or compiler configuration so that the native linker is
9039 *** used, and then restart.
9040
9041 _LT_EOF
9042         ;;
9043         *)
9044           # For security reasons, it is highly recommended that you always
9045           # use absolute paths for naming shared libraries, and exclude the
9046           # DT_RUNPATH tag from executables and libraries.  But doing so
9047           # requires that you compile everything twice, which is a pain.
9048           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9049             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9050             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9051             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9052           else
9053             ld_shlibs=no
9054           fi
9055         ;;
9056       esac
9057       ;;
9058
9059     sunos4*)
9060       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9061       wlarc=
9062       hardcode_direct=yes
9063       hardcode_shlibpath_var=no
9064       ;;
9065
9066     *)
9067       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9068         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9069         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9070       else
9071         ld_shlibs=no
9072       fi
9073       ;;
9074     esac
9075
9076     if test "$ld_shlibs" = no; then
9077       runpath_var=
9078       hardcode_libdir_flag_spec=
9079       export_dynamic_flag_spec=
9080       whole_archive_flag_spec=
9081     fi
9082   else
9083     # PORTME fill in a description of your system's linker (not GNU ld)
9084     case $host_os in
9085     aix3*)
9086       allow_undefined_flag=unsupported
9087       always_export_symbols=yes
9088       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'
9089       # Note: this linker hardcodes the directories in LIBPATH if there
9090       # are no directories specified by -L.
9091       hardcode_minus_L=yes
9092       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9093         # Neither direct hardcoding nor static linking is supported with a
9094         # broken collect2.
9095         hardcode_direct=unsupported
9096       fi
9097       ;;
9098
9099     aix[4-9]*)
9100       if test "$host_cpu" = ia64; then
9101         # On IA64, the linker does run time linking by default, so we don't
9102         # have to do anything special.
9103         aix_use_runtimelinking=no
9104         exp_sym_flag='-Bexport'
9105         no_entry_flag=""
9106       else
9107         # If we're using GNU nm, then we don't want the "-C" option.
9108         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9109         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9110           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'
9111         else
9112           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'
9113         fi
9114         aix_use_runtimelinking=no
9115
9116         # Test if we are trying to use run time linking or normal
9117         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9118         # need to do runtime linking.
9119         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9120           for ld_flag in $LDFLAGS; do
9121           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9122             aix_use_runtimelinking=yes
9123             break
9124           fi
9125           done
9126           ;;
9127         esac
9128
9129         exp_sym_flag='-bexport'
9130         no_entry_flag='-bnoentry'
9131       fi
9132
9133       # When large executables or shared objects are built, AIX ld can
9134       # have problems creating the table of contents.  If linking a library
9135       # or program results in "error TOC overflow" add -mminimal-toc to
9136       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9137       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9138
9139       archive_cmds=''
9140       hardcode_direct=yes
9141       hardcode_direct_absolute=yes
9142       hardcode_libdir_separator=':'
9143       link_all_deplibs=yes
9144       file_list_spec='${wl}-f,'
9145
9146       if test "$GCC" = yes; then
9147         case $host_os in aix4.[012]|aix4.[012].*)
9148         # We only want to do this on AIX 4.2 and lower, the check
9149         # below for broken collect2 doesn't work under 4.3+
9150           collect2name=`${CC} -print-prog-name=collect2`
9151           if test -f "$collect2name" &&
9152            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9153           then
9154           # We have reworked collect2
9155           :
9156           else
9157           # We have old collect2
9158           hardcode_direct=unsupported
9159           # It fails to find uninstalled libraries when the uninstalled
9160           # path is not listed in the libpath.  Setting hardcode_minus_L
9161           # to unsupported forces relinking
9162           hardcode_minus_L=yes
9163           hardcode_libdir_flag_spec='-L$libdir'
9164           hardcode_libdir_separator=
9165           fi
9166           ;;
9167         esac
9168         shared_flag='-shared'
9169         if test "$aix_use_runtimelinking" = yes; then
9170           shared_flag="$shared_flag "'${wl}-G'
9171         fi
9172         link_all_deplibs=no
9173       else
9174         # not using gcc
9175         if test "$host_cpu" = ia64; then
9176         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9177         # chokes on -Wl,-G. The following line is correct:
9178           shared_flag='-G'
9179         else
9180           if test "$aix_use_runtimelinking" = yes; then
9181             shared_flag='${wl}-G'
9182           else
9183             shared_flag='${wl}-bM:SRE'
9184           fi
9185         fi
9186       fi
9187
9188       export_dynamic_flag_spec='${wl}-bexpall'
9189       # It seems that -bexpall does not export symbols beginning with
9190       # underscore (_), so it is better to generate a list of symbols to export.
9191       always_export_symbols=yes
9192       if test "$aix_use_runtimelinking" = yes; then
9193         # Warning - without using the other runtime loading flags (-brtl),
9194         # -berok will link without error, but may produce a broken library.
9195         allow_undefined_flag='-berok'
9196         # Determine the default libpath from the value encoded in an
9197         # empty executable.
9198         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h.  */
9200
9201 int
9202 main ()
9203 {
9204
9205   ;
9206   return 0;
9207 }
9208 _ACEOF
9209 if ac_fn_c_try_link "$LINENO"; then :
9210
9211 lt_aix_libpath_sed='
9212     /Import File Strings/,/^$/ {
9213         /^0/ {
9214             s/^0  *\(.*\)$/\1/
9215             p
9216         }
9217     }'
9218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9219 # Check for a 64-bit object if we didn't find anything.
9220 if test -z "$aix_libpath"; then
9221   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9222 fi
9223 fi
9224 rm -f core conftest.err conftest.$ac_objext \
9225     conftest$ac_exeext conftest.$ac_ext
9226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9227
9228         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9229         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"
9230       else
9231         if test "$host_cpu" = ia64; then
9232           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9233           allow_undefined_flag="-z nodefs"
9234           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"
9235         else
9236          # Determine the default libpath from the value encoded in an
9237          # empty executable.
9238          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h.  */
9240
9241 int
9242 main ()
9243 {
9244
9245   ;
9246   return 0;
9247 }
9248 _ACEOF
9249 if ac_fn_c_try_link "$LINENO"; then :
9250
9251 lt_aix_libpath_sed='
9252     /Import File Strings/,/^$/ {
9253         /^0/ {
9254             s/^0  *\(.*\)$/\1/
9255             p
9256         }
9257     }'
9258 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9259 # Check for a 64-bit object if we didn't find anything.
9260 if test -z "$aix_libpath"; then
9261   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9262 fi
9263 fi
9264 rm -f core conftest.err conftest.$ac_objext \
9265     conftest$ac_exeext conftest.$ac_ext
9266 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9267
9268          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9269           # Warning - without using the other run time loading flags,
9270           # -berok will link without error, but may produce a broken library.
9271           no_undefined_flag=' ${wl}-bernotok'
9272           allow_undefined_flag=' ${wl}-berok'
9273           # Exported symbols can be pulled into shared objects from archives
9274           whole_archive_flag_spec='$convenience'
9275           archive_cmds_need_lc=yes
9276           # This is similar to how AIX traditionally builds its shared libraries.
9277           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'
9278         fi
9279       fi
9280       ;;
9281
9282     amigaos*)
9283       case $host_cpu in
9284       powerpc)
9285             # see comment about AmigaOS4 .so support
9286             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9287             archive_expsym_cmds=''
9288         ;;
9289       m68k)
9290             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)'
9291             hardcode_libdir_flag_spec='-L$libdir'
9292             hardcode_minus_L=yes
9293         ;;
9294       esac
9295       ;;
9296
9297     bsdi[45]*)
9298       export_dynamic_flag_spec=-rdynamic
9299       ;;
9300
9301     cygwin* | mingw* | pw32* | cegcc*)
9302       # When not using gcc, we currently assume that we are using
9303       # Microsoft Visual C++.
9304       # hardcode_libdir_flag_spec is actually meaningless, as there is
9305       # no search path for DLLs.
9306       hardcode_libdir_flag_spec=' '
9307       allow_undefined_flag=unsupported
9308       # Tell ltmain to make .lib files, not .a files.
9309       libext=lib
9310       # Tell ltmain to make .dll files, not .so files.
9311       shrext_cmds=".dll"
9312       # FIXME: Setting linknames here is a bad hack.
9313       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9314       # The linker will automatically build a .lib file if we build a DLL.
9315       old_archive_from_new_cmds='true'
9316       # FIXME: Should let the user specify the lib program.
9317       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9318       fix_srcfile_path='`cygpath -w "$srcfile"`'
9319       enable_shared_with_static_runtimes=yes
9320       ;;
9321
9322     darwin* | rhapsody*)
9323
9324
9325   archive_cmds_need_lc=no
9326   hardcode_direct=no
9327   hardcode_automatic=yes
9328   hardcode_shlibpath_var=unsupported
9329   whole_archive_flag_spec=''
9330   link_all_deplibs=yes
9331   allow_undefined_flag="$_lt_dar_allow_undefined"
9332   case $cc_basename in
9333      ifort*) _lt_dar_can_shared=yes ;;
9334      *) _lt_dar_can_shared=$GCC ;;
9335   esac
9336   if test "$_lt_dar_can_shared" = "yes"; then
9337     output_verbose_link_cmd=echo
9338     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9339     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9340     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}"
9341     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}"
9342
9343   else
9344   ld_shlibs=no
9345   fi
9346
9347       ;;
9348
9349     dgux*)
9350       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351       hardcode_libdir_flag_spec='-L$libdir'
9352       hardcode_shlibpath_var=no
9353       ;;
9354
9355     freebsd1*)
9356       ld_shlibs=no
9357       ;;
9358
9359     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9360     # support.  Future versions do this automatically, but an explicit c++rt0.o
9361     # does not break anything, and helps significantly (at the cost of a little
9362     # extra space).
9363     freebsd2.2*)
9364       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9365       hardcode_libdir_flag_spec='-R$libdir'
9366       hardcode_direct=yes
9367       hardcode_shlibpath_var=no
9368       ;;
9369
9370     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9371     freebsd2*)
9372       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9373       hardcode_direct=yes
9374       hardcode_minus_L=yes
9375       hardcode_shlibpath_var=no
9376       ;;
9377
9378     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9379     freebsd* | dragonfly*)
9380       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9381       hardcode_libdir_flag_spec='-R$libdir'
9382       hardcode_direct=yes
9383       hardcode_shlibpath_var=no
9384       ;;
9385
9386     hpux9*)
9387       if test "$GCC" = yes; then
9388         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'
9389       else
9390         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'
9391       fi
9392       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9393       hardcode_libdir_separator=:
9394       hardcode_direct=yes
9395
9396       # hardcode_minus_L: Not really in the search PATH,
9397       # but as the default location of the library.
9398       hardcode_minus_L=yes
9399       export_dynamic_flag_spec='${wl}-E'
9400       ;;
9401
9402     hpux10*)
9403       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9404         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9405       else
9406         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9407       fi
9408       if test "$with_gnu_ld" = no; then
9409         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9410         hardcode_libdir_flag_spec_ld='+b $libdir'
9411         hardcode_libdir_separator=:
9412         hardcode_direct=yes
9413         hardcode_direct_absolute=yes
9414         export_dynamic_flag_spec='${wl}-E'
9415         # hardcode_minus_L: Not really in the search PATH,
9416         # but as the default location of the library.
9417         hardcode_minus_L=yes
9418       fi
9419       ;;
9420
9421     hpux11*)
9422       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9423         case $host_cpu in
9424         hppa*64*)
9425           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9426           ;;
9427         ia64*)
9428           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9429           ;;
9430         *)
9431           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9432           ;;
9433         esac
9434       else
9435         case $host_cpu in
9436         hppa*64*)
9437           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9438           ;;
9439         ia64*)
9440           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9441           ;;
9442         *)
9443           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9444           ;;
9445         esac
9446       fi
9447       if test "$with_gnu_ld" = no; then
9448         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9449         hardcode_libdir_separator=:
9450
9451         case $host_cpu in
9452         hppa*64*|ia64*)
9453           hardcode_direct=no
9454           hardcode_shlibpath_var=no
9455           ;;
9456         *)
9457           hardcode_direct=yes
9458           hardcode_direct_absolute=yes
9459           export_dynamic_flag_spec='${wl}-E'
9460
9461           # hardcode_minus_L: Not really in the search PATH,
9462           # but as the default location of the library.
9463           hardcode_minus_L=yes
9464           ;;
9465         esac
9466       fi
9467       ;;
9468
9469     irix5* | irix6* | nonstopux*)
9470       if test "$GCC" = yes; then
9471         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'
9472         # Try to use the -exported_symbol ld option, if it does not
9473         # work, assume that -exports_file does not work either and
9474         # implicitly export all symbols.
9475         save_LDFLAGS="$LDFLAGS"
9476         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9477         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h.  */
9479 int foo(void) {}
9480 _ACEOF
9481 if ac_fn_c_try_link "$LINENO"; then :
9482   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'
9483
9484 fi
9485 rm -f core conftest.err conftest.$ac_objext \
9486     conftest$ac_exeext conftest.$ac_ext
9487         LDFLAGS="$save_LDFLAGS"
9488       else
9489         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'
9490         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'
9491       fi
9492       archive_cmds_need_lc='no'
9493       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9494       hardcode_libdir_separator=:
9495       inherit_rpath=yes
9496       link_all_deplibs=yes
9497       ;;
9498
9499     netbsd* | netbsdelf*-gnu)
9500       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9501         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9502       else
9503         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9504       fi
9505       hardcode_libdir_flag_spec='-R$libdir'
9506       hardcode_direct=yes
9507       hardcode_shlibpath_var=no
9508       ;;
9509
9510     newsos6)
9511       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9512       hardcode_direct=yes
9513       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9514       hardcode_libdir_separator=:
9515       hardcode_shlibpath_var=no
9516       ;;
9517
9518     *nto* | *qnx*)
9519       ;;
9520
9521     openbsd*)
9522       if test -f /usr/libexec/ld.so; then
9523         hardcode_direct=yes
9524         hardcode_shlibpath_var=no
9525         hardcode_direct_absolute=yes
9526         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9527           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9528           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9529           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9530           export_dynamic_flag_spec='${wl}-E'
9531         else
9532           case $host_os in
9533            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9534              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9535              hardcode_libdir_flag_spec='-R$libdir'
9536              ;;
9537            *)
9538              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9539              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9540              ;;
9541           esac
9542         fi
9543       else
9544         ld_shlibs=no
9545       fi
9546       ;;
9547
9548     os2*)
9549       hardcode_libdir_flag_spec='-L$libdir'
9550       hardcode_minus_L=yes
9551       allow_undefined_flag=unsupported
9552       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'
9553       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9554       ;;
9555
9556     osf3*)
9557       if test "$GCC" = yes; then
9558         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9559         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'
9560       else
9561         allow_undefined_flag=' -expect_unresolved \*'
9562         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'
9563       fi
9564       archive_cmds_need_lc='no'
9565       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9566       hardcode_libdir_separator=:
9567       ;;
9568
9569     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9570       if test "$GCC" = yes; then
9571         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9572         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'
9573         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9574       else
9575         allow_undefined_flag=' -expect_unresolved \*'
9576         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'
9577         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~
9578         $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'
9579
9580         # Both c and cxx compiler support -rpath directly
9581         hardcode_libdir_flag_spec='-rpath $libdir'
9582       fi
9583       archive_cmds_need_lc='no'
9584       hardcode_libdir_separator=:
9585       ;;
9586
9587     solaris*)
9588       no_undefined_flag=' -z defs'
9589       if test "$GCC" = yes; then
9590         wlarc='${wl}'
9591         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9592         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9593           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9594       else
9595         case `$CC -V 2>&1` in
9596         *"Compilers 5.0"*)
9597           wlarc=''
9598           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9599           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9600           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9601           ;;
9602         *)
9603           wlarc='${wl}'
9604           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9605           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9606           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9607           ;;
9608         esac
9609       fi
9610       hardcode_libdir_flag_spec='-R$libdir'
9611       hardcode_shlibpath_var=no
9612       case $host_os in
9613       solaris2.[0-5] | solaris2.[0-5].*) ;;
9614       *)
9615         # The compiler driver will combine and reorder linker options,
9616         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9617         # but is careful enough not to reorder.
9618         # Supported since Solaris 2.6 (maybe 2.5.1?)
9619         if test "$GCC" = yes; then
9620           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9621         else
9622           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9623         fi
9624         ;;
9625       esac
9626       link_all_deplibs=yes
9627       ;;
9628
9629     sunos4*)
9630       if test "x$host_vendor" = xsequent; then
9631         # Use $CC to link under sequent, because it throws in some extra .o
9632         # files that make .init and .fini sections work.
9633         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9634       else
9635         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9636       fi
9637       hardcode_libdir_flag_spec='-L$libdir'
9638       hardcode_direct=yes
9639       hardcode_minus_L=yes
9640       hardcode_shlibpath_var=no
9641       ;;
9642
9643     sysv4)
9644       case $host_vendor in
9645         sni)
9646           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9647           hardcode_direct=yes # is this really true???
9648         ;;
9649         siemens)
9650           ## LD is ld it makes a PLAMLIB
9651           ## CC just makes a GrossModule.
9652           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9653           reload_cmds='$CC -r -o $output$reload_objs'
9654           hardcode_direct=no
9655         ;;
9656         motorola)
9657           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9659         ;;
9660       esac
9661       runpath_var='LD_RUN_PATH'
9662       hardcode_shlibpath_var=no
9663       ;;
9664
9665     sysv4.3*)
9666       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667       hardcode_shlibpath_var=no
9668       export_dynamic_flag_spec='-Bexport'
9669       ;;
9670
9671     sysv4*MP*)
9672       if test -d /usr/nec; then
9673         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674         hardcode_shlibpath_var=no
9675         runpath_var=LD_RUN_PATH
9676         hardcode_runpath_var=yes
9677         ld_shlibs=yes
9678       fi
9679       ;;
9680
9681     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9682       no_undefined_flag='${wl}-z,text'
9683       archive_cmds_need_lc=no
9684       hardcode_shlibpath_var=no
9685       runpath_var='LD_RUN_PATH'
9686
9687       if test "$GCC" = yes; then
9688         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9689         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9690       else
9691         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9693       fi
9694       ;;
9695
9696     sysv5* | sco3.2v5* | sco5v6*)
9697       # Note: We can NOT use -z defs as we might desire, because we do not
9698       # link with -lc, and that would cause any symbols used from libc to
9699       # always be unresolved, which means just about no library would
9700       # ever link correctly.  If we're not using GNU ld we use -z text
9701       # though, which does catch some bad symbols but isn't as heavy-handed
9702       # as -z defs.
9703       no_undefined_flag='${wl}-z,text'
9704       allow_undefined_flag='${wl}-z,nodefs'
9705       archive_cmds_need_lc=no
9706       hardcode_shlibpath_var=no
9707       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9708       hardcode_libdir_separator=':'
9709       link_all_deplibs=yes
9710       export_dynamic_flag_spec='${wl}-Bexport'
9711       runpath_var='LD_RUN_PATH'
9712
9713       if test "$GCC" = yes; then
9714         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9715         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716       else
9717         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719       fi
9720       ;;
9721
9722     uts4*)
9723       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724       hardcode_libdir_flag_spec='-L$libdir'
9725       hardcode_shlibpath_var=no
9726       ;;
9727
9728     *)
9729       ld_shlibs=no
9730       ;;
9731     esac
9732
9733     if test x$host_vendor = xsni; then
9734       case $host in
9735       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9736         export_dynamic_flag_spec='${wl}-Blargedynsym'
9737         ;;
9738       esac
9739     fi
9740   fi
9741
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9743 $as_echo "$ld_shlibs" >&6; }
9744 test "$ld_shlibs" = no && can_build_shared=no
9745
9746 with_gnu_ld=$with_gnu_ld
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762 #
9763 # Do we need to explicitly link libc?
9764 #
9765 case "x$archive_cmds_need_lc" in
9766 x|xyes)
9767   # Assume -lc should be added
9768   archive_cmds_need_lc=yes
9769
9770   if test "$enable_shared" = yes && test "$GCC" = yes; then
9771     case $archive_cmds in
9772     *'~'*)
9773       # FIXME: we may have to deal with multi-command sequences.
9774       ;;
9775     '$CC '*)
9776       # Test whether the compiler implicitly links with -lc since on some
9777       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9778       # to ld, don't add -lc before -lgcc.
9779       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9780 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9781       $RM conftest*
9782       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9783
9784       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9785   (eval $ac_compile) 2>&5
9786   ac_status=$?
9787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9788   test $ac_status = 0; } 2>conftest.err; then
9789         soname=conftest
9790         lib=conftest
9791         libobjs=conftest.$ac_objext
9792         deplibs=
9793         wl=$lt_prog_compiler_wl
9794         pic_flag=$lt_prog_compiler_pic
9795         compiler_flags=-v
9796         linker_flags=-v
9797         verstring=
9798         output_objdir=.
9799         libname=conftest
9800         lt_save_allow_undefined_flag=$allow_undefined_flag
9801         allow_undefined_flag=
9802         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9803   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9804   ac_status=$?
9805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9806   test $ac_status = 0; }
9807         then
9808           archive_cmds_need_lc=no
9809         else
9810           archive_cmds_need_lc=yes
9811         fi
9812         allow_undefined_flag=$lt_save_allow_undefined_flag
9813       else
9814         cat conftest.err 1>&5
9815       fi
9816       $RM conftest*
9817       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9818 $as_echo "$archive_cmds_need_lc" >&6; }
9819       ;;
9820     esac
9821   fi
9822   ;;
9823 esac
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9982 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9983
9984 if test "$GCC" = yes; then
9985   case $host_os in
9986     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9987     *) lt_awk_arg="/^libraries:/" ;;
9988   esac
9989   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9990   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9991     # if the path contains ";" then we assume it to be the separator
9992     # otherwise default to the standard path separator (i.e. ":") - it is
9993     # assumed that no part of a normal pathname contains ";" but that should
9994     # okay in the real world where ";" in dirpaths is itself problematic.
9995     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9996   else
9997     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9998   fi
9999   # Ok, now we have the path, separated by spaces, we can step through it
10000   # and add multilib dir if necessary.
10001   lt_tmp_lt_search_path_spec=
10002   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10003   for lt_sys_path in $lt_search_path_spec; do
10004     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10005       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10006     else
10007       test -d "$lt_sys_path" && \
10008         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10009     fi
10010   done
10011   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10012 BEGIN {RS=" "; FS="/|\n";} {
10013   lt_foo="";
10014   lt_count=0;
10015   for (lt_i = NF; lt_i > 0; lt_i--) {
10016     if ($lt_i != "" && $lt_i != ".") {
10017       if ($lt_i == "..") {
10018         lt_count++;
10019       } else {
10020         if (lt_count == 0) {
10021           lt_foo="/" $lt_i lt_foo;
10022         } else {
10023           lt_count--;
10024         }
10025       }
10026     }
10027   }
10028   if (lt_foo != "") { lt_freq[lt_foo]++; }
10029   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10030 }'`
10031   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10032 else
10033   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10034 fi
10035 library_names_spec=
10036 libname_spec='lib$name'
10037 soname_spec=
10038 shrext_cmds=".so"
10039 postinstall_cmds=
10040 postuninstall_cmds=
10041 finish_cmds=
10042 finish_eval=
10043 shlibpath_var=
10044 shlibpath_overrides_runpath=unknown
10045 version_type=none
10046 dynamic_linker="$host_os ld.so"
10047 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10048 need_lib_prefix=unknown
10049 hardcode_into_libs=no
10050
10051 # when you set need_version to no, make sure it does not cause -set_version
10052 # flags to be left without arguments
10053 need_version=unknown
10054
10055 case $host_os in
10056 aix3*)
10057   version_type=linux
10058   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10059   shlibpath_var=LIBPATH
10060
10061   # AIX 3 has no versioning support, so we append a major version to the name.
10062   soname_spec='${libname}${release}${shared_ext}$major'
10063   ;;
10064
10065 aix[4-9]*)
10066   version_type=linux
10067   need_lib_prefix=no
10068   need_version=no
10069   hardcode_into_libs=yes
10070   if test "$host_cpu" = ia64; then
10071     # AIX 5 supports IA64
10072     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10073     shlibpath_var=LD_LIBRARY_PATH
10074   else
10075     # With GCC up to 2.95.x, collect2 would create an import file
10076     # for dependence libraries.  The import file would start with
10077     # the line `#! .'.  This would cause the generated library to
10078     # depend on `.', always an invalid library.  This was fixed in
10079     # development snapshots of GCC prior to 3.0.
10080     case $host_os in
10081       aix4 | aix4.[01] | aix4.[01].*)
10082       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10083            echo ' yes '
10084            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10085         :
10086       else
10087         can_build_shared=no
10088       fi
10089       ;;
10090     esac
10091     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10092     # soname into executable. Probably we can add versioning support to
10093     # collect2, so additional links can be useful in future.
10094     if test "$aix_use_runtimelinking" = yes; then
10095       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10096       # instead of lib<name>.a to let people know that these are not
10097       # typical AIX shared libraries.
10098       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099     else
10100       # We preserve .a as extension for shared libraries through AIX4.2
10101       # and later when we are not doing run time linking.
10102       library_names_spec='${libname}${release}.a $libname.a'
10103       soname_spec='${libname}${release}${shared_ext}$major'
10104     fi
10105     shlibpath_var=LIBPATH
10106   fi
10107   ;;
10108
10109 amigaos*)
10110   case $host_cpu in
10111   powerpc)
10112     # Since July 2007 AmigaOS4 officially supports .so libraries.
10113     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10115     ;;
10116   m68k)
10117     library_names_spec='$libname.ixlibrary $libname.a'
10118     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10119     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'
10120     ;;
10121   esac
10122   ;;
10123
10124 beos*)
10125   library_names_spec='${libname}${shared_ext}'
10126   dynamic_linker="$host_os ld.so"
10127   shlibpath_var=LIBRARY_PATH
10128   ;;
10129
10130 bsdi[45]*)
10131   version_type=linux
10132   need_version=no
10133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134   soname_spec='${libname}${release}${shared_ext}$major'
10135   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10136   shlibpath_var=LD_LIBRARY_PATH
10137   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10138   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10139   # the default ld.so.conf also contains /usr/contrib/lib and
10140   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10141   # libtool to hard-code these into programs
10142   ;;
10143
10144 cygwin* | mingw* | pw32* | cegcc*)
10145   version_type=windows
10146   shrext_cmds=".dll"
10147   need_version=no
10148   need_lib_prefix=no
10149
10150   case $GCC,$host_os in
10151   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10152     library_names_spec='$libname.dll.a'
10153     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10154     postinstall_cmds='base_file=`basename \${file}`~
10155       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10156       dldir=$destdir/`dirname \$dlpath`~
10157       test -d \$dldir || mkdir -p \$dldir~
10158       $install_prog $dir/$dlname \$dldir/$dlname~
10159       chmod a+x \$dldir/$dlname~
10160       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10161         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10162       fi'
10163     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10164       dlpath=$dir/\$dldll~
10165        $RM \$dlpath'
10166     shlibpath_overrides_runpath=yes
10167
10168     case $host_os in
10169     cygwin*)
10170       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10171       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10172       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10173       ;;
10174     mingw* | cegcc*)
10175       # MinGW DLLs use traditional 'lib' prefix
10176       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10177       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10178       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10179         # It is most probably a Windows format PATH printed by
10180         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10181         # path with ; separators, and with drive letters. We can handle the
10182         # drive letters (cygwin fileutils understands them), so leave them,
10183         # especially as we might pass files found there to a mingw objdump,
10184         # which wouldn't understand a cygwinified path. Ahh.
10185         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10186       else
10187         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10188       fi
10189       ;;
10190     pw32*)
10191       # pw32 DLLs use 'pw' prefix rather than 'lib'
10192       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10193       ;;
10194     esac
10195     ;;
10196
10197   *)
10198     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10199     ;;
10200   esac
10201   dynamic_linker='Win32 ld.exe'
10202   # FIXME: first we should search . and the directory the executable is in
10203   shlibpath_var=PATH
10204   ;;
10205
10206 darwin* | rhapsody*)
10207   dynamic_linker="$host_os dyld"
10208   version_type=darwin
10209   need_lib_prefix=no
10210   need_version=no
10211   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10212   soname_spec='${libname}${release}${major}$shared_ext'
10213   shlibpath_overrides_runpath=yes
10214   shlibpath_var=DYLD_LIBRARY_PATH
10215   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10216
10217   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10218   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10219   ;;
10220
10221 dgux*)
10222   version_type=linux
10223   need_lib_prefix=no
10224   need_version=no
10225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10226   soname_spec='${libname}${release}${shared_ext}$major'
10227   shlibpath_var=LD_LIBRARY_PATH
10228   ;;
10229
10230 freebsd1*)
10231   dynamic_linker=no
10232   ;;
10233
10234 freebsd* | dragonfly*)
10235   # DragonFly does not have aout.  When/if they implement a new
10236   # versioning mechanism, adjust this.
10237   if test -x /usr/bin/objformat; then
10238     objformat=`/usr/bin/objformat`
10239   else
10240     case $host_os in
10241     freebsd[123]*) objformat=aout ;;
10242     *) objformat=elf ;;
10243     esac
10244   fi
10245   version_type=freebsd-$objformat
10246   case $version_type in
10247     freebsd-elf*)
10248       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10249       need_version=no
10250       need_lib_prefix=no
10251       ;;
10252     freebsd-*)
10253       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10254       need_version=yes
10255       ;;
10256   esac
10257   shlibpath_var=LD_LIBRARY_PATH
10258   case $host_os in
10259   freebsd2*)
10260     shlibpath_overrides_runpath=yes
10261     ;;
10262   freebsd3.[01]* | freebsdelf3.[01]*)
10263     shlibpath_overrides_runpath=yes
10264     hardcode_into_libs=yes
10265     ;;
10266   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10267   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10268     shlibpath_overrides_runpath=no
10269     hardcode_into_libs=yes
10270     ;;
10271   *) # from 4.6 on, and DragonFly
10272     shlibpath_overrides_runpath=yes
10273     hardcode_into_libs=yes
10274     ;;
10275   esac
10276   ;;
10277
10278 gnu*)
10279   version_type=linux
10280   need_lib_prefix=no
10281   need_version=no
10282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10283   soname_spec='${libname}${release}${shared_ext}$major'
10284   shlibpath_var=LD_LIBRARY_PATH
10285   hardcode_into_libs=yes
10286   ;;
10287
10288 hpux9* | hpux10* | hpux11*)
10289   # Give a soname corresponding to the major version so that dld.sl refuses to
10290   # link against other versions.
10291   version_type=sunos
10292   need_lib_prefix=no
10293   need_version=no
10294   case $host_cpu in
10295   ia64*)
10296     shrext_cmds='.so'
10297     hardcode_into_libs=yes
10298     dynamic_linker="$host_os dld.so"
10299     shlibpath_var=LD_LIBRARY_PATH
10300     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10301     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302     soname_spec='${libname}${release}${shared_ext}$major'
10303     if test "X$HPUX_IA64_MODE" = X32; then
10304       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10305     else
10306       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10307     fi
10308     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10309     ;;
10310   hppa*64*)
10311     shrext_cmds='.sl'
10312     hardcode_into_libs=yes
10313     dynamic_linker="$host_os dld.sl"
10314     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10315     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317     soname_spec='${libname}${release}${shared_ext}$major'
10318     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10319     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10320     ;;
10321   *)
10322     shrext_cmds='.sl'
10323     dynamic_linker="$host_os dld.sl"
10324     shlibpath_var=SHLIB_PATH
10325     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10326     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327     soname_spec='${libname}${release}${shared_ext}$major'
10328     ;;
10329   esac
10330   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10331   postinstall_cmds='chmod 555 $lib'
10332   ;;
10333
10334 interix[3-9]*)
10335   version_type=linux
10336   need_lib_prefix=no
10337   need_version=no
10338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10339   soname_spec='${libname}${release}${shared_ext}$major'
10340   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10341   shlibpath_var=LD_LIBRARY_PATH
10342   shlibpath_overrides_runpath=no
10343   hardcode_into_libs=yes
10344   ;;
10345
10346 irix5* | irix6* | nonstopux*)
10347   case $host_os in
10348     nonstopux*) version_type=nonstopux ;;
10349     *)
10350         if test "$lt_cv_prog_gnu_ld" = yes; then
10351                 version_type=linux
10352         else
10353                 version_type=irix
10354         fi ;;
10355   esac
10356   need_lib_prefix=no
10357   need_version=no
10358   soname_spec='${libname}${release}${shared_ext}$major'
10359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10360   case $host_os in
10361   irix5* | nonstopux*)
10362     libsuff= shlibsuff=
10363     ;;
10364   *)
10365     case $LD in # libtool.m4 will add one of these switches to LD
10366     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10367       libsuff= shlibsuff= libmagic=32-bit;;
10368     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10369       libsuff=32 shlibsuff=N32 libmagic=N32;;
10370     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10371       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10372     *) libsuff= shlibsuff= libmagic=never-match;;
10373     esac
10374     ;;
10375   esac
10376   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10377   shlibpath_overrides_runpath=no
10378   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10379   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10380   hardcode_into_libs=yes
10381   ;;
10382
10383 # No shared lib support for Linux oldld, aout, or coff.
10384 linux*oldld* | linux*aout* | linux*coff*)
10385   dynamic_linker=no
10386   ;;
10387
10388 # This must be Linux ELF.
10389 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10390   version_type=linux
10391   need_lib_prefix=no
10392   need_version=no
10393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394   soname_spec='${libname}${release}${shared_ext}$major'
10395   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10396   shlibpath_var=LD_LIBRARY_PATH
10397   shlibpath_overrides_runpath=no
10398   # Some binutils ld are patched to set DT_RUNPATH
10399   save_LDFLAGS=$LDFLAGS
10400   save_libdir=$libdir
10401   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10402        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h.  */
10405
10406 int
10407 main ()
10408 {
10409
10410   ;
10411   return 0;
10412 }
10413 _ACEOF
10414 if ac_fn_c_try_link "$LINENO"; then :
10415   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10416   shlibpath_overrides_runpath=yes
10417 fi
10418 fi
10419 rm -f core conftest.err conftest.$ac_objext \
10420     conftest$ac_exeext conftest.$ac_ext
10421   LDFLAGS=$save_LDFLAGS
10422   libdir=$save_libdir
10423
10424   # This implies no fast_install, which is unacceptable.
10425   # Some rework will be needed to allow for fast_install
10426   # before this can be enabled.
10427   hardcode_into_libs=yes
10428
10429   # Append ld.so.conf contents to the search path
10430   if test -f /etc/ld.so.conf; then
10431     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' ' '`
10432     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10433   fi
10434
10435   # We used to test for /lib/ld.so.1 and disable shared libraries on
10436   # powerpc, because MkLinux only supported shared libraries with the
10437   # GNU dynamic linker.  Since this was broken with cross compilers,
10438   # most powerpc-linux boxes support dynamic linking these days and
10439   # people can always --disable-shared, the test was removed, and we
10440   # assume the GNU/Linux dynamic linker is in use.
10441   dynamic_linker='GNU/Linux ld.so'
10442   ;;
10443
10444 netbsdelf*-gnu)
10445   version_type=linux
10446   need_lib_prefix=no
10447   need_version=no
10448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10449   soname_spec='${libname}${release}${shared_ext}$major'
10450   shlibpath_var=LD_LIBRARY_PATH
10451   shlibpath_overrides_runpath=no
10452   hardcode_into_libs=yes
10453   dynamic_linker='NetBSD ld.elf_so'
10454   ;;
10455
10456 netbsd*)
10457   version_type=sunos
10458   need_lib_prefix=no
10459   need_version=no
10460   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10461     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10462     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10463     dynamic_linker='NetBSD (a.out) ld.so'
10464   else
10465     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10466     soname_spec='${libname}${release}${shared_ext}$major'
10467     dynamic_linker='NetBSD ld.elf_so'
10468   fi
10469   shlibpath_var=LD_LIBRARY_PATH
10470   shlibpath_overrides_runpath=yes
10471   hardcode_into_libs=yes
10472   ;;
10473
10474 newsos6)
10475   version_type=linux
10476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10477   shlibpath_var=LD_LIBRARY_PATH
10478   shlibpath_overrides_runpath=yes
10479   ;;
10480
10481 *nto* | *qnx*)
10482   version_type=qnx
10483   need_lib_prefix=no
10484   need_version=no
10485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486   soname_spec='${libname}${release}${shared_ext}$major'
10487   shlibpath_var=LD_LIBRARY_PATH
10488   shlibpath_overrides_runpath=no
10489   hardcode_into_libs=yes
10490   dynamic_linker='ldqnx.so'
10491   ;;
10492
10493 openbsd*)
10494   version_type=sunos
10495   sys_lib_dlsearch_path_spec="/usr/lib"
10496   need_lib_prefix=no
10497   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10498   case $host_os in
10499     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10500     *)                          need_version=no  ;;
10501   esac
10502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10503   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10504   shlibpath_var=LD_LIBRARY_PATH
10505   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10506     case $host_os in
10507       openbsd2.[89] | openbsd2.[89].*)
10508         shlibpath_overrides_runpath=no
10509         ;;
10510       *)
10511         shlibpath_overrides_runpath=yes
10512         ;;
10513       esac
10514   else
10515     shlibpath_overrides_runpath=yes
10516   fi
10517   ;;
10518
10519 os2*)
10520   libname_spec='$name'
10521   shrext_cmds=".dll"
10522   need_lib_prefix=no
10523   library_names_spec='$libname${shared_ext} $libname.a'
10524   dynamic_linker='OS/2 ld.exe'
10525   shlibpath_var=LIBPATH
10526   ;;
10527
10528 osf3* | osf4* | osf5*)
10529   version_type=osf
10530   need_lib_prefix=no
10531   need_version=no
10532   soname_spec='${libname}${release}${shared_ext}$major'
10533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534   shlibpath_var=LD_LIBRARY_PATH
10535   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10536   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10537   ;;
10538
10539 rdos*)
10540   dynamic_linker=no
10541   ;;
10542
10543 solaris*)
10544   version_type=linux
10545   need_lib_prefix=no
10546   need_version=no
10547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548   soname_spec='${libname}${release}${shared_ext}$major'
10549   shlibpath_var=LD_LIBRARY_PATH
10550   shlibpath_overrides_runpath=yes
10551   hardcode_into_libs=yes
10552   # ldd complains unless libraries are executable
10553   postinstall_cmds='chmod +x $lib'
10554   ;;
10555
10556 sunos4*)
10557   version_type=sunos
10558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10559   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10560   shlibpath_var=LD_LIBRARY_PATH
10561   shlibpath_overrides_runpath=yes
10562   if test "$with_gnu_ld" = yes; then
10563     need_lib_prefix=no
10564   fi
10565   need_version=yes
10566   ;;
10567
10568 sysv4 | sysv4.3*)
10569   version_type=linux
10570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571   soname_spec='${libname}${release}${shared_ext}$major'
10572   shlibpath_var=LD_LIBRARY_PATH
10573   case $host_vendor in
10574     sni)
10575       shlibpath_overrides_runpath=no
10576       need_lib_prefix=no
10577       runpath_var=LD_RUN_PATH
10578       ;;
10579     siemens)
10580       need_lib_prefix=no
10581       ;;
10582     motorola)
10583       need_lib_prefix=no
10584       need_version=no
10585       shlibpath_overrides_runpath=no
10586       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10587       ;;
10588   esac
10589   ;;
10590
10591 sysv4*MP*)
10592   if test -d /usr/nec ;then
10593     version_type=linux
10594     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10595     soname_spec='$libname${shared_ext}.$major'
10596     shlibpath_var=LD_LIBRARY_PATH
10597   fi
10598   ;;
10599
10600 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10601   version_type=freebsd-elf
10602   need_lib_prefix=no
10603   need_version=no
10604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10605   soname_spec='${libname}${release}${shared_ext}$major'
10606   shlibpath_var=LD_LIBRARY_PATH
10607   shlibpath_overrides_runpath=yes
10608   hardcode_into_libs=yes
10609   if test "$with_gnu_ld" = yes; then
10610     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10611   else
10612     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10613     case $host_os in
10614       sco3.2v5*)
10615         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10616         ;;
10617     esac
10618   fi
10619   sys_lib_dlsearch_path_spec='/usr/lib'
10620   ;;
10621
10622 tpf*)
10623   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10624   version_type=linux
10625   need_lib_prefix=no
10626   need_version=no
10627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628   shlibpath_var=LD_LIBRARY_PATH
10629   shlibpath_overrides_runpath=no
10630   hardcode_into_libs=yes
10631   ;;
10632
10633 uts4*)
10634   version_type=linux
10635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636   soname_spec='${libname}${release}${shared_ext}$major'
10637   shlibpath_var=LD_LIBRARY_PATH
10638   ;;
10639
10640 *)
10641   dynamic_linker=no
10642   ;;
10643 esac
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10645 $as_echo "$dynamic_linker" >&6; }
10646 test "$dynamic_linker" = no && can_build_shared=no
10647
10648 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10649 if test "$GCC" = yes; then
10650   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10651 fi
10652
10653 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10654   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10655 fi
10656 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10657   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10658 fi
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10747 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10748 hardcode_action=
10749 if test -n "$hardcode_libdir_flag_spec" ||
10750    test -n "$runpath_var" ||
10751    test "X$hardcode_automatic" = "Xyes" ; then
10752
10753   # We can hardcode non-existent directories.
10754   if test "$hardcode_direct" != no &&
10755      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10756      # have to relink, otherwise we might link with an installed library
10757      # when we should be linking with a yet-to-be-installed one
10758      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10759      test "$hardcode_minus_L" != no; then
10760     # Linking always hardcodes the temporary library directory.
10761     hardcode_action=relink
10762   else
10763     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10764     hardcode_action=immediate
10765   fi
10766 else
10767   # We cannot hardcode anything, or else we can only hardcode existing
10768   # directories.
10769   hardcode_action=unsupported
10770 fi
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10772 $as_echo "$hardcode_action" >&6; }
10773
10774 if test "$hardcode_action" = relink ||
10775    test "$inherit_rpath" = yes; then
10776   # Fast installation is not supported
10777   enable_fast_install=no
10778 elif test "$shlibpath_overrides_runpath" = yes ||
10779      test "$enable_shared" = no; then
10780   # Fast installation is not necessary
10781   enable_fast_install=needless
10782 fi
10783
10784
10785
10786
10787
10788
10789   if test "x$enable_dlopen" != xyes; then
10790   enable_dlopen=unknown
10791   enable_dlopen_self=unknown
10792   enable_dlopen_self_static=unknown
10793 else
10794   lt_cv_dlopen=no
10795   lt_cv_dlopen_libs=
10796
10797   case $host_os in
10798   beos*)
10799     lt_cv_dlopen="load_add_on"
10800     lt_cv_dlopen_libs=
10801     lt_cv_dlopen_self=yes
10802     ;;
10803
10804   mingw* | pw32* | cegcc*)
10805     lt_cv_dlopen="LoadLibrary"
10806     lt_cv_dlopen_libs=
10807     ;;
10808
10809   cygwin*)
10810     lt_cv_dlopen="dlopen"
10811     lt_cv_dlopen_libs=
10812     ;;
10813
10814   darwin*)
10815   # if libdl is installed we need to link against it
10816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10817 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10818 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10819   $as_echo_n "(cached) " >&6
10820 else
10821   ac_check_lib_save_LIBS=$LIBS
10822 LIBS="-ldl  $LIBS"
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h.  */
10825
10826 /* Override any GCC internal prototype to avoid an error.
10827    Use char because int might match the return type of a GCC
10828    builtin and then its argument prototype would still apply.  */
10829 #ifdef __cplusplus
10830 extern "C"
10831 #endif
10832 char dlopen ();
10833 int
10834 main ()
10835 {
10836 return dlopen ();
10837   ;
10838   return 0;
10839 }
10840 _ACEOF
10841 if ac_fn_c_try_link "$LINENO"; then :
10842   ac_cv_lib_dl_dlopen=yes
10843 else
10844   ac_cv_lib_dl_dlopen=no
10845 fi
10846 rm -f core conftest.err conftest.$ac_objext \
10847     conftest$ac_exeext conftest.$ac_ext
10848 LIBS=$ac_check_lib_save_LIBS
10849 fi
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10851 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10852 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10853   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10854 else
10855
10856     lt_cv_dlopen="dyld"
10857     lt_cv_dlopen_libs=
10858     lt_cv_dlopen_self=yes
10859
10860 fi
10861
10862     ;;
10863
10864   *)
10865     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10866 if test "x$ac_cv_func_shl_load" = x""yes; then :
10867   lt_cv_dlopen="shl_load"
10868 else
10869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10870 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10871 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10872   $as_echo_n "(cached) " >&6
10873 else
10874   ac_check_lib_save_LIBS=$LIBS
10875 LIBS="-ldld  $LIBS"
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h.  */
10878
10879 /* Override any GCC internal prototype to avoid an error.
10880    Use char because int might match the return type of a GCC
10881    builtin and then its argument prototype would still apply.  */
10882 #ifdef __cplusplus
10883 extern "C"
10884 #endif
10885 char shl_load ();
10886 int
10887 main ()
10888 {
10889 return shl_load ();
10890   ;
10891   return 0;
10892 }
10893 _ACEOF
10894 if ac_fn_c_try_link "$LINENO"; then :
10895   ac_cv_lib_dld_shl_load=yes
10896 else
10897   ac_cv_lib_dld_shl_load=no
10898 fi
10899 rm -f core conftest.err conftest.$ac_objext \
10900     conftest$ac_exeext conftest.$ac_ext
10901 LIBS=$ac_check_lib_save_LIBS
10902 fi
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10904 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10905 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10906   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10907 else
10908   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10909 if test "x$ac_cv_func_dlopen" = x""yes; then :
10910   lt_cv_dlopen="dlopen"
10911 else
10912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10913 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10914 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10915   $as_echo_n "(cached) " >&6
10916 else
10917   ac_check_lib_save_LIBS=$LIBS
10918 LIBS="-ldl  $LIBS"
10919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10920 /* end confdefs.h.  */
10921
10922 /* Override any GCC internal prototype to avoid an error.
10923    Use char because int might match the return type of a GCC
10924    builtin and then its argument prototype would still apply.  */
10925 #ifdef __cplusplus
10926 extern "C"
10927 #endif
10928 char dlopen ();
10929 int
10930 main ()
10931 {
10932 return dlopen ();
10933   ;
10934   return 0;
10935 }
10936 _ACEOF
10937 if ac_fn_c_try_link "$LINENO"; then :
10938   ac_cv_lib_dl_dlopen=yes
10939 else
10940   ac_cv_lib_dl_dlopen=no
10941 fi
10942 rm -f core conftest.err conftest.$ac_objext \
10943     conftest$ac_exeext conftest.$ac_ext
10944 LIBS=$ac_check_lib_save_LIBS
10945 fi
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10947 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10948 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10949   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10950 else
10951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10952 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10953 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10954   $as_echo_n "(cached) " >&6
10955 else
10956   ac_check_lib_save_LIBS=$LIBS
10957 LIBS="-lsvld  $LIBS"
10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h.  */
10960
10961 /* Override any GCC internal prototype to avoid an error.
10962    Use char because int might match the return type of a GCC
10963    builtin and then its argument prototype would still apply.  */
10964 #ifdef __cplusplus
10965 extern "C"
10966 #endif
10967 char dlopen ();
10968 int
10969 main ()
10970 {
10971 return dlopen ();
10972   ;
10973   return 0;
10974 }
10975 _ACEOF
10976 if ac_fn_c_try_link "$LINENO"; then :
10977   ac_cv_lib_svld_dlopen=yes
10978 else
10979   ac_cv_lib_svld_dlopen=no
10980 fi
10981 rm -f core conftest.err conftest.$ac_objext \
10982     conftest$ac_exeext conftest.$ac_ext
10983 LIBS=$ac_check_lib_save_LIBS
10984 fi
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10986 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10987 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10988   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10989 else
10990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10991 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10992 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10993   $as_echo_n "(cached) " >&6
10994 else
10995   ac_check_lib_save_LIBS=$LIBS
10996 LIBS="-ldld  $LIBS"
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h.  */
10999
11000 /* Override any GCC internal prototype to avoid an error.
11001    Use char because int might match the return type of a GCC
11002    builtin and then its argument prototype would still apply.  */
11003 #ifdef __cplusplus
11004 extern "C"
11005 #endif
11006 char dld_link ();
11007 int
11008 main ()
11009 {
11010 return dld_link ();
11011   ;
11012   return 0;
11013 }
11014 _ACEOF
11015 if ac_fn_c_try_link "$LINENO"; then :
11016   ac_cv_lib_dld_dld_link=yes
11017 else
11018   ac_cv_lib_dld_dld_link=no
11019 fi
11020 rm -f core conftest.err conftest.$ac_objext \
11021     conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_lib_save_LIBS
11023 fi
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11025 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11026 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11027   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11028 fi
11029
11030
11031 fi
11032
11033
11034 fi
11035
11036
11037 fi
11038
11039
11040 fi
11041
11042
11043 fi
11044
11045     ;;
11046   esac
11047
11048   if test "x$lt_cv_dlopen" != xno; then
11049     enable_dlopen=yes
11050   else
11051     enable_dlopen=no
11052   fi
11053
11054   case $lt_cv_dlopen in
11055   dlopen)
11056     save_CPPFLAGS="$CPPFLAGS"
11057     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11058
11059     save_LDFLAGS="$LDFLAGS"
11060     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11061
11062     save_LIBS="$LIBS"
11063     LIBS="$lt_cv_dlopen_libs $LIBS"
11064
11065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11066 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11067 if test "${lt_cv_dlopen_self+set}" = set; then :
11068   $as_echo_n "(cached) " >&6
11069 else
11070           if test "$cross_compiling" = yes; then :
11071   lt_cv_dlopen_self=cross
11072 else
11073   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11074   lt_status=$lt_dlunknown
11075   cat > conftest.$ac_ext <<_LT_EOF
11076 #line 11076 "configure"
11077 #include "confdefs.h"
11078
11079 #if HAVE_DLFCN_H
11080 #include <dlfcn.h>
11081 #endif
11082
11083 #include <stdio.h>
11084
11085 #ifdef RTLD_GLOBAL
11086 #  define LT_DLGLOBAL           RTLD_GLOBAL
11087 #else
11088 #  ifdef DL_GLOBAL
11089 #    define LT_DLGLOBAL         DL_GLOBAL
11090 #  else
11091 #    define LT_DLGLOBAL         0
11092 #  endif
11093 #endif
11094
11095 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11096    find out it does not work in some platform. */
11097 #ifndef LT_DLLAZY_OR_NOW
11098 #  ifdef RTLD_LAZY
11099 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11100 #  else
11101 #    ifdef DL_LAZY
11102 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11103 #    else
11104 #      ifdef RTLD_NOW
11105 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11106 #      else
11107 #        ifdef DL_NOW
11108 #          define LT_DLLAZY_OR_NOW      DL_NOW
11109 #        else
11110 #          define LT_DLLAZY_OR_NOW      0
11111 #        endif
11112 #      endif
11113 #    endif
11114 #  endif
11115 #endif
11116
11117 void fnord() { int i=42;}
11118 int main ()
11119 {
11120   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11121   int status = $lt_dlunknown;
11122
11123   if (self)
11124     {
11125       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11126       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11127       /* dlclose (self); */
11128     }
11129   else
11130     puts (dlerror ());
11131
11132   return status;
11133 }
11134 _LT_EOF
11135   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11136   (eval $ac_link) 2>&5
11137   ac_status=$?
11138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11139   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11140     (./conftest; exit; ) >&5 2>/dev/null
11141     lt_status=$?
11142     case x$lt_status in
11143       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11144       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11145       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11146     esac
11147   else :
11148     # compilation failed
11149     lt_cv_dlopen_self=no
11150   fi
11151 fi
11152 rm -fr conftest*
11153
11154
11155 fi
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11157 $as_echo "$lt_cv_dlopen_self" >&6; }
11158
11159     if test "x$lt_cv_dlopen_self" = xyes; then
11160       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11161       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11162 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11163 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11164   $as_echo_n "(cached) " >&6
11165 else
11166           if test "$cross_compiling" = yes; then :
11167   lt_cv_dlopen_self_static=cross
11168 else
11169   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11170   lt_status=$lt_dlunknown
11171   cat > conftest.$ac_ext <<_LT_EOF
11172 #line 11172 "configure"
11173 #include "confdefs.h"
11174
11175 #if HAVE_DLFCN_H
11176 #include <dlfcn.h>
11177 #endif
11178
11179 #include <stdio.h>
11180
11181 #ifdef RTLD_GLOBAL
11182 #  define LT_DLGLOBAL           RTLD_GLOBAL
11183 #else
11184 #  ifdef DL_GLOBAL
11185 #    define LT_DLGLOBAL         DL_GLOBAL
11186 #  else
11187 #    define LT_DLGLOBAL         0
11188 #  endif
11189 #endif
11190
11191 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11192    find out it does not work in some platform. */
11193 #ifndef LT_DLLAZY_OR_NOW
11194 #  ifdef RTLD_LAZY
11195 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11196 #  else
11197 #    ifdef DL_LAZY
11198 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11199 #    else
11200 #      ifdef RTLD_NOW
11201 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11202 #      else
11203 #        ifdef DL_NOW
11204 #          define LT_DLLAZY_OR_NOW      DL_NOW
11205 #        else
11206 #          define LT_DLLAZY_OR_NOW      0
11207 #        endif
11208 #      endif
11209 #    endif
11210 #  endif
11211 #endif
11212
11213 void fnord() { int i=42;}
11214 int main ()
11215 {
11216   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11217   int status = $lt_dlunknown;
11218
11219   if (self)
11220     {
11221       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11222       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11223       /* dlclose (self); */
11224     }
11225   else
11226     puts (dlerror ());
11227
11228   return status;
11229 }
11230 _LT_EOF
11231   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11232   (eval $ac_link) 2>&5
11233   ac_status=$?
11234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11235   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11236     (./conftest; exit; ) >&5 2>/dev/null
11237     lt_status=$?
11238     case x$lt_status in
11239       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11240       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11241       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11242     esac
11243   else :
11244     # compilation failed
11245     lt_cv_dlopen_self_static=no
11246   fi
11247 fi
11248 rm -fr conftest*
11249
11250
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11253 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11254     fi
11255
11256     CPPFLAGS="$save_CPPFLAGS"
11257     LDFLAGS="$save_LDFLAGS"
11258     LIBS="$save_LIBS"
11259     ;;
11260   esac
11261
11262   case $lt_cv_dlopen_self in
11263   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11264   *) enable_dlopen_self=unknown ;;
11265   esac
11266
11267   case $lt_cv_dlopen_self_static in
11268   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11269   *) enable_dlopen_self_static=unknown ;;
11270   esac
11271 fi
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289 striplib=
11290 old_striplib=
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11292 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11293 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11294   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11295   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11297 $as_echo "yes" >&6; }
11298 else
11299 # FIXME - insert some real tests, host_os isn't really good enough
11300   case $host_os in
11301   darwin*)
11302     if test -n "$STRIP" ; then
11303       striplib="$STRIP -x"
11304       old_striplib="$STRIP -S"
11305       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11306 $as_echo "yes" >&6; }
11307     else
11308       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11310     fi
11311     ;;
11312   *)
11313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 $as_echo "no" >&6; }
11315     ;;
11316   esac
11317 fi
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330   # Report which library types will actually be built
11331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11332 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11334 $as_echo "$can_build_shared" >&6; }
11335
11336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11337 $as_echo_n "checking whether to build shared libraries... " >&6; }
11338   test "$can_build_shared" = "no" && enable_shared=no
11339
11340   # On AIX, shared libraries and static libraries use the same namespace, and
11341   # are all built from PIC.
11342   case $host_os in
11343   aix3*)
11344     test "$enable_shared" = yes && enable_static=no
11345     if test -n "$RANLIB"; then
11346       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11347       postinstall_cmds='$RANLIB $lib'
11348     fi
11349     ;;
11350
11351   aix[4-9]*)
11352     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11353       test "$enable_shared" = yes && enable_static=no
11354     fi
11355     ;;
11356   esac
11357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11358 $as_echo "$enable_shared" >&6; }
11359
11360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11361 $as_echo_n "checking whether to build static libraries... " >&6; }
11362   # Make sure either enable_shared or enable_static is yes.
11363   test "$enable_shared" = yes || enable_static=yes
11364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11365 $as_echo "$enable_static" >&6; }
11366
11367
11368
11369
11370 fi
11371 ac_ext=cpp
11372 ac_cpp='$CXXCPP $CPPFLAGS'
11373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11376
11377 CC="$lt_save_CC"
11378
11379
11380 ac_ext=cpp
11381 ac_cpp='$CXXCPP $CPPFLAGS'
11382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11385
11386 archive_cmds_need_lc_CXX=no
11387 allow_undefined_flag_CXX=
11388 always_export_symbols_CXX=no
11389 archive_expsym_cmds_CXX=
11390 compiler_needs_object_CXX=no
11391 export_dynamic_flag_spec_CXX=
11392 hardcode_direct_CXX=no
11393 hardcode_direct_absolute_CXX=no
11394 hardcode_libdir_flag_spec_CXX=
11395 hardcode_libdir_flag_spec_ld_CXX=
11396 hardcode_libdir_separator_CXX=
11397 hardcode_minus_L_CXX=no
11398 hardcode_shlibpath_var_CXX=unsupported
11399 hardcode_automatic_CXX=no
11400 inherit_rpath_CXX=no
11401 module_cmds_CXX=
11402 module_expsym_cmds_CXX=
11403 link_all_deplibs_CXX=unknown
11404 old_archive_cmds_CXX=$old_archive_cmds
11405 no_undefined_flag_CXX=
11406 whole_archive_flag_spec_CXX=
11407 enable_shared_with_static_runtimes_CXX=no
11408
11409 # Source file extension for C++ test sources.
11410 ac_ext=cpp
11411
11412 # Object file extension for compiled C++ test sources.
11413 objext=o
11414 objext_CXX=$objext
11415
11416 # No sense in running all these tests if we already determined that
11417 # the CXX compiler isn't working.  Some variables (like enable_shared)
11418 # are currently assumed to apply to all compilers on this platform,
11419 # and will be corrupted by setting them based on a non-working compiler.
11420 if test "$_lt_caught_CXX_error" != yes; then
11421   # Code to be used in simple compile tests
11422   lt_simple_compile_test_code="int some_variable = 0;"
11423
11424   # Code to be used in simple link tests
11425   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11426
11427   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11428
11429
11430
11431
11432
11433
11434 # If no C compiler was specified, use CC.
11435 LTCC=${LTCC-"$CC"}
11436
11437 # If no C compiler flags were specified, use CFLAGS.
11438 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11439
11440 # Allow CC to be a program name with arguments.
11441 compiler=$CC
11442
11443
11444   # save warnings/boilerplate of simple test code
11445   ac_outfile=conftest.$ac_objext
11446 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11447 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11448 _lt_compiler_boilerplate=`cat conftest.err`
11449 $RM conftest*
11450
11451   ac_outfile=conftest.$ac_objext
11452 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11453 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11454 _lt_linker_boilerplate=`cat conftest.err`
11455 $RM -r conftest*
11456
11457
11458   # Allow CC to be a program name with arguments.
11459   lt_save_CC=$CC
11460   lt_save_LD=$LD
11461   lt_save_GCC=$GCC
11462   GCC=$GXX
11463   lt_save_with_gnu_ld=$with_gnu_ld
11464   lt_save_path_LD=$lt_cv_path_LD
11465   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11466     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11467   else
11468     $as_unset lt_cv_prog_gnu_ld
11469   fi
11470   if test -n "${lt_cv_path_LDCXX+set}"; then
11471     lt_cv_path_LD=$lt_cv_path_LDCXX
11472   else
11473     $as_unset lt_cv_path_LD
11474   fi
11475   test -z "${LDCXX+set}" || LD=$LDCXX
11476   CC=${CXX-"c++"}
11477   compiler=$CC
11478   compiler_CXX=$CC
11479   for cc_temp in $compiler""; do
11480   case $cc_temp in
11481     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11482     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11483     \-*) ;;
11484     *) break;;
11485   esac
11486 done
11487 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11488
11489
11490   if test -n "$compiler"; then
11491     # We don't want -fno-exception when compiling C++ code, so set the
11492     # no_builtin_flag separately
11493     if test "$GXX" = yes; then
11494       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11495     else
11496       lt_prog_compiler_no_builtin_flag_CXX=
11497     fi
11498
11499     if test "$GXX" = yes; then
11500       # Set up default GNU C++ configuration
11501
11502
11503
11504 # Check whether --with-gnu-ld was given.
11505 if test "${with_gnu_ld+set}" = set; then :
11506   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11507 else
11508   with_gnu_ld=no
11509 fi
11510
11511 ac_prog=ld
11512 if test "$GCC" = yes; then
11513   # Check if gcc -print-prog-name=ld gives a path.
11514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11515 $as_echo_n "checking for ld used by $CC... " >&6; }
11516   case $host in
11517   *-*-mingw*)
11518     # gcc leaves a trailing carriage return which upsets mingw
11519     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11520   *)
11521     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11522   esac
11523   case $ac_prog in
11524     # Accept absolute paths.
11525     [\\/]* | ?:[\\/]*)
11526       re_direlt='/[^/][^/]*/\.\./'
11527       # Canonicalize the pathname of ld
11528       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11529       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11530         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11531       done
11532       test -z "$LD" && LD="$ac_prog"
11533       ;;
11534   "")
11535     # If it fails, then pretend we aren't using GCC.
11536     ac_prog=ld
11537     ;;
11538   *)
11539     # If it is relative, then search for the first ld in PATH.
11540     with_gnu_ld=unknown
11541     ;;
11542   esac
11543 elif test "$with_gnu_ld" = yes; then
11544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11545 $as_echo_n "checking for GNU ld... " >&6; }
11546 else
11547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11548 $as_echo_n "checking for non-GNU ld... " >&6; }
11549 fi
11550 if test "${lt_cv_path_LD+set}" = set; then :
11551   $as_echo_n "(cached) " >&6
11552 else
11553   if test -z "$LD"; then
11554   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11555   for ac_dir in $PATH; do
11556     IFS="$lt_save_ifs"
11557     test -z "$ac_dir" && ac_dir=.
11558     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11559       lt_cv_path_LD="$ac_dir/$ac_prog"
11560       # Check to see if the program is GNU ld.  I'd rather use --version,
11561       # but apparently some variants of GNU ld only accept -v.
11562       # Break only if it was the GNU/non-GNU ld that we prefer.
11563       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11564       *GNU* | *'with BFD'*)
11565         test "$with_gnu_ld" != no && break
11566         ;;
11567       *)
11568         test "$with_gnu_ld" != yes && break
11569         ;;
11570       esac
11571     fi
11572   done
11573   IFS="$lt_save_ifs"
11574 else
11575   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11576 fi
11577 fi
11578
11579 LD="$lt_cv_path_LD"
11580 if test -n "$LD"; then
11581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11582 $as_echo "$LD" >&6; }
11583 else
11584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11585 $as_echo "no" >&6; }
11586 fi
11587 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11589 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11590 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11591   $as_echo_n "(cached) " >&6
11592 else
11593   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11594 case `$LD -v 2>&1 </dev/null` in
11595 *GNU* | *'with BFD'*)
11596   lt_cv_prog_gnu_ld=yes
11597   ;;
11598 *)
11599   lt_cv_prog_gnu_ld=no
11600   ;;
11601 esac
11602 fi
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11604 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11605 with_gnu_ld=$lt_cv_prog_gnu_ld
11606
11607
11608
11609
11610
11611
11612
11613       # Check if GNU C++ uses GNU ld as the underlying linker, since the
11614       # archiving commands below assume that GNU ld is being used.
11615       if test "$with_gnu_ld" = yes; then
11616         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11617         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'
11618
11619         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11620         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11621
11622         # If archive_cmds runs LD, not CC, wlarc should be empty
11623         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11624         #     investigate it a little bit more. (MM)
11625         wlarc='${wl}'
11626
11627         # ancient GNU ld didn't support --whole-archive et. al.
11628         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11629           $GREP 'no-whole-archive' > /dev/null; then
11630           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11631         else
11632           whole_archive_flag_spec_CXX=
11633         fi
11634       else
11635         with_gnu_ld=no
11636         wlarc=
11637
11638         # A generic and very simple default shared library creation
11639         # command for GNU C++ for the case where it uses the native
11640         # linker, instead of GNU ld.  If possible, this setting should
11641         # overridden to take advantage of the native linker features on
11642         # the platform it is being used on.
11643         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11644       fi
11645
11646       # Commands to make compiler produce verbose output that lists
11647       # what "hidden" libraries, object files and flags are used when
11648       # linking a shared library.
11649       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11650
11651     else
11652       GXX=no
11653       with_gnu_ld=no
11654       wlarc=
11655     fi
11656
11657     # PORTME: fill in a description of your system's C++ link characteristics
11658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11659 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11660     ld_shlibs_CXX=yes
11661     case $host_os in
11662       aix3*)
11663         # FIXME: insert proper C++ library support
11664         ld_shlibs_CXX=no
11665         ;;
11666       aix[4-9]*)
11667         if test "$host_cpu" = ia64; then
11668           # On IA64, the linker does run time linking by default, so we don't
11669           # have to do anything special.
11670           aix_use_runtimelinking=no
11671           exp_sym_flag='-Bexport'
11672           no_entry_flag=""
11673         else
11674           aix_use_runtimelinking=no
11675
11676           # Test if we are trying to use run time linking or normal
11677           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11678           # need to do runtime linking.
11679           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11680             for ld_flag in $LDFLAGS; do
11681               case $ld_flag in
11682               *-brtl*)
11683                 aix_use_runtimelinking=yes
11684                 break
11685                 ;;
11686               esac
11687             done
11688             ;;
11689           esac
11690
11691           exp_sym_flag='-bexport'
11692           no_entry_flag='-bnoentry'
11693         fi
11694
11695         # When large executables or shared objects are built, AIX ld can
11696         # have problems creating the table of contents.  If linking a library
11697         # or program results in "error TOC overflow" add -mminimal-toc to
11698         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11699         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11700
11701         archive_cmds_CXX=''
11702         hardcode_direct_CXX=yes
11703         hardcode_direct_absolute_CXX=yes
11704         hardcode_libdir_separator_CXX=':'
11705         link_all_deplibs_CXX=yes
11706         file_list_spec_CXX='${wl}-f,'
11707
11708         if test "$GXX" = yes; then
11709           case $host_os in aix4.[012]|aix4.[012].*)
11710           # We only want to do this on AIX 4.2 and lower, the check
11711           # below for broken collect2 doesn't work under 4.3+
11712           collect2name=`${CC} -print-prog-name=collect2`
11713           if test -f "$collect2name" &&
11714              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11715           then
11716             # We have reworked collect2
11717             :
11718           else
11719             # We have old collect2
11720             hardcode_direct_CXX=unsupported
11721             # It fails to find uninstalled libraries when the uninstalled
11722             # path is not listed in the libpath.  Setting hardcode_minus_L
11723             # to unsupported forces relinking
11724             hardcode_minus_L_CXX=yes
11725             hardcode_libdir_flag_spec_CXX='-L$libdir'
11726             hardcode_libdir_separator_CXX=
11727           fi
11728           esac
11729           shared_flag='-shared'
11730           if test "$aix_use_runtimelinking" = yes; then
11731             shared_flag="$shared_flag "'${wl}-G'
11732           fi
11733         else
11734           # not using gcc
11735           if test "$host_cpu" = ia64; then
11736           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11737           # chokes on -Wl,-G. The following line is correct:
11738           shared_flag='-G'
11739           else
11740             if test "$aix_use_runtimelinking" = yes; then
11741               shared_flag='${wl}-G'
11742             else
11743               shared_flag='${wl}-bM:SRE'
11744             fi
11745           fi
11746         fi
11747
11748         export_dynamic_flag_spec_CXX='${wl}-bexpall'
11749         # It seems that -bexpall does not export symbols beginning with
11750         # underscore (_), so it is better to generate a list of symbols to
11751         # export.
11752         always_export_symbols_CXX=yes
11753         if test "$aix_use_runtimelinking" = yes; then
11754           # Warning - without using the other runtime loading flags (-brtl),
11755           # -berok will link without error, but may produce a broken library.
11756           allow_undefined_flag_CXX='-berok'
11757           # Determine the default libpath from the value encoded in an empty
11758           # executable.
11759           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h.  */
11761
11762 int
11763 main ()
11764 {
11765
11766   ;
11767   return 0;
11768 }
11769 _ACEOF
11770 if ac_fn_cxx_try_link "$LINENO"; then :
11771
11772 lt_aix_libpath_sed='
11773     /Import File Strings/,/^$/ {
11774         /^0/ {
11775             s/^0  *\(.*\)$/\1/
11776             p
11777         }
11778     }'
11779 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11780 # Check for a 64-bit object if we didn't find anything.
11781 if test -z "$aix_libpath"; then
11782   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11783 fi
11784 fi
11785 rm -f core conftest.err conftest.$ac_objext \
11786     conftest$ac_exeext conftest.$ac_ext
11787 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11788
11789           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11790
11791           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"
11792         else
11793           if test "$host_cpu" = ia64; then
11794             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11795             allow_undefined_flag_CXX="-z nodefs"
11796             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"
11797           else
11798             # Determine the default libpath from the value encoded in an
11799             # empty executable.
11800             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h.  */
11802
11803 int
11804 main ()
11805 {
11806
11807   ;
11808   return 0;
11809 }
11810 _ACEOF
11811 if ac_fn_cxx_try_link "$LINENO"; then :
11812
11813 lt_aix_libpath_sed='
11814     /Import File Strings/,/^$/ {
11815         /^0/ {
11816             s/^0  *\(.*\)$/\1/
11817             p
11818         }
11819     }'
11820 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11821 # Check for a 64-bit object if we didn't find anything.
11822 if test -z "$aix_libpath"; then
11823   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11824 fi
11825 fi
11826 rm -f core conftest.err conftest.$ac_objext \
11827     conftest$ac_exeext conftest.$ac_ext
11828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11829
11830             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11831             # Warning - without using the other run time loading flags,
11832             # -berok will link without error, but may produce a broken library.
11833             no_undefined_flag_CXX=' ${wl}-bernotok'
11834             allow_undefined_flag_CXX=' ${wl}-berok'
11835             # Exported symbols can be pulled into shared objects from archives
11836             whole_archive_flag_spec_CXX='$convenience'
11837             archive_cmds_need_lc_CXX=yes
11838             # This is similar to how AIX traditionally builds its shared
11839             # libraries.
11840             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'
11841           fi
11842         fi
11843         ;;
11844
11845       beos*)
11846         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11847           allow_undefined_flag_CXX=unsupported
11848           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11849           # support --undefined.  This deserves some investigation.  FIXME
11850           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11851         else
11852           ld_shlibs_CXX=no
11853         fi
11854         ;;
11855
11856       chorus*)
11857         case $cc_basename in
11858           *)
11859           # FIXME: insert proper C++ library support
11860           ld_shlibs_CXX=no
11861           ;;
11862         esac
11863         ;;
11864
11865       cygwin* | mingw* | pw32* | cegcc*)
11866         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11867         # as there is no search path for DLLs.
11868         hardcode_libdir_flag_spec_CXX='-L$libdir'
11869         allow_undefined_flag_CXX=unsupported
11870         always_export_symbols_CXX=no
11871         enable_shared_with_static_runtimes_CXX=yes
11872
11873         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11874           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'
11875           # If the export-symbols file already is a .def file (1st line
11876           # is EXPORTS), use it as is; otherwise, prepend...
11877           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11878             cp $export_symbols $output_objdir/$soname.def;
11879           else
11880             echo EXPORTS > $output_objdir/$soname.def;
11881             cat $export_symbols >> $output_objdir/$soname.def;
11882           fi~
11883           $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'
11884         else
11885           ld_shlibs_CXX=no
11886         fi
11887         ;;
11888       darwin* | rhapsody*)
11889
11890
11891   archive_cmds_need_lc_CXX=no
11892   hardcode_direct_CXX=no
11893   hardcode_automatic_CXX=yes
11894   hardcode_shlibpath_var_CXX=unsupported
11895   whole_archive_flag_spec_CXX=''
11896   link_all_deplibs_CXX=yes
11897   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11898   case $cc_basename in
11899      ifort*) _lt_dar_can_shared=yes ;;
11900      *) _lt_dar_can_shared=$GCC ;;
11901   esac
11902   if test "$_lt_dar_can_shared" = "yes"; then
11903     output_verbose_link_cmd=echo
11904     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}"
11905     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11906     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}"
11907     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}"
11908        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11909       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}"
11910       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}"
11911     fi
11912
11913   else
11914   ld_shlibs_CXX=no
11915   fi
11916
11917         ;;
11918
11919       dgux*)
11920         case $cc_basename in
11921           ec++*)
11922             # FIXME: insert proper C++ library support
11923             ld_shlibs_CXX=no
11924             ;;
11925           ghcx*)
11926             # Green Hills C++ Compiler
11927             # FIXME: insert proper C++ library support
11928             ld_shlibs_CXX=no
11929             ;;
11930           *)
11931             # FIXME: insert proper C++ library support
11932             ld_shlibs_CXX=no
11933             ;;
11934         esac
11935         ;;
11936
11937       freebsd[12]*)
11938         # C++ shared libraries reported to be fairly broken before
11939         # switch to ELF
11940         ld_shlibs_CXX=no
11941         ;;
11942
11943       freebsd-elf*)
11944         archive_cmds_need_lc_CXX=no
11945         ;;
11946
11947       freebsd* | dragonfly*)
11948         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11949         # conventions
11950         ld_shlibs_CXX=yes
11951         ;;
11952
11953       gnu*)
11954         ;;
11955
11956       hpux9*)
11957         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11958         hardcode_libdir_separator_CXX=:
11959         export_dynamic_flag_spec_CXX='${wl}-E'
11960         hardcode_direct_CXX=yes
11961         hardcode_minus_L_CXX=yes # Not in the search PATH,
11962                                              # but as the default
11963                                              # location of the library.
11964
11965         case $cc_basename in
11966           CC*)
11967             # FIXME: insert proper C++ library support
11968             ld_shlibs_CXX=no
11969             ;;
11970           aCC*)
11971             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'
11972             # Commands to make compiler produce verbose output that lists
11973             # what "hidden" libraries, object files and flags are used when
11974             # linking a shared library.
11975             #
11976             # There doesn't appear to be a way to prevent this compiler from
11977             # explicitly linking system object files so we need to strip them
11978             # from the output so that they don't get included in the library
11979             # dependencies.
11980             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'
11981             ;;
11982           *)
11983             if test "$GXX" = yes; then
11984               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'
11985             else
11986               # FIXME: insert proper C++ library support
11987               ld_shlibs_CXX=no
11988             fi
11989             ;;
11990         esac
11991         ;;
11992
11993       hpux10*|hpux11*)
11994         if test $with_gnu_ld = no; then
11995           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11996           hardcode_libdir_separator_CXX=:
11997
11998           case $host_cpu in
11999             hppa*64*|ia64*)
12000               ;;
12001             *)
12002               export_dynamic_flag_spec_CXX='${wl}-E'
12003               ;;
12004           esac
12005         fi
12006         case $host_cpu in
12007           hppa*64*|ia64*)
12008             hardcode_direct_CXX=no
12009             hardcode_shlibpath_var_CXX=no
12010             ;;
12011           *)
12012             hardcode_direct_CXX=yes
12013             hardcode_direct_absolute_CXX=yes
12014             hardcode_minus_L_CXX=yes # Not in the search PATH,
12015                                                  # but as the default
12016                                                  # location of the library.
12017             ;;
12018         esac
12019
12020         case $cc_basename in
12021           CC*)
12022             # FIXME: insert proper C++ library support
12023             ld_shlibs_CXX=no
12024             ;;
12025           aCC*)
12026             case $host_cpu in
12027               hppa*64*)
12028                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12029                 ;;
12030               ia64*)
12031                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12032                 ;;
12033               *)
12034                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12035                 ;;
12036             esac
12037             # Commands to make compiler produce verbose output that lists
12038             # what "hidden" libraries, object files and flags are used when
12039             # linking a shared library.
12040             #
12041             # There doesn't appear to be a way to prevent this compiler from
12042             # explicitly linking system object files so we need to strip them
12043             # from the output so that they don't get included in the library
12044             # dependencies.
12045             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'
12046             ;;
12047           *)
12048             if test "$GXX" = yes; then
12049               if test $with_gnu_ld = no; then
12050                 case $host_cpu in
12051                   hppa*64*)
12052                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12053                     ;;
12054                   ia64*)
12055                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12056                     ;;
12057                   *)
12058                     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'
12059                     ;;
12060                 esac
12061               fi
12062             else
12063               # FIXME: insert proper C++ library support
12064               ld_shlibs_CXX=no
12065             fi
12066             ;;
12067         esac
12068         ;;
12069
12070       interix[3-9]*)
12071         hardcode_direct_CXX=no
12072         hardcode_shlibpath_var_CXX=no
12073         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12074         export_dynamic_flag_spec_CXX='${wl}-E'
12075         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12076         # Instead, shared libraries are loaded at an image base (0x10000000 by
12077         # default) and relocated if they conflict, which is a slow very memory
12078         # consuming and fragmenting process.  To avoid this, we pick a random,
12079         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12080         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12081         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'
12082         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'
12083         ;;
12084       irix5* | irix6*)
12085         case $cc_basename in
12086           CC*)
12087             # SGI C++
12088             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'
12089
12090             # Archives containing C++ object files must be created using
12091             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12092             # necessary to make sure instantiated templates are included
12093             # in the archive.
12094             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12095             ;;
12096           *)
12097             if test "$GXX" = yes; then
12098               if test "$with_gnu_ld" = no; then
12099                 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'
12100               else
12101                 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'
12102               fi
12103             fi
12104             link_all_deplibs_CXX=yes
12105             ;;
12106         esac
12107         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12108         hardcode_libdir_separator_CXX=:
12109         inherit_rpath_CXX=yes
12110         ;;
12111
12112       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12113         case $cc_basename in
12114           KCC*)
12115             # Kuck and Associates, Inc. (KAI) C++ Compiler
12116
12117             # KCC will only create a shared library if the output file
12118             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12119             # to its proper name (with version) after linking.
12120             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'
12121             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'
12122             # Commands to make compiler produce verbose output that lists
12123             # what "hidden" libraries, object files and flags are used when
12124             # linking a shared library.
12125             #
12126             # There doesn't appear to be a way to prevent this compiler from
12127             # explicitly linking system object files so we need to strip them
12128             # from the output so that they don't get included in the library
12129             # dependencies.
12130             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'
12131
12132             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12133             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12134
12135             # Archives containing C++ object files must be created using
12136             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12137             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12138             ;;
12139           icpc* | ecpc* )
12140             # Intel C++
12141             with_gnu_ld=yes
12142             # version 8.0 and above of icpc choke on multiply defined symbols
12143             # if we add $predep_objects and $postdep_objects, however 7.1 and
12144             # earlier do not add the objects themselves.
12145             case `$CC -V 2>&1` in
12146               *"Version 7."*)
12147                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12148                 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'
12149                 ;;
12150               *)  # Version 8.0 or newer
12151                 tmp_idyn=
12152                 case $host_cpu in
12153                   ia64*) tmp_idyn=' -i_dynamic';;
12154                 esac
12155                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12156                 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'
12157                 ;;
12158             esac
12159             archive_cmds_need_lc_CXX=no
12160             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12161             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12162             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12163             ;;
12164           pgCC* | pgcpp*)
12165             # Portland Group C++ compiler
12166             case `$CC -V` in
12167             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12168               prelink_cmds_CXX='tpldir=Template.dir~
12169                 rm -rf $tpldir~
12170                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12171                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12172               old_archive_cmds_CXX='tpldir=Template.dir~
12173                 rm -rf $tpldir~
12174                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12175                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12176                 $RANLIB $oldlib'
12177               archive_cmds_CXX='tpldir=Template.dir~
12178                 rm -rf $tpldir~
12179                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12180                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12181               archive_expsym_cmds_CXX='tpldir=Template.dir~
12182                 rm -rf $tpldir~
12183                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12184                 $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'
12185               ;;
12186             *) # Version 6 will use weak symbols
12187               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12188               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'
12189               ;;
12190             esac
12191
12192             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12193             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12194             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'
12195             ;;
12196           cxx*)
12197             # Compaq C++
12198             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12199             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'
12200
12201             runpath_var=LD_RUN_PATH
12202             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12203             hardcode_libdir_separator_CXX=:
12204
12205             # Commands to make compiler produce verbose output that lists
12206             # what "hidden" libraries, object files and flags are used when
12207             # linking a shared library.
12208             #
12209             # There doesn't appear to be a way to prevent this compiler from
12210             # explicitly linking system object files so we need to strip them
12211             # from the output so that they don't get included in the library
12212             # dependencies.
12213             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'
12214             ;;
12215           xl*)
12216             # IBM XL 8.0 on PPC, with GNU ld
12217             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12218             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12219             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12220             if test "x$supports_anon_versioning" = xyes; then
12221               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12222                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12223                 echo "local: *; };" >> $output_objdir/$libname.ver~
12224                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12225             fi
12226             ;;
12227           *)
12228             case `$CC -V 2>&1 | sed 5q` in
12229             *Sun\ C*)
12230               # Sun C++ 5.9
12231               no_undefined_flag_CXX=' -zdefs'
12232               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12233               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'
12234               hardcode_libdir_flag_spec_CXX='-R$libdir'
12235               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'
12236               compiler_needs_object_CXX=yes
12237
12238               # Not sure whether something based on
12239               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12240               # would be better.
12241               output_verbose_link_cmd='echo'
12242
12243               # Archives containing C++ object files must be created using
12244               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12245               # necessary to make sure instantiated templates are included
12246               # in the archive.
12247               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12248               ;;
12249             esac
12250             ;;
12251         esac
12252         ;;
12253
12254       lynxos*)
12255         # FIXME: insert proper C++ library support
12256         ld_shlibs_CXX=no
12257         ;;
12258
12259       m88k*)
12260         # FIXME: insert proper C++ library support
12261         ld_shlibs_CXX=no
12262         ;;
12263
12264       mvs*)
12265         case $cc_basename in
12266           cxx*)
12267             # FIXME: insert proper C++ library support
12268             ld_shlibs_CXX=no
12269             ;;
12270           *)
12271             # FIXME: insert proper C++ library support
12272             ld_shlibs_CXX=no
12273             ;;
12274         esac
12275         ;;
12276
12277       netbsd*)
12278         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12279           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12280           wlarc=
12281           hardcode_libdir_flag_spec_CXX='-R$libdir'
12282           hardcode_direct_CXX=yes
12283           hardcode_shlibpath_var_CXX=no
12284         fi
12285         # Workaround some broken pre-1.5 toolchains
12286         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12287         ;;
12288
12289       *nto* | *qnx*)
12290         ld_shlibs_CXX=yes
12291         ;;
12292
12293       openbsd2*)
12294         # C++ shared libraries are fairly broken
12295         ld_shlibs_CXX=no
12296         ;;
12297
12298       openbsd*)
12299         if test -f /usr/libexec/ld.so; then
12300           hardcode_direct_CXX=yes
12301           hardcode_shlibpath_var_CXX=no
12302           hardcode_direct_absolute_CXX=yes
12303           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12304           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12305           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12306             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12307             export_dynamic_flag_spec_CXX='${wl}-E'
12308             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12309           fi
12310           output_verbose_link_cmd=echo
12311         else
12312           ld_shlibs_CXX=no
12313         fi
12314         ;;
12315
12316       osf3* | osf4* | osf5*)
12317         case $cc_basename in
12318           KCC*)
12319             # Kuck and Associates, Inc. (KAI) C++ Compiler
12320
12321             # KCC will only create a shared library if the output file
12322             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12323             # to its proper name (with version) after linking.
12324             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'
12325
12326             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12327             hardcode_libdir_separator_CXX=:
12328
12329             # Archives containing C++ object files must be created using
12330             # the KAI C++ compiler.
12331             case $host in
12332               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12333               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12334             esac
12335             ;;
12336           RCC*)
12337             # Rational C++ 2.4.1
12338             # FIXME: insert proper C++ library support
12339             ld_shlibs_CXX=no
12340             ;;
12341           cxx*)
12342             case $host in
12343               osf3*)
12344                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12345                 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'
12346                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12347                 ;;
12348               *)
12349                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12350                 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'
12351                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12352                   echo "-hidden">> $lib.exp~
12353                   $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~
12354                   $RM $lib.exp'
12355                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12356                 ;;
12357             esac
12358
12359             hardcode_libdir_separator_CXX=:
12360
12361             # Commands to make compiler produce verbose output that lists
12362             # what "hidden" libraries, object files and flags are used when
12363             # linking a shared library.
12364             #
12365             # There doesn't appear to be a way to prevent this compiler from
12366             # explicitly linking system object files so we need to strip them
12367             # from the output so that they don't get included in the library
12368             # dependencies.
12369             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'
12370             ;;
12371           *)
12372             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12373               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12374               case $host in
12375                 osf3*)
12376                   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'
12377                   ;;
12378                 *)
12379                   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'
12380                   ;;
12381               esac
12382
12383               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12384               hardcode_libdir_separator_CXX=:
12385
12386               # Commands to make compiler produce verbose output that lists
12387               # what "hidden" libraries, object files and flags are used when
12388               # linking a shared library.
12389               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12390
12391             else
12392               # FIXME: insert proper C++ library support
12393               ld_shlibs_CXX=no
12394             fi
12395             ;;
12396         esac
12397         ;;
12398
12399       psos*)
12400         # FIXME: insert proper C++ library support
12401         ld_shlibs_CXX=no
12402         ;;
12403
12404       sunos4*)
12405         case $cc_basename in
12406           CC*)
12407             # Sun C++ 4.x
12408             # FIXME: insert proper C++ library support
12409             ld_shlibs_CXX=no
12410             ;;
12411           lcc*)
12412             # Lucid
12413             # FIXME: insert proper C++ library support
12414             ld_shlibs_CXX=no
12415             ;;
12416           *)
12417             # FIXME: insert proper C++ library support
12418             ld_shlibs_CXX=no
12419             ;;
12420         esac
12421         ;;
12422
12423       solaris*)
12424         case $cc_basename in
12425           CC*)
12426             # Sun C++ 4.2, 5.x and Centerline C++
12427             archive_cmds_need_lc_CXX=yes
12428             no_undefined_flag_CXX=' -zdefs'
12429             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12430             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12431               $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'
12432
12433             hardcode_libdir_flag_spec_CXX='-R$libdir'
12434             hardcode_shlibpath_var_CXX=no
12435             case $host_os in
12436               solaris2.[0-5] | solaris2.[0-5].*) ;;
12437               *)
12438                 # The compiler driver will combine and reorder linker options,
12439                 # but understands `-z linker_flag'.
12440                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12441                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12442                 ;;
12443             esac
12444             link_all_deplibs_CXX=yes
12445
12446             output_verbose_link_cmd='echo'
12447
12448             # Archives containing C++ object files must be created using
12449             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12450             # necessary to make sure instantiated templates are included
12451             # in the archive.
12452             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12453             ;;
12454           gcx*)
12455             # Green Hills C++ Compiler
12456             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12457
12458             # The C++ compiler must be used to create the archive.
12459             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12460             ;;
12461           *)
12462             # GNU C++ compiler with Solaris linker
12463             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12464               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12465               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12466                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12467                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12468                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12469
12470                 # Commands to make compiler produce verbose output that lists
12471                 # what "hidden" libraries, object files and flags are used when
12472                 # linking a shared library.
12473                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12474               else
12475                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12476                 # platform.
12477                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12478                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12479                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12480
12481                 # Commands to make compiler produce verbose output that lists
12482                 # what "hidden" libraries, object files and flags are used when
12483                 # linking a shared library.
12484                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12485               fi
12486
12487               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12488               case $host_os in
12489                 solaris2.[0-5] | solaris2.[0-5].*) ;;
12490                 *)
12491                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12492                   ;;
12493               esac
12494             fi
12495             ;;
12496         esac
12497         ;;
12498
12499     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12500       no_undefined_flag_CXX='${wl}-z,text'
12501       archive_cmds_need_lc_CXX=no
12502       hardcode_shlibpath_var_CXX=no
12503       runpath_var='LD_RUN_PATH'
12504
12505       case $cc_basename in
12506         CC*)
12507           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12508           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12509           ;;
12510         *)
12511           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12512           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12513           ;;
12514       esac
12515       ;;
12516
12517       sysv5* | sco3.2v5* | sco5v6*)
12518         # Note: We can NOT use -z defs as we might desire, because we do not
12519         # link with -lc, and that would cause any symbols used from libc to
12520         # always be unresolved, which means just about no library would
12521         # ever link correctly.  If we're not using GNU ld we use -z text
12522         # though, which does catch some bad symbols but isn't as heavy-handed
12523         # as -z defs.
12524         no_undefined_flag_CXX='${wl}-z,text'
12525         allow_undefined_flag_CXX='${wl}-z,nodefs'
12526         archive_cmds_need_lc_CXX=no
12527         hardcode_shlibpath_var_CXX=no
12528         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12529         hardcode_libdir_separator_CXX=':'
12530         link_all_deplibs_CXX=yes
12531         export_dynamic_flag_spec_CXX='${wl}-Bexport'
12532         runpath_var='LD_RUN_PATH'
12533
12534         case $cc_basename in
12535           CC*)
12536             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12537             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12538             ;;
12539           *)
12540             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12541             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12542             ;;
12543         esac
12544       ;;
12545
12546       tandem*)
12547         case $cc_basename in
12548           NCC*)
12549             # NonStop-UX NCC 3.20
12550             # FIXME: insert proper C++ library support
12551             ld_shlibs_CXX=no
12552             ;;
12553           *)
12554             # FIXME: insert proper C++ library support
12555             ld_shlibs_CXX=no
12556             ;;
12557         esac
12558         ;;
12559
12560       vxworks*)
12561         # FIXME: insert proper C++ library support
12562         ld_shlibs_CXX=no
12563         ;;
12564
12565       *)
12566         # FIXME: insert proper C++ library support
12567         ld_shlibs_CXX=no
12568         ;;
12569     esac
12570
12571     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12572 $as_echo "$ld_shlibs_CXX" >&6; }
12573     test "$ld_shlibs_CXX" = no && can_build_shared=no
12574
12575     GCC_CXX="$GXX"
12576     LD_CXX="$LD"
12577
12578     ## CAVEAT EMPTOR:
12579     ## There is no encapsulation within the following macros, do not change
12580     ## the running order or otherwise move them around unless you know exactly
12581     ## what you are doing...
12582     # Dependencies to place before and after the object being linked:
12583 predep_objects_CXX=
12584 postdep_objects_CXX=
12585 predeps_CXX=
12586 postdeps_CXX=
12587 compiler_lib_search_path_CXX=
12588
12589 cat > conftest.$ac_ext <<_LT_EOF
12590 class Foo
12591 {
12592 public:
12593   Foo (void) { a = 0; }
12594 private:
12595   int a;
12596 };
12597 _LT_EOF
12598
12599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12600   (eval $ac_compile) 2>&5
12601   ac_status=$?
12602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603   test $ac_status = 0; }; then
12604   # Parse the compiler output and extract the necessary
12605   # objects, libraries and library flags.
12606
12607   # Sentinel used to keep track of whether or not we are before
12608   # the conftest object file.
12609   pre_test_object_deps_done=no
12610
12611   for p in `eval "$output_verbose_link_cmd"`; do
12612     case $p in
12613
12614     -L* | -R* | -l*)
12615        # Some compilers place space between "-{L,R}" and the path.
12616        # Remove the space.
12617        if test $p = "-L" ||
12618           test $p = "-R"; then
12619          prev=$p
12620          continue
12621        else
12622          prev=
12623        fi
12624
12625        if test "$pre_test_object_deps_done" = no; then
12626          case $p in
12627          -L* | -R*)
12628            # Internal compiler library paths should come after those
12629            # provided the user.  The postdeps already come after the
12630            # user supplied libs so there is no need to process them.
12631            if test -z "$compiler_lib_search_path_CXX"; then
12632              compiler_lib_search_path_CXX="${prev}${p}"
12633            else
12634              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12635            fi
12636            ;;
12637          # The "-l" case would never come before the object being
12638          # linked, so don't bother handling this case.
12639          esac
12640        else
12641          if test -z "$postdeps_CXX"; then
12642            postdeps_CXX="${prev}${p}"
12643          else
12644            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12645          fi
12646        fi
12647        ;;
12648
12649     *.$objext)
12650        # This assumes that the test object file only shows up
12651        # once in the compiler output.
12652        if test "$p" = "conftest.$objext"; then
12653          pre_test_object_deps_done=yes
12654          continue
12655        fi
12656
12657        if test "$pre_test_object_deps_done" = no; then
12658          if test -z "$predep_objects_CXX"; then
12659            predep_objects_CXX="$p"
12660          else
12661            predep_objects_CXX="$predep_objects_CXX $p"
12662          fi
12663        else
12664          if test -z "$postdep_objects_CXX"; then
12665            postdep_objects_CXX="$p"
12666          else
12667            postdep_objects_CXX="$postdep_objects_CXX $p"
12668          fi
12669        fi
12670        ;;
12671
12672     *) ;; # Ignore the rest.
12673
12674     esac
12675   done
12676
12677   # Clean up.
12678   rm -f a.out a.exe
12679 else
12680   echo "libtool.m4: error: problem compiling CXX test program"
12681 fi
12682
12683 $RM -f confest.$objext
12684
12685 # PORTME: override above test on systems where it is broken
12686 case $host_os in
12687 interix[3-9]*)
12688   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12689   # hack all around it, let's just trust "g++" to DTRT.
12690   predep_objects_CXX=
12691   postdep_objects_CXX=
12692   postdeps_CXX=
12693   ;;
12694
12695 linux*)
12696   case `$CC -V 2>&1 | sed 5q` in
12697   *Sun\ C*)
12698     # Sun C++ 5.9
12699
12700     # The more standards-conforming stlport4 library is
12701     # incompatible with the Cstd library. Avoid specifying
12702     # it if it's in CXXFLAGS. Ignore libCrun as
12703     # -library=stlport4 depends on it.
12704     case " $CXX $CXXFLAGS " in
12705     *" -library=stlport4 "*)
12706       solaris_use_stlport4=yes
12707       ;;
12708     esac
12709
12710     if test "$solaris_use_stlport4" != yes; then
12711       postdeps_CXX='-library=Cstd -library=Crun'
12712     fi
12713     ;;
12714   esac
12715   ;;
12716
12717 solaris*)
12718   case $cc_basename in
12719   CC*)
12720     # The more standards-conforming stlport4 library is
12721     # incompatible with the Cstd library. Avoid specifying
12722     # it if it's in CXXFLAGS. Ignore libCrun as
12723     # -library=stlport4 depends on it.
12724     case " $CXX $CXXFLAGS " in
12725     *" -library=stlport4 "*)
12726       solaris_use_stlport4=yes
12727       ;;
12728     esac
12729
12730     # Adding this requires a known-good setup of shared libraries for
12731     # Sun compiler versions before 5.6, else PIC objects from an old
12732     # archive will be linked into the output, leading to subtle bugs.
12733     if test "$solaris_use_stlport4" != yes; then
12734       postdeps_CXX='-library=Cstd -library=Crun'
12735     fi
12736     ;;
12737   esac
12738   ;;
12739 esac
12740
12741
12742 case " $postdeps_CXX " in
12743 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12744 esac
12745  compiler_lib_search_dirs_CXX=
12746 if test -n "${compiler_lib_search_path_CXX}"; then
12747  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12748 fi
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780     lt_prog_compiler_wl_CXX=
12781 lt_prog_compiler_pic_CXX=
12782 lt_prog_compiler_static_CXX=
12783
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12785 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12786
12787   # C++ specific cases for pic, static, wl, etc.
12788   if test "$GXX" = yes; then
12789     lt_prog_compiler_wl_CXX='-Wl,'
12790     lt_prog_compiler_static_CXX='-static'
12791
12792     case $host_os in
12793     aix*)
12794       # All AIX code is PIC.
12795       if test "$host_cpu" = ia64; then
12796         # AIX 5 now supports IA64 processor
12797         lt_prog_compiler_static_CXX='-Bstatic'
12798       fi
12799       ;;
12800
12801     amigaos*)
12802       case $host_cpu in
12803       powerpc)
12804             # see comment about AmigaOS4 .so support
12805             lt_prog_compiler_pic_CXX='-fPIC'
12806         ;;
12807       m68k)
12808             # FIXME: we need at least 68020 code to build shared libraries, but
12809             # adding the `-m68020' flag to GCC prevents building anything better,
12810             # like `-m68040'.
12811             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12812         ;;
12813       esac
12814       ;;
12815
12816     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12817       # PIC is the default for these OSes.
12818       ;;
12819     mingw* | cygwin* | os2* | pw32* | cegcc*)
12820       # This hack is so that the source file can tell whether it is being
12821       # built for inclusion in a dll (and should export symbols for example).
12822       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12823       # (--disable-auto-import) libraries
12824       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12825       ;;
12826     darwin* | rhapsody*)
12827       # PIC is the default on this platform
12828       # Common symbols not allowed in MH_DYLIB files
12829       lt_prog_compiler_pic_CXX='-fno-common'
12830       ;;
12831     *djgpp*)
12832       # DJGPP does not support shared libraries at all
12833       lt_prog_compiler_pic_CXX=
12834       ;;
12835     interix[3-9]*)
12836       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12837       # Instead, we relocate shared libraries at runtime.
12838       ;;
12839     sysv4*MP*)
12840       if test -d /usr/nec; then
12841         lt_prog_compiler_pic_CXX=-Kconform_pic
12842       fi
12843       ;;
12844     hpux*)
12845       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12846       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12847       # sets the default TLS model and affects inlining.
12848       case $host_cpu in
12849       hppa*64*)
12850         ;;
12851       *)
12852         lt_prog_compiler_pic_CXX='-fPIC'
12853         ;;
12854       esac
12855       ;;
12856     *qnx* | *nto*)
12857       # QNX uses GNU C++, but need to define -shared option too, otherwise
12858       # it will coredump.
12859       lt_prog_compiler_pic_CXX='-fPIC -shared'
12860       ;;
12861     *)
12862       lt_prog_compiler_pic_CXX='-fPIC'
12863       ;;
12864     esac
12865   else
12866     case $host_os in
12867       aix[4-9]*)
12868         # All AIX code is PIC.
12869         if test "$host_cpu" = ia64; then
12870           # AIX 5 now supports IA64 processor
12871           lt_prog_compiler_static_CXX='-Bstatic'
12872         else
12873           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12874         fi
12875         ;;
12876       chorus*)
12877         case $cc_basename in
12878         cxch68*)
12879           # Green Hills C++ Compiler
12880           # _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"
12881           ;;
12882         esac
12883         ;;
12884       dgux*)
12885         case $cc_basename in
12886           ec++*)
12887             lt_prog_compiler_pic_CXX='-KPIC'
12888             ;;
12889           ghcx*)
12890             # Green Hills C++ Compiler
12891             lt_prog_compiler_pic_CXX='-pic'
12892             ;;
12893           *)
12894             ;;
12895         esac
12896         ;;
12897       freebsd* | dragonfly*)
12898         # FreeBSD uses GNU C++
12899         ;;
12900       hpux9* | hpux10* | hpux11*)
12901         case $cc_basename in
12902           CC*)
12903             lt_prog_compiler_wl_CXX='-Wl,'
12904             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12905             if test "$host_cpu" != ia64; then
12906               lt_prog_compiler_pic_CXX='+Z'
12907             fi
12908             ;;
12909           aCC*)
12910             lt_prog_compiler_wl_CXX='-Wl,'
12911             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12912             case $host_cpu in
12913             hppa*64*|ia64*)
12914               # +Z the default
12915               ;;
12916             *)
12917               lt_prog_compiler_pic_CXX='+Z'
12918               ;;
12919             esac
12920             ;;
12921           *)
12922             ;;
12923         esac
12924         ;;
12925       interix*)
12926         # This is c89, which is MS Visual C++ (no shared libs)
12927         # Anyone wants to do a port?
12928         ;;
12929       irix5* | irix6* | nonstopux*)
12930         case $cc_basename in
12931           CC*)
12932             lt_prog_compiler_wl_CXX='-Wl,'
12933             lt_prog_compiler_static_CXX='-non_shared'
12934             # CC pic flag -KPIC is the default.
12935             ;;
12936           *)
12937             ;;
12938         esac
12939         ;;
12940       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12941         case $cc_basename in
12942           KCC*)
12943             # KAI C++ Compiler
12944             lt_prog_compiler_wl_CXX='--backend -Wl,'
12945             lt_prog_compiler_pic_CXX='-fPIC'
12946             ;;
12947           ecpc* )
12948             # old Intel C++ for x86_64 which still supported -KPIC.
12949             lt_prog_compiler_wl_CXX='-Wl,'
12950             lt_prog_compiler_pic_CXX='-KPIC'
12951             lt_prog_compiler_static_CXX='-static'
12952             ;;
12953           icpc* )
12954             # Intel C++, used to be incompatible with GCC.
12955             # ICC 10 doesn't accept -KPIC any more.
12956             lt_prog_compiler_wl_CXX='-Wl,'
12957             lt_prog_compiler_pic_CXX='-fPIC'
12958             lt_prog_compiler_static_CXX='-static'
12959             ;;
12960           pgCC* | pgcpp*)
12961             # Portland Group C++ compiler
12962             lt_prog_compiler_wl_CXX='-Wl,'
12963             lt_prog_compiler_pic_CXX='-fpic'
12964             lt_prog_compiler_static_CXX='-Bstatic'
12965             ;;
12966           cxx*)
12967             # Compaq C++
12968             # Make sure the PIC flag is empty.  It appears that all Alpha
12969             # Linux and Compaq Tru64 Unix objects are PIC.
12970             lt_prog_compiler_pic_CXX=
12971             lt_prog_compiler_static_CXX='-non_shared'
12972             ;;
12973           xlc* | xlC*)
12974             # IBM XL 8.0 on PPC
12975             lt_prog_compiler_wl_CXX='-Wl,'
12976             lt_prog_compiler_pic_CXX='-qpic'
12977             lt_prog_compiler_static_CXX='-qstaticlink'
12978             ;;
12979           *)
12980             case `$CC -V 2>&1 | sed 5q` in
12981             *Sun\ C*)
12982               # Sun C++ 5.9
12983               lt_prog_compiler_pic_CXX='-KPIC'
12984               lt_prog_compiler_static_CXX='-Bstatic'
12985               lt_prog_compiler_wl_CXX='-Qoption ld '
12986               ;;
12987             esac
12988             ;;
12989         esac
12990         ;;
12991       lynxos*)
12992         ;;
12993       m88k*)
12994         ;;
12995       mvs*)
12996         case $cc_basename in
12997           cxx*)
12998             lt_prog_compiler_pic_CXX='-W c,exportall'
12999             ;;
13000           *)
13001             ;;
13002         esac
13003         ;;
13004       netbsd* | netbsdelf*-gnu)
13005         ;;
13006       *qnx* | *nto*)
13007         # QNX uses GNU C++, but need to define -shared option too, otherwise
13008         # it will coredump.
13009         lt_prog_compiler_pic_CXX='-fPIC -shared'
13010         ;;
13011       osf3* | osf4* | osf5*)
13012         case $cc_basename in
13013           KCC*)
13014             lt_prog_compiler_wl_CXX='--backend -Wl,'
13015             ;;
13016           RCC*)
13017             # Rational C++ 2.4.1
13018             lt_prog_compiler_pic_CXX='-pic'
13019             ;;
13020           cxx*)
13021             # Digital/Compaq C++
13022             lt_prog_compiler_wl_CXX='-Wl,'
13023             # Make sure the PIC flag is empty.  It appears that all Alpha
13024             # Linux and Compaq Tru64 Unix objects are PIC.
13025             lt_prog_compiler_pic_CXX=
13026             lt_prog_compiler_static_CXX='-non_shared'
13027             ;;
13028           *)
13029             ;;
13030         esac
13031         ;;
13032       psos*)
13033         ;;
13034       solaris*)
13035         case $cc_basename in
13036           CC*)
13037             # Sun C++ 4.2, 5.x and Centerline C++
13038             lt_prog_compiler_pic_CXX='-KPIC'
13039             lt_prog_compiler_static_CXX='-Bstatic'
13040             lt_prog_compiler_wl_CXX='-Qoption ld '
13041             ;;
13042           gcx*)
13043             # Green Hills C++ Compiler
13044             lt_prog_compiler_pic_CXX='-PIC'
13045             ;;
13046           *)
13047             ;;
13048         esac
13049         ;;
13050       sunos4*)
13051         case $cc_basename in
13052           CC*)
13053             # Sun C++ 4.x
13054             lt_prog_compiler_pic_CXX='-pic'
13055             lt_prog_compiler_static_CXX='-Bstatic'
13056             ;;
13057           lcc*)
13058             # Lucid
13059             lt_prog_compiler_pic_CXX='-pic'
13060             ;;
13061           *)
13062             ;;
13063         esac
13064         ;;
13065       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13066         case $cc_basename in
13067           CC*)
13068             lt_prog_compiler_wl_CXX='-Wl,'
13069             lt_prog_compiler_pic_CXX='-KPIC'
13070             lt_prog_compiler_static_CXX='-Bstatic'
13071             ;;
13072         esac
13073         ;;
13074       tandem*)
13075         case $cc_basename in
13076           NCC*)
13077             # NonStop-UX NCC 3.20
13078             lt_prog_compiler_pic_CXX='-KPIC'
13079             ;;
13080           *)
13081             ;;
13082         esac
13083         ;;
13084       vxworks*)
13085         ;;
13086       *)
13087         lt_prog_compiler_can_build_shared_CXX=no
13088         ;;
13089     esac
13090   fi
13091
13092 case $host_os in
13093   # For platforms which do not support PIC, -DPIC is meaningless:
13094   *djgpp*)
13095     lt_prog_compiler_pic_CXX=
13096     ;;
13097   *)
13098     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13099     ;;
13100 esac
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13102 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13103
13104
13105
13106 #
13107 # Check to make sure the PIC flag actually works.
13108 #
13109 if test -n "$lt_prog_compiler_pic_CXX"; then
13110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13111 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13112 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13113   $as_echo_n "(cached) " >&6
13114 else
13115   lt_cv_prog_compiler_pic_works_CXX=no
13116    ac_outfile=conftest.$ac_objext
13117    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13118    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13119    # Insert the option either (1) after the last *FLAGS variable, or
13120    # (2) before a word containing "conftest.", or (3) at the end.
13121    # Note that $ac_compile itself does not contain backslashes and begins
13122    # with a dollar sign (not a hyphen), so the echo should work correctly.
13123    # The option is referenced via a variable to avoid confusing sed.
13124    lt_compile=`echo "$ac_compile" | $SED \
13125    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13126    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13127    -e 's:$: $lt_compiler_flag:'`
13128    (eval echo "\"\$as_me:13128: $lt_compile\"" >&5)
13129    (eval "$lt_compile" 2>conftest.err)
13130    ac_status=$?
13131    cat conftest.err >&5
13132    echo "$as_me:13132: \$? = $ac_status" >&5
13133    if (exit $ac_status) && test -s "$ac_outfile"; then
13134      # The compiler can only warn and ignore the option if not recognized
13135      # So say no if there are warnings other than the usual output.
13136      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13137      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13138      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13139        lt_cv_prog_compiler_pic_works_CXX=yes
13140      fi
13141    fi
13142    $RM conftest*
13143
13144 fi
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13146 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13147
13148 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13149     case $lt_prog_compiler_pic_CXX in
13150      "" | " "*) ;;
13151      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13152      esac
13153 else
13154     lt_prog_compiler_pic_CXX=
13155      lt_prog_compiler_can_build_shared_CXX=no
13156 fi
13157
13158 fi
13159
13160
13161
13162 #
13163 # Check to make sure the static flag actually works.
13164 #
13165 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13167 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13168 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13169   $as_echo_n "(cached) " >&6
13170 else
13171   lt_cv_prog_compiler_static_works_CXX=no
13172    save_LDFLAGS="$LDFLAGS"
13173    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13174    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13175    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13176      # The linker can only warn and ignore the option if not recognized
13177      # So say no if there are warnings
13178      if test -s conftest.err; then
13179        # Append any errors to the config.log.
13180        cat conftest.err 1>&5
13181        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13182        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13183        if diff conftest.exp conftest.er2 >/dev/null; then
13184          lt_cv_prog_compiler_static_works_CXX=yes
13185        fi
13186      else
13187        lt_cv_prog_compiler_static_works_CXX=yes
13188      fi
13189    fi
13190    $RM -r conftest*
13191    LDFLAGS="$save_LDFLAGS"
13192
13193 fi
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13195 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13196
13197 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13198     :
13199 else
13200     lt_prog_compiler_static_CXX=
13201 fi
13202
13203
13204
13205
13206     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13207 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13208 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13209   $as_echo_n "(cached) " >&6
13210 else
13211   lt_cv_prog_compiler_c_o_CXX=no
13212    $RM -r conftest 2>/dev/null
13213    mkdir conftest
13214    cd conftest
13215    mkdir out
13216    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13217
13218    lt_compiler_flag="-o out/conftest2.$ac_objext"
13219    # Insert the option either (1) after the last *FLAGS variable, or
13220    # (2) before a word containing "conftest.", or (3) at the end.
13221    # Note that $ac_compile itself does not contain backslashes and begins
13222    # with a dollar sign (not a hyphen), so the echo should work correctly.
13223    lt_compile=`echo "$ac_compile" | $SED \
13224    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13225    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13226    -e 's:$: $lt_compiler_flag:'`
13227    (eval echo "\"\$as_me:13227: $lt_compile\"" >&5)
13228    (eval "$lt_compile" 2>out/conftest.err)
13229    ac_status=$?
13230    cat out/conftest.err >&5
13231    echo "$as_me:13231: \$? = $ac_status" >&5
13232    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13233    then
13234      # The compiler can only warn and ignore the option if not recognized
13235      # So say no if there are warnings
13236      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13237      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13238      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13239        lt_cv_prog_compiler_c_o_CXX=yes
13240      fi
13241    fi
13242    chmod u+w . 2>&5
13243    $RM conftest*
13244    # SGI C++ compiler will create directory out/ii_files/ for
13245    # template instantiation
13246    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13247    $RM out/* && rmdir out
13248    cd ..
13249    $RM -r conftest
13250    $RM conftest*
13251
13252 fi
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13254 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13255
13256
13257
13258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13259 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13260 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13261   $as_echo_n "(cached) " >&6
13262 else
13263   lt_cv_prog_compiler_c_o_CXX=no
13264    $RM -r conftest 2>/dev/null
13265    mkdir conftest
13266    cd conftest
13267    mkdir out
13268    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13269
13270    lt_compiler_flag="-o out/conftest2.$ac_objext"
13271    # Insert the option either (1) after the last *FLAGS variable, or
13272    # (2) before a word containing "conftest.", or (3) at the end.
13273    # Note that $ac_compile itself does not contain backslashes and begins
13274    # with a dollar sign (not a hyphen), so the echo should work correctly.
13275    lt_compile=`echo "$ac_compile" | $SED \
13276    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13277    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13278    -e 's:$: $lt_compiler_flag:'`
13279    (eval echo "\"\$as_me:13279: $lt_compile\"" >&5)
13280    (eval "$lt_compile" 2>out/conftest.err)
13281    ac_status=$?
13282    cat out/conftest.err >&5
13283    echo "$as_me:13283: \$? = $ac_status" >&5
13284    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13285    then
13286      # The compiler can only warn and ignore the option if not recognized
13287      # So say no if there are warnings
13288      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13289      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13290      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13291        lt_cv_prog_compiler_c_o_CXX=yes
13292      fi
13293    fi
13294    chmod u+w . 2>&5
13295    $RM conftest*
13296    # SGI C++ compiler will create directory out/ii_files/ for
13297    # template instantiation
13298    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13299    $RM out/* && rmdir out
13300    cd ..
13301    $RM -r conftest
13302    $RM conftest*
13303
13304 fi
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13306 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13307
13308
13309
13310
13311 hard_links="nottested"
13312 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13313   # do not overwrite the value of need_locks provided by the user
13314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13315 $as_echo_n "checking if we can lock with hard links... " >&6; }
13316   hard_links=yes
13317   $RM conftest*
13318   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13319   touch conftest.a
13320   ln conftest.a conftest.b 2>&5 || hard_links=no
13321   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13323 $as_echo "$hard_links" >&6; }
13324   if test "$hard_links" = no; then
13325     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13326 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13327     need_locks=warn
13328   fi
13329 else
13330   need_locks=no
13331 fi
13332
13333
13334
13335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13336 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13337
13338   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13339   case $host_os in
13340   aix[4-9]*)
13341     # If we're using GNU nm, then we don't want the "-C" option.
13342     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13343     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13344       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'
13345     else
13346       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'
13347     fi
13348     ;;
13349   pw32*)
13350     export_symbols_cmds_CXX="$ltdll_cmds"
13351   ;;
13352   cygwin* | mingw* | cegcc*)
13353     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'
13354   ;;
13355   linux* | k*bsd*-gnu)
13356     link_all_deplibs_CXX=no
13357   ;;
13358   *)
13359     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13360   ;;
13361   esac
13362   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13363
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13365 $as_echo "$ld_shlibs_CXX" >&6; }
13366 test "$ld_shlibs_CXX" = no && can_build_shared=no
13367
13368 with_gnu_ld_CXX=$with_gnu_ld
13369
13370
13371
13372
13373
13374
13375 #
13376 # Do we need to explicitly link libc?
13377 #
13378 case "x$archive_cmds_need_lc_CXX" in
13379 x|xyes)
13380   # Assume -lc should be added
13381   archive_cmds_need_lc_CXX=yes
13382
13383   if test "$enable_shared" = yes && test "$GCC" = yes; then
13384     case $archive_cmds_CXX in
13385     *'~'*)
13386       # FIXME: we may have to deal with multi-command sequences.
13387       ;;
13388     '$CC '*)
13389       # Test whether the compiler implicitly links with -lc since on some
13390       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13391       # to ld, don't add -lc before -lgcc.
13392       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13393 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13394       $RM conftest*
13395       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13396
13397       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13398   (eval $ac_compile) 2>&5
13399   ac_status=$?
13400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13401   test $ac_status = 0; } 2>conftest.err; then
13402         soname=conftest
13403         lib=conftest
13404         libobjs=conftest.$ac_objext
13405         deplibs=
13406         wl=$lt_prog_compiler_wl_CXX
13407         pic_flag=$lt_prog_compiler_pic_CXX
13408         compiler_flags=-v
13409         linker_flags=-v
13410         verstring=
13411         output_objdir=.
13412         libname=conftest
13413         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13414         allow_undefined_flag_CXX=
13415         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13416   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13417   ac_status=$?
13418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13419   test $ac_status = 0; }
13420         then
13421           archive_cmds_need_lc_CXX=no
13422         else
13423           archive_cmds_need_lc_CXX=yes
13424         fi
13425         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13426       else
13427         cat conftest.err 1>&5
13428       fi
13429       $RM conftest*
13430       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13431 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13432       ;;
13433     esac
13434   fi
13435   ;;
13436 esac
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13502 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13503
13504 library_names_spec=
13505 libname_spec='lib$name'
13506 soname_spec=
13507 shrext_cmds=".so"
13508 postinstall_cmds=
13509 postuninstall_cmds=
13510 finish_cmds=
13511 finish_eval=
13512 shlibpath_var=
13513 shlibpath_overrides_runpath=unknown
13514 version_type=none
13515 dynamic_linker="$host_os ld.so"
13516 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13517 need_lib_prefix=unknown
13518 hardcode_into_libs=no
13519
13520 # when you set need_version to no, make sure it does not cause -set_version
13521 # flags to be left without arguments
13522 need_version=unknown
13523
13524 case $host_os in
13525 aix3*)
13526   version_type=linux
13527   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13528   shlibpath_var=LIBPATH
13529
13530   # AIX 3 has no versioning support, so we append a major version to the name.
13531   soname_spec='${libname}${release}${shared_ext}$major'
13532   ;;
13533
13534 aix[4-9]*)
13535   version_type=linux
13536   need_lib_prefix=no
13537   need_version=no
13538   hardcode_into_libs=yes
13539   if test "$host_cpu" = ia64; then
13540     # AIX 5 supports IA64
13541     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13542     shlibpath_var=LD_LIBRARY_PATH
13543   else
13544     # With GCC up to 2.95.x, collect2 would create an import file
13545     # for dependence libraries.  The import file would start with
13546     # the line `#! .'.  This would cause the generated library to
13547     # depend on `.', always an invalid library.  This was fixed in
13548     # development snapshots of GCC prior to 3.0.
13549     case $host_os in
13550       aix4 | aix4.[01] | aix4.[01].*)
13551       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13552            echo ' yes '
13553            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13554         :
13555       else
13556         can_build_shared=no
13557       fi
13558       ;;
13559     esac
13560     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13561     # soname into executable. Probably we can add versioning support to
13562     # collect2, so additional links can be useful in future.
13563     if test "$aix_use_runtimelinking" = yes; then
13564       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13565       # instead of lib<name>.a to let people know that these are not
13566       # typical AIX shared libraries.
13567       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13568     else
13569       # We preserve .a as extension for shared libraries through AIX4.2
13570       # and later when we are not doing run time linking.
13571       library_names_spec='${libname}${release}.a $libname.a'
13572       soname_spec='${libname}${release}${shared_ext}$major'
13573     fi
13574     shlibpath_var=LIBPATH
13575   fi
13576   ;;
13577
13578 amigaos*)
13579   case $host_cpu in
13580   powerpc)
13581     # Since July 2007 AmigaOS4 officially supports .so libraries.
13582     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13583     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13584     ;;
13585   m68k)
13586     library_names_spec='$libname.ixlibrary $libname.a'
13587     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13588     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'
13589     ;;
13590   esac
13591   ;;
13592
13593 beos*)
13594   library_names_spec='${libname}${shared_ext}'
13595   dynamic_linker="$host_os ld.so"
13596   shlibpath_var=LIBRARY_PATH
13597   ;;
13598
13599 bsdi[45]*)
13600   version_type=linux
13601   need_version=no
13602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13603   soname_spec='${libname}${release}${shared_ext}$major'
13604   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13605   shlibpath_var=LD_LIBRARY_PATH
13606   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13607   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13608   # the default ld.so.conf also contains /usr/contrib/lib and
13609   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13610   # libtool to hard-code these into programs
13611   ;;
13612
13613 cygwin* | mingw* | pw32* | cegcc*)
13614   version_type=windows
13615   shrext_cmds=".dll"
13616   need_version=no
13617   need_lib_prefix=no
13618
13619   case $GCC,$host_os in
13620   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13621     library_names_spec='$libname.dll.a'
13622     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13623     postinstall_cmds='base_file=`basename \${file}`~
13624       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13625       dldir=$destdir/`dirname \$dlpath`~
13626       test -d \$dldir || mkdir -p \$dldir~
13627       $install_prog $dir/$dlname \$dldir/$dlname~
13628       chmod a+x \$dldir/$dlname~
13629       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13630         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13631       fi'
13632     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13633       dlpath=$dir/\$dldll~
13634        $RM \$dlpath'
13635     shlibpath_overrides_runpath=yes
13636
13637     case $host_os in
13638     cygwin*)
13639       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13640       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13641       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13642       ;;
13643     mingw* | cegcc*)
13644       # MinGW DLLs use traditional 'lib' prefix
13645       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13646       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13647       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13648         # It is most probably a Windows format PATH printed by
13649         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13650         # path with ; separators, and with drive letters. We can handle the
13651         # drive letters (cygwin fileutils understands them), so leave them,
13652         # especially as we might pass files found there to a mingw objdump,
13653         # which wouldn't understand a cygwinified path. Ahh.
13654         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13655       else
13656         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13657       fi
13658       ;;
13659     pw32*)
13660       # pw32 DLLs use 'pw' prefix rather than 'lib'
13661       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13662       ;;
13663     esac
13664     ;;
13665
13666   *)
13667     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13668     ;;
13669   esac
13670   dynamic_linker='Win32 ld.exe'
13671   # FIXME: first we should search . and the directory the executable is in
13672   shlibpath_var=PATH
13673   ;;
13674
13675 darwin* | rhapsody*)
13676   dynamic_linker="$host_os dyld"
13677   version_type=darwin
13678   need_lib_prefix=no
13679   need_version=no
13680   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13681   soname_spec='${libname}${release}${major}$shared_ext'
13682   shlibpath_overrides_runpath=yes
13683   shlibpath_var=DYLD_LIBRARY_PATH
13684   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13685
13686   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13687   ;;
13688
13689 dgux*)
13690   version_type=linux
13691   need_lib_prefix=no
13692   need_version=no
13693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13694   soname_spec='${libname}${release}${shared_ext}$major'
13695   shlibpath_var=LD_LIBRARY_PATH
13696   ;;
13697
13698 freebsd1*)
13699   dynamic_linker=no
13700   ;;
13701
13702 freebsd* | dragonfly*)
13703   # DragonFly does not have aout.  When/if they implement a new
13704   # versioning mechanism, adjust this.
13705   if test -x /usr/bin/objformat; then
13706     objformat=`/usr/bin/objformat`
13707   else
13708     case $host_os in
13709     freebsd[123]*) objformat=aout ;;
13710     *) objformat=elf ;;
13711     esac
13712   fi
13713   version_type=freebsd-$objformat
13714   case $version_type in
13715     freebsd-elf*)
13716       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13717       need_version=no
13718       need_lib_prefix=no
13719       ;;
13720     freebsd-*)
13721       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13722       need_version=yes
13723       ;;
13724   esac
13725   shlibpath_var=LD_LIBRARY_PATH
13726   case $host_os in
13727   freebsd2*)
13728     shlibpath_overrides_runpath=yes
13729     ;;
13730   freebsd3.[01]* | freebsdelf3.[01]*)
13731     shlibpath_overrides_runpath=yes
13732     hardcode_into_libs=yes
13733     ;;
13734   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13735   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13736     shlibpath_overrides_runpath=no
13737     hardcode_into_libs=yes
13738     ;;
13739   *) # from 4.6 on, and DragonFly
13740     shlibpath_overrides_runpath=yes
13741     hardcode_into_libs=yes
13742     ;;
13743   esac
13744   ;;
13745
13746 gnu*)
13747   version_type=linux
13748   need_lib_prefix=no
13749   need_version=no
13750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13751   soname_spec='${libname}${release}${shared_ext}$major'
13752   shlibpath_var=LD_LIBRARY_PATH
13753   hardcode_into_libs=yes
13754   ;;
13755
13756 hpux9* | hpux10* | hpux11*)
13757   # Give a soname corresponding to the major version so that dld.sl refuses to
13758   # link against other versions.
13759   version_type=sunos
13760   need_lib_prefix=no
13761   need_version=no
13762   case $host_cpu in
13763   ia64*)
13764     shrext_cmds='.so'
13765     hardcode_into_libs=yes
13766     dynamic_linker="$host_os dld.so"
13767     shlibpath_var=LD_LIBRARY_PATH
13768     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13770     soname_spec='${libname}${release}${shared_ext}$major'
13771     if test "X$HPUX_IA64_MODE" = X32; then
13772       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13773     else
13774       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13775     fi
13776     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13777     ;;
13778   hppa*64*)
13779     shrext_cmds='.sl'
13780     hardcode_into_libs=yes
13781     dynamic_linker="$host_os dld.sl"
13782     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13783     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13784     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13785     soname_spec='${libname}${release}${shared_ext}$major'
13786     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13787     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13788     ;;
13789   *)
13790     shrext_cmds='.sl'
13791     dynamic_linker="$host_os dld.sl"
13792     shlibpath_var=SHLIB_PATH
13793     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13795     soname_spec='${libname}${release}${shared_ext}$major'
13796     ;;
13797   esac
13798   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13799   postinstall_cmds='chmod 555 $lib'
13800   ;;
13801
13802 interix[3-9]*)
13803   version_type=linux
13804   need_lib_prefix=no
13805   need_version=no
13806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13807   soname_spec='${libname}${release}${shared_ext}$major'
13808   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13809   shlibpath_var=LD_LIBRARY_PATH
13810   shlibpath_overrides_runpath=no
13811   hardcode_into_libs=yes
13812   ;;
13813
13814 irix5* | irix6* | nonstopux*)
13815   case $host_os in
13816     nonstopux*) version_type=nonstopux ;;
13817     *)
13818         if test "$lt_cv_prog_gnu_ld" = yes; then
13819                 version_type=linux
13820         else
13821                 version_type=irix
13822         fi ;;
13823   esac
13824   need_lib_prefix=no
13825   need_version=no
13826   soname_spec='${libname}${release}${shared_ext}$major'
13827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13828   case $host_os in
13829   irix5* | nonstopux*)
13830     libsuff= shlibsuff=
13831     ;;
13832   *)
13833     case $LD in # libtool.m4 will add one of these switches to LD
13834     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13835       libsuff= shlibsuff= libmagic=32-bit;;
13836     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13837       libsuff=32 shlibsuff=N32 libmagic=N32;;
13838     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13839       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13840     *) libsuff= shlibsuff= libmagic=never-match;;
13841     esac
13842     ;;
13843   esac
13844   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13845   shlibpath_overrides_runpath=no
13846   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13847   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13848   hardcode_into_libs=yes
13849   ;;
13850
13851 # No shared lib support for Linux oldld, aout, or coff.
13852 linux*oldld* | linux*aout* | linux*coff*)
13853   dynamic_linker=no
13854   ;;
13855
13856 # This must be Linux ELF.
13857 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13858   version_type=linux
13859   need_lib_prefix=no
13860   need_version=no
13861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13862   soname_spec='${libname}${release}${shared_ext}$major'
13863   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13864   shlibpath_var=LD_LIBRARY_PATH
13865   shlibpath_overrides_runpath=no
13866   # Some binutils ld are patched to set DT_RUNPATH
13867   save_LDFLAGS=$LDFLAGS
13868   save_libdir=$libdir
13869   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13870        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h.  */
13873
13874 int
13875 main ()
13876 {
13877
13878   ;
13879   return 0;
13880 }
13881 _ACEOF
13882 if ac_fn_cxx_try_link "$LINENO"; then :
13883   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13884   shlibpath_overrides_runpath=yes
13885 fi
13886 fi
13887 rm -f core conftest.err conftest.$ac_objext \
13888     conftest$ac_exeext conftest.$ac_ext
13889   LDFLAGS=$save_LDFLAGS
13890   libdir=$save_libdir
13891
13892   # This implies no fast_install, which is unacceptable.
13893   # Some rework will be needed to allow for fast_install
13894   # before this can be enabled.
13895   hardcode_into_libs=yes
13896
13897   # Append ld.so.conf contents to the search path
13898   if test -f /etc/ld.so.conf; then
13899     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' ' '`
13900     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13901   fi
13902
13903   # We used to test for /lib/ld.so.1 and disable shared libraries on
13904   # powerpc, because MkLinux only supported shared libraries with the
13905   # GNU dynamic linker.  Since this was broken with cross compilers,
13906   # most powerpc-linux boxes support dynamic linking these days and
13907   # people can always --disable-shared, the test was removed, and we
13908   # assume the GNU/Linux dynamic linker is in use.
13909   dynamic_linker='GNU/Linux ld.so'
13910   ;;
13911
13912 netbsdelf*-gnu)
13913   version_type=linux
13914   need_lib_prefix=no
13915   need_version=no
13916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13917   soname_spec='${libname}${release}${shared_ext}$major'
13918   shlibpath_var=LD_LIBRARY_PATH
13919   shlibpath_overrides_runpath=no
13920   hardcode_into_libs=yes
13921   dynamic_linker='NetBSD ld.elf_so'
13922   ;;
13923
13924 netbsd*)
13925   version_type=sunos
13926   need_lib_prefix=no
13927   need_version=no
13928   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13930     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13931     dynamic_linker='NetBSD (a.out) ld.so'
13932   else
13933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13934     soname_spec='${libname}${release}${shared_ext}$major'
13935     dynamic_linker='NetBSD ld.elf_so'
13936   fi
13937   shlibpath_var=LD_LIBRARY_PATH
13938   shlibpath_overrides_runpath=yes
13939   hardcode_into_libs=yes
13940   ;;
13941
13942 newsos6)
13943   version_type=linux
13944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945   shlibpath_var=LD_LIBRARY_PATH
13946   shlibpath_overrides_runpath=yes
13947   ;;
13948
13949 *nto* | *qnx*)
13950   version_type=qnx
13951   need_lib_prefix=no
13952   need_version=no
13953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13954   soname_spec='${libname}${release}${shared_ext}$major'
13955   shlibpath_var=LD_LIBRARY_PATH
13956   shlibpath_overrides_runpath=no
13957   hardcode_into_libs=yes
13958   dynamic_linker='ldqnx.so'
13959   ;;
13960
13961 openbsd*)
13962   version_type=sunos
13963   sys_lib_dlsearch_path_spec="/usr/lib"
13964   need_lib_prefix=no
13965   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13966   case $host_os in
13967     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13968     *)                          need_version=no  ;;
13969   esac
13970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13971   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13972   shlibpath_var=LD_LIBRARY_PATH
13973   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13974     case $host_os in
13975       openbsd2.[89] | openbsd2.[89].*)
13976         shlibpath_overrides_runpath=no
13977         ;;
13978       *)
13979         shlibpath_overrides_runpath=yes
13980         ;;
13981       esac
13982   else
13983     shlibpath_overrides_runpath=yes
13984   fi
13985   ;;
13986
13987 os2*)
13988   libname_spec='$name'
13989   shrext_cmds=".dll"
13990   need_lib_prefix=no
13991   library_names_spec='$libname${shared_ext} $libname.a'
13992   dynamic_linker='OS/2 ld.exe'
13993   shlibpath_var=LIBPATH
13994   ;;
13995
13996 osf3* | osf4* | osf5*)
13997   version_type=osf
13998   need_lib_prefix=no
13999   need_version=no
14000   soname_spec='${libname}${release}${shared_ext}$major'
14001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14002   shlibpath_var=LD_LIBRARY_PATH
14003   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14004   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14005   ;;
14006
14007 rdos*)
14008   dynamic_linker=no
14009   ;;
14010
14011 solaris*)
14012   version_type=linux
14013   need_lib_prefix=no
14014   need_version=no
14015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14016   soname_spec='${libname}${release}${shared_ext}$major'
14017   shlibpath_var=LD_LIBRARY_PATH
14018   shlibpath_overrides_runpath=yes
14019   hardcode_into_libs=yes
14020   # ldd complains unless libraries are executable
14021   postinstall_cmds='chmod +x $lib'
14022   ;;
14023
14024 sunos4*)
14025   version_type=sunos
14026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14027   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14028   shlibpath_var=LD_LIBRARY_PATH
14029   shlibpath_overrides_runpath=yes
14030   if test "$with_gnu_ld" = yes; then
14031     need_lib_prefix=no
14032   fi
14033   need_version=yes
14034   ;;
14035
14036 sysv4 | sysv4.3*)
14037   version_type=linux
14038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14039   soname_spec='${libname}${release}${shared_ext}$major'
14040   shlibpath_var=LD_LIBRARY_PATH
14041   case $host_vendor in
14042     sni)
14043       shlibpath_overrides_runpath=no
14044       need_lib_prefix=no
14045       runpath_var=LD_RUN_PATH
14046       ;;
14047     siemens)
14048       need_lib_prefix=no
14049       ;;
14050     motorola)
14051       need_lib_prefix=no
14052       need_version=no
14053       shlibpath_overrides_runpath=no
14054       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14055       ;;
14056   esac
14057   ;;
14058
14059 sysv4*MP*)
14060   if test -d /usr/nec ;then
14061     version_type=linux
14062     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14063     soname_spec='$libname${shared_ext}.$major'
14064     shlibpath_var=LD_LIBRARY_PATH
14065   fi
14066   ;;
14067
14068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14069   version_type=freebsd-elf
14070   need_lib_prefix=no
14071   need_version=no
14072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14073   soname_spec='${libname}${release}${shared_ext}$major'
14074   shlibpath_var=LD_LIBRARY_PATH
14075   shlibpath_overrides_runpath=yes
14076   hardcode_into_libs=yes
14077   if test "$with_gnu_ld" = yes; then
14078     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14079   else
14080     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14081     case $host_os in
14082       sco3.2v5*)
14083         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14084         ;;
14085     esac
14086   fi
14087   sys_lib_dlsearch_path_spec='/usr/lib'
14088   ;;
14089
14090 tpf*)
14091   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14092   version_type=linux
14093   need_lib_prefix=no
14094   need_version=no
14095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14096   shlibpath_var=LD_LIBRARY_PATH
14097   shlibpath_overrides_runpath=no
14098   hardcode_into_libs=yes
14099   ;;
14100
14101 uts4*)
14102   version_type=linux
14103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14104   soname_spec='${libname}${release}${shared_ext}$major'
14105   shlibpath_var=LD_LIBRARY_PATH
14106   ;;
14107
14108 *)
14109   dynamic_linker=no
14110   ;;
14111 esac
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14113 $as_echo "$dynamic_linker" >&6; }
14114 test "$dynamic_linker" = no && can_build_shared=no
14115
14116 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14117 if test "$GCC" = yes; then
14118   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14119 fi
14120
14121 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14122   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14123 fi
14124 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14125   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14126 fi
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14164 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14165 hardcode_action_CXX=
14166 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14167    test -n "$runpath_var_CXX" ||
14168    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14169
14170   # We can hardcode non-existent directories.
14171   if test "$hardcode_direct_CXX" != no &&
14172      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14173      # have to relink, otherwise we might link with an installed library
14174      # when we should be linking with a yet-to-be-installed one
14175      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14176      test "$hardcode_minus_L_CXX" != no; then
14177     # Linking always hardcodes the temporary library directory.
14178     hardcode_action_CXX=relink
14179   else
14180     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14181     hardcode_action_CXX=immediate
14182   fi
14183 else
14184   # We cannot hardcode anything, or else we can only hardcode existing
14185   # directories.
14186   hardcode_action_CXX=unsupported
14187 fi
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14189 $as_echo "$hardcode_action_CXX" >&6; }
14190
14191 if test "$hardcode_action_CXX" = relink ||
14192    test "$inherit_rpath_CXX" = yes; then
14193   # Fast installation is not supported
14194   enable_fast_install=no
14195 elif test "$shlibpath_overrides_runpath" = yes ||
14196      test "$enable_shared" = no; then
14197   # Fast installation is not necessary
14198   enable_fast_install=needless
14199 fi
14200
14201
14202
14203
14204
14205
14206
14207   fi # test -n "$compiler"
14208
14209   CC=$lt_save_CC
14210   LDCXX=$LD
14211   LD=$lt_save_LD
14212   GCC=$lt_save_GCC
14213   with_gnu_ld=$lt_save_with_gnu_ld
14214   lt_cv_path_LDCXX=$lt_cv_path_LD
14215   lt_cv_path_LD=$lt_save_path_LD
14216   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14217   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14218 fi # test "$_lt_caught_CXX_error" != yes
14219
14220 ac_ext=cpp
14221 ac_cpp='$CXXCPP $CPPFLAGS'
14222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238         ac_config_commands="$ac_config_commands libtool"
14239
14240
14241
14242
14243 # Only expand once:
14244
14245
14246
14247 # TODO(chandlerc@google.com): Currently we aren't running the Python tests
14248 # against the interpreter detected by AM_PATH_PYTHON, and so we condition
14249 # HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's
14250 # version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env"
14251 # hashbang.
14252 PYTHON=  # We *do not* allow the user to specify a python interpreter
14253 # Extract the first word of "python", so it can be a program name with args.
14254 set dummy python; ac_word=$2
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14256 $as_echo_n "checking for $ac_word... " >&6; }
14257 if test "${ac_cv_path_PYTHON+set}" = set; then :
14258   $as_echo_n "(cached) " >&6
14259 else
14260   case $PYTHON in
14261   [\\/]* | ?:[\\/]*)
14262   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14263   ;;
14264   *)
14265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14266 for as_dir in $PATH
14267 do
14268   IFS=$as_save_IFS
14269   test -z "$as_dir" && as_dir=.
14270     for ac_exec_ext in '' $ac_executable_extensions; do
14271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14272     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14274     break 2
14275   fi
14276 done
14277   done
14278 IFS=$as_save_IFS
14279
14280   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
14281   ;;
14282 esac
14283 fi
14284 PYTHON=$ac_cv_path_PYTHON
14285 if test -n "$PYTHON"; then
14286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14287 $as_echo "$PYTHON" >&6; }
14288 else
14289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14290 $as_echo "no" >&6; }
14291 fi
14292
14293
14294 if test "$PYTHON" != ":"; then :
14295   prog="import sys
14296 # split strings by '.' and convert to numeric.  Append some zeros
14297 # because we need at least 4 digits for the hex conversion.
14298 # map returns an iterator in Python 3.0 and a list in 2.x
14299 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
14300 minverhex = 0
14301 # xrange is not present in Python 3.0 and range returns an iterator
14302 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14303 sys.exit(sys.hexversion < minverhex)"
14304   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14305    ($PYTHON -c "$prog") >&5 2>&5
14306    ac_status=$?
14307    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308    (exit $ac_status); }; then :
14309   :
14310 else
14311   PYTHON=":"
14312 fi
14313 fi
14314  if test "$PYTHON" != ":"; then
14315   HAVE_PYTHON_TRUE=
14316   HAVE_PYTHON_FALSE='#'
14317 else
14318   HAVE_PYTHON_TRUE='#'
14319   HAVE_PYTHON_FALSE=
14320 fi
14321
14322
14323 # Configure pthreads.
14324
14325 # Check whether --with-pthreads was given.
14326 if test "${with_pthreads+set}" = set; then :
14327   withval=$with_pthreads; with_pthreads=$withval
14328 else
14329   with_pthreads=check
14330 fi
14331
14332
14333 have_pthreads=no
14334 if test "x$with_pthreads" != "xno"; then :
14335
14336
14337
14338 ac_ext=c
14339 ac_cpp='$CPP $CPPFLAGS'
14340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14343
14344 acx_pthread_ok=no
14345
14346 # We used to check for pthread.h first, but this fails if pthread.h
14347 # requires special compiler flags (e.g. on True64 or Sequent).
14348 # It gets checked for in the link test anyway.
14349
14350 # First of all, check if the user has set any of the PTHREAD_LIBS,
14351 # etcetera environment variables, and if threads linking works using
14352 # them:
14353 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14354         save_CFLAGS="$CFLAGS"
14355         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14356         save_LIBS="$LIBS"
14357         LIBS="$PTHREAD_LIBS $LIBS"
14358         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14359 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14360         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h.  */
14362
14363 /* Override any GCC internal prototype to avoid an error.
14364    Use char because int might match the return type of a GCC
14365    builtin and then its argument prototype would still apply.  */
14366 #ifdef __cplusplus
14367 extern "C"
14368 #endif
14369 char pthread_join ();
14370 int
14371 main ()
14372 {
14373 return pthread_join ();
14374   ;
14375   return 0;
14376 }
14377 _ACEOF
14378 if ac_fn_c_try_link "$LINENO"; then :
14379   acx_pthread_ok=yes
14380 fi
14381 rm -f core conftest.err conftest.$ac_objext \
14382     conftest$ac_exeext conftest.$ac_ext
14383         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14384 $as_echo "$acx_pthread_ok" >&6; }
14385         if test x"$acx_pthread_ok" = xno; then
14386                 PTHREAD_LIBS=""
14387                 PTHREAD_CFLAGS=""
14388         fi
14389         LIBS="$save_LIBS"
14390         CFLAGS="$save_CFLAGS"
14391 fi
14392
14393 # We must check for the threads library under a number of different
14394 # names; the ordering is very important because some systems
14395 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14396 # libraries is broken (non-POSIX).
14397
14398 # Create a list of thread flags to try.  Items starting with a "-" are
14399 # C compiler flags, and other items are library names, except for "none"
14400 # which indicates that we try without any flags at all, and "pthread-config"
14401 # which is a program returning the flags for the Pth emulation library.
14402
14403 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14404
14405 # The ordering *is* (sometimes) important.  Some notes on the
14406 # individual items follow:
14407
14408 # pthreads: AIX (must check this before -lpthread)
14409 # none: in case threads are in libc; should be tried before -Kthread and
14410 #       other compiler flags to prevent continual compiler warnings
14411 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14412 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14413 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14414 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14415 # -pthreads: Solaris/gcc
14416 # -mthreads: Mingw32/gcc, Lynx/gcc
14417 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14418 #      doesn't hurt to check since this sometimes defines pthreads too;
14419 #      also defines -D_REENTRANT)
14420 #      ... -mt is also the pthreads flag for HP/aCC
14421 # pthread: Linux, etcetera
14422 # --thread-safe: KAI C++
14423 # pthread-config: use pthread-config program (for GNU Pth library)
14424
14425 case "${host_cpu}-${host_os}" in
14426         *solaris*)
14427
14428         # On Solaris (at least, for some versions), libc contains stubbed
14429         # (non-functional) versions of the pthreads routines, so link-based
14430         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
14431         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
14432         # a function called by this macro, so we could check for that, but
14433         # who knows whether they'll stub that too in a future libc.)  So,
14434         # we'll just look for -pthreads and -lpthread first:
14435
14436         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14437         ;;
14438 esac
14439
14440 if test x"$acx_pthread_ok" = xno; then
14441 for flag in $acx_pthread_flags; do
14442
14443         case $flag in
14444                 none)
14445                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14446 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14447                 ;;
14448
14449                 -*)
14450                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14451 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14452                 PTHREAD_CFLAGS="$flag"
14453                 ;;
14454
14455                 pthread-config)
14456                 # Extract the first word of "pthread-config", so it can be a program name with args.
14457 set dummy pthread-config; ac_word=$2
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14459 $as_echo_n "checking for $ac_word... " >&6; }
14460 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
14461   $as_echo_n "(cached) " >&6
14462 else
14463   if test -n "$acx_pthread_config"; then
14464   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14465 else
14466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14467 for as_dir in $PATH
14468 do
14469   IFS=$as_save_IFS
14470   test -z "$as_dir" && as_dir=.
14471     for ac_exec_ext in '' $ac_executable_extensions; do
14472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14473     ac_cv_prog_acx_pthread_config="yes"
14474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14475     break 2
14476   fi
14477 done
14478   done
14479 IFS=$as_save_IFS
14480
14481   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14482 fi
14483 fi
14484 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14485 if test -n "$acx_pthread_config"; then
14486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14487 $as_echo "$acx_pthread_config" >&6; }
14488 else
14489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14491 fi
14492
14493
14494                 if test x"$acx_pthread_config" = xno; then continue; fi
14495                 PTHREAD_CFLAGS="`pthread-config --cflags`"
14496                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14497                 ;;
14498
14499                 *)
14500                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14501 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14502                 PTHREAD_LIBS="-l$flag"
14503                 ;;
14504         esac
14505
14506         save_LIBS="$LIBS"
14507         save_CFLAGS="$CFLAGS"
14508         LIBS="$PTHREAD_LIBS $LIBS"
14509         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14510
14511         # Check for various functions.  We must include pthread.h,
14512         # since some functions may be macros.  (On the Sequent, we
14513         # need a special flag -Kthread to make this header compile.)
14514         # We check for pthread_join because it is in -lpthread on IRIX
14515         # while pthread_create is in libc.  We check for pthread_attr_init
14516         # due to DEC craziness with -lpthreads.  We check for
14517         # pthread_cleanup_push because it is one of the few pthread
14518         # functions on Solaris that doesn't have a non-functional libc stub.
14519         # We try pthread_create on general principles.
14520         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h.  */
14522 #include <pthread.h>
14523 int
14524 main ()
14525 {
14526 pthread_t th; pthread_join(th, 0);
14527                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
14528                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14529   ;
14530   return 0;
14531 }
14532 _ACEOF
14533 if ac_fn_c_try_link "$LINENO"; then :
14534   acx_pthread_ok=yes
14535 fi
14536 rm -f core conftest.err conftest.$ac_objext \
14537     conftest$ac_exeext conftest.$ac_ext
14538
14539         LIBS="$save_LIBS"
14540         CFLAGS="$save_CFLAGS"
14541
14542         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14543 $as_echo "$acx_pthread_ok" >&6; }
14544         if test "x$acx_pthread_ok" = xyes; then
14545                 break;
14546         fi
14547
14548         PTHREAD_LIBS=""
14549         PTHREAD_CFLAGS=""
14550 done
14551 fi
14552
14553 # Various other checks:
14554 if test "x$acx_pthread_ok" = xyes; then
14555         save_LIBS="$LIBS"
14556         LIBS="$PTHREAD_LIBS $LIBS"
14557         save_CFLAGS="$CFLAGS"
14558         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14559
14560         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14561         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14562 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14563         attr_name=unknown
14564         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14565             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14566 /* end confdefs.h.  */
14567 #include <pthread.h>
14568 int
14569 main ()
14570 {
14571 int attr=$attr; return attr;
14572   ;
14573   return 0;
14574 }
14575 _ACEOF
14576 if ac_fn_c_try_link "$LINENO"; then :
14577   attr_name=$attr; break
14578 fi
14579 rm -f core conftest.err conftest.$ac_objext \
14580     conftest$ac_exeext conftest.$ac_ext
14581         done
14582         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14583 $as_echo "$attr_name" >&6; }
14584         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14585
14586 cat >>confdefs.h <<_ACEOF
14587 #define PTHREAD_CREATE_JOINABLE $attr_name
14588 _ACEOF
14589
14590         fi
14591
14592         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14593 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14594         flag=no
14595         case "${host_cpu}-${host_os}" in
14596             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14597             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14598         esac
14599         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14600 $as_echo "${flag}" >&6; }
14601         if test "x$flag" != xno; then
14602             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14603         fi
14604
14605         LIBS="$save_LIBS"
14606         CFLAGS="$save_CFLAGS"
14607         # More AIX lossage: must compile with xlc_r or cc_r
14608         if test x"$GCC" != xyes; then
14609           for ac_prog in xlc_r cc_r
14610 do
14611   # Extract the first word of "$ac_prog", so it can be a program name with args.
14612 set dummy $ac_prog; ac_word=$2
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14614 $as_echo_n "checking for $ac_word... " >&6; }
14615 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
14616   $as_echo_n "(cached) " >&6
14617 else
14618   if test -n "$PTHREAD_CC"; then
14619   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14620 else
14621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14622 for as_dir in $PATH
14623 do
14624   IFS=$as_save_IFS
14625   test -z "$as_dir" && as_dir=.
14626     for ac_exec_ext in '' $ac_executable_extensions; do
14627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14628     ac_cv_prog_PTHREAD_CC="$ac_prog"
14629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14630     break 2
14631   fi
14632 done
14633   done
14634 IFS=$as_save_IFS
14635
14636 fi
14637 fi
14638 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14639 if test -n "$PTHREAD_CC"; then
14640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14641 $as_echo "$PTHREAD_CC" >&6; }
14642 else
14643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14644 $as_echo "no" >&6; }
14645 fi
14646
14647
14648   test -n "$PTHREAD_CC" && break
14649 done
14650 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14651
14652         else
14653           PTHREAD_CC=$CC
14654         fi
14655
14656         # The next part tries to detect GCC inconsistency with -shared on some
14657         # architectures and systems. The problem is that in certain
14658         # configurations, when -shared is specified, GCC "forgets" to
14659         # internally use various flags which are still necessary.
14660
14661         #
14662         # Prepare the flags
14663         #
14664         save_CFLAGS="$CFLAGS"
14665         save_LIBS="$LIBS"
14666         save_CC="$CC"
14667
14668         # Try with the flags determined by the earlier checks.
14669         #
14670         # -Wl,-z,defs forces link-time symbol resolution, so that the
14671         # linking checks with -shared actually have any value
14672         #
14673         # FIXME: -fPIC is required for -shared on many architectures,
14674         # so we specify it here, but the right way would probably be to
14675         # properly detect whether it is actually required.
14676         CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
14677         LIBS="$PTHREAD_LIBS $LIBS"
14678         CC="$PTHREAD_CC"
14679
14680         # In order not to create several levels of indentation, we test
14681         # the value of "$done" until we find the cure or run out of ideas.
14682         done="no"
14683
14684         # First, make sure the CFLAGS we added are actually accepted by our
14685         # compiler.  If not (and OS X's ld, for instance, does not accept -z),
14686         # then we can't do this test.
14687         if test x"$done" = xno; then
14688            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
14689 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
14690            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h.  */
14692
14693 int
14694 main ()
14695 {
14696
14697   ;
14698   return 0;
14699 }
14700 _ACEOF
14701 if ac_fn_c_try_link "$LINENO"; then :
14702
14703 else
14704   done=yes
14705 fi
14706 rm -f core conftest.err conftest.$ac_objext \
14707     conftest$ac_exeext conftest.$ac_ext
14708
14709            if test "x$done" = xyes ; then
14710               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14711 $as_echo "no" >&6; }
14712            else
14713               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14714 $as_echo "yes" >&6; }
14715            fi
14716         fi
14717
14718         if test x"$done" = xno; then
14719            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
14720 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
14721            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h.  */
14723 #include <pthread.h>
14724 int
14725 main ()
14726 {
14727 pthread_t th; pthread_join(th, 0);
14728               pthread_attr_init(0); pthread_cleanup_push(0, 0);
14729               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14730   ;
14731   return 0;
14732 }
14733 _ACEOF
14734 if ac_fn_c_try_link "$LINENO"; then :
14735   done=yes
14736 fi
14737 rm -f core conftest.err conftest.$ac_objext \
14738     conftest$ac_exeext conftest.$ac_ext
14739
14740            if test "x$done" = xyes; then
14741               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14742 $as_echo "yes" >&6; }
14743            else
14744               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14745 $as_echo "no" >&6; }
14746            fi
14747         fi
14748
14749         #
14750         # Linux gcc on some architectures such as mips/mipsel forgets
14751         # about -lpthread
14752         #
14753         if test x"$done" = xno; then
14754            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
14755 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
14756            LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
14757            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h.  */
14759 #include <pthread.h>
14760 int
14761 main ()
14762 {
14763 pthread_t th; pthread_join(th, 0);
14764               pthread_attr_init(0); pthread_cleanup_push(0, 0);
14765               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14766   ;
14767   return 0;
14768 }
14769 _ACEOF
14770 if ac_fn_c_try_link "$LINENO"; then :
14771   done=yes
14772 fi
14773 rm -f core conftest.err conftest.$ac_objext \
14774     conftest$ac_exeext conftest.$ac_ext
14775
14776            if test "x$done" = xyes; then
14777               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14778 $as_echo "yes" >&6; }
14779               PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
14780            else
14781               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14782 $as_echo "no" >&6; }
14783            fi
14784         fi
14785         #
14786         # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
14787         #
14788         if test x"$done" = xno; then
14789            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
14790 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
14791            LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
14792            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h.  */
14794 #include <pthread.h>
14795 int
14796 main ()
14797 {
14798 pthread_t th; pthread_join(th, 0);
14799                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14800                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14801   ;
14802   return 0;
14803 }
14804 _ACEOF
14805 if ac_fn_c_try_link "$LINENO"; then :
14806   done=yes
14807 fi
14808 rm -f core conftest.err conftest.$ac_objext \
14809     conftest$ac_exeext conftest.$ac_ext
14810
14811            if test "x$done" = xyes; then
14812               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14813 $as_echo "yes" >&6; }
14814               PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
14815            else
14816               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14817 $as_echo "no" >&6; }
14818            fi
14819         fi
14820         if test x"$done" = xno; then
14821            # OK, we have run out of ideas
14822            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
14823 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
14824
14825            # so it's not safe to assume that we may use pthreads
14826            acx_pthread_ok=no
14827         fi
14828
14829         CFLAGS="$save_CFLAGS"
14830         LIBS="$save_LIBS"
14831         CC="$save_CC"
14832 else
14833         PTHREAD_CC="$CC"
14834 fi
14835
14836
14837
14838
14839
14840 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14841 if test x"$acx_pthread_ok" = xyes; then
14842
14843 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
14844
14845         :
14846 else
14847         acx_pthread_ok=no
14848         if test "x$with_pthreads" != "xcheck"; then :
14849   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14851 as_fn_error "--with-pthreads was specified, but unable to be used
14852 See \`config.log' for more details." "$LINENO" 5; }
14853 fi
14854 fi
14855 ac_ext=cpp
14856 ac_cpp='$CXXCPP $CPPFLAGS'
14857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14860
14861
14862        have_pthreads="$acx_pthread_ok"
14863 fi
14864  if test "x$have_pthreads" == "xyes"; then
14865   HAVE_PTHREADS_TRUE=
14866   HAVE_PTHREADS_FALSE='#'
14867 else
14868   HAVE_PTHREADS_TRUE='#'
14869   HAVE_PTHREADS_FALSE=
14870 fi
14871
14872
14873
14874
14875 # TODO(chandlerc@google.com) Check for the necessary system headers.
14876
14877 # TODO(chandlerc@google.com) Check the types, structures, and other compiler
14878 # and architecture characteristics.
14879
14880 # Output the generated files. No further autoconf macros may be used.
14881 cat >confcache <<\_ACEOF
14882 # This file is a shell script that caches the results of configure
14883 # tests run on this system so they can be shared between configure
14884 # scripts and configure runs, see configure's option --config-cache.
14885 # It is not useful on other systems.  If it contains results you don't
14886 # want to keep, you may remove or edit it.
14887 #
14888 # config.status only pays attention to the cache file if you give it
14889 # the --recheck option to rerun configure.
14890 #
14891 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14892 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14893 # following values.
14894
14895 _ACEOF
14896
14897 # The following way of writing the cache mishandles newlines in values,
14898 # but we know of no workaround that is simple, portable, and efficient.
14899 # So, we kill variables containing newlines.
14900 # Ultrix sh set writes to stderr and can't be redirected directly,
14901 # and sets the high bit in the cache file unless we assign to the vars.
14902 (
14903   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14904     eval ac_val=\$$ac_var
14905     case $ac_val in #(
14906     *${as_nl}*)
14907       case $ac_var in #(
14908       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14909 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14910       esac
14911       case $ac_var in #(
14912       _ | IFS | as_nl) ;; #(
14913       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14914       *) { eval $ac_var=; unset $ac_var;} ;;
14915       esac ;;
14916     esac
14917   done
14918
14919   (set) 2>&1 |
14920     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14921     *${as_nl}ac_space=\ *)
14922       # `set' does not quote correctly, so add quotes: double-quote
14923       # substitution turns \\\\ into \\, and sed turns \\ into \.
14924       sed -n \
14925         "s/'/'\\\\''/g;
14926           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14927       ;; #(
14928     *)
14929       # `set' quotes correctly as required by POSIX, so do not add quotes.
14930       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14931       ;;
14932     esac |
14933     sort
14934 ) |
14935   sed '
14936      /^ac_cv_env_/b end
14937      t clear
14938      :clear
14939      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14940      t end
14941      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14942      :end' >>confcache
14943 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14944   if test -w "$cache_file"; then
14945     test "x$cache_file" != "x/dev/null" &&
14946       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14947 $as_echo "$as_me: updating cache $cache_file" >&6;}
14948     cat confcache >$cache_file
14949   else
14950     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14951 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14952   fi
14953 fi
14954 rm -f confcache
14955
14956 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14957 # Let make expand exec_prefix.
14958 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14959
14960 DEFS=-DHAVE_CONFIG_H
14961
14962 ac_libobjs=
14963 ac_ltlibobjs=
14964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14965   # 1. Remove the extension, and $U if already installed.
14966   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14967   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14968   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14969   #    will be set to the directory where LIBOBJS objects are built.
14970   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14971   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14972 done
14973 LIBOBJS=$ac_libobjs
14974
14975 LTLIBOBJS=$ac_ltlibobjs
14976
14977
14978  if test -n "$EXEEXT"; then
14979   am__EXEEXT_TRUE=
14980   am__EXEEXT_FALSE='#'
14981 else
14982   am__EXEEXT_TRUE='#'
14983   am__EXEEXT_FALSE=
14984 fi
14985
14986 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14987   as_fn_error "conditional \"AMDEP\" was never defined.
14988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14989 fi
14990 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14991   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14993 fi
14994 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14995   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14997 fi
14998 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14999   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15001 fi
15002 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15003   as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
15004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15005 fi
15006 if test -z "${HAVE_PTHREADS_TRUE}" && test -z "${HAVE_PTHREADS_FALSE}"; then
15007   as_fn_error "conditional \"HAVE_PTHREADS\" was never defined.
15008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15009 fi
15010
15011 : ${CONFIG_STATUS=./config.status}
15012 ac_write_fail=0
15013 ac_clean_files_save=$ac_clean_files
15014 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15016 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15017 as_write_fail=0
15018 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15019 #! $SHELL
15020 # Generated by $as_me.
15021 # Run this file to recreate the current configuration.
15022 # Compiler output produced by configure, useful for debugging
15023 # configure, is in config.log if it exists.
15024
15025 debug=false
15026 ac_cs_recheck=false
15027 ac_cs_silent=false
15028
15029 SHELL=\${CONFIG_SHELL-$SHELL}
15030 export SHELL
15031 _ASEOF
15032 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15033 ## -------------------- ##
15034 ## M4sh Initialization. ##
15035 ## -------------------- ##
15036
15037 # Be more Bourne compatible
15038 DUALCASE=1; export DUALCASE # for MKS sh
15039 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15040   emulate sh
15041   NULLCMD=:
15042   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15043   # is contrary to our usage.  Disable this feature.
15044   alias -g '${1+"$@"}'='"$@"'
15045   setopt NO_GLOB_SUBST
15046 else
15047   case `(set -o) 2>/dev/null` in #(
15048   *posix*) :
15049     set -o posix ;; #(
15050   *) :
15051      ;;
15052 esac
15053 fi
15054
15055
15056 as_nl='
15057 '
15058 export as_nl
15059 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15060 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15061 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15062 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15063 # Prefer a ksh shell builtin over an external printf program on Solaris,
15064 # but without wasting forks for bash or zsh.
15065 if test -z "$BASH_VERSION$ZSH_VERSION" \
15066     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15067   as_echo='print -r --'
15068   as_echo_n='print -rn --'
15069 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15070   as_echo='printf %s\n'
15071   as_echo_n='printf %s'
15072 else
15073   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15074     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15075     as_echo_n='/usr/ucb/echo -n'
15076   else
15077     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15078     as_echo_n_body='eval
15079       arg=$1;
15080       case $arg in #(
15081       *"$as_nl"*)
15082         expr "X$arg" : "X\\(.*\\)$as_nl";
15083         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15084       esac;
15085       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15086     '
15087     export as_echo_n_body
15088     as_echo_n='sh -c $as_echo_n_body as_echo'
15089   fi
15090   export as_echo_body
15091   as_echo='sh -c $as_echo_body as_echo'
15092 fi
15093
15094 # The user is always right.
15095 if test "${PATH_SEPARATOR+set}" != set; then
15096   PATH_SEPARATOR=:
15097   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15098     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15099       PATH_SEPARATOR=';'
15100   }
15101 fi
15102
15103
15104 # IFS
15105 # We need space, tab and new line, in precisely that order.  Quoting is
15106 # there to prevent editors from complaining about space-tab.
15107 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15108 # splitting by setting IFS to empty value.)
15109 IFS=" ""        $as_nl"
15110
15111 # Find who we are.  Look in the path if we contain no directory separator.
15112 case $0 in #((
15113   *[\\/]* ) as_myself=$0 ;;
15114   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15115 for as_dir in $PATH
15116 do
15117   IFS=$as_save_IFS
15118   test -z "$as_dir" && as_dir=.
15119     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15120   done
15121 IFS=$as_save_IFS
15122
15123      ;;
15124 esac
15125 # We did not find ourselves, most probably we were run as `sh COMMAND'
15126 # in which case we are not to be found in the path.
15127 if test "x$as_myself" = x; then
15128   as_myself=$0
15129 fi
15130 if test ! -f "$as_myself"; then
15131   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15132   exit 1
15133 fi
15134
15135 # Unset variables that we do not need and which cause bugs (e.g. in
15136 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15137 # suppresses any "Segmentation fault" message there.  '((' could
15138 # trigger a bug in pdksh 5.2.14.
15139 for as_var in BASH_ENV ENV MAIL MAILPATH
15140 do eval test x\${$as_var+set} = xset \
15141   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15142 done
15143 PS1='$ '
15144 PS2='> '
15145 PS4='+ '
15146
15147 # NLS nuisances.
15148 LC_ALL=C
15149 export LC_ALL
15150 LANGUAGE=C
15151 export LANGUAGE
15152
15153 # CDPATH.
15154 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15155
15156
15157 # as_fn_error ERROR [LINENO LOG_FD]
15158 # ---------------------------------
15159 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15160 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15161 # script with status $?, using 1 if that was 0.
15162 as_fn_error ()
15163 {
15164   as_status=$?; test $as_status -eq 0 && as_status=1
15165   if test "$3"; then
15166     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15167     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15168   fi
15169   $as_echo "$as_me: error: $1" >&2
15170   as_fn_exit $as_status
15171 } # as_fn_error
15172
15173
15174 # as_fn_set_status STATUS
15175 # -----------------------
15176 # Set $? to STATUS, without forking.
15177 as_fn_set_status ()
15178 {
15179   return $1
15180 } # as_fn_set_status
15181
15182 # as_fn_exit STATUS
15183 # -----------------
15184 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15185 as_fn_exit ()
15186 {
15187   set +e
15188   as_fn_set_status $1
15189   exit $1
15190 } # as_fn_exit
15191
15192 # as_fn_unset VAR
15193 # ---------------
15194 # Portably unset VAR.
15195 as_fn_unset ()
15196 {
15197   { eval $1=; unset $1;}
15198 }
15199 as_unset=as_fn_unset
15200 # as_fn_append VAR VALUE
15201 # ----------------------
15202 # Append the text in VALUE to the end of the definition contained in VAR. Take
15203 # advantage of any shell optimizations that allow amortized linear growth over
15204 # repeated appends, instead of the typical quadratic growth present in naive
15205 # implementations.
15206 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15207   eval 'as_fn_append ()
15208   {
15209     eval $1+=\$2
15210   }'
15211 else
15212   as_fn_append ()
15213   {
15214     eval $1=\$$1\$2
15215   }
15216 fi # as_fn_append
15217
15218 # as_fn_arith ARG...
15219 # ------------------
15220 # Perform arithmetic evaluation on the ARGs, and store the result in the
15221 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15222 # must be portable across $(()) and expr.
15223 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15224   eval 'as_fn_arith ()
15225   {
15226     as_val=$(( $* ))
15227   }'
15228 else
15229   as_fn_arith ()
15230   {
15231     as_val=`expr "$@" || test $? -eq 1`
15232   }
15233 fi # as_fn_arith
15234
15235
15236 if expr a : '\(a\)' >/dev/null 2>&1 &&
15237    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15238   as_expr=expr
15239 else
15240   as_expr=false
15241 fi
15242
15243 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15244   as_basename=basename
15245 else
15246   as_basename=false
15247 fi
15248
15249 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15250   as_dirname=dirname
15251 else
15252   as_dirname=false
15253 fi
15254
15255 as_me=`$as_basename -- "$0" ||
15256 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15257          X"$0" : 'X\(//\)$' \| \
15258          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15259 $as_echo X/"$0" |
15260     sed '/^.*\/\([^/][^/]*\)\/*$/{
15261             s//\1/
15262             q
15263           }
15264           /^X\/\(\/\/\)$/{
15265             s//\1/
15266             q
15267           }
15268           /^X\/\(\/\).*/{
15269             s//\1/
15270             q
15271           }
15272           s/.*/./; q'`
15273
15274 # Avoid depending upon Character Ranges.
15275 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15276 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15277 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15278 as_cr_digits='0123456789'
15279 as_cr_alnum=$as_cr_Letters$as_cr_digits
15280
15281 ECHO_C= ECHO_N= ECHO_T=
15282 case `echo -n x` in #(((((
15283 -n*)
15284   case `echo 'xy\c'` in
15285   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15286   xy)  ECHO_C='\c';;
15287   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15288        ECHO_T=' ';;
15289   esac;;
15290 *)
15291   ECHO_N='-n';;
15292 esac
15293
15294 rm -f conf$$ conf$$.exe conf$$.file
15295 if test -d conf$$.dir; then
15296   rm -f conf$$.dir/conf$$.file
15297 else
15298   rm -f conf$$.dir
15299   mkdir conf$$.dir 2>/dev/null
15300 fi
15301 if (echo >conf$$.file) 2>/dev/null; then
15302   if ln -s conf$$.file conf$$ 2>/dev/null; then
15303     as_ln_s='ln -s'
15304     # ... but there are two gotchas:
15305     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15306     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15307     # In both cases, we have to default to `cp -p'.
15308     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15309       as_ln_s='cp -p'
15310   elif ln conf$$.file conf$$ 2>/dev/null; then
15311     as_ln_s=ln
15312   else
15313     as_ln_s='cp -p'
15314   fi
15315 else
15316   as_ln_s='cp -p'
15317 fi
15318 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15319 rmdir conf$$.dir 2>/dev/null
15320
15321
15322 # as_fn_mkdir_p
15323 # -------------
15324 # Create "$as_dir" as a directory, including parents if necessary.
15325 as_fn_mkdir_p ()
15326 {
15327
15328   case $as_dir in #(
15329   -*) as_dir=./$as_dir;;
15330   esac
15331   test -d "$as_dir" || eval $as_mkdir_p || {
15332     as_dirs=
15333     while :; do
15334       case $as_dir in #(
15335       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15336       *) as_qdir=$as_dir;;
15337       esac
15338       as_dirs="'$as_qdir' $as_dirs"
15339       as_dir=`$as_dirname -- "$as_dir" ||
15340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15341          X"$as_dir" : 'X\(//\)[^/]' \| \
15342          X"$as_dir" : 'X\(//\)$' \| \
15343          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15344 $as_echo X"$as_dir" |
15345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15346             s//\1/
15347             q
15348           }
15349           /^X\(\/\/\)[^/].*/{
15350             s//\1/
15351             q
15352           }
15353           /^X\(\/\/\)$/{
15354             s//\1/
15355             q
15356           }
15357           /^X\(\/\).*/{
15358             s//\1/
15359             q
15360           }
15361           s/.*/./; q'`
15362       test -d "$as_dir" && break
15363     done
15364     test -z "$as_dirs" || eval "mkdir $as_dirs"
15365   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15366
15367
15368 } # as_fn_mkdir_p
15369 if mkdir -p . 2>/dev/null; then
15370   as_mkdir_p='mkdir -p "$as_dir"'
15371 else
15372   test -d ./-p && rmdir ./-p
15373   as_mkdir_p=false
15374 fi
15375
15376 if test -x / >/dev/null 2>&1; then
15377   as_test_x='test -x'
15378 else
15379   if ls -dL / >/dev/null 2>&1; then
15380     as_ls_L_option=L
15381   else
15382     as_ls_L_option=
15383   fi
15384   as_test_x='
15385     eval sh -c '\''
15386       if test -d "$1"; then
15387         test -d "$1/.";
15388       else
15389         case $1 in #(
15390         -*)set "./$1";;
15391         esac;
15392         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15393         ???[sx]*):;;*)false;;esac;fi
15394     '\'' sh
15395   '
15396 fi
15397 as_executable_p=$as_test_x
15398
15399 # Sed expression to map a string onto a valid CPP name.
15400 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15401
15402 # Sed expression to map a string onto a valid variable name.
15403 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15404
15405
15406 exec 6>&1
15407 ## ----------------------------------- ##
15408 ## Main body of $CONFIG_STATUS script. ##
15409 ## ----------------------------------- ##
15410 _ASEOF
15411 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15412
15413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15414 # Save the log message, to keep $0 and so on meaningful, and to
15415 # report actual input values of CONFIG_FILES etc. instead of their
15416 # values after options handling.
15417 ac_log="
15418 This file was extended by Google C++ Testing Framework $as_me 1.6.0, which was
15419 generated by GNU Autoconf 2.65.  Invocation command line was
15420
15421   CONFIG_FILES    = $CONFIG_FILES
15422   CONFIG_HEADERS  = $CONFIG_HEADERS
15423   CONFIG_LINKS    = $CONFIG_LINKS
15424   CONFIG_COMMANDS = $CONFIG_COMMANDS
15425   $ $0 $@
15426
15427 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15428 "
15429
15430 _ACEOF
15431
15432 case $ac_config_files in *"
15433 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15434 esac
15435
15436 case $ac_config_headers in *"
15437 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15438 esac
15439
15440
15441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15442 # Files that config.status was made for.
15443 config_files="$ac_config_files"
15444 config_headers="$ac_config_headers"
15445 config_commands="$ac_config_commands"
15446
15447 _ACEOF
15448
15449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15450 ac_cs_usage="\
15451 \`$as_me' instantiates files and other configuration actions
15452 from templates according to the current configuration.  Unless the files
15453 and actions are specified as TAGs, all are instantiated by default.
15454
15455 Usage: $0 [OPTION]... [TAG]...
15456
15457   -h, --help       print this help, then exit
15458   -V, --version    print version number and configuration settings, then exit
15459       --config     print configuration, then exit
15460   -q, --quiet, --silent
15461                    do not print progress messages
15462   -d, --debug      don't remove temporary files
15463       --recheck    update $as_me by reconfiguring in the same conditions
15464       --file=FILE[:TEMPLATE]
15465                    instantiate the configuration file FILE
15466       --header=FILE[:TEMPLATE]
15467                    instantiate the configuration header FILE
15468
15469 Configuration files:
15470 $config_files
15471
15472 Configuration headers:
15473 $config_headers
15474
15475 Configuration commands:
15476 $config_commands
15477
15478 Report bugs to <googletestframework@googlegroups.com>."
15479
15480 _ACEOF
15481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15482 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15483 ac_cs_version="\\
15484 Google C++ Testing Framework config.status 1.6.0
15485 configured by $0, generated by GNU Autoconf 2.65,
15486   with options \\"\$ac_cs_config\\"
15487
15488 Copyright (C) 2009 Free Software Foundation, Inc.
15489 This config.status script is free software; the Free Software Foundation
15490 gives unlimited permission to copy, distribute and modify it."
15491
15492 ac_pwd='$ac_pwd'
15493 srcdir='$srcdir'
15494 INSTALL='$INSTALL'
15495 MKDIR_P='$MKDIR_P'
15496 AWK='$AWK'
15497 test -n "\$AWK" || AWK=awk
15498 _ACEOF
15499
15500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15501 # The default lists apply if the user does not specify any file.
15502 ac_need_defaults=:
15503 while test $# != 0
15504 do
15505   case $1 in
15506   --*=*)
15507     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15508     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15509     ac_shift=:
15510     ;;
15511   *)
15512     ac_option=$1
15513     ac_optarg=$2
15514     ac_shift=shift
15515     ;;
15516   esac
15517
15518   case $ac_option in
15519   # Handling of the options.
15520   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15521     ac_cs_recheck=: ;;
15522   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15523     $as_echo "$ac_cs_version"; exit ;;
15524   --config | --confi | --conf | --con | --co | --c )
15525     $as_echo "$ac_cs_config"; exit ;;
15526   --debug | --debu | --deb | --de | --d | -d )
15527     debug=: ;;
15528   --file | --fil | --fi | --f )
15529     $ac_shift
15530     case $ac_optarg in
15531     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15532     esac
15533     as_fn_append CONFIG_FILES " '$ac_optarg'"
15534     ac_need_defaults=false;;
15535   --header | --heade | --head | --hea )
15536     $ac_shift
15537     case $ac_optarg in
15538     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15539     esac
15540     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15541     ac_need_defaults=false;;
15542   --he | --h)
15543     # Conflict between --help and --header
15544     as_fn_error "ambiguous option: \`$1'
15545 Try \`$0 --help' for more information.";;
15546   --help | --hel | -h )
15547     $as_echo "$ac_cs_usage"; exit ;;
15548   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15549   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15550     ac_cs_silent=: ;;
15551
15552   # This is an error.
15553   -*) as_fn_error "unrecognized option: \`$1'
15554 Try \`$0 --help' for more information." ;;
15555
15556   *) as_fn_append ac_config_targets " $1"
15557      ac_need_defaults=false ;;
15558
15559   esac
15560   shift
15561 done
15562
15563 ac_configure_extra_args=
15564
15565 if $ac_cs_silent; then
15566   exec 6>/dev/null
15567   ac_configure_extra_args="$ac_configure_extra_args --silent"
15568 fi
15569
15570 _ACEOF
15571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15572 if \$ac_cs_recheck; then
15573   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15574   shift
15575   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15576   CONFIG_SHELL='$SHELL'
15577   export CONFIG_SHELL
15578   exec "\$@"
15579 fi
15580
15581 _ACEOF
15582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15583 exec 5>>config.log
15584 {
15585   echo
15586   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15587 ## Running $as_me. ##
15588 _ASBOX
15589   $as_echo "$ac_log"
15590 } >&5
15591
15592 _ACEOF
15593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15594 #
15595 # INIT-COMMANDS
15596 #
15597 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15598
15599
15600 # The HP-UX ksh and POSIX shell print the target directory to stdout
15601 # if CDPATH is set.
15602 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15603
15604 sed_quote_subst='$sed_quote_subst'
15605 double_quote_subst='$double_quote_subst'
15606 delay_variable_subst='$delay_variable_subst'
15607 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15608 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15609 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15610 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15611 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15612 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15613 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15614 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15615 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15616 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15617 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15618 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15619 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15620 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15621 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15622 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15623 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15624 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15625 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15626 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15627 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15628 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15629 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15630 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15631 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15632 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15633 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15634 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15635 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15636 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15637 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15638 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15639 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15640 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15641 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15642 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15643 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15644 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15645 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15646 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15647 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15648 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15649 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15650 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15651 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"`'
15652 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"`'
15653 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15654 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15655 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15656 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15657 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15658 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15659 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15660 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15661 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15662 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15663 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15664 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15665 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15666 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15667 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15668 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15669 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15670 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15671 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15672 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15673 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15674 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15675 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15676 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15677 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15678 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15679 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15680 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15681 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15682 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15683 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15684 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15685 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15686 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15687 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15688 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15689 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15690 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15691 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15692 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15693 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15694 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15695 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15696 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15697 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15698 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15699 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15700 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15701 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15702 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15703 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15704 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15705 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15706 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15707 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15708 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15709 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15710 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15711 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15712 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15713 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15714 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15715 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15716 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15717 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15718 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15719 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15720 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15721 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15722 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15723 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15724 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15725 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15726 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15727 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15728 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15729 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15730 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15731 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15732 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15733 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15734 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15735 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15736 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15737 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15738 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15739 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15740 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15741 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15742 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15743 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15744 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15745 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15746 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15747 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15748 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15749 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15750 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15751 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15752 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15753 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15754 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15755 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15756 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15757 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15758 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15759 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15760 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15761 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15762 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15763 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15764 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15765 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15766 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15767 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15768 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15769 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15770 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15771 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15772 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15773 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15774 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15775 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15776 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15777 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15778
15779 LTCC='$LTCC'
15780 LTCFLAGS='$LTCFLAGS'
15781 compiler='$compiler_DEFAULT'
15782
15783 # Quote evaled strings.
15784 for var in SED \
15785 GREP \
15786 EGREP \
15787 FGREP \
15788 LD \
15789 NM \
15790 LN_S \
15791 lt_SP2NL \
15792 lt_NL2SP \
15793 reload_flag \
15794 OBJDUMP \
15795 deplibs_check_method \
15796 file_magic_cmd \
15797 AR \
15798 AR_FLAGS \
15799 STRIP \
15800 RANLIB \
15801 CC \
15802 CFLAGS \
15803 compiler \
15804 lt_cv_sys_global_symbol_pipe \
15805 lt_cv_sys_global_symbol_to_cdecl \
15806 lt_cv_sys_global_symbol_to_c_name_address \
15807 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15808 SHELL \
15809 ECHO \
15810 lt_prog_compiler_no_builtin_flag \
15811 lt_prog_compiler_wl \
15812 lt_prog_compiler_pic \
15813 lt_prog_compiler_static \
15814 lt_cv_prog_compiler_c_o \
15815 need_locks \
15816 DSYMUTIL \
15817 NMEDIT \
15818 LIPO \
15819 OTOOL \
15820 OTOOL64 \
15821 shrext_cmds \
15822 export_dynamic_flag_spec \
15823 whole_archive_flag_spec \
15824 compiler_needs_object \
15825 with_gnu_ld \
15826 allow_undefined_flag \
15827 no_undefined_flag \
15828 hardcode_libdir_flag_spec \
15829 hardcode_libdir_flag_spec_ld \
15830 hardcode_libdir_separator \
15831 fix_srcfile_path \
15832 exclude_expsyms \
15833 include_expsyms \
15834 file_list_spec \
15835 variables_saved_for_relink \
15836 libname_spec \
15837 library_names_spec \
15838 soname_spec \
15839 finish_eval \
15840 old_striplib \
15841 striplib \
15842 compiler_lib_search_dirs \
15843 predep_objects \
15844 postdep_objects \
15845 predeps \
15846 postdeps \
15847 compiler_lib_search_path \
15848 LD_CXX \
15849 compiler_CXX \
15850 lt_prog_compiler_no_builtin_flag_CXX \
15851 lt_prog_compiler_wl_CXX \
15852 lt_prog_compiler_pic_CXX \
15853 lt_prog_compiler_static_CXX \
15854 lt_cv_prog_compiler_c_o_CXX \
15855 export_dynamic_flag_spec_CXX \
15856 whole_archive_flag_spec_CXX \
15857 compiler_needs_object_CXX \
15858 with_gnu_ld_CXX \
15859 allow_undefined_flag_CXX \
15860 no_undefined_flag_CXX \
15861 hardcode_libdir_flag_spec_CXX \
15862 hardcode_libdir_flag_spec_ld_CXX \
15863 hardcode_libdir_separator_CXX \
15864 fix_srcfile_path_CXX \
15865 exclude_expsyms_CXX \
15866 include_expsyms_CXX \
15867 file_list_spec_CXX \
15868 compiler_lib_search_dirs_CXX \
15869 predep_objects_CXX \
15870 postdep_objects_CXX \
15871 predeps_CXX \
15872 postdeps_CXX \
15873 compiler_lib_search_path_CXX; do
15874     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15875     *[\\\\\\\`\\"\\\$]*)
15876       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15877       ;;
15878     *)
15879       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15880       ;;
15881     esac
15882 done
15883
15884 # Double-quote double-evaled strings.
15885 for var in reload_cmds \
15886 old_postinstall_cmds \
15887 old_postuninstall_cmds \
15888 old_archive_cmds \
15889 extract_expsyms_cmds \
15890 old_archive_from_new_cmds \
15891 old_archive_from_expsyms_cmds \
15892 archive_cmds \
15893 archive_expsym_cmds \
15894 module_cmds \
15895 module_expsym_cmds \
15896 export_symbols_cmds \
15897 prelink_cmds \
15898 postinstall_cmds \
15899 postuninstall_cmds \
15900 finish_cmds \
15901 sys_lib_search_path_spec \
15902 sys_lib_dlsearch_path_spec \
15903 old_archive_cmds_CXX \
15904 old_archive_from_new_cmds_CXX \
15905 old_archive_from_expsyms_cmds_CXX \
15906 archive_cmds_CXX \
15907 archive_expsym_cmds_CXX \
15908 module_cmds_CXX \
15909 module_expsym_cmds_CXX \
15910 export_symbols_cmds_CXX \
15911 prelink_cmds_CXX; do
15912     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15913     *[\\\\\\\`\\"\\\$]*)
15914       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15915       ;;
15916     *)
15917       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15918       ;;
15919     esac
15920 done
15921
15922 # Fix-up fallback echo if it was mangled by the above quoting rules.
15923 case \$lt_ECHO in
15924 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15925   ;;
15926 esac
15927
15928 ac_aux_dir='$ac_aux_dir'
15929 xsi_shell='$xsi_shell'
15930 lt_shell_append='$lt_shell_append'
15931
15932 # See if we are running on zsh, and set the options which allow our
15933 # commands through without removal of \ escapes INIT.
15934 if test -n "\${ZSH_VERSION+set}" ; then
15935    setopt NO_GLOB_SUBST
15936 fi
15937
15938
15939     PACKAGE='$PACKAGE'
15940     VERSION='$VERSION'
15941     TIMESTAMP='$TIMESTAMP'
15942     RM='$RM'
15943     ofile='$ofile'
15944
15945
15946
15947
15948
15949
15950 _ACEOF
15951
15952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15953
15954 # Handling of arguments.
15955 for ac_config_target in $ac_config_targets
15956 do
15957   case $ac_config_target in
15958     "build-aux/config.h") CONFIG_HEADERS="$CONFIG_HEADERS build-aux/config.h" ;;
15959     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15960     "scripts/gtest-config") CONFIG_FILES="$CONFIG_FILES scripts/gtest-config" ;;
15961     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15962     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15963
15964   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15965   esac
15966 done
15967
15968
15969 # If the user did not use the arguments to specify the items to instantiate,
15970 # then the envvar interface is used.  Set only those that are not.
15971 # We use the long form for the default assignment because of an extremely
15972 # bizarre bug on SunOS 4.1.3.
15973 if $ac_need_defaults; then
15974   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15975   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15976   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15977 fi
15978
15979 # Have a temporary directory for convenience.  Make it in the build tree
15980 # simply because there is no reason against having it here, and in addition,
15981 # creating and moving files from /tmp can sometimes cause problems.
15982 # Hook for its removal unless debugging.
15983 # Note that there is a small window in which the directory will not be cleaned:
15984 # after its creation but before its name has been assigned to `$tmp'.
15985 $debug ||
15986 {
15987   tmp=
15988   trap 'exit_status=$?
15989   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15990 ' 0
15991   trap 'as_fn_exit 1' 1 2 13 15
15992 }
15993 # Create a (secure) tmp directory for tmp files.
15994
15995 {
15996   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15997   test -n "$tmp" && test -d "$tmp"
15998 }  ||
15999 {
16000   tmp=./conf$$-$RANDOM
16001   (umask 077 && mkdir "$tmp")
16002 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16003
16004 # Set up the scripts for CONFIG_FILES section.
16005 # No need to generate them if there are no CONFIG_FILES.
16006 # This happens for instance with `./config.status config.h'.
16007 if test -n "$CONFIG_FILES"; then
16008
16009
16010 ac_cr=`echo X | tr X '\015'`
16011 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16012 # But we know of no other shell where ac_cr would be empty at this
16013 # point, so we can use a bashism as a fallback.
16014 if test "x$ac_cr" = x; then
16015   eval ac_cr=\$\'\\r\'
16016 fi
16017 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16018 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16019   ac_cs_awk_cr='\r'
16020 else
16021   ac_cs_awk_cr=$ac_cr
16022 fi
16023
16024 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16025 _ACEOF
16026
16027
16028 {
16029   echo "cat >conf$$subs.awk <<_ACEOF" &&
16030   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16031   echo "_ACEOF"
16032 } >conf$$subs.sh ||
16033   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16034 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16035 ac_delim='%!_!# '
16036 for ac_last_try in false false false false false :; do
16037   . ./conf$$subs.sh ||
16038     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16039
16040   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16041   if test $ac_delim_n = $ac_delim_num; then
16042     break
16043   elif $ac_last_try; then
16044     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16045   else
16046     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16047   fi
16048 done
16049 rm -f conf$$subs.sh
16050
16051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16052 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16053 _ACEOF
16054 sed -n '
16055 h
16056 s/^/S["/; s/!.*/"]=/
16057 p
16058 g
16059 s/^[^!]*!//
16060 :repl
16061 t repl
16062 s/'"$ac_delim"'$//
16063 t delim
16064 :nl
16065 h
16066 s/\(.\{148\}\)..*/\1/
16067 t more1
16068 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16069 p
16070 n
16071 b repl
16072 :more1
16073 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16074 p
16075 g
16076 s/.\{148\}//
16077 t nl
16078 :delim
16079 h
16080 s/\(.\{148\}\)..*/\1/
16081 t more2
16082 s/["\\]/\\&/g; s/^/"/; s/$/"/
16083 p
16084 b
16085 :more2
16086 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16087 p
16088 g
16089 s/.\{148\}//
16090 t delim
16091 ' <conf$$subs.awk | sed '
16092 /^[^""]/{
16093   N
16094   s/\n//
16095 }
16096 ' >>$CONFIG_STATUS || ac_write_fail=1
16097 rm -f conf$$subs.awk
16098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16099 _ACAWK
16100 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16101   for (key in S) S_is_set[key] = 1
16102   FS = "\a"
16103
16104 }
16105 {
16106   line = $ 0
16107   nfields = split(line, field, "@")
16108   substed = 0
16109   len = length(field[1])
16110   for (i = 2; i < nfields; i++) {
16111     key = field[i]
16112     keylen = length(key)
16113     if (S_is_set[key]) {
16114       value = S[key]
16115       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16116       len += length(value) + length(field[++i])
16117       substed = 1
16118     } else
16119       len += 1 + keylen
16120   }
16121
16122   print line
16123 }
16124
16125 _ACAWK
16126 _ACEOF
16127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16128 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16129   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16130 else
16131   cat
16132 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16133   || as_fn_error "could not setup config files machinery" "$LINENO" 5
16134 _ACEOF
16135
16136 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16137 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16138 # trailing colons and then remove the whole line if VPATH becomes empty
16139 # (actually we leave an empty line to preserve line numbers).
16140 if test "x$srcdir" = x.; then
16141   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16142 s/:*\$(srcdir):*/:/
16143 s/:*\${srcdir}:*/:/
16144 s/:*@srcdir@:*/:/
16145 s/^\([^=]*=[     ]*\):*/\1/
16146 s/:*$//
16147 s/^[^=]*=[       ]*$//
16148 }'
16149 fi
16150
16151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16152 fi # test -n "$CONFIG_FILES"
16153
16154 # Set up the scripts for CONFIG_HEADERS section.
16155 # No need to generate them if there are no CONFIG_HEADERS.
16156 # This happens for instance with `./config.status Makefile'.
16157 if test -n "$CONFIG_HEADERS"; then
16158 cat >"$tmp/defines.awk" <<\_ACAWK ||
16159 BEGIN {
16160 _ACEOF
16161
16162 # Transform confdefs.h into an awk script `defines.awk', embedded as
16163 # here-document in config.status, that substitutes the proper values into
16164 # config.h.in to produce config.h.
16165
16166 # Create a delimiter string that does not exist in confdefs.h, to ease
16167 # handling of long lines.
16168 ac_delim='%!_!# '
16169 for ac_last_try in false false :; do
16170   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16171   if test -z "$ac_t"; then
16172     break
16173   elif $ac_last_try; then
16174     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16175   else
16176     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16177   fi
16178 done
16179
16180 # For the awk script, D is an array of macro values keyed by name,
16181 # likewise P contains macro parameters if any.  Preserve backslash
16182 # newline sequences.
16183
16184 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16185 sed -n '
16186 s/.\{148\}/&'"$ac_delim"'/g
16187 t rset
16188 :rset
16189 s/^[     ]*#[    ]*define[       ][      ]*/ /
16190 t def
16191 d
16192 :def
16193 s/\\$//
16194 t bsnl
16195 s/["\\]/\\&/g
16196 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16197 D["\1"]=" \3"/p
16198 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16199 d
16200 :bsnl
16201 s/["\\]/\\&/g
16202 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16203 D["\1"]=" \3\\\\\\n"\\/p
16204 t cont
16205 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16206 t cont
16207 d
16208 :cont
16209 n
16210 s/.\{148\}/&'"$ac_delim"'/g
16211 t clear
16212 :clear
16213 s/\\$//
16214 t bsnlc
16215 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16216 d
16217 :bsnlc
16218 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16219 b cont
16220 ' <confdefs.h | sed '
16221 s/'"$ac_delim"'/"\\\
16222 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16223
16224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16225   for (key in D) D_is_set[key] = 1
16226   FS = "\a"
16227 }
16228 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16229   line = \$ 0
16230   split(line, arg, " ")
16231   if (arg[1] == "#") {
16232     defundef = arg[2]
16233     mac1 = arg[3]
16234   } else {
16235     defundef = substr(arg[1], 2)
16236     mac1 = arg[2]
16237   }
16238   split(mac1, mac2, "(") #)
16239   macro = mac2[1]
16240   prefix = substr(line, 1, index(line, defundef) - 1)
16241   if (D_is_set[macro]) {
16242     # Preserve the white space surrounding the "#".
16243     print prefix "define", macro P[macro] D[macro]
16244     next
16245   } else {
16246     # Replace #undef with comments.  This is necessary, for example,
16247     # in the case of _POSIX_SOURCE, which is predefined and required
16248     # on some systems where configure will not decide to define it.
16249     if (defundef == "undef") {
16250       print "/*", prefix defundef, macro, "*/"
16251       next
16252     }
16253   }
16254 }
16255 { print }
16256 _ACAWK
16257 _ACEOF
16258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16259   as_fn_error "could not setup config headers machinery" "$LINENO" 5
16260 fi # test -n "$CONFIG_HEADERS"
16261
16262
16263 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16264 shift
16265 for ac_tag
16266 do
16267   case $ac_tag in
16268   :[FHLC]) ac_mode=$ac_tag; continue;;
16269   esac
16270   case $ac_mode$ac_tag in
16271   :[FHL]*:*);;
16272   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16273   :[FH]-) ac_tag=-:-;;
16274   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16275   esac
16276   ac_save_IFS=$IFS
16277   IFS=:
16278   set x $ac_tag
16279   IFS=$ac_save_IFS
16280   shift
16281   ac_file=$1
16282   shift
16283
16284   case $ac_mode in
16285   :L) ac_source=$1;;
16286   :[FH])
16287     ac_file_inputs=
16288     for ac_f
16289     do
16290       case $ac_f in
16291       -) ac_f="$tmp/stdin";;
16292       *) # Look for the file first in the build tree, then in the source tree
16293          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16294          # because $ac_f cannot contain `:'.
16295          test -f "$ac_f" ||
16296            case $ac_f in
16297            [\\/$]*) false;;
16298            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16299            esac ||
16300            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16301       esac
16302       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16303       as_fn_append ac_file_inputs " '$ac_f'"
16304     done
16305
16306     # Let's still pretend it is `configure' which instantiates (i.e., don't
16307     # use $as_me), people would be surprised to read:
16308     #    /* config.h.  Generated by config.status.  */
16309     configure_input='Generated from '`
16310           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16311         `' by configure.'
16312     if test x"$ac_file" != x-; then
16313       configure_input="$ac_file.  $configure_input"
16314       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16315 $as_echo "$as_me: creating $ac_file" >&6;}
16316     fi
16317     # Neutralize special characters interpreted by sed in replacement strings.
16318     case $configure_input in #(
16319     *\&* | *\|* | *\\* )
16320        ac_sed_conf_input=`$as_echo "$configure_input" |
16321        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16322     *) ac_sed_conf_input=$configure_input;;
16323     esac
16324
16325     case $ac_tag in
16326     *:-:* | *:-) cat >"$tmp/stdin" \
16327       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16328     esac
16329     ;;
16330   esac
16331
16332   ac_dir=`$as_dirname -- "$ac_file" ||
16333 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16334          X"$ac_file" : 'X\(//\)[^/]' \| \
16335          X"$ac_file" : 'X\(//\)$' \| \
16336          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16337 $as_echo X"$ac_file" |
16338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16339             s//\1/
16340             q
16341           }
16342           /^X\(\/\/\)[^/].*/{
16343             s//\1/
16344             q
16345           }
16346           /^X\(\/\/\)$/{
16347             s//\1/
16348             q
16349           }
16350           /^X\(\/\).*/{
16351             s//\1/
16352             q
16353           }
16354           s/.*/./; q'`
16355   as_dir="$ac_dir"; as_fn_mkdir_p
16356   ac_builddir=.
16357
16358 case "$ac_dir" in
16359 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16360 *)
16361   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16362   # A ".." for each directory in $ac_dir_suffix.
16363   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16364   case $ac_top_builddir_sub in
16365   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16366   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16367   esac ;;
16368 esac
16369 ac_abs_top_builddir=$ac_pwd
16370 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16371 # for backward compatibility:
16372 ac_top_builddir=$ac_top_build_prefix
16373
16374 case $srcdir in
16375   .)  # We are building in place.
16376     ac_srcdir=.
16377     ac_top_srcdir=$ac_top_builddir_sub
16378     ac_abs_top_srcdir=$ac_pwd ;;
16379   [\\/]* | ?:[\\/]* )  # Absolute name.
16380     ac_srcdir=$srcdir$ac_dir_suffix;
16381     ac_top_srcdir=$srcdir
16382     ac_abs_top_srcdir=$srcdir ;;
16383   *) # Relative name.
16384     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16385     ac_top_srcdir=$ac_top_build_prefix$srcdir
16386     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16387 esac
16388 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16389
16390
16391   case $ac_mode in
16392   :F)
16393   #
16394   # CONFIG_FILE
16395   #
16396
16397   case $INSTALL in
16398   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16399   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16400   esac
16401   ac_MKDIR_P=$MKDIR_P
16402   case $MKDIR_P in
16403   [\\/$]* | ?:[\\/]* ) ;;
16404   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16405   esac
16406 _ACEOF
16407
16408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16409 # If the template does not know about datarootdir, expand it.
16410 # FIXME: This hack should be removed a few years after 2.60.
16411 ac_datarootdir_hack=; ac_datarootdir_seen=
16412 ac_sed_dataroot='
16413 /datarootdir/ {
16414   p
16415   q
16416 }
16417 /@datadir@/p
16418 /@docdir@/p
16419 /@infodir@/p
16420 /@localedir@/p
16421 /@mandir@/p'
16422 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16423 *datarootdir*) ac_datarootdir_seen=yes;;
16424 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16425   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16426 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16427 _ACEOF
16428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16429   ac_datarootdir_hack='
16430   s&@datadir@&$datadir&g
16431   s&@docdir@&$docdir&g
16432   s&@infodir@&$infodir&g
16433   s&@localedir@&$localedir&g
16434   s&@mandir@&$mandir&g
16435   s&\\\${datarootdir}&$datarootdir&g' ;;
16436 esac
16437 _ACEOF
16438
16439 # Neutralize VPATH when `$srcdir' = `.'.
16440 # Shell code in configure.ac might set extrasub.
16441 # FIXME: do we really want to maintain this feature?
16442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16443 ac_sed_extra="$ac_vpsub
16444 $extrasub
16445 _ACEOF
16446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16447 :t
16448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16449 s|@configure_input@|$ac_sed_conf_input|;t t
16450 s&@top_builddir@&$ac_top_builddir_sub&;t t
16451 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16452 s&@srcdir@&$ac_srcdir&;t t
16453 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16454 s&@top_srcdir@&$ac_top_srcdir&;t t
16455 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16456 s&@builddir@&$ac_builddir&;t t
16457 s&@abs_builddir@&$ac_abs_builddir&;t t
16458 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16459 s&@INSTALL@&$ac_INSTALL&;t t
16460 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16461 $ac_datarootdir_hack
16462 "
16463 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16464   || as_fn_error "could not create $ac_file" "$LINENO" 5
16465
16466 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16467   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16468   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16469   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16470 which seems to be undefined.  Please make sure it is defined." >&5
16471 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16472 which seems to be undefined.  Please make sure it is defined." >&2;}
16473
16474   rm -f "$tmp/stdin"
16475   case $ac_file in
16476   -) cat "$tmp/out" && rm -f "$tmp/out";;
16477   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16478   esac \
16479   || as_fn_error "could not create $ac_file" "$LINENO" 5
16480  ;;
16481   :H)
16482   #
16483   # CONFIG_HEADER
16484   #
16485   if test x"$ac_file" != x-; then
16486     {
16487       $as_echo "/* $configure_input  */" \
16488       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16489     } >"$tmp/config.h" \
16490       || as_fn_error "could not create $ac_file" "$LINENO" 5
16491     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16492       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16493 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16494     else
16495       rm -f "$ac_file"
16496       mv "$tmp/config.h" "$ac_file" \
16497         || as_fn_error "could not create $ac_file" "$LINENO" 5
16498     fi
16499   else
16500     $as_echo "/* $configure_input  */" \
16501       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16502       || as_fn_error "could not create -" "$LINENO" 5
16503   fi
16504 # Compute "$ac_file"'s index in $config_headers.
16505 _am_arg="$ac_file"
16506 _am_stamp_count=1
16507 for _am_header in $config_headers :; do
16508   case $_am_header in
16509     $_am_arg | $_am_arg:* )
16510       break ;;
16511     * )
16512       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16513   esac
16514 done
16515 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16516 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16517          X"$_am_arg" : 'X\(//\)[^/]' \| \
16518          X"$_am_arg" : 'X\(//\)$' \| \
16519          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16520 $as_echo X"$_am_arg" |
16521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16522             s//\1/
16523             q
16524           }
16525           /^X\(\/\/\)[^/].*/{
16526             s//\1/
16527             q
16528           }
16529           /^X\(\/\/\)$/{
16530             s//\1/
16531             q
16532           }
16533           /^X\(\/\).*/{
16534             s//\1/
16535             q
16536           }
16537           s/.*/./; q'`/stamp-h$_am_stamp_count
16538  ;;
16539
16540   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16541 $as_echo "$as_me: executing $ac_file commands" >&6;}
16542  ;;
16543   esac
16544
16545
16546   case $ac_file$ac_mode in
16547     "scripts/gtest-config":F) chmod +x scripts/gtest-config ;;
16548     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16549   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16550   # are listed without --file.  Let's play safe and only enable the eval
16551   # if we detect the quoting.
16552   case $CONFIG_FILES in
16553   *\'*) eval set x "$CONFIG_FILES" ;;
16554   *)   set x $CONFIG_FILES ;;
16555   esac
16556   shift
16557   for mf
16558   do
16559     # Strip MF so we end up with the name of the file.
16560     mf=`echo "$mf" | sed -e 's/:.*$//'`
16561     # Check whether this is an Automake generated Makefile or not.
16562     # We used to match only the files named `Makefile.in', but
16563     # some people rename them; so instead we look at the file content.
16564     # Grep'ing the first line is not enough: some people post-process
16565     # each Makefile.in and add a new line on top of each file to say so.
16566     # Grep'ing the whole file is not good either: AIX grep has a line
16567     # limit of 2048, but all sed's we know have understand at least 4000.
16568     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16569       dirpart=`$as_dirname -- "$mf" ||
16570 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16571          X"$mf" : 'X\(//\)[^/]' \| \
16572          X"$mf" : 'X\(//\)$' \| \
16573          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16574 $as_echo X"$mf" |
16575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16576             s//\1/
16577             q
16578           }
16579           /^X\(\/\/\)[^/].*/{
16580             s//\1/
16581             q
16582           }
16583           /^X\(\/\/\)$/{
16584             s//\1/
16585             q
16586           }
16587           /^X\(\/\).*/{
16588             s//\1/
16589             q
16590           }
16591           s/.*/./; q'`
16592     else
16593       continue
16594     fi
16595     # Extract the definition of DEPDIR, am__include, and am__quote
16596     # from the Makefile without running `make'.
16597     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16598     test -z "$DEPDIR" && continue
16599     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16600     test -z "am__include" && continue
16601     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16602     # When using ansi2knr, U may be empty or an underscore; expand it
16603     U=`sed -n 's/^U = //p' < "$mf"`
16604     # Find all dependency output files, they are included files with
16605     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16606     # simplest approach to changing $(DEPDIR) to its actual value in the
16607     # expansion.
16608     for file in `sed -n "
16609       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16610          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16611       # Make sure the directory exists.
16612       test -f "$dirpart/$file" && continue
16613       fdir=`$as_dirname -- "$file" ||
16614 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16615          X"$file" : 'X\(//\)[^/]' \| \
16616          X"$file" : 'X\(//\)$' \| \
16617          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16618 $as_echo X"$file" |
16619     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16620             s//\1/
16621             q
16622           }
16623           /^X\(\/\/\)[^/].*/{
16624             s//\1/
16625             q
16626           }
16627           /^X\(\/\/\)$/{
16628             s//\1/
16629             q
16630           }
16631           /^X\(\/\).*/{
16632             s//\1/
16633             q
16634           }
16635           s/.*/./; q'`
16636       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16637       # echo "creating $dirpart/$file"
16638       echo '# dummy' > "$dirpart/$file"
16639     done
16640   done
16641 }
16642  ;;
16643     "libtool":C)
16644
16645     # See if we are running on zsh, and set the options which allow our
16646     # commands through without removal of \ escapes.
16647     if test -n "${ZSH_VERSION+set}" ; then
16648       setopt NO_GLOB_SUBST
16649     fi
16650
16651     cfgfile="${ofile}T"
16652     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16653     $RM "$cfgfile"
16654
16655     cat <<_LT_EOF >> "$cfgfile"
16656 #! $SHELL
16657
16658 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16659 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16660 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16661 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16662 #
16663 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16664 #                 2006, 2007, 2008 Free Software Foundation, Inc.
16665 #   Written by Gordon Matzigkeit, 1996
16666 #
16667 #   This file is part of GNU Libtool.
16668 #
16669 # GNU Libtool is free software; you can redistribute it and/or
16670 # modify it under the terms of the GNU General Public License as
16671 # published by the Free Software Foundation; either version 2 of
16672 # the License, or (at your option) any later version.
16673 #
16674 # As a special exception to the GNU General Public License,
16675 # if you distribute this file as part of a program or library that
16676 # is built using GNU Libtool, you may include this file under the
16677 # same distribution terms that you use for the rest of that program.
16678 #
16679 # GNU Libtool is distributed in the hope that it will be useful,
16680 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16681 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16682 # GNU General Public License for more details.
16683 #
16684 # You should have received a copy of the GNU General Public License
16685 # along with GNU Libtool; see the file COPYING.  If not, a copy
16686 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16687 # obtained by writing to the Free Software Foundation, Inc.,
16688 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16689
16690
16691 # The names of the tagged configurations supported by this script.
16692 available_tags="CXX "
16693
16694 # ### BEGIN LIBTOOL CONFIG
16695
16696 # Which release of libtool.m4 was used?
16697 macro_version=$macro_version
16698 macro_revision=$macro_revision
16699
16700 # Whether or not to build shared libraries.
16701 build_libtool_libs=$enable_shared
16702
16703 # Whether or not to build static libraries.
16704 build_old_libs=$enable_static
16705
16706 # What type of objects to build.
16707 pic_mode=$pic_mode
16708
16709 # Whether or not to optimize for fast installation.
16710 fast_install=$enable_fast_install
16711
16712 # The host system.
16713 host_alias=$host_alias
16714 host=$host
16715 host_os=$host_os
16716
16717 # The build system.
16718 build_alias=$build_alias
16719 build=$build
16720 build_os=$build_os
16721
16722 # A sed program that does not truncate output.
16723 SED=$lt_SED
16724
16725 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16726 Xsed="\$SED -e 1s/^X//"
16727
16728 # A grep program that handles long lines.
16729 GREP=$lt_GREP
16730
16731 # An ERE matcher.
16732 EGREP=$lt_EGREP
16733
16734 # A literal string matcher.
16735 FGREP=$lt_FGREP
16736
16737 # A BSD- or MS-compatible name lister.
16738 NM=$lt_NM
16739
16740 # Whether we need soft or hard links.
16741 LN_S=$lt_LN_S
16742
16743 # What is the maximum length of a command?
16744 max_cmd_len=$max_cmd_len
16745
16746 # Object file suffix (normally "o").
16747 objext=$ac_objext
16748
16749 # Executable file suffix (normally "").
16750 exeext=$exeext
16751
16752 # whether the shell understands "unset".
16753 lt_unset=$lt_unset
16754
16755 # turn spaces into newlines.
16756 SP2NL=$lt_lt_SP2NL
16757
16758 # turn newlines into spaces.
16759 NL2SP=$lt_lt_NL2SP
16760
16761 # How to create reloadable object files.
16762 reload_flag=$lt_reload_flag
16763 reload_cmds=$lt_reload_cmds
16764
16765 # An object symbol dumper.
16766 OBJDUMP=$lt_OBJDUMP
16767
16768 # Method to check whether dependent libraries are shared objects.
16769 deplibs_check_method=$lt_deplibs_check_method
16770
16771 # Command to use when deplibs_check_method == "file_magic".
16772 file_magic_cmd=$lt_file_magic_cmd
16773
16774 # The archiver.
16775 AR=$lt_AR
16776 AR_FLAGS=$lt_AR_FLAGS
16777
16778 # A symbol stripping program.
16779 STRIP=$lt_STRIP
16780
16781 # Commands used to install an old-style archive.
16782 RANLIB=$lt_RANLIB
16783 old_postinstall_cmds=$lt_old_postinstall_cmds
16784 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16785
16786 # A C compiler.
16787 LTCC=$lt_CC
16788
16789 # LTCC compiler flags.
16790 LTCFLAGS=$lt_CFLAGS
16791
16792 # Take the output of nm and produce a listing of raw symbols and C names.
16793 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16794
16795 # Transform the output of nm in a proper C declaration.
16796 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16797
16798 # Transform the output of nm in a C name address pair.
16799 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16800
16801 # Transform the output of nm in a C name address pair when lib prefix is needed.
16802 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16803
16804 # The name of the directory that contains temporary libtool files.
16805 objdir=$objdir
16806
16807 # Shell to use when invoking shell scripts.
16808 SHELL=$lt_SHELL
16809
16810 # An echo program that does not interpret backslashes.
16811 ECHO=$lt_ECHO
16812
16813 # Used to examine libraries when file_magic_cmd begins with "file".
16814 MAGIC_CMD=$MAGIC_CMD
16815
16816 # Must we lock files when doing compilation?
16817 need_locks=$lt_need_locks
16818
16819 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16820 DSYMUTIL=$lt_DSYMUTIL
16821
16822 # Tool to change global to local symbols on Mac OS X.
16823 NMEDIT=$lt_NMEDIT
16824
16825 # Tool to manipulate fat objects and archives on Mac OS X.
16826 LIPO=$lt_LIPO
16827
16828 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16829 OTOOL=$lt_OTOOL
16830
16831 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16832 OTOOL64=$lt_OTOOL64
16833
16834 # Old archive suffix (normally "a").
16835 libext=$libext
16836
16837 # Shared library suffix (normally ".so").
16838 shrext_cmds=$lt_shrext_cmds
16839
16840 # The commands to extract the exported symbol list from a shared archive.
16841 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16842
16843 # Variables whose values should be saved in libtool wrapper scripts and
16844 # restored at link time.
16845 variables_saved_for_relink=$lt_variables_saved_for_relink
16846
16847 # Do we need the "lib" prefix for modules?
16848 need_lib_prefix=$need_lib_prefix
16849
16850 # Do we need a version for libraries?
16851 need_version=$need_version
16852
16853 # Library versioning type.
16854 version_type=$version_type
16855
16856 # Shared library runtime path variable.
16857 runpath_var=$runpath_var
16858
16859 # Shared library path variable.
16860 shlibpath_var=$shlibpath_var
16861
16862 # Is shlibpath searched before the hard-coded library search path?
16863 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16864
16865 # Format of library name prefix.
16866 libname_spec=$lt_libname_spec
16867
16868 # List of archive names.  First name is the real one, the rest are links.
16869 # The last name is the one that the linker finds with -lNAME
16870 library_names_spec=$lt_library_names_spec
16871
16872 # The coded name of the library, if different from the real name.
16873 soname_spec=$lt_soname_spec
16874
16875 # Command to use after installation of a shared archive.
16876 postinstall_cmds=$lt_postinstall_cmds
16877
16878 # Command to use after uninstallation of a shared archive.
16879 postuninstall_cmds=$lt_postuninstall_cmds
16880
16881 # Commands used to finish a libtool library installation in a directory.
16882 finish_cmds=$lt_finish_cmds
16883
16884 # As "finish_cmds", except a single script fragment to be evaled but
16885 # not shown.
16886 finish_eval=$lt_finish_eval
16887
16888 # Whether we should hardcode library paths into libraries.
16889 hardcode_into_libs=$hardcode_into_libs
16890
16891 # Compile-time system search path for libraries.
16892 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16893
16894 # Run-time system search path for libraries.
16895 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16896
16897 # Whether dlopen is supported.
16898 dlopen_support=$enable_dlopen
16899
16900 # Whether dlopen of programs is supported.
16901 dlopen_self=$enable_dlopen_self
16902
16903 # Whether dlopen of statically linked programs is supported.
16904 dlopen_self_static=$enable_dlopen_self_static
16905
16906 # Commands to strip libraries.
16907 old_striplib=$lt_old_striplib
16908 striplib=$lt_striplib
16909
16910
16911 # The linker used to build libraries.
16912 LD=$lt_LD
16913
16914 # Commands used to build an old-style archive.
16915 old_archive_cmds=$lt_old_archive_cmds
16916
16917 # A language specific compiler.
16918 CC=$lt_compiler
16919
16920 # Is the compiler the GNU compiler?
16921 with_gcc=$GCC
16922
16923 # Compiler flag to turn off builtin functions.
16924 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16925
16926 # How to pass a linker flag through the compiler.
16927 wl=$lt_lt_prog_compiler_wl
16928
16929 # Additional compiler flags for building library objects.
16930 pic_flag=$lt_lt_prog_compiler_pic
16931
16932 # Compiler flag to prevent dynamic linking.
16933 link_static_flag=$lt_lt_prog_compiler_static
16934
16935 # Does compiler simultaneously support -c and -o options?
16936 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16937
16938 # Whether or not to add -lc for building shared libraries.
16939 build_libtool_need_lc=$archive_cmds_need_lc
16940
16941 # Whether or not to disallow shared libs when runtime libs are static.
16942 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16943
16944 # Compiler flag to allow reflexive dlopens.
16945 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16946
16947 # Compiler flag to generate shared objects directly from archives.
16948 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16949
16950 # Whether the compiler copes with passing no objects directly.
16951 compiler_needs_object=$lt_compiler_needs_object
16952
16953 # Create an old-style archive from a shared archive.
16954 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16955
16956 # Create a temporary old-style archive to link instead of a shared archive.
16957 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16958
16959 # Commands used to build a shared archive.
16960 archive_cmds=$lt_archive_cmds
16961 archive_expsym_cmds=$lt_archive_expsym_cmds
16962
16963 # Commands used to build a loadable module if different from building
16964 # a shared archive.
16965 module_cmds=$lt_module_cmds
16966 module_expsym_cmds=$lt_module_expsym_cmds
16967
16968 # Whether we are building with GNU ld or not.
16969 with_gnu_ld=$lt_with_gnu_ld
16970
16971 # Flag that allows shared libraries with undefined symbols to be built.
16972 allow_undefined_flag=$lt_allow_undefined_flag
16973
16974 # Flag that enforces no undefined symbols.
16975 no_undefined_flag=$lt_no_undefined_flag
16976
16977 # Flag to hardcode \$libdir into a binary during linking.
16978 # This must work even if \$libdir does not exist
16979 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16980
16981 # If ld is used when linking, flag to hardcode \$libdir into a binary
16982 # during linking.  This must work even if \$libdir does not exist.
16983 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16984
16985 # Whether we need a single "-rpath" flag with a separated argument.
16986 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16987
16988 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16989 # DIR into the resulting binary.
16990 hardcode_direct=$hardcode_direct
16991
16992 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16993 # DIR into the resulting binary and the resulting library dependency is
16994 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16995 # library is relocated.
16996 hardcode_direct_absolute=$hardcode_direct_absolute
16997
16998 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16999 # into the resulting binary.
17000 hardcode_minus_L=$hardcode_minus_L
17001
17002 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17003 # into the resulting binary.
17004 hardcode_shlibpath_var=$hardcode_shlibpath_var
17005
17006 # Set to "yes" if building a shared library automatically hardcodes DIR
17007 # into the library and all subsequent libraries and executables linked
17008 # against it.
17009 hardcode_automatic=$hardcode_automatic
17010
17011 # Set to yes if linker adds runtime paths of dependent libraries
17012 # to runtime path list.
17013 inherit_rpath=$inherit_rpath
17014
17015 # Whether libtool must link a program against all its dependency libraries.
17016 link_all_deplibs=$link_all_deplibs
17017
17018 # Fix the shell variable \$srcfile for the compiler.
17019 fix_srcfile_path=$lt_fix_srcfile_path
17020
17021 # Set to "yes" if exported symbols are required.
17022 always_export_symbols=$always_export_symbols
17023
17024 # The commands to list exported symbols.
17025 export_symbols_cmds=$lt_export_symbols_cmds
17026
17027 # Symbols that should not be listed in the preloaded symbols.
17028 exclude_expsyms=$lt_exclude_expsyms
17029
17030 # Symbols that must always be exported.
17031 include_expsyms=$lt_include_expsyms
17032
17033 # Commands necessary for linking programs (against libraries) with templates.
17034 prelink_cmds=$lt_prelink_cmds
17035
17036 # Specify filename containing input files.
17037 file_list_spec=$lt_file_list_spec
17038
17039 # How to hardcode a shared library path into an executable.
17040 hardcode_action=$hardcode_action
17041
17042 # The directories searched by this compiler when creating a shared library.
17043 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17044
17045 # Dependencies to place before and after the objects being linked to
17046 # create a shared library.
17047 predep_objects=$lt_predep_objects
17048 postdep_objects=$lt_postdep_objects
17049 predeps=$lt_predeps
17050 postdeps=$lt_postdeps
17051
17052 # The library search path used internally by the compiler when linking
17053 # a shared library.
17054 compiler_lib_search_path=$lt_compiler_lib_search_path
17055
17056 # ### END LIBTOOL CONFIG
17057
17058 _LT_EOF
17059
17060   case $host_os in
17061   aix3*)
17062     cat <<\_LT_EOF >> "$cfgfile"
17063 # AIX sometimes has problems with the GCC collect2 program.  For some
17064 # reason, if we set the COLLECT_NAMES environment variable, the problems
17065 # vanish in a puff of smoke.
17066 if test "X${COLLECT_NAMES+set}" != Xset; then
17067   COLLECT_NAMES=
17068   export COLLECT_NAMES
17069 fi
17070 _LT_EOF
17071     ;;
17072   esac
17073
17074
17075 ltmain="$ac_aux_dir/ltmain.sh"
17076
17077
17078   # We use sed instead of cat because bash on DJGPP gets confused if
17079   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17080   # text mode, it properly converts lines to CR/LF.  This bash problem
17081   # is reportedly fixed, but why not run on old versions too?
17082   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17083     || (rm -f "$cfgfile"; exit 1)
17084
17085   case $xsi_shell in
17086   yes)
17087     cat << \_LT_EOF >> "$cfgfile"
17088
17089 # func_dirname file append nondir_replacement
17090 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17091 # otherwise set result to NONDIR_REPLACEMENT.
17092 func_dirname ()
17093 {
17094   case ${1} in
17095     */*) func_dirname_result="${1%/*}${2}" ;;
17096     *  ) func_dirname_result="${3}" ;;
17097   esac
17098 }
17099
17100 # func_basename file
17101 func_basename ()
17102 {
17103   func_basename_result="${1##*/}"
17104 }
17105
17106 # func_dirname_and_basename file append nondir_replacement
17107 # perform func_basename and func_dirname in a single function
17108 # call:
17109 #   dirname:  Compute the dirname of FILE.  If nonempty,
17110 #             add APPEND to the result, otherwise set result
17111 #             to NONDIR_REPLACEMENT.
17112 #             value returned in "$func_dirname_result"
17113 #   basename: Compute filename of FILE.
17114 #             value retuned in "$func_basename_result"
17115 # Implementation must be kept synchronized with func_dirname
17116 # and func_basename. For efficiency, we do not delegate to
17117 # those functions but instead duplicate the functionality here.
17118 func_dirname_and_basename ()
17119 {
17120   case ${1} in
17121     */*) func_dirname_result="${1%/*}${2}" ;;
17122     *  ) func_dirname_result="${3}" ;;
17123   esac
17124   func_basename_result="${1##*/}"
17125 }
17126
17127 # func_stripname prefix suffix name
17128 # strip PREFIX and SUFFIX off of NAME.
17129 # PREFIX and SUFFIX must not contain globbing or regex special
17130 # characters, hashes, percent signs, but SUFFIX may contain a leading
17131 # dot (in which case that matches only a dot).
17132 func_stripname ()
17133 {
17134   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17135   # positional parameters, so assign one to ordinary parameter first.
17136   func_stripname_result=${3}
17137   func_stripname_result=${func_stripname_result#"${1}"}
17138   func_stripname_result=${func_stripname_result%"${2}"}
17139 }
17140
17141 # func_opt_split
17142 func_opt_split ()
17143 {
17144   func_opt_split_opt=${1%%=*}
17145   func_opt_split_arg=${1#*=}
17146 }
17147
17148 # func_lo2o object
17149 func_lo2o ()
17150 {
17151   case ${1} in
17152     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17153     *)    func_lo2o_result=${1} ;;
17154   esac
17155 }
17156
17157 # func_xform libobj-or-source
17158 func_xform ()
17159 {
17160   func_xform_result=${1%.*}.lo
17161 }
17162
17163 # func_arith arithmetic-term...
17164 func_arith ()
17165 {
17166   func_arith_result=$(( $* ))
17167 }
17168
17169 # func_len string
17170 # STRING may not start with a hyphen.
17171 func_len ()
17172 {
17173   func_len_result=${#1}
17174 }
17175
17176 _LT_EOF
17177     ;;
17178   *) # Bourne compatible functions.
17179     cat << \_LT_EOF >> "$cfgfile"
17180
17181 # func_dirname file append nondir_replacement
17182 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17183 # otherwise set result to NONDIR_REPLACEMENT.
17184 func_dirname ()
17185 {
17186   # Extract subdirectory from the argument.
17187   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17188   if test "X$func_dirname_result" = "X${1}"; then
17189     func_dirname_result="${3}"
17190   else
17191     func_dirname_result="$func_dirname_result${2}"
17192   fi
17193 }
17194
17195 # func_basename file
17196 func_basename ()
17197 {
17198   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17199 }
17200
17201
17202 # func_stripname prefix suffix name
17203 # strip PREFIX and SUFFIX off of NAME.
17204 # PREFIX and SUFFIX must not contain globbing or regex special
17205 # characters, hashes, percent signs, but SUFFIX may contain a leading
17206 # dot (in which case that matches only a dot).
17207 # func_strip_suffix prefix name
17208 func_stripname ()
17209 {
17210   case ${2} in
17211     .*) func_stripname_result=`$ECHO "X${3}" \
17212            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17213     *)  func_stripname_result=`$ECHO "X${3}" \
17214            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17215   esac
17216 }
17217
17218 # sed scripts:
17219 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17220 my_sed_long_arg='1s/^-[^=]*=//'
17221
17222 # func_opt_split
17223 func_opt_split ()
17224 {
17225   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17226   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17227 }
17228
17229 # func_lo2o object
17230 func_lo2o ()
17231 {
17232   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17233 }
17234
17235 # func_xform libobj-or-source
17236 func_xform ()
17237 {
17238   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17239 }
17240
17241 # func_arith arithmetic-term...
17242 func_arith ()
17243 {
17244   func_arith_result=`expr "$@"`
17245 }
17246
17247 # func_len string
17248 # STRING may not start with a hyphen.
17249 func_len ()
17250 {
17251   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17252 }
17253
17254 _LT_EOF
17255 esac
17256
17257 case $lt_shell_append in
17258   yes)
17259     cat << \_LT_EOF >> "$cfgfile"
17260
17261 # func_append var value
17262 # Append VALUE to the end of shell variable VAR.
17263 func_append ()
17264 {
17265   eval "$1+=\$2"
17266 }
17267 _LT_EOF
17268     ;;
17269   *)
17270     cat << \_LT_EOF >> "$cfgfile"
17271
17272 # func_append var value
17273 # Append VALUE to the end of shell variable VAR.
17274 func_append ()
17275 {
17276   eval "$1=\$$1\$2"
17277 }
17278
17279 _LT_EOF
17280     ;;
17281   esac
17282
17283
17284   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17285     || (rm -f "$cfgfile"; exit 1)
17286
17287   mv -f "$cfgfile" "$ofile" ||
17288     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17289   chmod +x "$ofile"
17290
17291
17292     cat <<_LT_EOF >> "$ofile"
17293
17294 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17295
17296 # The linker used to build libraries.
17297 LD=$lt_LD_CXX
17298
17299 # Commands used to build an old-style archive.
17300 old_archive_cmds=$lt_old_archive_cmds_CXX
17301
17302 # A language specific compiler.
17303 CC=$lt_compiler_CXX
17304
17305 # Is the compiler the GNU compiler?
17306 with_gcc=$GCC_CXX
17307
17308 # Compiler flag to turn off builtin functions.
17309 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17310
17311 # How to pass a linker flag through the compiler.
17312 wl=$lt_lt_prog_compiler_wl_CXX
17313
17314 # Additional compiler flags for building library objects.
17315 pic_flag=$lt_lt_prog_compiler_pic_CXX
17316
17317 # Compiler flag to prevent dynamic linking.
17318 link_static_flag=$lt_lt_prog_compiler_static_CXX
17319
17320 # Does compiler simultaneously support -c and -o options?
17321 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17322
17323 # Whether or not to add -lc for building shared libraries.
17324 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17325
17326 # Whether or not to disallow shared libs when runtime libs are static.
17327 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17328
17329 # Compiler flag to allow reflexive dlopens.
17330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17331
17332 # Compiler flag to generate shared objects directly from archives.
17333 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17334
17335 # Whether the compiler copes with passing no objects directly.
17336 compiler_needs_object=$lt_compiler_needs_object_CXX
17337
17338 # Create an old-style archive from a shared archive.
17339 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17340
17341 # Create a temporary old-style archive to link instead of a shared archive.
17342 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17343
17344 # Commands used to build a shared archive.
17345 archive_cmds=$lt_archive_cmds_CXX
17346 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17347
17348 # Commands used to build a loadable module if different from building
17349 # a shared archive.
17350 module_cmds=$lt_module_cmds_CXX
17351 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17352
17353 # Whether we are building with GNU ld or not.
17354 with_gnu_ld=$lt_with_gnu_ld_CXX
17355
17356 # Flag that allows shared libraries with undefined symbols to be built.
17357 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17358
17359 # Flag that enforces no undefined symbols.
17360 no_undefined_flag=$lt_no_undefined_flag_CXX
17361
17362 # Flag to hardcode \$libdir into a binary during linking.
17363 # This must work even if \$libdir does not exist
17364 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17365
17366 # If ld is used when linking, flag to hardcode \$libdir into a binary
17367 # during linking.  This must work even if \$libdir does not exist.
17368 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17369
17370 # Whether we need a single "-rpath" flag with a separated argument.
17371 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17372
17373 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17374 # DIR into the resulting binary.
17375 hardcode_direct=$hardcode_direct_CXX
17376
17377 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17378 # DIR into the resulting binary and the resulting library dependency is
17379 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17380 # library is relocated.
17381 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17382
17383 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17384 # into the resulting binary.
17385 hardcode_minus_L=$hardcode_minus_L_CXX
17386
17387 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17388 # into the resulting binary.
17389 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17390
17391 # Set to "yes" if building a shared library automatically hardcodes DIR
17392 # into the library and all subsequent libraries and executables linked
17393 # against it.
17394 hardcode_automatic=$hardcode_automatic_CXX
17395
17396 # Set to yes if linker adds runtime paths of dependent libraries
17397 # to runtime path list.
17398 inherit_rpath=$inherit_rpath_CXX
17399
17400 # Whether libtool must link a program against all its dependency libraries.
17401 link_all_deplibs=$link_all_deplibs_CXX
17402
17403 # Fix the shell variable \$srcfile for the compiler.
17404 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17405
17406 # Set to "yes" if exported symbols are required.
17407 always_export_symbols=$always_export_symbols_CXX
17408
17409 # The commands to list exported symbols.
17410 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17411
17412 # Symbols that should not be listed in the preloaded symbols.
17413 exclude_expsyms=$lt_exclude_expsyms_CXX
17414
17415 # Symbols that must always be exported.
17416 include_expsyms=$lt_include_expsyms_CXX
17417
17418 # Commands necessary for linking programs (against libraries) with templates.
17419 prelink_cmds=$lt_prelink_cmds_CXX
17420
17421 # Specify filename containing input files.
17422 file_list_spec=$lt_file_list_spec_CXX
17423
17424 # How to hardcode a shared library path into an executable.
17425 hardcode_action=$hardcode_action_CXX
17426
17427 # The directories searched by this compiler when creating a shared library.
17428 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17429
17430 # Dependencies to place before and after the objects being linked to
17431 # create a shared library.
17432 predep_objects=$lt_predep_objects_CXX
17433 postdep_objects=$lt_postdep_objects_CXX
17434 predeps=$lt_predeps_CXX
17435 postdeps=$lt_postdeps_CXX
17436
17437 # The library search path used internally by the compiler when linking
17438 # a shared library.
17439 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17440
17441 # ### END LIBTOOL TAG CONFIG: CXX
17442 _LT_EOF
17443
17444  ;;
17445
17446   esac
17447 done # for ac_tag
17448
17449
17450 as_fn_exit 0
17451 _ACEOF
17452 ac_clean_files=$ac_clean_files_save
17453
17454 test $ac_write_fail = 0 ||
17455   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17456
17457
17458 # configure is writing to config.log, and then calls config.status.
17459 # config.status does its own redirection, appending to config.log.
17460 # Unfortunately, on DOS this fails, as config.log is still kept open
17461 # by configure, so config.status won't be able to write to it; its
17462 # output is simply discarded.  So we exec the FD to /dev/null,
17463 # effectively closing config.log, so it can be properly (re)opened and
17464 # appended to by config.status.  When coming back to configure, we
17465 # need to make the FD available again.
17466 if test "$no_create" != yes; then
17467   ac_cs_success=:
17468   ac_config_status_args=
17469   test "$silent" = yes &&
17470     ac_config_status_args="$ac_config_status_args --quiet"
17471   exec 5>/dev/null
17472   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17473   exec 5>>config.log
17474   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17475   # would make configure fail if this is the last instruction.
17476   $ac_cs_success || as_fn_exit $?
17477 fi
17478 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17479   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17480 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17481 fi
17482