]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/atf/configure
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / contrib / atf / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Automated Testing Framework 0.16.
4 #
5 # Report bugs to <atf-devel@NetBSD.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 #
16 # Copyright (c) 2007-2012 The NetBSD Foundation, Inc.
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
20
21 # Be more Bourne compatible
22 DUALCASE=1; export DUALCASE # for MKS sh
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24   emulate sh
25   NULLCMD=:
26   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27   # is contrary to our usage.  Disable this feature.
28   alias -g '${1+"$@"}'='"$@"'
29   setopt NO_GLOB_SUBST
30 else
31   case `(set -o) 2>/dev/null` in #(
32   *posix*) :
33     set -o posix ;; #(
34   *) :
35      ;;
36 esac
37 fi
38
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 # Prefer a ksh shell builtin over an external printf program on Solaris,
48 # but without wasting forks for bash or zsh.
49 if test -z "$BASH_VERSION$ZSH_VERSION" \
50     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='print -r --'
52   as_echo_n='print -rn --'
53 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54   as_echo='printf %s\n'
55   as_echo_n='printf %s'
56 else
57   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59     as_echo_n='/usr/ucb/echo -n'
60   else
61     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62     as_echo_n_body='eval
63       arg=$1;
64       case $arg in #(
65       *"$as_nl"*)
66         expr "X$arg" : "X\\(.*\\)$as_nl";
67         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68       esac;
69       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70     '
71     export as_echo_n_body
72     as_echo_n='sh -c $as_echo_n_body as_echo'
73   fi
74   export as_echo_body
75   as_echo='sh -c $as_echo_body as_echo'
76 fi
77
78 # The user is always right.
79 if test "${PATH_SEPARATOR+set}" != set; then
80   PATH_SEPARATOR=:
81   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83       PATH_SEPARATOR=';'
84   }
85 fi
86
87
88 # IFS
89 # We need space, tab and new line, in precisely that order.  Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
93 IFS=" ""        $as_nl"
94
95 # Find who we are.  Look in the path if we contain no directory separator.
96 as_myself=
97 case $0 in #((
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105   done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   exit 1
118 fi
119
120 # Unset variables that we do not need and which cause bugs (e.g. in
121 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
122 # suppresses any "Segmentation fault" message there.  '((' could
123 # trigger a bug in pdksh 5.2.14.
124 for as_var in BASH_ENV ENV MAIL MAILPATH
125 do eval test x\${$as_var+set} = xset \
126   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
131
132 # NLS nuisances.
133 LC_ALL=C
134 export LC_ALL
135 LANGUAGE=C
136 export LANGUAGE
137
138 # CDPATH.
139 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140
141 if test "x$CONFIG_SHELL" = x; then
142   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143   emulate sh
144   NULLCMD=:
145   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146   # is contrary to our usage.  Disable this feature.
147   alias -g '\${1+\"\$@\"}'='\"\$@\"'
148   setopt NO_GLOB_SUBST
149 else
150   case \`(set -o) 2>/dev/null\` in #(
151   *posix*) :
152     set -o posix ;; #(
153   *) :
154      ;;
155 esac
156 fi
157 "
158   as_required="as_fn_return () { (exit \$1); }
159 as_fn_success () { as_fn_return 0; }
160 as_fn_failure () { as_fn_return 1; }
161 as_fn_ret_success () { return 0; }
162 as_fn_ret_failure () { return 1; }
163
164 exitcode=0
165 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170
171 else
172   exitcode=1; echo positional parameters were not saved.
173 fi
174 test x\$exitcode = x0 || exit 1"
175   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
176   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
177   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
178   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
179
180   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
181     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
184     PATH=/empty FPATH=/empty; export PATH FPATH
185     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
186       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188   if (eval "$as_required") 2>/dev/null; then :
189   as_have_required=yes
190 else
191   as_have_required=no
192 fi
193   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194
195 else
196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 as_found=false
198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 do
200   IFS=$as_save_IFS
201   test -z "$as_dir" && as_dir=.
202   as_found=:
203   case $as_dir in #(
204          /*)
205            for as_base in sh bash ksh sh5; do
206              # Try only shells that exist, to save several forks.
207              as_shell=$as_dir/$as_base
208              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
209                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   CONFIG_SHELL=$as_shell as_have_required=yes
211                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212   break 2
213 fi
214 fi
215            done;;
216        esac
217   as_found=false
218 done
219 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
220               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
221   CONFIG_SHELL=$SHELL as_have_required=yes
222 fi; }
223 IFS=$as_save_IFS
224
225
226       if test "x$CONFIG_SHELL" != x; then :
227   # We cannot yet assume a decent shell, so we have to provide a
228         # neutralization value for shells without unset; and this also
229         # works around shells that cannot unset nonexistent variables.
230         # Preserve -v and -x to the replacement shell.
231         BASH_ENV=/dev/null
232         ENV=/dev/null
233         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234         export CONFIG_SHELL
235         case $- in # ((((
236           *v*x* | *x*v* ) as_opts=-vx ;;
237           *v* ) as_opts=-v ;;
238           *x* ) as_opts=-x ;;
239           * ) as_opts= ;;
240         esac
241         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 fi
243
244     if test x$as_have_required = xno; then :
245   $as_echo "$0: This script requires a shell more modern than all"
246   $as_echo "$0: the shells that I found on your system."
247   if test x${ZSH_VERSION+set} = xset ; then
248     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
249     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
250   else
251     $as_echo "$0: Please tell bug-autoconf@gnu.org and
252 $0: atf-devel@NetBSD.org about your system, including any
253 $0: error possibly output before this message. Then install
254 $0: a modern shell, or manually run the script under such a
255 $0: shell if you do have one."
256   fi
257   exit 1
258 fi
259 fi
260 fi
261 SHELL=${CONFIG_SHELL-/bin/sh}
262 export SHELL
263 # Unset more variables known to interfere with behavior of common tools.
264 CLICOLOR_FORCE= GREP_OPTIONS=
265 unset CLICOLOR_FORCE GREP_OPTIONS
266
267 ## --------------------- ##
268 ## M4sh Shell Functions. ##
269 ## --------------------- ##
270 # as_fn_unset VAR
271 # ---------------
272 # Portably unset VAR.
273 as_fn_unset ()
274 {
275   { eval $1=; unset $1;}
276 }
277 as_unset=as_fn_unset
278
279 # as_fn_set_status STATUS
280 # -----------------------
281 # Set $? to STATUS, without forking.
282 as_fn_set_status ()
283 {
284   return $1
285 } # as_fn_set_status
286
287 # as_fn_exit STATUS
288 # -----------------
289 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 as_fn_exit ()
291 {
292   set +e
293   as_fn_set_status $1
294   exit $1
295 } # as_fn_exit
296
297 # as_fn_mkdir_p
298 # -------------
299 # Create "$as_dir" as a directory, including parents if necessary.
300 as_fn_mkdir_p ()
301 {
302
303   case $as_dir in #(
304   -*) as_dir=./$as_dir;;
305   esac
306   test -d "$as_dir" || eval $as_mkdir_p || {
307     as_dirs=
308     while :; do
309       case $as_dir in #(
310       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311       *) as_qdir=$as_dir;;
312       esac
313       as_dirs="'$as_qdir' $as_dirs"
314       as_dir=`$as_dirname -- "$as_dir" ||
315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
316          X"$as_dir" : 'X\(//\)[^/]' \| \
317          X"$as_dir" : 'X\(//\)$' \| \
318          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
319 $as_echo X"$as_dir" |
320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
321             s//\1/
322             q
323           }
324           /^X\(\/\/\)[^/].*/{
325             s//\1/
326             q
327           }
328           /^X\(\/\/\)$/{
329             s//\1/
330             q
331           }
332           /^X\(\/\).*/{
333             s//\1/
334             q
335           }
336           s/.*/./; q'`
337       test -d "$as_dir" && break
338     done
339     test -z "$as_dirs" || eval "mkdir $as_dirs"
340   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
341
342
343 } # as_fn_mkdir_p
344 # as_fn_append VAR VALUE
345 # ----------------------
346 # Append the text in VALUE to the end of the definition contained in VAR. Take
347 # advantage of any shell optimizations that allow amortized linear growth over
348 # repeated appends, instead of the typical quadratic growth present in naive
349 # implementations.
350 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
351   eval 'as_fn_append ()
352   {
353     eval $1+=\$2
354   }'
355 else
356   as_fn_append ()
357   {
358     eval $1=\$$1\$2
359   }
360 fi # as_fn_append
361
362 # as_fn_arith ARG...
363 # ------------------
364 # Perform arithmetic evaluation on the ARGs, and store the result in the
365 # global $as_val. Take advantage of shells that can avoid forks. The arguments
366 # must be portable across $(()) and expr.
367 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
368   eval 'as_fn_arith ()
369   {
370     as_val=$(( $* ))
371   }'
372 else
373   as_fn_arith ()
374   {
375     as_val=`expr "$@" || test $? -eq 1`
376   }
377 fi # as_fn_arith
378
379
380 # as_fn_error STATUS ERROR [LINENO LOG_FD]
381 # ----------------------------------------
382 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
383 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
384 # script with STATUS, using 1 if that was 0.
385 as_fn_error ()
386 {
387   as_status=$1; test $as_status -eq 0 && as_status=1
388   if test "$4"; then
389     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
390     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391   fi
392   $as_echo "$as_me: error: $2" >&2
393   as_fn_exit $as_status
394 } # as_fn_error
395
396 if expr a : '\(a\)' >/dev/null 2>&1 &&
397    test "X`expr 00001 : '.*\(...\)'`" = X001; then
398   as_expr=expr
399 else
400   as_expr=false
401 fi
402
403 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404   as_basename=basename
405 else
406   as_basename=false
407 fi
408
409 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410   as_dirname=dirname
411 else
412   as_dirname=false
413 fi
414
415 as_me=`$as_basename -- "$0" ||
416 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
417          X"$0" : 'X\(//\)$' \| \
418          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 $as_echo X/"$0" |
420     sed '/^.*\/\([^/][^/]*\)\/*$/{
421             s//\1/
422             q
423           }
424           /^X\/\(\/\/\)$/{
425             s//\1/
426             q
427           }
428           /^X\/\(\/\).*/{
429             s//\1/
430             q
431           }
432           s/.*/./; q'`
433
434 # Avoid depending upon Character Ranges.
435 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
436 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
437 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
438 as_cr_digits='0123456789'
439 as_cr_alnum=$as_cr_Letters$as_cr_digits
440
441
442   as_lineno_1=$LINENO as_lineno_1a=$LINENO
443   as_lineno_2=$LINENO as_lineno_2a=$LINENO
444   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
445   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
446   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
447   sed -n '
448     p
449     /[$]LINENO/=
450   ' <$as_myself |
451     sed '
452       s/[$]LINENO.*/&-/
453       t lineno
454       b
455       :lineno
456       N
457       :loop
458       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
459       t loop
460       s/-\n.*//
461     ' >$as_me.lineno &&
462   chmod +x "$as_me.lineno" ||
463     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464
465   # Don't try to exec as it changes $[0], causing all sort of problems
466   # (the dirname of $[0] is not the place where we might find the
467   # original and so on.  Autoconf is especially sensitive to this).
468   . "./$as_me.lineno"
469   # Exit status is that of the last command.
470   exit
471 }
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in #(((((
475 -n*)
476   case `echo 'xy\c'` in
477   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
478   xy)  ECHO_C='\c';;
479   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
480        ECHO_T=' ';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir 2>/dev/null
492 fi
493 if (echo >conf$$.file) 2>/dev/null; then
494   if ln -s conf$$.file conf$$ 2>/dev/null; then
495     as_ln_s='ln -s'
496     # ... but there are two gotchas:
497     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499     # In both cases, we have to default to `cp -p'.
500     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501       as_ln_s='cp -p'
502   elif ln conf$$.file conf$$ 2>/dev/null; then
503     as_ln_s=ln
504   else
505     as_ln_s='cp -p'
506   fi
507 else
508   as_ln_s='cp -p'
509 fi
510 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
511 rmdir conf$$.dir 2>/dev/null
512
513 if mkdir -p . 2>/dev/null; then
514   as_mkdir_p='mkdir -p "$as_dir"'
515 else
516   test -d ./-p && rmdir ./-p
517   as_mkdir_p=false
518 fi
519
520 if test -x / >/dev/null 2>&1; then
521   as_test_x='test -x'
522 else
523   if ls -dL / >/dev/null 2>&1; then
524     as_ls_L_option=L
525   else
526     as_ls_L_option=
527   fi
528   as_test_x='
529     eval sh -c '\''
530       if test -d "$1"; then
531         test -d "$1/.";
532       else
533         case $1 in #(
534         -*)set "./$1";;
535         esac;
536         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
537         ???[sx]*):;;*)false;;esac;fi
538     '\'' sh
539   '
540 fi
541 as_executable_p=$as_test_x
542
543 # Sed expression to map a string onto a valid CPP name.
544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545
546 # Sed expression to map a string onto a valid variable name.
547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548
549 SHELL=${CONFIG_SHELL-/bin/sh}
550
551
552 test -n "$DJDIR" || exec 7<&0 </dev/null
553 exec 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571
572 # Identity of this package.
573 PACKAGE_NAME='Automated Testing Framework'
574 PACKAGE_TARNAME='atf'
575 PACKAGE_VERSION='0.16'
576 PACKAGE_STRING='Automated Testing Framework 0.16'
577 PACKAGE_BUGREPORT='atf-devel@NetBSD.org'
578 PACKAGE_URL='http://code.google.com/p/kyua/wiki/ATF'
579
580 ac_unique_file="atf-c.h"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 #  include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 #  include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='am__EXEEXT_FALSE
618 am__EXEEXT_TRUE
619 LTLIBOBJS
620 LIBOBJS
621 GIT
622 HAVE_KYUA_FALSE
623 HAVE_KYUA_TRUE
624 KYUA
625 GDB
626 ATF_SHELL
627 atf_xsldir
628 atf_pkgconfigdir
629 atf_egdir
630 atf_dtddir
631 atf_cssdir
632 atf_aclocaldir
633 ATF_WORKDIR
634 atf_confdir
635 ATF_CONFSUBDIR
636 atf_machine
637 atf_arch
638 target_srcdir
639 ATF_BUILD_CXXFLAGS
640 ATF_BUILD_CXX
641 ATF_BUILD_CPPFLAGS
642 ATF_BUILD_CPP
643 ATF_BUILD_CFLAGS
644 ATF_BUILD_CC
645 ATTRIBUTE_UNUSED
646 ATTRIBUTE_NORETURN
647 ATTRIBUTE_FORMAT_PRINTF
648 CXXCPP
649 am__fastdepCXX_FALSE
650 am__fastdepCXX_TRUE
651 CXXDEPMODE
652 ac_ct_CXX
653 CXXFLAGS
654 CXX
655 ENABLE_TOOLS_FALSE
656 ENABLE_TOOLS_TRUE
657 ENABLE_TOOLS
658 CPP
659 OTOOL64
660 OTOOL
661 LIPO
662 NMEDIT
663 DSYMUTIL
664 MANIFEST_TOOL
665 RANLIB
666 ac_ct_AR
667 AR
668 DLLTOOL
669 OBJDUMP
670 LN_S
671 NM
672 ac_ct_DUMPBIN
673 DUMPBIN
674 LD
675 FGREP
676 EGREP
677 GREP
678 SED
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 am__nodep
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__quote
687 am__include
688 DEPDIR
689 OBJEXT
690 EXEEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
695 CC
696 LIBTOOL
697 am__untar
698 am__tar
699 AMTAR
700 am__leading_dot
701 SET_MAKE
702 AWK
703 mkdir_p
704 MKDIR_P
705 INSTALL_STRIP_PROGRAM
706 STRIP
707 install_sh
708 MAKEINFO
709 AUTOHEADER
710 AUTOMAKE
711 AUTOCONF
712 ACLOCAL
713 VERSION
714 PACKAGE
715 CYGPATH_W
716 am__isrc
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 target_os
721 target_vendor
722 target_cpu
723 target
724 host_os
725 host_vendor
726 host_cpu
727 host
728 build_os
729 build_vendor
730 build_cpu
731 build
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 enable_shared
774 enable_static
775 with_pic
776 enable_fast_install
777 enable_dependency_tracking
778 with_gnu_ld
779 with_sysroot
780 enable_libtool_lock
781 enable_tools
782 enable_developer
783 '
784       ac_precious_vars='build_alias
785 host_alias
786 target_alias
787 CC
788 CFLAGS
789 LDFLAGS
790 LIBS
791 CPPFLAGS
792 CPP
793 CXX
794 CXXFLAGS
795 CCC
796 CXXCPP
797 ATF_BUILD_CC
798 ATF_BUILD_CFLAGS
799 ATF_BUILD_CPP
800 ATF_BUILD_CPPFLAGS
801 ATF_BUILD_CXX
802 ATF_BUILD_CXXFLAGS
803 ATF_CONFSUBDIR
804 ATF_WORKDIR
805 ATF_SHELL'
806
807
808 # Initialize some variables set by options.
809 ac_init_help=
810 ac_init_version=false
811 ac_unrecognized_opts=
812 ac_unrecognized_sep=
813 # The variables have the same names as the options, with
814 # dashes changed to underlines.
815 cache_file=/dev/null
816 exec_prefix=NONE
817 no_create=
818 no_recursion=
819 prefix=NONE
820 program_prefix=NONE
821 program_suffix=NONE
822 program_transform_name=s,x,x,
823 silent=
824 site=
825 srcdir=
826 verbose=
827 x_includes=NONE
828 x_libraries=NONE
829
830 # Installation directory options.
831 # These are left unexpanded so users can "make install exec_prefix=/foo"
832 # and all the variables that are supposed to be based on exec_prefix
833 # by default will actually change.
834 # Use braces instead of parens because sh, perl, etc. also accept them.
835 # (The list follows the same order as the GNU Coding Standards.)
836 bindir='${exec_prefix}/bin'
837 sbindir='${exec_prefix}/sbin'
838 libexecdir='${exec_prefix}/libexec'
839 datarootdir='${prefix}/share'
840 datadir='${datarootdir}'
841 sysconfdir='${prefix}/etc'
842 sharedstatedir='${prefix}/com'
843 localstatedir='${prefix}/var'
844 includedir='${prefix}/include'
845 oldincludedir='/usr/include'
846 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
847 infodir='${datarootdir}/info'
848 htmldir='${docdir}'
849 dvidir='${docdir}'
850 pdfdir='${docdir}'
851 psdir='${docdir}'
852 libdir='${exec_prefix}/lib'
853 localedir='${datarootdir}/locale'
854 mandir='${datarootdir}/man'
855
856 ac_prev=
857 ac_dashdash=
858 for ac_option
859 do
860   # If the previous option needs an argument, assign it.
861   if test -n "$ac_prev"; then
862     eval $ac_prev=\$ac_option
863     ac_prev=
864     continue
865   fi
866
867   case $ac_option in
868   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869   *=)   ac_optarg= ;;
870   *)    ac_optarg=yes ;;
871   esac
872
873   # Accept the important Cygnus configure options, so we can diagnose typos.
874
875   case $ac_dashdash$ac_option in
876   --)
877     ac_dashdash=yes ;;
878
879   -bindir | --bindir | --bindi | --bind | --bin | --bi)
880     ac_prev=bindir ;;
881   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882     bindir=$ac_optarg ;;
883
884   -build | --build | --buil | --bui | --bu)
885     ac_prev=build_alias ;;
886   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887     build_alias=$ac_optarg ;;
888
889   -cache-file | --cache-file | --cache-fil | --cache-fi \
890   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891     ac_prev=cache_file ;;
892   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894     cache_file=$ac_optarg ;;
895
896   --config-cache | -C)
897     cache_file=config.cache ;;
898
899   -datadir | --datadir | --datadi | --datad)
900     ac_prev=datadir ;;
901   -datadir=* | --datadir=* | --datadi=* | --datad=*)
902     datadir=$ac_optarg ;;
903
904   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905   | --dataroo | --dataro | --datar)
906     ac_prev=datarootdir ;;
907   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909     datarootdir=$ac_optarg ;;
910
911   -disable-* | --disable-*)
912     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913     # Reject names that are not valid shell variable names.
914     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915       as_fn_error $? "invalid feature name: $ac_useropt"
916     ac_useropt_orig=$ac_useropt
917     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918     case $ac_user_opts in
919       *"
920 "enable_$ac_useropt"
921 "*) ;;
922       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923          ac_unrecognized_sep=', ';;
924     esac
925     eval enable_$ac_useropt=no ;;
926
927   -docdir | --docdir | --docdi | --doc | --do)
928     ac_prev=docdir ;;
929   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930     docdir=$ac_optarg ;;
931
932   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933     ac_prev=dvidir ;;
934   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935     dvidir=$ac_optarg ;;
936
937   -enable-* | --enable-*)
938     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939     # Reject names that are not valid shell variable names.
940     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941       as_fn_error $? "invalid feature name: $ac_useropt"
942     ac_useropt_orig=$ac_useropt
943     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944     case $ac_user_opts in
945       *"
946 "enable_$ac_useropt"
947 "*) ;;
948       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949          ac_unrecognized_sep=', ';;
950     esac
951     eval enable_$ac_useropt=\$ac_optarg ;;
952
953   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955   | --exec | --exe | --ex)
956     ac_prev=exec_prefix ;;
957   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959   | --exec=* | --exe=* | --ex=*)
960     exec_prefix=$ac_optarg ;;
961
962   -gas | --gas | --ga | --g)
963     # Obsolete; use --with-gas.
964     with_gas=yes ;;
965
966   -help | --help | --hel | --he | -h)
967     ac_init_help=long ;;
968   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969     ac_init_help=recursive ;;
970   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971     ac_init_help=short ;;
972
973   -host | --host | --hos | --ho)
974     ac_prev=host_alias ;;
975   -host=* | --host=* | --hos=* | --ho=*)
976     host_alias=$ac_optarg ;;
977
978   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979     ac_prev=htmldir ;;
980   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981   | --ht=*)
982     htmldir=$ac_optarg ;;
983
984   -includedir | --includedir | --includedi | --included | --include \
985   | --includ | --inclu | --incl | --inc)
986     ac_prev=includedir ;;
987   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988   | --includ=* | --inclu=* | --incl=* | --inc=*)
989     includedir=$ac_optarg ;;
990
991   -infodir | --infodir | --infodi | --infod | --info | --inf)
992     ac_prev=infodir ;;
993   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994     infodir=$ac_optarg ;;
995
996   -libdir | --libdir | --libdi | --libd)
997     ac_prev=libdir ;;
998   -libdir=* | --libdir=* | --libdi=* | --libd=*)
999     libdir=$ac_optarg ;;
1000
1001   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002   | --libexe | --libex | --libe)
1003     ac_prev=libexecdir ;;
1004   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005   | --libexe=* | --libex=* | --libe=*)
1006     libexecdir=$ac_optarg ;;
1007
1008   -localedir | --localedir | --localedi | --localed | --locale)
1009     ac_prev=localedir ;;
1010   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011     localedir=$ac_optarg ;;
1012
1013   -localstatedir | --localstatedir | --localstatedi | --localstated \
1014   | --localstate | --localstat | --localsta | --localst | --locals)
1015     ac_prev=localstatedir ;;
1016   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018     localstatedir=$ac_optarg ;;
1019
1020   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021     ac_prev=mandir ;;
1022   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023     mandir=$ac_optarg ;;
1024
1025   -nfp | --nfp | --nf)
1026     # Obsolete; use --without-fp.
1027     with_fp=no ;;
1028
1029   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030   | --no-cr | --no-c | -n)
1031     no_create=yes ;;
1032
1033   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035     no_recursion=yes ;;
1036
1037   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039   | --oldin | --oldi | --old | --ol | --o)
1040     ac_prev=oldincludedir ;;
1041   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044     oldincludedir=$ac_optarg ;;
1045
1046   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047     ac_prev=prefix ;;
1048   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049     prefix=$ac_optarg ;;
1050
1051   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052   | --program-pre | --program-pr | --program-p)
1053     ac_prev=program_prefix ;;
1054   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056     program_prefix=$ac_optarg ;;
1057
1058   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059   | --program-suf | --program-su | --program-s)
1060     ac_prev=program_suffix ;;
1061   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063     program_suffix=$ac_optarg ;;
1064
1065   -program-transform-name | --program-transform-name \
1066   | --program-transform-nam | --program-transform-na \
1067   | --program-transform-n | --program-transform- \
1068   | --program-transform | --program-transfor \
1069   | --program-transfo | --program-transf \
1070   | --program-trans | --program-tran \
1071   | --progr-tra | --program-tr | --program-t)
1072     ac_prev=program_transform_name ;;
1073   -program-transform-name=* | --program-transform-name=* \
1074   | --program-transform-nam=* | --program-transform-na=* \
1075   | --program-transform-n=* | --program-transform-=* \
1076   | --program-transform=* | --program-transfor=* \
1077   | --program-transfo=* | --program-transf=* \
1078   | --program-trans=* | --program-tran=* \
1079   | --progr-tra=* | --program-tr=* | --program-t=*)
1080     program_transform_name=$ac_optarg ;;
1081
1082   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083     ac_prev=pdfdir ;;
1084   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085     pdfdir=$ac_optarg ;;
1086
1087   -psdir | --psdir | --psdi | --psd | --ps)
1088     ac_prev=psdir ;;
1089   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090     psdir=$ac_optarg ;;
1091
1092   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093   | -silent | --silent | --silen | --sile | --sil)
1094     silent=yes ;;
1095
1096   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097     ac_prev=sbindir ;;
1098   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099   | --sbi=* | --sb=*)
1100     sbindir=$ac_optarg ;;
1101
1102   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104   | --sharedst | --shareds | --shared | --share | --shar \
1105   | --sha | --sh)
1106     ac_prev=sharedstatedir ;;
1107   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110   | --sha=* | --sh=*)
1111     sharedstatedir=$ac_optarg ;;
1112
1113   -site | --site | --sit)
1114     ac_prev=site ;;
1115   -site=* | --site=* | --sit=*)
1116     site=$ac_optarg ;;
1117
1118   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119     ac_prev=srcdir ;;
1120   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121     srcdir=$ac_optarg ;;
1122
1123   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124   | --syscon | --sysco | --sysc | --sys | --sy)
1125     ac_prev=sysconfdir ;;
1126   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128     sysconfdir=$ac_optarg ;;
1129
1130   -target | --target | --targe | --targ | --tar | --ta | --t)
1131     ac_prev=target_alias ;;
1132   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133     target_alias=$ac_optarg ;;
1134
1135   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136     verbose=yes ;;
1137
1138   -version | --version | --versio | --versi | --vers | -V)
1139     ac_init_version=: ;;
1140
1141   -with-* | --with-*)
1142     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143     # Reject names that are not valid shell variable names.
1144     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145       as_fn_error $? "invalid package name: $ac_useropt"
1146     ac_useropt_orig=$ac_useropt
1147     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148     case $ac_user_opts in
1149       *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153          ac_unrecognized_sep=', ';;
1154     esac
1155     eval with_$ac_useropt=\$ac_optarg ;;
1156
1157   -without-* | --without-*)
1158     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161       as_fn_error $? "invalid package name: $ac_useropt"
1162     ac_useropt_orig=$ac_useropt
1163     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164     case $ac_user_opts in
1165       *"
1166 "with_$ac_useropt"
1167 "*) ;;
1168       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169          ac_unrecognized_sep=', ';;
1170     esac
1171     eval with_$ac_useropt=no ;;
1172
1173   --x)
1174     # Obsolete; use --with-x.
1175     with_x=yes ;;
1176
1177   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178   | --x-incl | --x-inc | --x-in | --x-i)
1179     ac_prev=x_includes ;;
1180   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182     x_includes=$ac_optarg ;;
1183
1184   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186     ac_prev=x_libraries ;;
1187   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189     x_libraries=$ac_optarg ;;
1190
1191   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1192 Try \`$0 --help' for more information"
1193     ;;
1194
1195   *=*)
1196     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197     # Reject names that are not valid shell variable names.
1198     case $ac_envvar in #(
1199       '' | [0-9]* | *[!_$as_cr_alnum]* )
1200       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1201     esac
1202     eval $ac_envvar=\$ac_optarg
1203     export $ac_envvar ;;
1204
1205   *)
1206     # FIXME: should be removed in autoconf 3.0.
1207     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1208     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1210     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1211     ;;
1212
1213   esac
1214 done
1215
1216 if test -n "$ac_prev"; then
1217   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1218   as_fn_error $? "missing argument to $ac_option"
1219 fi
1220
1221 if test -n "$ac_unrecognized_opts"; then
1222   case $enable_option_checking in
1223     no) ;;
1224     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1225     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226   esac
1227 fi
1228
1229 # Check all directory arguments for consistency.
1230 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231                 datadir sysconfdir sharedstatedir localstatedir includedir \
1232                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233                 libdir localedir mandir
1234 do
1235   eval ac_val=\$$ac_var
1236   # Remove trailing slashes.
1237   case $ac_val in
1238     */ )
1239       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240       eval $ac_var=\$ac_val;;
1241   esac
1242   # Be sure to have absolute directory names.
1243   case $ac_val in
1244     [\\/$]* | ?:[\\/]* )  continue;;
1245     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1246   esac
1247   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248 done
1249
1250 # There might be people who depend on the old broken behavior: `$host'
1251 # used to hold the argument of --host etc.
1252 # FIXME: To remove some day.
1253 build=$build_alias
1254 host=$host_alias
1255 target=$target_alias
1256
1257 # FIXME: To remove some day.
1258 if test "x$host_alias" != x; then
1259   if test "x$build_alias" = x; then
1260     cross_compiling=maybe
1261     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1262     If a cross compiler is detected then cross compile mode will be used" >&2
1263   elif test "x$build_alias" != "x$host_alias"; then
1264     cross_compiling=yes
1265   fi
1266 fi
1267
1268 ac_tool_prefix=
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271 test "$silent" = yes && exec 6>/dev/null
1272
1273
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277   as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279   as_fn_error $? "pwd does not report name of working directory"
1280
1281
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284   ac_srcdir_defaulted=yes
1285   # Try the directory containing this script, then the parent directory.
1286   ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288          X"$as_myself" : 'X\(//\)[^/]' \| \
1289          X"$as_myself" : 'X\(//\)$' \| \
1290          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293             s//\1/
1294             q
1295           }
1296           /^X\(\/\/\)[^/].*/{
1297             s//\1/
1298             q
1299           }
1300           /^X\(\/\/\)$/{
1301             s//\1/
1302             q
1303           }
1304           /^X\(\/\).*/{
1305             s//\1/
1306             q
1307           }
1308           s/.*/./; q'`
1309   srcdir=$ac_confdir
1310   if test ! -r "$srcdir/$ac_unique_file"; then
1311     srcdir=..
1312   fi
1313 else
1314   ac_srcdir_defaulted=no
1315 fi
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319 fi
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 ac_abs_confdir=`(
1322         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323         pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326   srcdir=.
1327 fi
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336   eval ac_env_${ac_var}_value=\$${ac_var}
1337   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1340
1341 #
1342 # Report the --help message.
1343 #
1344 if test "$ac_init_help" = "long"; then
1345   # Omit some internal or obsolete options to make the list less imposing.
1346   # This message is too long to be a string in the A/UX 3.1 sh.
1347   cat <<_ACEOF
1348 \`configure' configures Automated Testing Framework 0.16 to adapt to many kinds of systems.
1349
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE.  See below for descriptions of some of the useful variables.
1354
1355 Defaults for the options are specified in brackets.
1356
1357 Configuration:
1358   -h, --help              display this help and exit
1359       --help=short        display options specific to this package
1360       --help=recursive    display the short help of all the included packages
1361   -V, --version           display version information and exit
1362   -q, --quiet, --silent   do not print \`checking ...' messages
1363       --cache-file=FILE   cache test results in FILE [disabled]
1364   -C, --config-cache      alias for \`--cache-file=config.cache'
1365   -n, --no-create         do not create output files
1366       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1367
1368 Installation directories:
1369   --prefix=PREFIX         install architecture-independent files in PREFIX
1370                           [$ac_default_prefix]
1371   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1372                           [PREFIX]
1373
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1378
1379 For better control, use the options below.
1380
1381 Fine tuning of the installation directories:
1382   --bindir=DIR            user executables [EPREFIX/bin]
1383   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1384   --libexecdir=DIR        program executables [EPREFIX/libexec]
1385   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1386   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1387   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1388   --libdir=DIR            object code libraries [EPREFIX/lib]
1389   --includedir=DIR        C header files [PREFIX/include]
1390   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1391   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1392   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1393   --infodir=DIR           info documentation [DATAROOTDIR/info]
1394   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1395   --mandir=DIR            man documentation [DATAROOTDIR/man]
1396   --docdir=DIR            documentation root [DATAROOTDIR/doc/atf]
1397   --htmldir=DIR           html documentation [DOCDIR]
1398   --dvidir=DIR            dvi documentation [DOCDIR]
1399   --pdfdir=DIR            pdf documentation [DOCDIR]
1400   --psdir=DIR             ps documentation [DOCDIR]
1401 _ACEOF
1402
1403   cat <<\_ACEOF
1404
1405 Program names:
1406   --program-prefix=PREFIX            prepend PREFIX to installed program names
1407   --program-suffix=SUFFIX            append SUFFIX to installed program names
1408   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1409
1410 System types:
1411   --build=BUILD     configure for building on BUILD [guessed]
1412   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1413   --target=TARGET   configure for building compilers for TARGET [HOST]
1414 _ACEOF
1415 fi
1416
1417 if test -n "$ac_init_help"; then
1418   case $ac_init_help in
1419      short | recursive ) echo "Configuration of Automated Testing Framework 0.16:";;
1420    esac
1421   cat <<\_ACEOF
1422
1423 Optional Features:
1424   --disable-option-checking  ignore unrecognized --enable/--with options
1425   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1426   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1427   --enable-shared[=PKGS]  build shared libraries [default=yes]
1428   --enable-static[=PKGS]  build static libraries [default=yes]
1429   --enable-fast-install[=PKGS]
1430                           optimize for fast installation [default=yes]
1431   --disable-dependency-tracking  speeds up one-time build
1432   --enable-dependency-tracking   do not reject slow dependency extractors
1433   --disable-libtool-lock  avoid locking (might break parallel builds)
1434   --enable-tools          Enables the build of the deprecated ATF tools
1435   --enable-developer      enable developer features
1436
1437 Optional Packages:
1438   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1439   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1440   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1441                           both]
1442   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1443   --with-sysroot=DIR Search for dependent libraries within DIR
1444                         (or the compiler's sysroot if not specified).
1445
1446 Some influential environment variables:
1447   CC          C compiler command
1448   CFLAGS      C compiler flags
1449   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1450               nonstandard directory <lib dir>
1451   LIBS        libraries to pass to the linker, e.g. -l<library>
1452   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453               you have headers in a nonstandard directory <include dir>
1454   CPP         C preprocessor
1455   CXX         C++ compiler command
1456   CXXFLAGS    C++ compiler flags
1457   CXXCPP      C++ preprocessor
1458   ATF_BUILD_CC
1459               C compiler to use at runtime
1460   ATF_BUILD_CFLAGS
1461               C compiler flags to use at runtime
1462   ATF_BUILD_CPP
1463               C/C++ preprocessor to use at runtime
1464   ATF_BUILD_CPPFLAGS
1465               C/C++ preprocessor flags to use at runtime
1466   ATF_BUILD_CXX
1467               C++ compiler to use at runtime
1468   ATF_BUILD_CXXFLAGS
1469               C++ compiler flags to use at runtime
1470   ATF_CONFSUBDIR
1471               Subdirectory of sysconfdir under which to look for files
1472   ATF_WORKDIR Default location to use for ATF work directories
1473   ATF_SHELL   Location of the POSIX shell interpreter to use
1474
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1477
1478 Report bugs to <atf-devel@NetBSD.org>.
1479 Automated Testing Framework home page: <http://code.google.com/p/kyua/wiki/ATF>.
1480 _ACEOF
1481 ac_status=$?
1482 fi
1483
1484 if test "$ac_init_help" = "recursive"; then
1485   # If there are subdirs, report their specific --help.
1486   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487     test -d "$ac_dir" ||
1488       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489       continue
1490     ac_builddir=.
1491
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *)
1495   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496   # A ".." for each directory in $ac_dir_suffix.
1497   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498   case $ac_top_builddir_sub in
1499   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501   esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1507
1508 case $srcdir in
1509   .)  # We are building in place.
1510     ac_srcdir=.
1511     ac_top_srcdir=$ac_top_builddir_sub
1512     ac_abs_top_srcdir=$ac_pwd ;;
1513   [\\/]* | ?:[\\/]* )  # Absolute name.
1514     ac_srcdir=$srcdir$ac_dir_suffix;
1515     ac_top_srcdir=$srcdir
1516     ac_abs_top_srcdir=$srcdir ;;
1517   *) # Relative name.
1518     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519     ac_top_srcdir=$ac_top_build_prefix$srcdir
1520     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524     cd "$ac_dir" || { ac_status=$?; continue; }
1525     # Check for guested configure.
1526     if test -f "$ac_srcdir/configure.gnu"; then
1527       echo &&
1528       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529     elif test -f "$ac_srcdir/configure"; then
1530       echo &&
1531       $SHELL "$ac_srcdir/configure" --help=recursive
1532     else
1533       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534     fi || ac_status=$?
1535     cd "$ac_pwd" || { ac_status=$?; break; }
1536   done
1537 fi
1538
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541   cat <<\_ACEOF
1542 Automated Testing Framework configure 0.16
1543 generated by GNU Autoconf 2.68
1544
1545 Copyright (C) 2010 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1548
1549 Copyright (c) 2007-2012 The NetBSD Foundation, Inc.
1550 _ACEOF
1551   exit
1552 fi
1553
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1557
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1562 {
1563   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564   rm -f conftest.$ac_objext
1565   if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568   *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572   (eval "$ac_compile") 2>conftest.err
1573   ac_status=$?
1574   if test -s conftest.err; then
1575     grep -v '^ *+' conftest.err >conftest.er1
1576     cat conftest.er1 >&5
1577     mv -f conftest.er1 conftest.err
1578   fi
1579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580   test $ac_status = 0; } && {
1581          test -z "$ac_c_werror_flag" ||
1582          test ! -s conftest.err
1583        } && test -s conftest.$ac_objext; then :
1584   ac_retval=0
1585 else
1586   $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589         ac_retval=1
1590 fi
1591   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592   as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_compile
1595
1596 # ac_fn_c_try_link LINENO
1597 # -----------------------
1598 # Try to link conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_link ()
1600 {
1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602   rm -f conftest.$ac_objext conftest$ac_exeext
1603   if { { ac_try="$ac_link"
1604 case "(($ac_try" in
1605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606   *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610   (eval "$ac_link") 2>conftest.err
1611   ac_status=$?
1612   if test -s conftest.err; then
1613     grep -v '^ *+' conftest.err >conftest.er1
1614     cat conftest.er1 >&5
1615     mv -f conftest.er1 conftest.err
1616   fi
1617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618   test $ac_status = 0; } && {
1619          test -z "$ac_c_werror_flag" ||
1620          test ! -s conftest.err
1621        } && test -s conftest$ac_exeext && {
1622          test "$cross_compiling" = yes ||
1623          $as_test_x conftest$ac_exeext
1624        }; then :
1625   ac_retval=0
1626 else
1627   $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630         ac_retval=1
1631 fi
1632   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1633   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1634   # interfere with the next link command; also delete a directory that is
1635   # left behind by Apple's compiler.  We do this before executing the actions.
1636   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638   as_fn_set_status $ac_retval
1639
1640 } # ac_fn_c_try_link
1641
1642 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1643 # -------------------------------------------------------
1644 # Tests whether HEADER exists and can be compiled using the include files in
1645 # INCLUDES, setting the cache variable VAR accordingly.
1646 ac_fn_c_check_header_compile ()
1647 {
1648   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650 $as_echo_n "checking for $2... " >&6; }
1651 if eval \${$3+:} false; then :
1652   $as_echo_n "(cached) " >&6
1653 else
1654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h.  */
1656 $4
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660   eval "$3=yes"
1661 else
1662   eval "$3=no"
1663 fi
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 fi
1666 eval ac_res=\$$3
1667                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671 } # ac_fn_c_check_header_compile
1672
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_cpp ()
1677 {
1678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679   if { { ac_try="$ac_cpp conftest.$ac_ext"
1680 case "(($ac_try" in
1681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682   *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687   ac_status=$?
1688   if test -s conftest.err; then
1689     grep -v '^ *+' conftest.err >conftest.er1
1690     cat conftest.er1 >&5
1691     mv -f conftest.er1 conftest.err
1692   fi
1693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694   test $ac_status = 0; } > conftest.i && {
1695          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696          test ! -s conftest.err
1697        }; then :
1698   ac_retval=0
1699 else
1700   $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703     ac_retval=1
1704 fi
1705   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706   as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_cpp
1709
1710 # ac_fn_c_try_run LINENO
1711 # ----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713 # that executables *can* be run.
1714 ac_fn_c_try_run ()
1715 {
1716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717   if { { ac_try="$ac_link"
1718 case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_link") 2>&5
1725   ac_status=$?
1726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728   { { case "(($ac_try" in
1729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730   *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734   (eval "$ac_try") 2>&5
1735   ac_status=$?
1736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737   test $ac_status = 0; }; }; then :
1738   ac_retval=0
1739 else
1740   $as_echo "$as_me: program exited with status $ac_status" >&5
1741        $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744        ac_retval=$ac_status
1745 fi
1746   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748   as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_run
1751
1752 # ac_fn_c_check_func LINENO FUNC VAR
1753 # ----------------------------------
1754 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1755 ac_fn_c_check_func ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761   $as_echo_n "(cached) " >&6
1762 else
1763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h.  */
1765 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1767 #define $2 innocuous_$2
1768
1769 /* System header to define __stub macros and hopefully few prototypes,
1770     which can conflict with char $2 (); below.
1771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1772     <limits.h> exists even on freestanding compilers.  */
1773
1774 #ifdef __STDC__
1775 # include <limits.h>
1776 #else
1777 # include <assert.h>
1778 #endif
1779
1780 #undef $2
1781
1782 /* Override any GCC internal prototype to avoid an error.
1783    Use char because int might match the return type of a GCC
1784    builtin and then its argument prototype would still apply.  */
1785 #ifdef __cplusplus
1786 extern "C"
1787 #endif
1788 char $2 ();
1789 /* The GNU C library defines this for functions which it implements
1790     to always fail with ENOSYS.  Some functions are actually named
1791     something starting with __ and the normal name is an alias.  */
1792 #if defined __stub_$2 || defined __stub___$2
1793 choke me
1794 #endif
1795
1796 int
1797 main ()
1798 {
1799 return $2 ();
1800   ;
1801   return 0;
1802 }
1803 _ACEOF
1804 if ac_fn_c_try_link "$LINENO"; then :
1805   eval "$3=yes"
1806 else
1807   eval "$3=no"
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext \
1810     conftest$ac_exeext conftest.$ac_ext
1811 fi
1812 eval ac_res=\$$3
1813                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817 } # ac_fn_c_check_func
1818
1819 # ac_fn_cxx_try_compile LINENO
1820 # ----------------------------
1821 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_cxx_try_compile ()
1823 {
1824   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825   rm -f conftest.$ac_objext
1826   if { { ac_try="$ac_compile"
1827 case "(($ac_try" in
1828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829   *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833   (eval "$ac_compile") 2>conftest.err
1834   ac_status=$?
1835   if test -s conftest.err; then
1836     grep -v '^ *+' conftest.err >conftest.er1
1837     cat conftest.er1 >&5
1838     mv -f conftest.er1 conftest.err
1839   fi
1840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841   test $ac_status = 0; } && {
1842          test -z "$ac_cxx_werror_flag" ||
1843          test ! -s conftest.err
1844        } && test -s conftest.$ac_objext; then :
1845   ac_retval=0
1846 else
1847   $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850         ac_retval=1
1851 fi
1852   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853   as_fn_set_status $ac_retval
1854
1855 } # ac_fn_cxx_try_compile
1856
1857 # ac_fn_cxx_try_cpp LINENO
1858 # ------------------------
1859 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1860 ac_fn_cxx_try_cpp ()
1861 {
1862   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863   if { { ac_try="$ac_cpp conftest.$ac_ext"
1864 case "(($ac_try" in
1865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866   *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1871   ac_status=$?
1872   if test -s conftest.err; then
1873     grep -v '^ *+' conftest.err >conftest.er1
1874     cat conftest.er1 >&5
1875     mv -f conftest.er1 conftest.err
1876   fi
1877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878   test $ac_status = 0; } > conftest.i && {
1879          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1880          test ! -s conftest.err
1881        }; then :
1882   ac_retval=0
1883 else
1884   $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1886
1887     ac_retval=1
1888 fi
1889   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890   as_fn_set_status $ac_retval
1891
1892 } # ac_fn_cxx_try_cpp
1893
1894 # ac_fn_cxx_try_link LINENO
1895 # -------------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_cxx_try_link ()
1898 {
1899   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900   rm -f conftest.$ac_objext conftest$ac_exeext
1901   if { { ac_try="$ac_link"
1902 case "(($ac_try" in
1903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904   *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908   (eval "$ac_link") 2>conftest.err
1909   ac_status=$?
1910   if test -s conftest.err; then
1911     grep -v '^ *+' conftest.err >conftest.er1
1912     cat conftest.er1 >&5
1913     mv -f conftest.er1 conftest.err
1914   fi
1915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916   test $ac_status = 0; } && {
1917          test -z "$ac_cxx_werror_flag" ||
1918          test ! -s conftest.err
1919        } && test -s conftest$ac_exeext && {
1920          test "$cross_compiling" = yes ||
1921          $as_test_x conftest$ac_exeext
1922        }; then :
1923   ac_retval=0
1924 else
1925   $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1927
1928         ac_retval=1
1929 fi
1930   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932   # interfere with the next link command; also delete a directory that is
1933   # left behind by Apple's compiler.  We do this before executing the actions.
1934   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936   as_fn_set_status $ac_retval
1937
1938 } # ac_fn_cxx_try_link
1939
1940 # ac_fn_cxx_try_run LINENO
1941 # ------------------------
1942 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1943 # that executables *can* be run.
1944 ac_fn_cxx_try_run ()
1945 {
1946   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947   if { { ac_try="$ac_link"
1948 case "(($ac_try" in
1949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950   *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954   (eval "$ac_link") 2>&5
1955   ac_status=$?
1956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1958   { { case "(($ac_try" in
1959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960   *) ac_try_echo=$ac_try;;
1961 esac
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964   (eval "$ac_try") 2>&5
1965   ac_status=$?
1966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967   test $ac_status = 0; }; }; then :
1968   ac_retval=0
1969 else
1970   $as_echo "$as_me: program exited with status $ac_status" >&5
1971        $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1973
1974        ac_retval=$ac_status
1975 fi
1976   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978   as_fn_set_status $ac_retval
1979
1980 } # ac_fn_cxx_try_run
1981
1982 # ac_fn_cxx_check_func LINENO FUNC VAR
1983 # ------------------------------------
1984 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1985 ac_fn_cxx_check_func ()
1986 {
1987   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991   $as_echo_n "(cached) " >&6
1992 else
1993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h.  */
1995 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1997 #define $2 innocuous_$2
1998
1999 /* System header to define __stub macros and hopefully few prototypes,
2000     which can conflict with char $2 (); below.
2001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2002     <limits.h> exists even on freestanding compilers.  */
2003
2004 #ifdef __STDC__
2005 # include <limits.h>
2006 #else
2007 # include <assert.h>
2008 #endif
2009
2010 #undef $2
2011
2012 /* Override any GCC internal prototype to avoid an error.
2013    Use char because int might match the return type of a GCC
2014    builtin and then its argument prototype would still apply.  */
2015 #ifdef __cplusplus
2016 extern "C"
2017 #endif
2018 char $2 ();
2019 /* The GNU C library defines this for functions which it implements
2020     to always fail with ENOSYS.  Some functions are actually named
2021     something starting with __ and the normal name is an alias.  */
2022 #if defined __stub_$2 || defined __stub___$2
2023 choke me
2024 #endif
2025
2026 int
2027 main ()
2028 {
2029 return $2 ();
2030   ;
2031   return 0;
2032 }
2033 _ACEOF
2034 if ac_fn_cxx_try_link "$LINENO"; then :
2035   eval "$3=yes"
2036 else
2037   eval "$3=no"
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext \
2040     conftest$ac_exeext conftest.$ac_ext
2041 fi
2042 eval ac_res=\$$3
2043                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046
2047 } # ac_fn_cxx_check_func
2048
2049 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2050 # ---------------------------------------------
2051 # Tests whether TYPE exists after having included INCLUDES, setting cache
2052 # variable VAR accordingly.
2053 ac_fn_cxx_check_type ()
2054 {
2055   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if eval \${$3+:} false; then :
2059   $as_echo_n "(cached) " >&6
2060 else
2061   eval "$3=no"
2062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h.  */
2064 $4
2065 int
2066 main ()
2067 {
2068 if (sizeof ($2))
2069          return 0;
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_cxx_try_compile "$LINENO"; then :
2075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h.  */
2077 $4
2078 int
2079 main ()
2080 {
2081 if (sizeof (($2)))
2082             return 0;
2083   ;
2084   return 0;
2085 }
2086 _ACEOF
2087 if ac_fn_cxx_try_compile "$LINENO"; then :
2088
2089 else
2090   eval "$3=yes"
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 fi
2096 eval ac_res=\$$3
2097                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100
2101 } # ac_fn_cxx_check_type
2102 cat >config.log <<_ACEOF
2103 This file contains any messages produced by compilers while
2104 running configure, to aid debugging if configure makes a mistake.
2105
2106 It was created by Automated Testing Framework $as_me 0.16, which was
2107 generated by GNU Autoconf 2.68.  Invocation command line was
2108
2109   $ $0 $@
2110
2111 _ACEOF
2112 exec 5>>config.log
2113 {
2114 cat <<_ASUNAME
2115 ## --------- ##
2116 ## Platform. ##
2117 ## --------- ##
2118
2119 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2120 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2121 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2122 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2123 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2124
2125 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2126 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2127
2128 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2129 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2130 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2131 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2132 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2133 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2134 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2135
2136 _ASUNAME
2137
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 for as_dir in $PATH
2140 do
2141   IFS=$as_save_IFS
2142   test -z "$as_dir" && as_dir=.
2143     $as_echo "PATH: $as_dir"
2144   done
2145 IFS=$as_save_IFS
2146
2147 } >&5
2148
2149 cat >&5 <<_ACEOF
2150
2151
2152 ## ----------- ##
2153 ## Core tests. ##
2154 ## ----------- ##
2155
2156 _ACEOF
2157
2158
2159 # Keep a trace of the command line.
2160 # Strip out --no-create and --no-recursion so they do not pile up.
2161 # Strip out --silent because we don't want to record it for future runs.
2162 # Also quote any args containing shell meta-characters.
2163 # Make two passes to allow for proper duplicate-argument suppression.
2164 ac_configure_args=
2165 ac_configure_args0=
2166 ac_configure_args1=
2167 ac_must_keep_next=false
2168 for ac_pass in 1 2
2169 do
2170   for ac_arg
2171   do
2172     case $ac_arg in
2173     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2174     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2175     | -silent | --silent | --silen | --sile | --sil)
2176       continue ;;
2177     *\'*)
2178       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2179     esac
2180     case $ac_pass in
2181     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2182     2)
2183       as_fn_append ac_configure_args1 " '$ac_arg'"
2184       if test $ac_must_keep_next = true; then
2185         ac_must_keep_next=false # Got value, back to normal.
2186       else
2187         case $ac_arg in
2188           *=* | --config-cache | -C | -disable-* | --disable-* \
2189           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2190           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2191           | -with-* | --with-* | -without-* | --without-* | --x)
2192             case "$ac_configure_args0 " in
2193               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2194             esac
2195             ;;
2196           -* ) ac_must_keep_next=true ;;
2197         esac
2198       fi
2199       as_fn_append ac_configure_args " '$ac_arg'"
2200       ;;
2201     esac
2202   done
2203 done
2204 { ac_configure_args0=; unset ac_configure_args0;}
2205 { ac_configure_args1=; unset ac_configure_args1;}
2206
2207 # When interrupted or exit'd, cleanup temporary files, and complete
2208 # config.log.  We remove comments because anyway the quotes in there
2209 # would cause problems or look ugly.
2210 # WARNING: Use '\'' to represent an apostrophe within the trap.
2211 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2212 trap 'exit_status=$?
2213   # Save into config.log some information that might help in debugging.
2214   {
2215     echo
2216
2217     $as_echo "## ---------------- ##
2218 ## Cache variables. ##
2219 ## ---------------- ##"
2220     echo
2221     # The following way of writing the cache mishandles newlines in values,
2222 (
2223   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2224     eval ac_val=\$$ac_var
2225     case $ac_val in #(
2226     *${as_nl}*)
2227       case $ac_var in #(
2228       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2230       esac
2231       case $ac_var in #(
2232       _ | IFS | as_nl) ;; #(
2233       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2234       *) { eval $ac_var=; unset $ac_var;} ;;
2235       esac ;;
2236     esac
2237   done
2238   (set) 2>&1 |
2239     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2240     *${as_nl}ac_space=\ *)
2241       sed -n \
2242         "s/'\''/'\''\\\\'\'''\''/g;
2243           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2244       ;; #(
2245     *)
2246       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2247       ;;
2248     esac |
2249     sort
2250 )
2251     echo
2252
2253     $as_echo "## ----------------- ##
2254 ## Output variables. ##
2255 ## ----------------- ##"
2256     echo
2257     for ac_var in $ac_subst_vars
2258     do
2259       eval ac_val=\$$ac_var
2260       case $ac_val in
2261       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2262       esac
2263       $as_echo "$ac_var='\''$ac_val'\''"
2264     done | sort
2265     echo
2266
2267     if test -n "$ac_subst_files"; then
2268       $as_echo "## ------------------- ##
2269 ## File substitutions. ##
2270 ## ------------------- ##"
2271       echo
2272       for ac_var in $ac_subst_files
2273       do
2274         eval ac_val=\$$ac_var
2275         case $ac_val in
2276         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277         esac
2278         $as_echo "$ac_var='\''$ac_val'\''"
2279       done | sort
2280       echo
2281     fi
2282
2283     if test -s confdefs.h; then
2284       $as_echo "## ----------- ##
2285 ## confdefs.h. ##
2286 ## ----------- ##"
2287       echo
2288       cat confdefs.h
2289       echo
2290     fi
2291     test "$ac_signal" != 0 &&
2292       $as_echo "$as_me: caught signal $ac_signal"
2293     $as_echo "$as_me: exit $exit_status"
2294   } >&5
2295   rm -f core *.core core.conftest.* &&
2296     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2297     exit $exit_status
2298 ' 0
2299 for ac_signal in 1 2 13 15; do
2300   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2301 done
2302 ac_signal=0
2303
2304 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2305 rm -f -r conftest* confdefs.h
2306
2307 $as_echo "/* confdefs.h */" > confdefs.h
2308
2309 # Predefined preprocessor variables.
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_NAME "$PACKAGE_NAME"
2313 _ACEOF
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2317 _ACEOF
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2321 _ACEOF
2322
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_STRING "$PACKAGE_STRING"
2325 _ACEOF
2326
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2329 _ACEOF
2330
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_URL "$PACKAGE_URL"
2333 _ACEOF
2334
2335
2336 # Let the site file select an alternate cache file if it wants to.
2337 # Prefer an explicitly selected file to automatically selected ones.
2338 ac_site_file1=NONE
2339 ac_site_file2=NONE
2340 if test -n "$CONFIG_SITE"; then
2341   # We do not want a PATH search for config.site.
2342   case $CONFIG_SITE in #((
2343     -*)  ac_site_file1=./$CONFIG_SITE;;
2344     */*) ac_site_file1=$CONFIG_SITE;;
2345     *)   ac_site_file1=./$CONFIG_SITE;;
2346   esac
2347 elif test "x$prefix" != xNONE; then
2348   ac_site_file1=$prefix/share/config.site
2349   ac_site_file2=$prefix/etc/config.site
2350 else
2351   ac_site_file1=$ac_default_prefix/share/config.site
2352   ac_site_file2=$ac_default_prefix/etc/config.site
2353 fi
2354 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2355 do
2356   test "x$ac_site_file" = xNONE && continue
2357   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2358     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2359 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2360     sed 's/^/| /' "$ac_site_file" >&5
2361     . "$ac_site_file" \
2362       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2364 as_fn_error $? "failed to load site script $ac_site_file
2365 See \`config.log' for more details" "$LINENO" 5; }
2366   fi
2367 done
2368
2369 if test -r "$cache_file"; then
2370   # Some versions of bash will fail to source /dev/null (special files
2371   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2372   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2373     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2374 $as_echo "$as_me: loading cache $cache_file" >&6;}
2375     case $cache_file in
2376       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2377       *)                      . "./$cache_file";;
2378     esac
2379   fi
2380 else
2381   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2382 $as_echo "$as_me: creating cache $cache_file" >&6;}
2383   >$cache_file
2384 fi
2385
2386 # Check that the precious variables saved in the cache have kept the same
2387 # value.
2388 ac_cache_corrupted=false
2389 for ac_var in $ac_precious_vars; do
2390   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2391   eval ac_new_set=\$ac_env_${ac_var}_set
2392   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2393   eval ac_new_val=\$ac_env_${ac_var}_value
2394   case $ac_old_set,$ac_new_set in
2395     set,)
2396       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2397 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2398       ac_cache_corrupted=: ;;
2399     ,set)
2400       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2401 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2402       ac_cache_corrupted=: ;;
2403     ,);;
2404     *)
2405       if test "x$ac_old_val" != "x$ac_new_val"; then
2406         # differences in whitespace do not lead to failure.
2407         ac_old_val_w=`echo x $ac_old_val`
2408         ac_new_val_w=`echo x $ac_new_val`
2409         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2410           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2411 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2412           ac_cache_corrupted=:
2413         else
2414           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2415 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2416           eval $ac_var=\$ac_old_val
2417         fi
2418         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2419 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2420         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2421 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2422       fi;;
2423   esac
2424   # Pass precious variables to config.status.
2425   if test "$ac_new_set" = set; then
2426     case $ac_new_val in
2427     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2428     *) ac_arg=$ac_var=$ac_new_val ;;
2429     esac
2430     case " $ac_configure_args " in
2431       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2432       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2433     esac
2434   fi
2435 done
2436 if $ac_cache_corrupted; then
2437   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2439   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2440 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2441   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2442 fi
2443 ## -------------------- ##
2444 ## Main body of script. ##
2445 ## -------------------- ##
2446
2447 ac_ext=c
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452
2453
2454
2455
2456
2457 $as_echo "#define PACKAGE_COPYRIGHT \"Copyright (c) 2007-2012 The NetBSD Foundation, Inc.\"" >>confdefs.h
2458
2459 ac_aux_dir=
2460 for ac_dir in admin "$srcdir"/admin; do
2461   if test -f "$ac_dir/install-sh"; then
2462     ac_aux_dir=$ac_dir
2463     ac_install_sh="$ac_aux_dir/install-sh -c"
2464     break
2465   elif test -f "$ac_dir/install.sh"; then
2466     ac_aux_dir=$ac_dir
2467     ac_install_sh="$ac_aux_dir/install.sh -c"
2468     break
2469   elif test -f "$ac_dir/shtool"; then
2470     ac_aux_dir=$ac_dir
2471     ac_install_sh="$ac_aux_dir/shtool install -c"
2472     break
2473   fi
2474 done
2475 if test -z "$ac_aux_dir"; then
2476   as_fn_error $? "cannot find install-sh, install.sh, or shtool in admin \"$srcdir\"/admin" "$LINENO" 5
2477 fi
2478
2479 # These three variables are undocumented and unsupported,
2480 # and are intended to be withdrawn in a future Autoconf release.
2481 # They can cause serious problems if a builder's source tree is in a directory
2482 # whose full name contains unusual characters.
2483 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2484 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2485 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2486
2487
2488 ac_config_headers="$ac_config_headers bconfig.h"
2489
2490
2491
2492 ac_config_commands="$ac_config_commands bootstrap/atconfig"
2493
2494
2495 # Make sure we can run config.sub.
2496 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2497   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2500 $as_echo_n "checking build system type... " >&6; }
2501 if ${ac_cv_build+:} false; then :
2502   $as_echo_n "(cached) " >&6
2503 else
2504   ac_build_alias=$build_alias
2505 test "x$ac_build_alias" = x &&
2506   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2507 test "x$ac_build_alias" = x &&
2508   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2509 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2510   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2511
2512 fi
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2514 $as_echo "$ac_cv_build" >&6; }
2515 case $ac_cv_build in
2516 *-*-*) ;;
2517 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2518 esac
2519 build=$ac_cv_build
2520 ac_save_IFS=$IFS; IFS='-'
2521 set x $ac_cv_build
2522 shift
2523 build_cpu=$1
2524 build_vendor=$2
2525 shift; shift
2526 # Remember, the first character of IFS is used to create $*,
2527 # except with old shells:
2528 build_os=$*
2529 IFS=$ac_save_IFS
2530 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2531
2532
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2534 $as_echo_n "checking host system type... " >&6; }
2535 if ${ac_cv_host+:} false; then :
2536   $as_echo_n "(cached) " >&6
2537 else
2538   if test "x$host_alias" = x; then
2539   ac_cv_host=$ac_cv_build
2540 else
2541   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2542     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2543 fi
2544
2545 fi
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2547 $as_echo "$ac_cv_host" >&6; }
2548 case $ac_cv_host in
2549 *-*-*) ;;
2550 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2551 esac
2552 host=$ac_cv_host
2553 ac_save_IFS=$IFS; IFS='-'
2554 set x $ac_cv_host
2555 shift
2556 host_cpu=$1
2557 host_vendor=$2
2558 shift; shift
2559 # Remember, the first character of IFS is used to create $*,
2560 # except with old shells:
2561 host_os=$*
2562 IFS=$ac_save_IFS
2563 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2564
2565
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2567 $as_echo_n "checking target system type... " >&6; }
2568 if ${ac_cv_target+:} false; then :
2569   $as_echo_n "(cached) " >&6
2570 else
2571   if test "x$target_alias" = x; then
2572   ac_cv_target=$ac_cv_host
2573 else
2574   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2575     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2576 fi
2577
2578 fi
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2580 $as_echo "$ac_cv_target" >&6; }
2581 case $ac_cv_target in
2582 *-*-*) ;;
2583 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2584 esac
2585 target=$ac_cv_target
2586 ac_save_IFS=$IFS; IFS='-'
2587 set x $ac_cv_target
2588 shift
2589 target_cpu=$1
2590 target_vendor=$2
2591 shift; shift
2592 # Remember, the first character of IFS is used to create $*,
2593 # except with old shells:
2594 target_os=$*
2595 IFS=$ac_save_IFS
2596 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2597
2598
2599 # The aliases save the names the user supplied, while $host etc.
2600 # will get canonicalized.
2601 test -n "$target_alias" &&
2602   test "$program_prefix$program_suffix$program_transform_name" = \
2603     NONENONEs,x,x, &&
2604   program_prefix=${target_alias}-
2605
2606 am__api_version='1.11'
2607
2608 # Find a good install program.  We prefer a C program (faster),
2609 # so one script is as good as another.  But avoid the broken or
2610 # incompatible versions:
2611 # SysV /etc/install, /usr/sbin/install
2612 # SunOS /usr/etc/install
2613 # IRIX /sbin/install
2614 # AIX /bin/install
2615 # AmigaOS /C/install, which installs bootblocks on floppy discs
2616 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2617 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2618 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2619 # OS/2's system install, which has a completely different semantic
2620 # ./install, which can be erroneously created by make from ./install.sh.
2621 # Reject install programs that cannot install multiple files.
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2623 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2624 if test -z "$INSTALL"; then
2625 if ${ac_cv_path_install+:} false; then :
2626   $as_echo_n "(cached) " >&6
2627 else
2628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631   IFS=$as_save_IFS
2632   test -z "$as_dir" && as_dir=.
2633     # Account for people who put trailing slashes in PATH elements.
2634 case $as_dir/ in #((
2635   ./ | .// | /[cC]/* | \
2636   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2637   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2638   /usr/ucb/* ) ;;
2639   *)
2640     # OSF1 and SCO ODT 3.0 have their own names for install.
2641     # Don't use installbsd from OSF since it installs stuff as root
2642     # by default.
2643     for ac_prog in ginstall scoinst install; do
2644       for ac_exec_ext in '' $ac_executable_extensions; do
2645         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2646           if test $ac_prog = install &&
2647             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2648             # AIX install.  It has an incompatible calling convention.
2649             :
2650           elif test $ac_prog = install &&
2651             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2652             # program-specific install script used by HP pwplus--don't use.
2653             :
2654           else
2655             rm -rf conftest.one conftest.two conftest.dir
2656             echo one > conftest.one
2657             echo two > conftest.two
2658             mkdir conftest.dir
2659             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2660               test -s conftest.one && test -s conftest.two &&
2661               test -s conftest.dir/conftest.one &&
2662               test -s conftest.dir/conftest.two
2663             then
2664               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2665               break 3
2666             fi
2667           fi
2668         fi
2669       done
2670     done
2671     ;;
2672 esac
2673
2674   done
2675 IFS=$as_save_IFS
2676
2677 rm -rf conftest.one conftest.two conftest.dir
2678
2679 fi
2680   if test "${ac_cv_path_install+set}" = set; then
2681     INSTALL=$ac_cv_path_install
2682   else
2683     # As a last resort, use the slow shell script.  Don't cache a
2684     # value for INSTALL within a source directory, because that will
2685     # break other packages using the cache if that directory is
2686     # removed, or if the value is a relative name.
2687     INSTALL=$ac_install_sh
2688   fi
2689 fi
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2691 $as_echo "$INSTALL" >&6; }
2692
2693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2694 # It thinks the first close brace ends the variable substitution.
2695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2696
2697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2698
2699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2700
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2702 $as_echo_n "checking whether build environment is sane... " >&6; }
2703 # Just in case
2704 sleep 1
2705 echo timestamp > conftest.file
2706 # Reject unsafe characters in $srcdir or the absolute working directory
2707 # name.  Accept space and tab only in the latter.
2708 am_lf='
2709 '
2710 case `pwd` in
2711   *[\\\"\#\$\&\'\`$am_lf]*)
2712     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2713 esac
2714 case $srcdir in
2715   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2716     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2717 esac
2718
2719 # Do `set' in a subshell so we don't clobber the current shell's
2720 # arguments.  Must try -L first in case configure is actually a
2721 # symlink; some systems play weird games with the mod time of symlinks
2722 # (eg FreeBSD returns the mod time of the symlink's containing
2723 # directory).
2724 if (
2725    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2726    if test "$*" = "X"; then
2727       # -L didn't work.
2728       set X `ls -t "$srcdir/configure" conftest.file`
2729    fi
2730    rm -f conftest.file
2731    if test "$*" != "X $srcdir/configure conftest.file" \
2732       && test "$*" != "X conftest.file $srcdir/configure"; then
2733
2734       # If neither matched, then we have a broken ls.  This can happen
2735       # if, for instance, CONFIG_SHELL is bash and it inherits a
2736       # broken ls alias from the environment.  This has actually
2737       # happened.  Such a system could not be considered "sane".
2738       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2739 alias in your environment" "$LINENO" 5
2740    fi
2741
2742    test "$2" = conftest.file
2743    )
2744 then
2745    # Ok.
2746    :
2747 else
2748    as_fn_error $? "newly created file is older than distributed files!
2749 Check your system clock" "$LINENO" 5
2750 fi
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2752 $as_echo "yes" >&6; }
2753 test "$program_prefix" != NONE &&
2754   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2755 # Use a double $ so make ignores it.
2756 test "$program_suffix" != NONE &&
2757   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2758 # Double any \ or $.
2759 # By default was `s,x,x', remove it if useless.
2760 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2761 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2762
2763 # expand $ac_aux_dir to an absolute path
2764 am_aux_dir=`cd $ac_aux_dir && pwd`
2765
2766 if test x"${MISSING+set}" != xset; then
2767   case $am_aux_dir in
2768   *\ * | *\     *)
2769     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2770   *)
2771     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2772   esac
2773 fi
2774 # Use eval to expand $SHELL
2775 if eval "$MISSING --run true"; then
2776   am_missing_run="$MISSING --run "
2777 else
2778   am_missing_run=
2779   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2780 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2781 fi
2782
2783 if test x"${install_sh}" != xset; then
2784   case $am_aux_dir in
2785   *\ * | *\     *)
2786     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2787   *)
2788     install_sh="\${SHELL} $am_aux_dir/install-sh"
2789   esac
2790 fi
2791
2792 # Installed binaries are usually stripped using `strip' when the user
2793 # run `make install-strip'.  However `strip' might not be the right
2794 # tool to use in cross-compilation environments, therefore Automake
2795 # will honor the `STRIP' environment variable to overrule this program.
2796 if test "$cross_compiling" != no; then
2797   if test -n "$ac_tool_prefix"; then
2798   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2799 set dummy ${ac_tool_prefix}strip; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_STRIP+:} false; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   if test -n "$STRIP"; then
2806   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811   IFS=$as_save_IFS
2812   test -z "$as_dir" && as_dir=.
2813     for ac_exec_ext in '' $ac_executable_extensions; do
2814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817     break 2
2818   fi
2819 done
2820   done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 STRIP=$ac_cv_prog_STRIP
2826 if test -n "$STRIP"; then
2827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2828 $as_echo "$STRIP" >&6; }
2829 else
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2833
2834
2835 fi
2836 if test -z "$ac_cv_prog_STRIP"; then
2837   ac_ct_STRIP=$STRIP
2838   # Extract the first word of "strip", so it can be a program name with args.
2839 set dummy strip; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2843   $as_echo_n "(cached) " >&6
2844 else
2845   if test -n "$ac_ct_STRIP"; then
2846   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2850 do
2851   IFS=$as_save_IFS
2852   test -z "$as_dir" && as_dir=.
2853     for ac_exec_ext in '' $ac_executable_extensions; do
2854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855     ac_cv_prog_ac_ct_STRIP="strip"
2856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857     break 2
2858   fi
2859 done
2860   done
2861 IFS=$as_save_IFS
2862
2863 fi
2864 fi
2865 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2866 if test -n "$ac_ct_STRIP"; then
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2868 $as_echo "$ac_ct_STRIP" >&6; }
2869 else
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2872 fi
2873
2874   if test "x$ac_ct_STRIP" = x; then
2875     STRIP=":"
2876   else
2877     case $cross_compiling:$ac_tool_warned in
2878 yes:)
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2881 ac_tool_warned=yes ;;
2882 esac
2883     STRIP=$ac_ct_STRIP
2884   fi
2885 else
2886   STRIP="$ac_cv_prog_STRIP"
2887 fi
2888
2889 fi
2890 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2891
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2893 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2894 if test -z "$MKDIR_P"; then
2895   if ${ac_cv_path_mkdir+:} false; then :
2896   $as_echo_n "(cached) " >&6
2897 else
2898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2900 do
2901   IFS=$as_save_IFS
2902   test -z "$as_dir" && as_dir=.
2903     for ac_prog in mkdir gmkdir; do
2904          for ac_exec_ext in '' $ac_executable_extensions; do
2905            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2906            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2907              'mkdir (GNU coreutils) '* | \
2908              'mkdir (coreutils) '* | \
2909              'mkdir (fileutils) '4.1*)
2910                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2911                break 3;;
2912            esac
2913          done
2914        done
2915   done
2916 IFS=$as_save_IFS
2917
2918 fi
2919
2920   test -d ./--version && rmdir ./--version
2921   if test "${ac_cv_path_mkdir+set}" = set; then
2922     MKDIR_P="$ac_cv_path_mkdir -p"
2923   else
2924     # As a last resort, use the slow shell script.  Don't cache a
2925     # value for MKDIR_P within a source directory, because that will
2926     # break other packages using the cache if that directory is
2927     # removed, or if the value is a relative name.
2928     MKDIR_P="$ac_install_sh -d"
2929   fi
2930 fi
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2932 $as_echo "$MKDIR_P" >&6; }
2933
2934 mkdir_p="$MKDIR_P"
2935 case $mkdir_p in
2936   [\\/$]* | ?:[\\/]*) ;;
2937   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2938 esac
2939
2940 for ac_prog in gawk mawk nawk awk
2941 do
2942   # Extract the first word of "$ac_prog", so it can be a program name with args.
2943 set dummy $ac_prog; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_AWK+:} false; then :
2947   $as_echo_n "(cached) " >&6
2948 else
2949   if test -n "$AWK"; then
2950   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955   IFS=$as_save_IFS
2956   test -z "$as_dir" && as_dir=.
2957     for ac_exec_ext in '' $ac_executable_extensions; do
2958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959     ac_cv_prog_AWK="$ac_prog"
2960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961     break 2
2962   fi
2963 done
2964   done
2965 IFS=$as_save_IFS
2966
2967 fi
2968 fi
2969 AWK=$ac_cv_prog_AWK
2970 if test -n "$AWK"; then
2971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2972 $as_echo "$AWK" >&6; }
2973 else
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978
2979   test -n "$AWK" && break
2980 done
2981
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2983 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2984 set x ${MAKE-make}
2985 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2986 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2987   $as_echo_n "(cached) " >&6
2988 else
2989   cat >conftest.make <<\_ACEOF
2990 SHELL = /bin/sh
2991 all:
2992         @echo '@@@%%%=$(MAKE)=@@@%%%'
2993 _ACEOF
2994 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2995 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2996   *@@@%%%=?*=@@@%%%*)
2997     eval ac_cv_prog_make_${ac_make}_set=yes;;
2998   *)
2999     eval ac_cv_prog_make_${ac_make}_set=no;;
3000 esac
3001 rm -f conftest.make
3002 fi
3003 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005 $as_echo "yes" >&6; }
3006   SET_MAKE=
3007 else
3008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010   SET_MAKE="MAKE=${MAKE-make}"
3011 fi
3012
3013 rm -rf .tst 2>/dev/null
3014 mkdir .tst 2>/dev/null
3015 if test -d .tst; then
3016   am__leading_dot=.
3017 else
3018   am__leading_dot=_
3019 fi
3020 rmdir .tst 2>/dev/null
3021
3022 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3023   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3024   # is not polluted with repeated "-I."
3025   am__isrc=' -I$(srcdir)'
3026   # test to see if srcdir already configured
3027   if test -f $srcdir/config.status; then
3028     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3029   fi
3030 fi
3031
3032 # test whether we have cygpath
3033 if test -z "$CYGPATH_W"; then
3034   if (cygpath --version) >/dev/null 2>/dev/null; then
3035     CYGPATH_W='cygpath -w'
3036   else
3037     CYGPATH_W=echo
3038   fi
3039 fi
3040
3041
3042 # Define the identity of the package.
3043  PACKAGE='atf'
3044  VERSION='0.16'
3045
3046
3047 cat >>confdefs.h <<_ACEOF
3048 #define PACKAGE "$PACKAGE"
3049 _ACEOF
3050
3051
3052 cat >>confdefs.h <<_ACEOF
3053 #define VERSION "$VERSION"
3054 _ACEOF
3055
3056 # Some tools Automake needs.
3057
3058 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3059
3060
3061 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3062
3063
3064 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3065
3066
3067 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3068
3069
3070 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3071
3072 # We need awk for the "check" target.  The system "awk" is bad on
3073 # some platforms.
3074 # Always define AMTAR for backward compatibility.  Yes, it's still used
3075 # in the wild :-(  We should find a proper way to deprecate it ...
3076 AMTAR='$${TAR-tar}'
3077
3078 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3079
3080
3081
3082
3083
3084
3085 case `pwd` in
3086   *\ * | *\     *)
3087     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3088 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3089 esac
3090
3091
3092
3093 macro_version='2.4.2'
3094 macro_revision='1.3337'
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108 ltmain="$ac_aux_dir/ltmain.sh"
3109
3110 # Backslashify metacharacters that are still active within
3111 # double-quoted strings.
3112 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3113
3114 # Same as above, but do not quote variable references.
3115 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3116
3117 # Sed substitution to delay expansion of an escaped shell variable in a
3118 # double_quote_subst'ed string.
3119 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3120
3121 # Sed substitution to delay expansion of an escaped single quote.
3122 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3123
3124 # Sed substitution to avoid accidental globbing in evaled expressions
3125 no_glob_subst='s/\*/\\\*/g'
3126
3127 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3128 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3129 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3130
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3132 $as_echo_n "checking how to print strings... " >&6; }
3133 # Test print first, because it will be a builtin if present.
3134 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3135    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3136   ECHO='print -r --'
3137 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3138   ECHO='printf %s\n'
3139 else
3140   # Use this function as a fallback that always works.
3141   func_fallback_echo ()
3142   {
3143     eval 'cat <<_LTECHO_EOF
3144 $1
3145 _LTECHO_EOF'
3146   }
3147   ECHO='func_fallback_echo'
3148 fi
3149
3150 # func_echo_all arg...
3151 # Invoke $ECHO with all args, space-separated.
3152 func_echo_all ()
3153 {
3154     $ECHO ""
3155 }
3156
3157 case "$ECHO" in
3158   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3159 $as_echo "printf" >&6; } ;;
3160   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3161 $as_echo "print -r" >&6; } ;;
3162   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3163 $as_echo "cat" >&6; } ;;
3164 esac
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179 DEPDIR="${am__leading_dot}deps"
3180
3181 ac_config_commands="$ac_config_commands depfiles"
3182
3183
3184 am_make=${MAKE-make}
3185 cat > confinc << 'END'
3186 am__doit:
3187         @echo this is the am__doit target
3188 .PHONY: am__doit
3189 END
3190 # If we don't find an include directive, just comment out the code.
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3192 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3193 am__include="#"
3194 am__quote=
3195 _am_result=none
3196 # First try GNU make style include.
3197 echo "include confinc" > confmf
3198 # Ignore all kinds of additional output from `make'.
3199 case `$am_make -s -f confmf 2> /dev/null` in #(
3200 *the\ am__doit\ target*)
3201   am__include=include
3202   am__quote=
3203   _am_result=GNU
3204   ;;
3205 esac
3206 # Now try BSD make style include.
3207 if test "$am__include" = "#"; then
3208    echo '.include "confinc"' > confmf
3209    case `$am_make -s -f confmf 2> /dev/null` in #(
3210    *the\ am__doit\ target*)
3211      am__include=.include
3212      am__quote="\""
3213      _am_result=BSD
3214      ;;
3215    esac
3216 fi
3217
3218
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3220 $as_echo "$_am_result" >&6; }
3221 rm -f confinc confmf
3222
3223 # Check whether --enable-dependency-tracking was given.
3224 if test "${enable_dependency_tracking+set}" = set; then :
3225   enableval=$enable_dependency_tracking;
3226 fi
3227
3228 if test "x$enable_dependency_tracking" != xno; then
3229   am_depcomp="$ac_aux_dir/depcomp"
3230   AMDEPBACKSLASH='\'
3231   am__nodep='_no'
3232 fi
3233  if test "x$enable_dependency_tracking" != xno; then
3234   AMDEP_TRUE=
3235   AMDEP_FALSE='#'
3236 else
3237   AMDEP_TRUE='#'
3238   AMDEP_FALSE=
3239 fi
3240
3241
3242 ac_ext=c
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 if test -n "$ac_tool_prefix"; then
3248   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3249 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if ${ac_cv_prog_CC+:} false; then :
3253   $as_echo_n "(cached) " >&6
3254 else
3255   if test -n "$CC"; then
3256   ac_cv_prog_CC="$CC" # Let the user override the test.
3257 else
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 for as_dir in $PATH
3260 do
3261   IFS=$as_save_IFS
3262   test -z "$as_dir" && as_dir=.
3263     for ac_exec_ext in '' $ac_executable_extensions; do
3264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3265     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267     break 2
3268   fi
3269 done
3270   done
3271 IFS=$as_save_IFS
3272
3273 fi
3274 fi
3275 CC=$ac_cv_prog_CC
3276 if test -n "$CC"; then
3277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3278 $as_echo "$CC" >&6; }
3279 else
3280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3282 fi
3283
3284
3285 fi
3286 if test -z "$ac_cv_prog_CC"; then
3287   ac_ct_CC=$CC
3288   # Extract the first word of "gcc", so it can be a program name with args.
3289 set dummy gcc; ac_word=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3293   $as_echo_n "(cached) " >&6
3294 else
3295   if test -n "$ac_ct_CC"; then
3296   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301   IFS=$as_save_IFS
3302   test -z "$as_dir" && as_dir=.
3303     for ac_exec_ext in '' $ac_executable_extensions; do
3304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3305     ac_cv_prog_ac_ct_CC="gcc"
3306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307     break 2
3308   fi
3309 done
3310   done
3311 IFS=$as_save_IFS
3312
3313 fi
3314 fi
3315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3316 if test -n "$ac_ct_CC"; then
3317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3318 $as_echo "$ac_ct_CC" >&6; }
3319 else
3320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3322 fi
3323
3324   if test "x$ac_ct_CC" = x; then
3325     CC=""
3326   else
3327     case $cross_compiling:$ac_tool_warned in
3328 yes:)
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3331 ac_tool_warned=yes ;;
3332 esac
3333     CC=$ac_ct_CC
3334   fi
3335 else
3336   CC="$ac_cv_prog_CC"
3337 fi
3338
3339 if test -z "$CC"; then
3340           if test -n "$ac_tool_prefix"; then
3341     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3342 set dummy ${ac_tool_prefix}cc; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if ${ac_cv_prog_CC+:} false; then :
3346   $as_echo_n "(cached) " >&6
3347 else
3348   if test -n "$CC"; then
3349   ac_cv_prog_CC="$CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354   IFS=$as_save_IFS
3355   test -z "$as_dir" && as_dir=.
3356     for ac_exec_ext in '' $ac_executable_extensions; do
3357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358     ac_cv_prog_CC="${ac_tool_prefix}cc"
3359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360     break 2
3361   fi
3362 done
3363   done
3364 IFS=$as_save_IFS
3365
3366 fi
3367 fi
3368 CC=$ac_cv_prog_CC
3369 if test -n "$CC"; then
3370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3371 $as_echo "$CC" >&6; }
3372 else
3373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 fi
3376
3377
3378   fi
3379 fi
3380 if test -z "$CC"; then
3381   # Extract the first word of "cc", so it can be a program name with args.
3382 set dummy cc; ac_word=$2
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 $as_echo_n "checking for $ac_word... " >&6; }
3385 if ${ac_cv_prog_CC+:} false; then :
3386   $as_echo_n "(cached) " >&6
3387 else
3388   if test -n "$CC"; then
3389   ac_cv_prog_CC="$CC" # Let the user override the test.
3390 else
3391   ac_prog_rejected=no
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3394 do
3395   IFS=$as_save_IFS
3396   test -z "$as_dir" && as_dir=.
3397     for ac_exec_ext in '' $ac_executable_extensions; do
3398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3400        ac_prog_rejected=yes
3401        continue
3402      fi
3403     ac_cv_prog_CC="cc"
3404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405     break 2
3406   fi
3407 done
3408   done
3409 IFS=$as_save_IFS
3410
3411 if test $ac_prog_rejected = yes; then
3412   # We found a bogon in the path, so make sure we never use it.
3413   set dummy $ac_cv_prog_CC
3414   shift
3415   if test $# != 0; then
3416     # We chose a different compiler from the bogus one.
3417     # However, it has the same basename, so the bogon will be chosen
3418     # first if we set CC to just the basename; use the full file name.
3419     shift
3420     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3421   fi
3422 fi
3423 fi
3424 fi
3425 CC=$ac_cv_prog_CC
3426 if test -n "$CC"; then
3427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3428 $as_echo "$CC" >&6; }
3429 else
3430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3432 fi
3433
3434
3435 fi
3436 if test -z "$CC"; then
3437   if test -n "$ac_tool_prefix"; then
3438   for ac_prog in cl.exe
3439   do
3440     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3441 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if ${ac_cv_prog_CC+:} false; then :
3445   $as_echo_n "(cached) " >&6
3446 else
3447   if test -n "$CC"; then
3448   ac_cv_prog_CC="$CC" # Let the user override the test.
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3452 do
3453   IFS=$as_save_IFS
3454   test -z "$as_dir" && as_dir=.
3455     for ac_exec_ext in '' $ac_executable_extensions; do
3456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459     break 2
3460   fi
3461 done
3462   done
3463 IFS=$as_save_IFS
3464
3465 fi
3466 fi
3467 CC=$ac_cv_prog_CC
3468 if test -n "$CC"; then
3469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3470 $as_echo "$CC" >&6; }
3471 else
3472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3474 fi
3475
3476
3477     test -n "$CC" && break
3478   done
3479 fi
3480 if test -z "$CC"; then
3481   ac_ct_CC=$CC
3482   for ac_prog in cl.exe
3483 do
3484   # Extract the first word of "$ac_prog", so it can be a program name with args.
3485 set dummy $ac_prog; ac_word=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3489   $as_echo_n "(cached) " >&6
3490 else
3491   if test -n "$ac_ct_CC"; then
3492   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497   IFS=$as_save_IFS
3498   test -z "$as_dir" && as_dir=.
3499     for ac_exec_ext in '' $ac_executable_extensions; do
3500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501     ac_cv_prog_ac_ct_CC="$ac_prog"
3502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3503     break 2
3504   fi
3505 done
3506   done
3507 IFS=$as_save_IFS
3508
3509 fi
3510 fi
3511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3512 if test -n "$ac_ct_CC"; then
3513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3514 $as_echo "$ac_ct_CC" >&6; }
3515 else
3516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3518 fi
3519
3520
3521   test -n "$ac_ct_CC" && break
3522 done
3523
3524   if test "x$ac_ct_CC" = x; then
3525     CC=""
3526   else
3527     case $cross_compiling:$ac_tool_warned in
3528 yes:)
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3531 ac_tool_warned=yes ;;
3532 esac
3533     CC=$ac_ct_CC
3534   fi
3535 fi
3536
3537 fi
3538
3539
3540 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 as_fn_error $? "no acceptable C compiler found in \$PATH
3543 See \`config.log' for more details" "$LINENO" 5; }
3544
3545 # Provide some information about the compiler.
3546 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3547 set X $ac_compile
3548 ac_compiler=$2
3549 for ac_option in --version -v -V -qversion; do
3550   { { ac_try="$ac_compiler $ac_option >&5"
3551 case "(($ac_try" in
3552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553   *) ac_try_echo=$ac_try;;
3554 esac
3555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3556 $as_echo "$ac_try_echo"; } >&5
3557   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3558   ac_status=$?
3559   if test -s conftest.err; then
3560     sed '10a\
3561 ... rest of stderr output deleted ...
3562          10q' conftest.err >conftest.er1
3563     cat conftest.er1 >&5
3564   fi
3565   rm -f conftest.er1 conftest.err
3566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3567   test $ac_status = 0; }
3568 done
3569
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h.  */
3572
3573 int
3574 main ()
3575 {
3576
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 ac_clean_files_save=$ac_clean_files
3582 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3583 # Try to create an executable without -o first, disregard a.out.
3584 # It will help us diagnose broken compilers, and finding out an intuition
3585 # of exeext.
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3587 $as_echo_n "checking whether the C compiler works... " >&6; }
3588 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3589
3590 # The possible output files:
3591 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3592
3593 ac_rmfiles=
3594 for ac_file in $ac_files
3595 do
3596   case $ac_file in
3597     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3598     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3599   esac
3600 done
3601 rm -f $ac_rmfiles
3602
3603 if { { ac_try="$ac_link_default"
3604 case "(($ac_try" in
3605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606   *) ac_try_echo=$ac_try;;
3607 esac
3608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609 $as_echo "$ac_try_echo"; } >&5
3610   (eval "$ac_link_default") 2>&5
3611   ac_status=$?
3612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613   test $ac_status = 0; }; then :
3614   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3615 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3616 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3617 # so that the user can short-circuit this test for compilers unknown to
3618 # Autoconf.
3619 for ac_file in $ac_files ''
3620 do
3621   test -f "$ac_file" || continue
3622   case $ac_file in
3623     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3624         ;;
3625     [ab].out )
3626         # We found the default executable, but exeext='' is most
3627         # certainly right.
3628         break;;
3629     *.* )
3630         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3631         then :; else
3632            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3633         fi
3634         # We set ac_cv_exeext here because the later test for it is not
3635         # safe: cross compilers may not add the suffix if given an `-o'
3636         # argument, so we may need to know it at that point already.
3637         # Even if this section looks crufty: it has the advantage of
3638         # actually working.
3639         break;;
3640     * )
3641         break;;
3642   esac
3643 done
3644 test "$ac_cv_exeext" = no && ac_cv_exeext=
3645
3646 else
3647   ac_file=''
3648 fi
3649 if test -z "$ac_file"; then :
3650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3652 $as_echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 as_fn_error 77 "C compiler cannot create executables
3658 See \`config.log' for more details" "$LINENO" 5; }
3659 else
3660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3661 $as_echo "yes" >&6; }
3662 fi
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3664 $as_echo_n "checking for C compiler default output file name... " >&6; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3666 $as_echo "$ac_file" >&6; }
3667 ac_exeext=$ac_cv_exeext
3668
3669 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3670 ac_clean_files=$ac_clean_files_save
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3672 $as_echo_n "checking for suffix of executables... " >&6; }
3673 if { { ac_try="$ac_link"
3674 case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679 $as_echo "$ac_try_echo"; } >&5
3680   (eval "$ac_link") 2>&5
3681   ac_status=$?
3682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683   test $ac_status = 0; }; then :
3684   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3685 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3686 # work properly (i.e., refer to `conftest.exe'), while it won't with
3687 # `rm'.
3688 for ac_file in conftest.exe conftest conftest.*; do
3689   test -f "$ac_file" || continue
3690   case $ac_file in
3691     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3692     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3693           break;;
3694     * ) break;;
3695   esac
3696 done
3697 else
3698   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3701 See \`config.log' for more details" "$LINENO" 5; }
3702 fi
3703 rm -f conftest conftest$ac_cv_exeext
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3705 $as_echo "$ac_cv_exeext" >&6; }
3706
3707 rm -f conftest.$ac_ext
3708 EXEEXT=$ac_cv_exeext
3709 ac_exeext=$EXEEXT
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h.  */
3712 #include <stdio.h>
3713 int
3714 main ()
3715 {
3716 FILE *f = fopen ("conftest.out", "w");
3717  return ferror (f) || fclose (f) != 0;
3718
3719   ;
3720   return 0;
3721 }
3722 _ACEOF
3723 ac_clean_files="$ac_clean_files conftest.out"
3724 # Check that the compiler produces executables we can run.  If not, either
3725 # the compiler is broken, or we cross compile.
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3727 $as_echo_n "checking whether we are cross compiling... " >&6; }
3728 if test "$cross_compiling" != yes; then
3729   { { ac_try="$ac_link"
3730 case "(($ac_try" in
3731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732   *) ac_try_echo=$ac_try;;
3733 esac
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736   (eval "$ac_link") 2>&5
3737   ac_status=$?
3738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739   test $ac_status = 0; }
3740   if { ac_try='./conftest$ac_cv_exeext'
3741   { { case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746 $as_echo "$ac_try_echo"; } >&5
3747   (eval "$ac_try") 2>&5
3748   ac_status=$?
3749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750   test $ac_status = 0; }; }; then
3751     cross_compiling=no
3752   else
3753     if test "$cross_compiling" = maybe; then
3754         cross_compiling=yes
3755     else
3756         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758 as_fn_error $? "cannot run C compiled programs.
3759 If you meant to cross compile, use \`--host'.
3760 See \`config.log' for more details" "$LINENO" 5; }
3761     fi
3762   fi
3763 fi
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3765 $as_echo "$cross_compiling" >&6; }
3766
3767 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3768 ac_clean_files=$ac_clean_files_save
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3770 $as_echo_n "checking for suffix of object files... " >&6; }
3771 if ${ac_cv_objext+:} false; then :
3772   $as_echo_n "(cached) " >&6
3773 else
3774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h.  */
3776
3777 int
3778 main ()
3779 {
3780
3781   ;
3782   return 0;
3783 }
3784 _ACEOF
3785 rm -f conftest.o conftest.obj
3786 if { { ac_try="$ac_compile"
3787 case "(($ac_try" in
3788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789   *) ac_try_echo=$ac_try;;
3790 esac
3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792 $as_echo "$ac_try_echo"; } >&5
3793   (eval "$ac_compile") 2>&5
3794   ac_status=$?
3795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796   test $ac_status = 0; }; then :
3797   for ac_file in conftest.o conftest.obj conftest.*; do
3798   test -f "$ac_file" || continue;
3799   case $ac_file in
3800     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3801     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3802        break;;
3803   esac
3804 done
3805 else
3806   $as_echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3811 as_fn_error $? "cannot compute suffix of object files: cannot compile
3812 See \`config.log' for more details" "$LINENO" 5; }
3813 fi
3814 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3817 $as_echo "$ac_cv_objext" >&6; }
3818 OBJEXT=$ac_cv_objext
3819 ac_objext=$OBJEXT
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3821 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3822 if ${ac_cv_c_compiler_gnu+:} false; then :
3823   $as_echo_n "(cached) " >&6
3824 else
3825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h.  */
3827
3828 int
3829 main ()
3830 {
3831 #ifndef __GNUC__
3832        choke me
3833 #endif
3834
3835   ;
3836   return 0;
3837 }
3838 _ACEOF
3839 if ac_fn_c_try_compile "$LINENO"; then :
3840   ac_compiler_gnu=yes
3841 else
3842   ac_compiler_gnu=no
3843 fi
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3846
3847 fi
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3849 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3850 if test $ac_compiler_gnu = yes; then
3851   GCC=yes
3852 else
3853   GCC=
3854 fi
3855 ac_test_CFLAGS=${CFLAGS+set}
3856 ac_save_CFLAGS=$CFLAGS
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3858 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3859 if ${ac_cv_prog_cc_g+:} false; then :
3860   $as_echo_n "(cached) " >&6
3861 else
3862   ac_save_c_werror_flag=$ac_c_werror_flag
3863    ac_c_werror_flag=yes
3864    ac_cv_prog_cc_g=no
3865    CFLAGS="-g"
3866    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h.  */
3868
3869 int
3870 main ()
3871 {
3872
3873   ;
3874   return 0;
3875 }
3876 _ACEOF
3877 if ac_fn_c_try_compile "$LINENO"; then :
3878   ac_cv_prog_cc_g=yes
3879 else
3880   CFLAGS=""
3881       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h.  */
3883
3884 int
3885 main ()
3886 {
3887
3888   ;
3889   return 0;
3890 }
3891 _ACEOF
3892 if ac_fn_c_try_compile "$LINENO"; then :
3893
3894 else
3895   ac_c_werror_flag=$ac_save_c_werror_flag
3896          CFLAGS="-g"
3897          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h.  */
3899
3900 int
3901 main ()
3902 {
3903
3904   ;
3905   return 0;
3906 }
3907 _ACEOF
3908 if ac_fn_c_try_compile "$LINENO"; then :
3909   ac_cv_prog_cc_g=yes
3910 fi
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 fi
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 fi
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916    ac_c_werror_flag=$ac_save_c_werror_flag
3917 fi
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3919 $as_echo "$ac_cv_prog_cc_g" >&6; }
3920 if test "$ac_test_CFLAGS" = set; then
3921   CFLAGS=$ac_save_CFLAGS
3922 elif test $ac_cv_prog_cc_g = yes; then
3923   if test "$GCC" = yes; then
3924     CFLAGS="-g -O2"
3925   else
3926     CFLAGS="-g"
3927   fi
3928 else
3929   if test "$GCC" = yes; then
3930     CFLAGS="-O2"
3931   else
3932     CFLAGS=
3933   fi
3934 fi
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3936 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3937 if ${ac_cv_prog_cc_c89+:} false; then :
3938   $as_echo_n "(cached) " >&6
3939 else
3940   ac_cv_prog_cc_c89=no
3941 ac_save_CC=$CC
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h.  */
3944 #include <stdarg.h>
3945 #include <stdio.h>
3946 #include <sys/types.h>
3947 #include <sys/stat.h>
3948 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3949 struct buf { int x; };
3950 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3951 static char *e (p, i)
3952      char **p;
3953      int i;
3954 {
3955   return p[i];
3956 }
3957 static char *f (char * (*g) (char **, int), char **p, ...)
3958 {
3959   char *s;
3960   va_list v;
3961   va_start (v,p);
3962   s = g (p, va_arg (v,int));
3963   va_end (v);
3964   return s;
3965 }
3966
3967 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3968    function prototypes and stuff, but not '\xHH' hex character constants.
3969    These don't provoke an error unfortunately, instead are silently treated
3970    as 'x'.  The following induces an error, until -std is added to get
3971    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3972    array size at least.  It's necessary to write '\x00'==0 to get something
3973    that's true only with -std.  */
3974 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3975
3976 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3977    inside strings and character constants.  */
3978 #define FOO(x) 'x'
3979 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3980
3981 int test (int i, double x);
3982 struct s1 {int (*f) (int a);};
3983 struct s2 {int (*f) (double a);};
3984 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3985 int argc;
3986 char **argv;
3987 int
3988 main ()
3989 {
3990 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3991   ;
3992   return 0;
3993 }
3994 _ACEOF
3995 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3996         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3997 do
3998   CC="$ac_save_CC $ac_arg"
3999   if ac_fn_c_try_compile "$LINENO"; then :
4000   ac_cv_prog_cc_c89=$ac_arg
4001 fi
4002 rm -f core conftest.err conftest.$ac_objext
4003   test "x$ac_cv_prog_cc_c89" != "xno" && break
4004 done
4005 rm -f conftest.$ac_ext
4006 CC=$ac_save_CC
4007
4008 fi
4009 # AC_CACHE_VAL
4010 case "x$ac_cv_prog_cc_c89" in
4011   x)
4012     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4013 $as_echo "none needed" >&6; } ;;
4014   xno)
4015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4016 $as_echo "unsupported" >&6; } ;;
4017   *)
4018     CC="$CC $ac_cv_prog_cc_c89"
4019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4020 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4021 esac
4022 if test "x$ac_cv_prog_cc_c89" != xno; then :
4023
4024 fi
4025
4026 ac_ext=c
4027 ac_cpp='$CPP $CPPFLAGS'
4028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4031
4032 depcc="$CC"   am_compiler_list=
4033
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4035 $as_echo_n "checking dependency style of $depcc... " >&6; }
4036 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4037   $as_echo_n "(cached) " >&6
4038 else
4039   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4040   # We make a subdir and do the tests there.  Otherwise we can end up
4041   # making bogus files that we don't know about and never remove.  For
4042   # instance it was reported that on HP-UX the gcc test will end up
4043   # making a dummy file named `D' -- because `-MD' means `put the output
4044   # in D'.
4045   rm -rf conftest.dir
4046   mkdir conftest.dir
4047   # Copy depcomp to subdir because otherwise we won't find it if we're
4048   # using a relative directory.
4049   cp "$am_depcomp" conftest.dir
4050   cd conftest.dir
4051   # We will build objects and dependencies in a subdirectory because
4052   # it helps to detect inapplicable dependency modes.  For instance
4053   # both Tru64's cc and ICC support -MD to output dependencies as a
4054   # side effect of compilation, but ICC will put the dependencies in
4055   # the current directory while Tru64 will put them in the object
4056   # directory.
4057   mkdir sub
4058
4059   am_cv_CC_dependencies_compiler_type=none
4060   if test "$am_compiler_list" = ""; then
4061      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4062   fi
4063   am__universal=false
4064   case " $depcc " in #(
4065      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4066      esac
4067
4068   for depmode in $am_compiler_list; do
4069     # Setup a source with many dependencies, because some compilers
4070     # like to wrap large dependency lists on column 80 (with \), and
4071     # we should not choose a depcomp mode which is confused by this.
4072     #
4073     # We need to recreate these files for each test, as the compiler may
4074     # overwrite some of them when testing with obscure command lines.
4075     # This happens at least with the AIX C compiler.
4076     : > sub/conftest.c
4077     for i in 1 2 3 4 5 6; do
4078       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4079       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4080       # Solaris 8's {/usr,}/bin/sh.
4081       touch sub/conftst$i.h
4082     done
4083     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4084
4085     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4086     # mode.  It turns out that the SunPro C++ compiler does not properly
4087     # handle `-M -o', and we need to detect this.  Also, some Intel
4088     # versions had trouble with output in subdirs
4089     am__obj=sub/conftest.${OBJEXT-o}
4090     am__minus_obj="-o $am__obj"
4091     case $depmode in
4092     gcc)
4093       # This depmode causes a compiler race in universal mode.
4094       test "$am__universal" = false || continue
4095       ;;
4096     nosideeffect)
4097       # after this tag, mechanisms are not by side-effect, so they'll
4098       # only be used when explicitly requested
4099       if test "x$enable_dependency_tracking" = xyes; then
4100         continue
4101       else
4102         break
4103       fi
4104       ;;
4105     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4106       # This compiler won't grok `-c -o', but also, the minuso test has
4107       # not run yet.  These depmodes are late enough in the game, and
4108       # so weak that their functioning should not be impacted.
4109       am__obj=conftest.${OBJEXT-o}
4110       am__minus_obj=
4111       ;;
4112     none) break ;;
4113     esac
4114     if depmode=$depmode \
4115        source=sub/conftest.c object=$am__obj \
4116        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4117        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4118          >/dev/null 2>conftest.err &&
4119        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4120        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4121        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4122        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4123       # icc doesn't choke on unknown options, it will just issue warnings
4124       # or remarks (even with -Werror).  So we grep stderr for any message
4125       # that says an option was ignored or not supported.
4126       # When given -MP, icc 7.0 and 7.1 complain thusly:
4127       #   icc: Command line warning: ignoring option '-M'; no argument required
4128       # The diagnosis changed in icc 8.0:
4129       #   icc: Command line remark: option '-MP' not supported
4130       if (grep 'ignoring option' conftest.err ||
4131           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4132         am_cv_CC_dependencies_compiler_type=$depmode
4133         break
4134       fi
4135     fi
4136   done
4137
4138   cd ..
4139   rm -rf conftest.dir
4140 else
4141   am_cv_CC_dependencies_compiler_type=none
4142 fi
4143
4144 fi
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4146 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4147 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4148
4149  if
4150   test "x$enable_dependency_tracking" != xno \
4151   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4152   am__fastdepCC_TRUE=
4153   am__fastdepCC_FALSE='#'
4154 else
4155   am__fastdepCC_TRUE='#'
4156   am__fastdepCC_FALSE=
4157 fi
4158
4159
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4161 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4162 if ${ac_cv_path_SED+:} false; then :
4163   $as_echo_n "(cached) " >&6
4164 else
4165             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4166      for ac_i in 1 2 3 4 5 6 7; do
4167        ac_script="$ac_script$as_nl$ac_script"
4168      done
4169      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4170      { ac_script=; unset ac_script;}
4171      if test -z "$SED"; then
4172   ac_path_SED_found=false
4173   # Loop through the user's path and test for each of PROGNAME-LIST
4174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4176 do
4177   IFS=$as_save_IFS
4178   test -z "$as_dir" && as_dir=.
4179     for ac_prog in sed gsed; do
4180     for ac_exec_ext in '' $ac_executable_extensions; do
4181       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4182       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4183 # Check for GNU ac_path_SED and select it if it is found.
4184   # Check for GNU $ac_path_SED
4185 case `"$ac_path_SED" --version 2>&1` in
4186 *GNU*)
4187   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4188 *)
4189   ac_count=0
4190   $as_echo_n 0123456789 >"conftest.in"
4191   while :
4192   do
4193     cat "conftest.in" "conftest.in" >"conftest.tmp"
4194     mv "conftest.tmp" "conftest.in"
4195     cp "conftest.in" "conftest.nl"
4196     $as_echo '' >> "conftest.nl"
4197     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4198     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4199     as_fn_arith $ac_count + 1 && ac_count=$as_val
4200     if test $ac_count -gt ${ac_path_SED_max-0}; then
4201       # Best one so far, save it but keep looking for a better one
4202       ac_cv_path_SED="$ac_path_SED"
4203       ac_path_SED_max=$ac_count
4204     fi
4205     # 10*(2^10) chars as input seems more than enough
4206     test $ac_count -gt 10 && break
4207   done
4208   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4209 esac
4210
4211       $ac_path_SED_found && break 3
4212     done
4213   done
4214   done
4215 IFS=$as_save_IFS
4216   if test -z "$ac_cv_path_SED"; then
4217     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4218   fi
4219 else
4220   ac_cv_path_SED=$SED
4221 fi
4222
4223 fi
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4225 $as_echo "$ac_cv_path_SED" >&6; }
4226  SED="$ac_cv_path_SED"
4227   rm -f conftest.sed
4228
4229 test -z "$SED" && SED=sed
4230 Xsed="$SED -e 1s/^X//"
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4243 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4244 if ${ac_cv_path_GREP+:} false; then :
4245   $as_echo_n "(cached) " >&6
4246 else
4247   if test -z "$GREP"; then
4248   ac_path_GREP_found=false
4249   # Loop through the user's path and test for each of PROGNAME-LIST
4250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4252 do
4253   IFS=$as_save_IFS
4254   test -z "$as_dir" && as_dir=.
4255     for ac_prog in grep ggrep; do
4256     for ac_exec_ext in '' $ac_executable_extensions; do
4257       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4258       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4259 # Check for GNU ac_path_GREP and select it if it is found.
4260   # Check for GNU $ac_path_GREP
4261 case `"$ac_path_GREP" --version 2>&1` in
4262 *GNU*)
4263   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4264 *)
4265   ac_count=0
4266   $as_echo_n 0123456789 >"conftest.in"
4267   while :
4268   do
4269     cat "conftest.in" "conftest.in" >"conftest.tmp"
4270     mv "conftest.tmp" "conftest.in"
4271     cp "conftest.in" "conftest.nl"
4272     $as_echo 'GREP' >> "conftest.nl"
4273     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4274     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4275     as_fn_arith $ac_count + 1 && ac_count=$as_val
4276     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4277       # Best one so far, save it but keep looking for a better one
4278       ac_cv_path_GREP="$ac_path_GREP"
4279       ac_path_GREP_max=$ac_count
4280     fi
4281     # 10*(2^10) chars as input seems more than enough
4282     test $ac_count -gt 10 && break
4283   done
4284   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4285 esac
4286
4287       $ac_path_GREP_found && break 3
4288     done
4289   done
4290   done
4291 IFS=$as_save_IFS
4292   if test -z "$ac_cv_path_GREP"; then
4293     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4294   fi
4295 else
4296   ac_cv_path_GREP=$GREP
4297 fi
4298
4299 fi
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4301 $as_echo "$ac_cv_path_GREP" >&6; }
4302  GREP="$ac_cv_path_GREP"
4303
4304
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4306 $as_echo_n "checking for egrep... " >&6; }
4307 if ${ac_cv_path_EGREP+:} false; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4311    then ac_cv_path_EGREP="$GREP -E"
4312    else
4313      if test -z "$EGREP"; then
4314   ac_path_EGREP_found=false
4315   # Loop through the user's path and test for each of PROGNAME-LIST
4316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4318 do
4319   IFS=$as_save_IFS
4320   test -z "$as_dir" && as_dir=.
4321     for ac_prog in egrep; do
4322     for ac_exec_ext in '' $ac_executable_extensions; do
4323       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4324       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4325 # Check for GNU ac_path_EGREP and select it if it is found.
4326   # Check for GNU $ac_path_EGREP
4327 case `"$ac_path_EGREP" --version 2>&1` in
4328 *GNU*)
4329   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4330 *)
4331   ac_count=0
4332   $as_echo_n 0123456789 >"conftest.in"
4333   while :
4334   do
4335     cat "conftest.in" "conftest.in" >"conftest.tmp"
4336     mv "conftest.tmp" "conftest.in"
4337     cp "conftest.in" "conftest.nl"
4338     $as_echo 'EGREP' >> "conftest.nl"
4339     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4340     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4341     as_fn_arith $ac_count + 1 && ac_count=$as_val
4342     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4343       # Best one so far, save it but keep looking for a better one
4344       ac_cv_path_EGREP="$ac_path_EGREP"
4345       ac_path_EGREP_max=$ac_count
4346     fi
4347     # 10*(2^10) chars as input seems more than enough
4348     test $ac_count -gt 10 && break
4349   done
4350   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4351 esac
4352
4353       $ac_path_EGREP_found && break 3
4354     done
4355   done
4356   done
4357 IFS=$as_save_IFS
4358   if test -z "$ac_cv_path_EGREP"; then
4359     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4360   fi
4361 else
4362   ac_cv_path_EGREP=$EGREP
4363 fi
4364
4365    fi
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4368 $as_echo "$ac_cv_path_EGREP" >&6; }
4369  EGREP="$ac_cv_path_EGREP"
4370
4371
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4373 $as_echo_n "checking for fgrep... " >&6; }
4374 if ${ac_cv_path_FGREP+:} false; then :
4375   $as_echo_n "(cached) " >&6
4376 else
4377   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4378    then ac_cv_path_FGREP="$GREP -F"
4379    else
4380      if test -z "$FGREP"; then
4381   ac_path_FGREP_found=false
4382   # Loop through the user's path and test for each of PROGNAME-LIST
4383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4385 do
4386   IFS=$as_save_IFS
4387   test -z "$as_dir" && as_dir=.
4388     for ac_prog in fgrep; do
4389     for ac_exec_ext in '' $ac_executable_extensions; do
4390       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4391       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4392 # Check for GNU ac_path_FGREP and select it if it is found.
4393   # Check for GNU $ac_path_FGREP
4394 case `"$ac_path_FGREP" --version 2>&1` in
4395 *GNU*)
4396   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4397 *)
4398   ac_count=0
4399   $as_echo_n 0123456789 >"conftest.in"
4400   while :
4401   do
4402     cat "conftest.in" "conftest.in" >"conftest.tmp"
4403     mv "conftest.tmp" "conftest.in"
4404     cp "conftest.in" "conftest.nl"
4405     $as_echo 'FGREP' >> "conftest.nl"
4406     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408     as_fn_arith $ac_count + 1 && ac_count=$as_val
4409     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4410       # Best one so far, save it but keep looking for a better one
4411       ac_cv_path_FGREP="$ac_path_FGREP"
4412       ac_path_FGREP_max=$ac_count
4413     fi
4414     # 10*(2^10) chars as input seems more than enough
4415     test $ac_count -gt 10 && break
4416   done
4417   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418 esac
4419
4420       $ac_path_FGREP_found && break 3
4421     done
4422   done
4423   done
4424 IFS=$as_save_IFS
4425   if test -z "$ac_cv_path_FGREP"; then
4426     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4427   fi
4428 else
4429   ac_cv_path_FGREP=$FGREP
4430 fi
4431
4432    fi
4433 fi
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4435 $as_echo "$ac_cv_path_FGREP" >&6; }
4436  FGREP="$ac_cv_path_FGREP"
4437
4438
4439 test -z "$GREP" && GREP=grep
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459 # Check whether --with-gnu-ld was given.
4460 if test "${with_gnu_ld+set}" = set; then :
4461   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4462 else
4463   with_gnu_ld=no
4464 fi
4465
4466 ac_prog=ld
4467 if test "$GCC" = yes; then
4468   # Check if gcc -print-prog-name=ld gives a path.
4469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4470 $as_echo_n "checking for ld used by $CC... " >&6; }
4471   case $host in
4472   *-*-mingw*)
4473     # gcc leaves a trailing carriage return which upsets mingw
4474     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4475   *)
4476     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4477   esac
4478   case $ac_prog in
4479     # Accept absolute paths.
4480     [\\/]* | ?:[\\/]*)
4481       re_direlt='/[^/][^/]*/\.\./'
4482       # Canonicalize the pathname of ld
4483       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4484       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4485         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4486       done
4487       test -z "$LD" && LD="$ac_prog"
4488       ;;
4489   "")
4490     # If it fails, then pretend we aren't using GCC.
4491     ac_prog=ld
4492     ;;
4493   *)
4494     # If it is relative, then search for the first ld in PATH.
4495     with_gnu_ld=unknown
4496     ;;
4497   esac
4498 elif test "$with_gnu_ld" = yes; then
4499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4500 $as_echo_n "checking for GNU ld... " >&6; }
4501 else
4502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4503 $as_echo_n "checking for non-GNU ld... " >&6; }
4504 fi
4505 if ${lt_cv_path_LD+:} false; then :
4506   $as_echo_n "(cached) " >&6
4507 else
4508   if test -z "$LD"; then
4509   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4510   for ac_dir in $PATH; do
4511     IFS="$lt_save_ifs"
4512     test -z "$ac_dir" && ac_dir=.
4513     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4514       lt_cv_path_LD="$ac_dir/$ac_prog"
4515       # Check to see if the program is GNU ld.  I'd rather use --version,
4516       # but apparently some variants of GNU ld only accept -v.
4517       # Break only if it was the GNU/non-GNU ld that we prefer.
4518       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4519       *GNU* | *'with BFD'*)
4520         test "$with_gnu_ld" != no && break
4521         ;;
4522       *)
4523         test "$with_gnu_ld" != yes && break
4524         ;;
4525       esac
4526     fi
4527   done
4528   IFS="$lt_save_ifs"
4529 else
4530   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4531 fi
4532 fi
4533
4534 LD="$lt_cv_path_LD"
4535 if test -n "$LD"; then
4536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4537 $as_echo "$LD" >&6; }
4538 else
4539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4541 fi
4542 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4544 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4545 if ${lt_cv_prog_gnu_ld+:} false; then :
4546   $as_echo_n "(cached) " >&6
4547 else
4548   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4549 case `$LD -v 2>&1 </dev/null` in
4550 *GNU* | *'with BFD'*)
4551   lt_cv_prog_gnu_ld=yes
4552   ;;
4553 *)
4554   lt_cv_prog_gnu_ld=no
4555   ;;
4556 esac
4557 fi
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4559 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4560 with_gnu_ld=$lt_cv_prog_gnu_ld
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4571 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4572 if ${lt_cv_path_NM+:} false; then :
4573   $as_echo_n "(cached) " >&6
4574 else
4575   if test -n "$NM"; then
4576   # Let the user override the test.
4577   lt_cv_path_NM="$NM"
4578 else
4579   lt_nm_to_check="${ac_tool_prefix}nm"
4580   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4581     lt_nm_to_check="$lt_nm_to_check nm"
4582   fi
4583   for lt_tmp_nm in $lt_nm_to_check; do
4584     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4585     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4586       IFS="$lt_save_ifs"
4587       test -z "$ac_dir" && ac_dir=.
4588       tmp_nm="$ac_dir/$lt_tmp_nm"
4589       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4590         # Check to see if the nm accepts a BSD-compat flag.
4591         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4592         #   nm: unknown option "B" ignored
4593         # Tru64's nm complains that /dev/null is an invalid object file
4594         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4595         */dev/null* | *'Invalid file or object type'*)
4596           lt_cv_path_NM="$tmp_nm -B"
4597           break
4598           ;;
4599         *)
4600           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4601           */dev/null*)
4602             lt_cv_path_NM="$tmp_nm -p"
4603             break
4604             ;;
4605           *)
4606             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4607             continue # so that we can try to find one that supports BSD flags
4608             ;;
4609           esac
4610           ;;
4611         esac
4612       fi
4613     done
4614     IFS="$lt_save_ifs"
4615   done
4616   : ${lt_cv_path_NM=no}
4617 fi
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4620 $as_echo "$lt_cv_path_NM" >&6; }
4621 if test "$lt_cv_path_NM" != "no"; then
4622   NM="$lt_cv_path_NM"
4623 else
4624   # Didn't find any BSD compatible name lister, look for dumpbin.
4625   if test -n "$DUMPBIN"; then :
4626     # Let the user override the test.
4627   else
4628     if test -n "$ac_tool_prefix"; then
4629   for ac_prog in dumpbin "link -dump"
4630   do
4631     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_DUMPBIN+:} false; then :
4636   $as_echo_n "(cached) " >&6
4637 else
4638   if test -n "$DUMPBIN"; then
4639   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644   IFS=$as_save_IFS
4645   test -z "$as_dir" && as_dir=.
4646     for ac_exec_ext in '' $ac_executable_extensions; do
4647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4648     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650     break 2
4651   fi
4652 done
4653   done
4654 IFS=$as_save_IFS
4655
4656 fi
4657 fi
4658 DUMPBIN=$ac_cv_prog_DUMPBIN
4659 if test -n "$DUMPBIN"; then
4660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4661 $as_echo "$DUMPBIN" >&6; }
4662 else
4663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4665 fi
4666
4667
4668     test -n "$DUMPBIN" && break
4669   done
4670 fi
4671 if test -z "$DUMPBIN"; then
4672   ac_ct_DUMPBIN=$DUMPBIN
4673   for ac_prog in dumpbin "link -dump"
4674 do
4675   # Extract the first word of "$ac_prog", so it can be a program name with args.
4676 set dummy $ac_prog; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4680   $as_echo_n "(cached) " >&6
4681 else
4682   if test -n "$ac_ct_DUMPBIN"; then
4683   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4684 else
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4687 do
4688   IFS=$as_save_IFS
4689   test -z "$as_dir" && as_dir=.
4690     for ac_exec_ext in '' $ac_executable_extensions; do
4691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694     break 2
4695   fi
4696 done
4697   done
4698 IFS=$as_save_IFS
4699
4700 fi
4701 fi
4702 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4703 if test -n "$ac_ct_DUMPBIN"; then
4704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4705 $as_echo "$ac_ct_DUMPBIN" >&6; }
4706 else
4707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4709 fi
4710
4711
4712   test -n "$ac_ct_DUMPBIN" && break
4713 done
4714
4715   if test "x$ac_ct_DUMPBIN" = x; then
4716     DUMPBIN=":"
4717   else
4718     case $cross_compiling:$ac_tool_warned in
4719 yes:)
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722 ac_tool_warned=yes ;;
4723 esac
4724     DUMPBIN=$ac_ct_DUMPBIN
4725   fi
4726 fi
4727
4728     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4729     *COFF*)
4730       DUMPBIN="$DUMPBIN -symbols"
4731       ;;
4732     *)
4733       DUMPBIN=:
4734       ;;
4735     esac
4736   fi
4737
4738   if test "$DUMPBIN" != ":"; then
4739     NM="$DUMPBIN"
4740   fi
4741 fi
4742 test -z "$NM" && NM=nm
4743
4744
4745
4746
4747
4748
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4750 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4751 if ${lt_cv_nm_interface+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   lt_cv_nm_interface="BSD nm"
4755   echo "int some_variable = 0;" > conftest.$ac_ext
4756   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4757   (eval "$ac_compile" 2>conftest.err)
4758   cat conftest.err >&5
4759   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4760   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4761   cat conftest.err >&5
4762   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4763   cat conftest.out >&5
4764   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4765     lt_cv_nm_interface="MS dumpbin"
4766   fi
4767   rm -f conftest*
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4770 $as_echo "$lt_cv_nm_interface" >&6; }
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4773 $as_echo_n "checking whether ln -s works... " >&6; }
4774 LN_S=$as_ln_s
4775 if test "$LN_S" = "ln -s"; then
4776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4777 $as_echo "yes" >&6; }
4778 else
4779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4780 $as_echo "no, using $LN_S" >&6; }
4781 fi
4782
4783 # find the maximum length of command line arguments
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4785 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4786 if ${lt_cv_sys_max_cmd_len+:} false; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789     i=0
4790   teststring="ABCD"
4791
4792   case $build_os in
4793   msdosdjgpp*)
4794     # On DJGPP, this test can blow up pretty badly due to problems in libc
4795     # (any single argument exceeding 2000 bytes causes a buffer overrun
4796     # during glob expansion).  Even if it were fixed, the result of this
4797     # check would be larger than it should be.
4798     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4799     ;;
4800
4801   gnu*)
4802     # Under GNU Hurd, this test is not required because there is
4803     # no limit to the length of command line arguments.
4804     # Libtool will interpret -1 as no limit whatsoever
4805     lt_cv_sys_max_cmd_len=-1;
4806     ;;
4807
4808   cygwin* | mingw* | cegcc*)
4809     # On Win9x/ME, this test blows up -- it succeeds, but takes
4810     # about 5 minutes as the teststring grows exponentially.
4811     # Worse, since 9x/ME are not pre-emptively multitasking,
4812     # you end up with a "frozen" computer, even though with patience
4813     # the test eventually succeeds (with a max line length of 256k).
4814     # Instead, let's just punt: use the minimum linelength reported by
4815     # all of the supported platforms: 8192 (on NT/2K/XP).
4816     lt_cv_sys_max_cmd_len=8192;
4817     ;;
4818
4819   mint*)
4820     # On MiNT this can take a long time and run out of memory.
4821     lt_cv_sys_max_cmd_len=8192;
4822     ;;
4823
4824   amigaos*)
4825     # On AmigaOS with pdksh, this test takes hours, literally.
4826     # So we just punt and use a minimum line length of 8192.
4827     lt_cv_sys_max_cmd_len=8192;
4828     ;;
4829
4830   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4831     # This has been around since 386BSD, at least.  Likely further.
4832     if test -x /sbin/sysctl; then
4833       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4834     elif test -x /usr/sbin/sysctl; then
4835       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4836     else
4837       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4838     fi
4839     # And add a safety zone
4840     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4841     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4842     ;;
4843
4844   interix*)
4845     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4846     lt_cv_sys_max_cmd_len=196608
4847     ;;
4848
4849   os2*)
4850     # The test takes a long time on OS/2.
4851     lt_cv_sys_max_cmd_len=8192
4852     ;;
4853
4854   osf*)
4855     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4856     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4857     # nice to cause kernel panics so lets avoid the loop below.
4858     # First set a reasonable default.
4859     lt_cv_sys_max_cmd_len=16384
4860     #
4861     if test -x /sbin/sysconfig; then
4862       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4863         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4864       esac
4865     fi
4866     ;;
4867   sco3.2v5*)
4868     lt_cv_sys_max_cmd_len=102400
4869     ;;
4870   sysv5* | sco5v6* | sysv4.2uw2*)
4871     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4872     if test -n "$kargmax"; then
4873       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4874     else
4875       lt_cv_sys_max_cmd_len=32768
4876     fi
4877     ;;
4878   *)
4879     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4880     if test -n "$lt_cv_sys_max_cmd_len"; then
4881       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4882       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4883     else
4884       # Make teststring a little bigger before we do anything with it.
4885       # a 1K string should be a reasonable start.
4886       for i in 1 2 3 4 5 6 7 8 ; do
4887         teststring=$teststring$teststring
4888       done
4889       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4890       # If test is not a shell built-in, we'll probably end up computing a
4891       # maximum length that is only half of the actual maximum length, but
4892       # we can't tell.
4893       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4894                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4895               test $i != 17 # 1/2 MB should be enough
4896       do
4897         i=`expr $i + 1`
4898         teststring=$teststring$teststring
4899       done
4900       # Only check the string length outside the loop.
4901       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4902       teststring=
4903       # Add a significant safety factor because C++ compilers can tack on
4904       # massive amounts of additional arguments before passing them to the
4905       # linker.  It appears as though 1/2 is a usable value.
4906       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4907     fi
4908     ;;
4909   esac
4910
4911 fi
4912
4913 if test -n $lt_cv_sys_max_cmd_len ; then
4914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4915 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4916 else
4917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4918 $as_echo "none" >&6; }
4919 fi
4920 max_cmd_len=$lt_cv_sys_max_cmd_len
4921
4922
4923
4924
4925
4926
4927 : ${CP="cp -f"}
4928 : ${MV="mv -f"}
4929 : ${RM="rm -f"}
4930
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4932 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4933 # Try some XSI features
4934 xsi_shell=no
4935 ( _lt_dummy="a/b/c"
4936   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4937       = c,a/b,b/c, \
4938     && eval 'test $(( 1 + 1 )) -eq 2 \
4939     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4940   && xsi_shell=yes
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4942 $as_echo "$xsi_shell" >&6; }
4943
4944
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4946 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4947 lt_shell_append=no
4948 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4949     >/dev/null 2>&1 \
4950   && lt_shell_append=yes
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4952 $as_echo "$lt_shell_append" >&6; }
4953
4954
4955 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4956   lt_unset=unset
4957 else
4958   lt_unset=false
4959 fi
4960
4961
4962
4963
4964
4965 # test EBCDIC or ASCII
4966 case `echo X|tr X '\101'` in
4967  A) # ASCII based system
4968     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4969   lt_SP2NL='tr \040 \012'
4970   lt_NL2SP='tr \015\012 \040\040'
4971   ;;
4972  *) # EBCDIC based system
4973   lt_SP2NL='tr \100 \n'
4974   lt_NL2SP='tr \r\n \100\100'
4975   ;;
4976 esac
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4987 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4988 if ${lt_cv_to_host_file_cmd+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   case $host in
4992   *-*-mingw* )
4993     case $build in
4994       *-*-mingw* ) # actually msys
4995         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4996         ;;
4997       *-*-cygwin* )
4998         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4999         ;;
5000       * ) # otherwise, assume *nix
5001         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5002         ;;
5003     esac
5004     ;;
5005   *-*-cygwin* )
5006     case $build in
5007       *-*-mingw* ) # actually msys
5008         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5009         ;;
5010       *-*-cygwin* )
5011         lt_cv_to_host_file_cmd=func_convert_file_noop
5012         ;;
5013       * ) # otherwise, assume *nix
5014         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5015         ;;
5016     esac
5017     ;;
5018   * ) # unhandled hosts (and "normal" native builds)
5019     lt_cv_to_host_file_cmd=func_convert_file_noop
5020     ;;
5021 esac
5022
5023 fi
5024
5025 to_host_file_cmd=$lt_cv_to_host_file_cmd
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5027 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5028
5029
5030
5031
5032
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5034 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5035 if ${lt_cv_to_tool_file_cmd+:} false; then :
5036   $as_echo_n "(cached) " >&6
5037 else
5038   #assume ordinary cross tools, or native build.
5039 lt_cv_to_tool_file_cmd=func_convert_file_noop
5040 case $host in
5041   *-*-mingw* )
5042     case $build in
5043       *-*-mingw* ) # actually msys
5044         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5045         ;;
5046     esac
5047     ;;
5048 esac
5049
5050 fi
5051
5052 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5054 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5055
5056
5057
5058
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5061 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5062 if ${lt_cv_ld_reload_flag+:} false; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065   lt_cv_ld_reload_flag='-r'
5066 fi
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5068 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5069 reload_flag=$lt_cv_ld_reload_flag
5070 case $reload_flag in
5071 "" | " "*) ;;
5072 *) reload_flag=" $reload_flag" ;;
5073 esac
5074 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5075 case $host_os in
5076   cygwin* | mingw* | pw32* | cegcc*)
5077     if test "$GCC" != yes; then
5078       reload_cmds=false
5079     fi
5080     ;;
5081   darwin*)
5082     if test "$GCC" = yes; then
5083       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5084     else
5085       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5086     fi
5087     ;;
5088 esac
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098 if test -n "$ac_tool_prefix"; then
5099   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5100 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if ${ac_cv_prog_OBJDUMP+:} false; then :
5104   $as_echo_n "(cached) " >&6
5105 else
5106   if test -n "$OBJDUMP"; then
5107   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5111 do
5112   IFS=$as_save_IFS
5113   test -z "$as_dir" && as_dir=.
5114     for ac_exec_ext in '' $ac_executable_extensions; do
5115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118     break 2
5119   fi
5120 done
5121   done
5122 IFS=$as_save_IFS
5123
5124 fi
5125 fi
5126 OBJDUMP=$ac_cv_prog_OBJDUMP
5127 if test -n "$OBJDUMP"; then
5128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5129 $as_echo "$OBJDUMP" >&6; }
5130 else
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5133 fi
5134
5135
5136 fi
5137 if test -z "$ac_cv_prog_OBJDUMP"; then
5138   ac_ct_OBJDUMP=$OBJDUMP
5139   # Extract the first word of "objdump", so it can be a program name with args.
5140 set dummy objdump; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5144   $as_echo_n "(cached) " >&6
5145 else
5146   if test -n "$ac_ct_OBJDUMP"; then
5147   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152   IFS=$as_save_IFS
5153   test -z "$as_dir" && as_dir=.
5154     for ac_exec_ext in '' $ac_executable_extensions; do
5155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158     break 2
5159   fi
5160 done
5161   done
5162 IFS=$as_save_IFS
5163
5164 fi
5165 fi
5166 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5167 if test -n "$ac_ct_OBJDUMP"; then
5168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5169 $as_echo "$ac_ct_OBJDUMP" >&6; }
5170 else
5171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5173 fi
5174
5175   if test "x$ac_ct_OBJDUMP" = x; then
5176     OBJDUMP="false"
5177   else
5178     case $cross_compiling:$ac_tool_warned in
5179 yes:)
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5182 ac_tool_warned=yes ;;
5183 esac
5184     OBJDUMP=$ac_ct_OBJDUMP
5185   fi
5186 else
5187   OBJDUMP="$ac_cv_prog_OBJDUMP"
5188 fi
5189
5190 test -z "$OBJDUMP" && OBJDUMP=objdump
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5201 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5202 if ${lt_cv_deplibs_check_method+:} false; then :
5203   $as_echo_n "(cached) " >&6
5204 else
5205   lt_cv_file_magic_cmd='$MAGIC_CMD'
5206 lt_cv_file_magic_test_file=
5207 lt_cv_deplibs_check_method='unknown'
5208 # Need to set the preceding variable on all platforms that support
5209 # interlibrary dependencies.
5210 # 'none' -- dependencies not supported.
5211 # `unknown' -- same as none, but documents that we really don't know.
5212 # 'pass_all' -- all dependencies passed with no checks.
5213 # 'test_compile' -- check by making test program.
5214 # 'file_magic [[regex]]' -- check by looking for files in library path
5215 # which responds to the $file_magic_cmd with a given extended regex.
5216 # If you have `file' or equivalent on your system and you're not sure
5217 # whether `pass_all' will *always* work, you probably want this one.
5218
5219 case $host_os in
5220 aix[4-9]*)
5221   lt_cv_deplibs_check_method=pass_all
5222   ;;
5223
5224 beos*)
5225   lt_cv_deplibs_check_method=pass_all
5226   ;;
5227
5228 bsdi[45]*)
5229   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5230   lt_cv_file_magic_cmd='/usr/bin/file -L'
5231   lt_cv_file_magic_test_file=/shlib/libc.so
5232   ;;
5233
5234 cygwin*)
5235   # func_win32_libid is a shell function defined in ltmain.sh
5236   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5237   lt_cv_file_magic_cmd='func_win32_libid'
5238   ;;
5239
5240 mingw* | pw32*)
5241   # Base MSYS/MinGW do not provide the 'file' command needed by
5242   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5243   # unless we find 'file', for example because we are cross-compiling.
5244   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5245   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5246     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5247     lt_cv_file_magic_cmd='func_win32_libid'
5248   else
5249     # Keep this pattern in sync with the one in func_win32_libid.
5250     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5251     lt_cv_file_magic_cmd='$OBJDUMP -f'
5252   fi
5253   ;;
5254
5255 cegcc*)
5256   # use the weaker test based on 'objdump'. See mingw*.
5257   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5258   lt_cv_file_magic_cmd='$OBJDUMP -f'
5259   ;;
5260
5261 darwin* | rhapsody*)
5262   lt_cv_deplibs_check_method=pass_all
5263   ;;
5264
5265 freebsd* | dragonfly*)
5266   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5267     case $host_cpu in
5268     i*86 )
5269       # Not sure whether the presence of OpenBSD here was a mistake.
5270       # Let's accept both of them until this is cleared up.
5271       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5272       lt_cv_file_magic_cmd=/usr/bin/file
5273       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5274       ;;
5275     esac
5276   else
5277     lt_cv_deplibs_check_method=pass_all
5278   fi
5279   ;;
5280
5281 gnu*)
5282   lt_cv_deplibs_check_method=pass_all
5283   ;;
5284
5285 haiku*)
5286   lt_cv_deplibs_check_method=pass_all
5287   ;;
5288
5289 hpux10.20* | hpux11*)
5290   lt_cv_file_magic_cmd=/usr/bin/file
5291   case $host_cpu in
5292   ia64*)
5293     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5294     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5295     ;;
5296   hppa*64*)
5297     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5298     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5299     ;;
5300   *)
5301     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5302     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5303     ;;
5304   esac
5305   ;;
5306
5307 interix[3-9]*)
5308   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5309   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5310   ;;
5311
5312 irix5* | irix6* | nonstopux*)
5313   case $LD in
5314   *-32|*"-32 ") libmagic=32-bit;;
5315   *-n32|*"-n32 ") libmagic=N32;;
5316   *-64|*"-64 ") libmagic=64-bit;;
5317   *) libmagic=never-match;;
5318   esac
5319   lt_cv_deplibs_check_method=pass_all
5320   ;;
5321
5322 # This must be glibc/ELF.
5323 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5324   lt_cv_deplibs_check_method=pass_all
5325   ;;
5326
5327 netbsd*)
5328   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5329     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5330   else
5331     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5332   fi
5333   ;;
5334
5335 newos6*)
5336   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5337   lt_cv_file_magic_cmd=/usr/bin/file
5338   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5339   ;;
5340
5341 *nto* | *qnx*)
5342   lt_cv_deplibs_check_method=pass_all
5343   ;;
5344
5345 openbsd*)
5346   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5347     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5348   else
5349     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5350   fi
5351   ;;
5352
5353 osf3* | osf4* | osf5*)
5354   lt_cv_deplibs_check_method=pass_all
5355   ;;
5356
5357 rdos*)
5358   lt_cv_deplibs_check_method=pass_all
5359   ;;
5360
5361 solaris*)
5362   lt_cv_deplibs_check_method=pass_all
5363   ;;
5364
5365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5366   lt_cv_deplibs_check_method=pass_all
5367   ;;
5368
5369 sysv4 | sysv4.3*)
5370   case $host_vendor in
5371   motorola)
5372     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]'
5373     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5374     ;;
5375   ncr)
5376     lt_cv_deplibs_check_method=pass_all
5377     ;;
5378   sequent)
5379     lt_cv_file_magic_cmd='/bin/file'
5380     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5381     ;;
5382   sni)
5383     lt_cv_file_magic_cmd='/bin/file'
5384     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5385     lt_cv_file_magic_test_file=/lib/libc.so
5386     ;;
5387   siemens)
5388     lt_cv_deplibs_check_method=pass_all
5389     ;;
5390   pc)
5391     lt_cv_deplibs_check_method=pass_all
5392     ;;
5393   esac
5394   ;;
5395
5396 tpf*)
5397   lt_cv_deplibs_check_method=pass_all
5398   ;;
5399 esac
5400
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5403 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5404
5405 file_magic_glob=
5406 want_nocaseglob=no
5407 if test "$build" = "$host"; then
5408   case $host_os in
5409   mingw* | pw32*)
5410     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5411       want_nocaseglob=yes
5412     else
5413       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5414     fi
5415     ;;
5416   esac
5417 fi
5418
5419 file_magic_cmd=$lt_cv_file_magic_cmd
5420 deplibs_check_method=$lt_cv_deplibs_check_method
5421 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444 if test -n "$ac_tool_prefix"; then
5445   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5446 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if ${ac_cv_prog_DLLTOOL+:} false; then :
5450   $as_echo_n "(cached) " >&6
5451 else
5452   if test -n "$DLLTOOL"; then
5453   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458   IFS=$as_save_IFS
5459   test -z "$as_dir" && as_dir=.
5460     for ac_exec_ext in '' $ac_executable_extensions; do
5461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464     break 2
5465   fi
5466 done
5467   done
5468 IFS=$as_save_IFS
5469
5470 fi
5471 fi
5472 DLLTOOL=$ac_cv_prog_DLLTOOL
5473 if test -n "$DLLTOOL"; then
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5475 $as_echo "$DLLTOOL" >&6; }
5476 else
5477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 fi
5480
5481
5482 fi
5483 if test -z "$ac_cv_prog_DLLTOOL"; then
5484   ac_ct_DLLTOOL=$DLLTOOL
5485   # Extract the first word of "dlltool", so it can be a program name with args.
5486 set dummy dlltool; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5490   $as_echo_n "(cached) " >&6
5491 else
5492   if test -n "$ac_ct_DLLTOOL"; then
5493   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5494 else
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498   IFS=$as_save_IFS
5499   test -z "$as_dir" && as_dir=.
5500     for ac_exec_ext in '' $ac_executable_extensions; do
5501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504     break 2
5505   fi
5506 done
5507   done
5508 IFS=$as_save_IFS
5509
5510 fi
5511 fi
5512 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5513 if test -n "$ac_ct_DLLTOOL"; then
5514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5515 $as_echo "$ac_ct_DLLTOOL" >&6; }
5516 else
5517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 fi
5520
5521   if test "x$ac_ct_DLLTOOL" = x; then
5522     DLLTOOL="false"
5523   else
5524     case $cross_compiling:$ac_tool_warned in
5525 yes:)
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5528 ac_tool_warned=yes ;;
5529 esac
5530     DLLTOOL=$ac_ct_DLLTOOL
5531   fi
5532 else
5533   DLLTOOL="$ac_cv_prog_DLLTOOL"
5534 fi
5535
5536 test -z "$DLLTOOL" && DLLTOOL=dlltool
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5548 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5549 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5550   $as_echo_n "(cached) " >&6
5551 else
5552   lt_cv_sharedlib_from_linklib_cmd='unknown'
5553
5554 case $host_os in
5555 cygwin* | mingw* | pw32* | cegcc*)
5556   # two different shell functions defined in ltmain.sh
5557   # decide which to use based on capabilities of $DLLTOOL
5558   case `$DLLTOOL --help 2>&1` in
5559   *--identify-strict*)
5560     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5561     ;;
5562   *)
5563     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5564     ;;
5565   esac
5566   ;;
5567 *)
5568   # fallback: assume linklib IS sharedlib
5569   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5570   ;;
5571 esac
5572
5573 fi
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5575 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5576 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5577 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5578
5579
5580
5581
5582
5583
5584
5585
5586 if test -n "$ac_tool_prefix"; then
5587   for ac_prog in ar
5588   do
5589     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_prog_AR+:} false; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   if test -n "$AR"; then
5597   ac_cv_prog_AR="$AR" # Let the user override the test.
5598 else
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602   IFS=$as_save_IFS
5603   test -z "$as_dir" && as_dir=.
5604     for ac_exec_ext in '' $ac_executable_extensions; do
5605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5606     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608     break 2
5609   fi
5610 done
5611   done
5612 IFS=$as_save_IFS
5613
5614 fi
5615 fi
5616 AR=$ac_cv_prog_AR
5617 if test -n "$AR"; then
5618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5619 $as_echo "$AR" >&6; }
5620 else
5621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5623 fi
5624
5625
5626     test -n "$AR" && break
5627   done
5628 fi
5629 if test -z "$AR"; then
5630   ac_ct_AR=$AR
5631   for ac_prog in ar
5632 do
5633   # Extract the first word of "$ac_prog", so it can be a program name with args.
5634 set dummy $ac_prog; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5638   $as_echo_n "(cached) " >&6
5639 else
5640   if test -n "$ac_ct_AR"; then
5641   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646   IFS=$as_save_IFS
5647   test -z "$as_dir" && as_dir=.
5648     for ac_exec_ext in '' $ac_executable_extensions; do
5649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650     ac_cv_prog_ac_ct_AR="$ac_prog"
5651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652     break 2
5653   fi
5654 done
5655   done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5661 if test -n "$ac_ct_AR"; then
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5663 $as_echo "$ac_ct_AR" >&6; }
5664 else
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670   test -n "$ac_ct_AR" && break
5671 done
5672
5673   if test "x$ac_ct_AR" = x; then
5674     AR="false"
5675   else
5676     case $cross_compiling:$ac_tool_warned in
5677 yes:)
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5680 ac_tool_warned=yes ;;
5681 esac
5682     AR=$ac_ct_AR
5683   fi
5684 fi
5685
5686 : ${AR=ar}
5687 : ${AR_FLAGS=cru}
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5700 $as_echo_n "checking for archiver @FILE support... " >&6; }
5701 if ${lt_cv_ar_at_file+:} false; then :
5702   $as_echo_n "(cached) " >&6
5703 else
5704   lt_cv_ar_at_file=no
5705    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h.  */
5707
5708 int
5709 main ()
5710 {
5711
5712   ;
5713   return 0;
5714 }
5715 _ACEOF
5716 if ac_fn_c_try_compile "$LINENO"; then :
5717   echo conftest.$ac_objext > conftest.lst
5718       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5719       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5720   (eval $lt_ar_try) 2>&5
5721   ac_status=$?
5722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723   test $ac_status = 0; }
5724       if test "$ac_status" -eq 0; then
5725         # Ensure the archiver fails upon bogus file names.
5726         rm -f conftest.$ac_objext libconftest.a
5727         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5728   (eval $lt_ar_try) 2>&5
5729   ac_status=$?
5730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731   test $ac_status = 0; }
5732         if test "$ac_status" -ne 0; then
5733           lt_cv_ar_at_file=@
5734         fi
5735       fi
5736       rm -f conftest.* libconftest.a
5737
5738 fi
5739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740
5741 fi
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5743 $as_echo "$lt_cv_ar_at_file" >&6; }
5744
5745 if test "x$lt_cv_ar_at_file" = xno; then
5746   archiver_list_spec=
5747 else
5748   archiver_list_spec=$lt_cv_ar_at_file
5749 fi
5750
5751
5752
5753
5754
5755
5756
5757 if test -n "$ac_tool_prefix"; then
5758   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5759 set dummy ${ac_tool_prefix}strip; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if ${ac_cv_prog_STRIP+:} false; then :
5763   $as_echo_n "(cached) " >&6
5764 else
5765   if test -n "$STRIP"; then
5766   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771   IFS=$as_save_IFS
5772   test -z "$as_dir" && as_dir=.
5773     for ac_exec_ext in '' $ac_executable_extensions; do
5774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777     break 2
5778   fi
5779 done
5780   done
5781 IFS=$as_save_IFS
5782
5783 fi
5784 fi
5785 STRIP=$ac_cv_prog_STRIP
5786 if test -n "$STRIP"; then
5787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5788 $as_echo "$STRIP" >&6; }
5789 else
5790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5792 fi
5793
5794
5795 fi
5796 if test -z "$ac_cv_prog_STRIP"; then
5797   ac_ct_STRIP=$STRIP
5798   # Extract the first word of "strip", so it can be a program name with args.
5799 set dummy strip; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5803   $as_echo_n "(cached) " >&6
5804 else
5805   if test -n "$ac_ct_STRIP"; then
5806   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811   IFS=$as_save_IFS
5812   test -z "$as_dir" && as_dir=.
5813     for ac_exec_ext in '' $ac_executable_extensions; do
5814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815     ac_cv_prog_ac_ct_STRIP="strip"
5816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817     break 2
5818   fi
5819 done
5820   done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5826 if test -n "$ac_ct_STRIP"; then
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5828 $as_echo "$ac_ct_STRIP" >&6; }
5829 else
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834   if test "x$ac_ct_STRIP" = x; then
5835     STRIP=":"
5836   else
5837     case $cross_compiling:$ac_tool_warned in
5838 yes:)
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5841 ac_tool_warned=yes ;;
5842 esac
5843     STRIP=$ac_ct_STRIP
5844   fi
5845 else
5846   STRIP="$ac_cv_prog_STRIP"
5847 fi
5848
5849 test -z "$STRIP" && STRIP=:
5850
5851
5852
5853
5854
5855
5856 if test -n "$ac_tool_prefix"; then
5857   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5858 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if ${ac_cv_prog_RANLIB+:} false; then :
5862   $as_echo_n "(cached) " >&6
5863 else
5864   if test -n "$RANLIB"; then
5865   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5866 else
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5869 do
5870   IFS=$as_save_IFS
5871   test -z "$as_dir" && as_dir=.
5872     for ac_exec_ext in '' $ac_executable_extensions; do
5873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876     break 2
5877   fi
5878 done
5879   done
5880 IFS=$as_save_IFS
5881
5882 fi
5883 fi
5884 RANLIB=$ac_cv_prog_RANLIB
5885 if test -n "$RANLIB"; then
5886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5887 $as_echo "$RANLIB" >&6; }
5888 else
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5891 fi
5892
5893
5894 fi
5895 if test -z "$ac_cv_prog_RANLIB"; then
5896   ac_ct_RANLIB=$RANLIB
5897   # Extract the first word of "ranlib", so it can be a program name with args.
5898 set dummy ranlib; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5902   $as_echo_n "(cached) " >&6
5903 else
5904   if test -n "$ac_ct_RANLIB"; then
5905   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910   IFS=$as_save_IFS
5911   test -z "$as_dir" && as_dir=.
5912     for ac_exec_ext in '' $ac_executable_extensions; do
5913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914     ac_cv_prog_ac_ct_RANLIB="ranlib"
5915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916     break 2
5917   fi
5918 done
5919   done
5920 IFS=$as_save_IFS
5921
5922 fi
5923 fi
5924 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5925 if test -n "$ac_ct_RANLIB"; then
5926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5927 $as_echo "$ac_ct_RANLIB" >&6; }
5928 else
5929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5931 fi
5932
5933   if test "x$ac_ct_RANLIB" = x; then
5934     RANLIB=":"
5935   else
5936     case $cross_compiling:$ac_tool_warned in
5937 yes:)
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940 ac_tool_warned=yes ;;
5941 esac
5942     RANLIB=$ac_ct_RANLIB
5943   fi
5944 else
5945   RANLIB="$ac_cv_prog_RANLIB"
5946 fi
5947
5948 test -z "$RANLIB" && RANLIB=:
5949
5950
5951
5952
5953
5954
5955 # Determine commands to create old-style static archives.
5956 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5957 old_postinstall_cmds='chmod 644 $oldlib'
5958 old_postuninstall_cmds=
5959
5960 if test -n "$RANLIB"; then
5961   case $host_os in
5962   openbsd*)
5963     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5964     ;;
5965   *)
5966     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5967     ;;
5968   esac
5969   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5970 fi
5971
5972 case $host_os in
5973   darwin*)
5974     lock_old_archive_extraction=yes ;;
5975   *)
5976     lock_old_archive_extraction=no ;;
5977 esac
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017 # If no C compiler was specified, use CC.
6018 LTCC=${LTCC-"$CC"}
6019
6020 # If no C compiler flags were specified, use CFLAGS.
6021 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6022
6023 # Allow CC to be a program name with arguments.
6024 compiler=$CC
6025
6026
6027 # Check for command to grab the raw symbol name followed by C symbol from nm.
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6029 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6030 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6031   $as_echo_n "(cached) " >&6
6032 else
6033
6034 # These are sane defaults that work on at least a few old systems.
6035 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6036
6037 # Character class describing NM global symbol codes.
6038 symcode='[BCDEGRST]'
6039
6040 # Regexp to match symbols that can be accessed directly from C.
6041 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6042
6043 # Define system-specific variables.
6044 case $host_os in
6045 aix*)
6046   symcode='[BCDT]'
6047   ;;
6048 cygwin* | mingw* | pw32* | cegcc*)
6049   symcode='[ABCDGISTW]'
6050   ;;
6051 hpux*)
6052   if test "$host_cpu" = ia64; then
6053     symcode='[ABCDEGRST]'
6054   fi
6055   ;;
6056 irix* | nonstopux*)
6057   symcode='[BCDEGRST]'
6058   ;;
6059 osf*)
6060   symcode='[BCDEGQRST]'
6061   ;;
6062 solaris*)
6063   symcode='[BDRT]'
6064   ;;
6065 sco3.2v5*)
6066   symcode='[DT]'
6067   ;;
6068 sysv4.2uw2*)
6069   symcode='[DT]'
6070   ;;
6071 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6072   symcode='[ABDT]'
6073   ;;
6074 sysv4)
6075   symcode='[DFNSTU]'
6076   ;;
6077 esac
6078
6079 # If we're using GNU nm, then use its standard symbol codes.
6080 case `$NM -V 2>&1` in
6081 *GNU* | *'with BFD'*)
6082   symcode='[ABCDGIRSTW]' ;;
6083 esac
6084
6085 # Transform an extracted symbol line into a proper C declaration.
6086 # Some systems (esp. on ia64) link data and code symbols differently,
6087 # so use this general approach.
6088 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6089
6090 # Transform an extracted symbol line into symbol name and symbol address
6091 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6092 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'"
6093
6094 # Handle CRLF in mingw tool chain
6095 opt_cr=
6096 case $build_os in
6097 mingw*)
6098   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6099   ;;
6100 esac
6101
6102 # Try without a prefix underscore, then with it.
6103 for ac_symprfx in "" "_"; do
6104
6105   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6106   symxfrm="\\1 $ac_symprfx\\2 \\2"
6107
6108   # Write the raw and C identifiers.
6109   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6110     # Fake it for dumpbin and say T for any non-static function
6111     # and D for any global variable.
6112     # Also find C++ and __fastcall symbols from MSVC++,
6113     # which start with @ or ?.
6114     lt_cv_sys_global_symbol_pipe="$AWK '"\
6115 "     {last_section=section; section=\$ 3};"\
6116 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6117 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6118 "     \$ 0!~/External *\|/{next};"\
6119 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6120 "     {if(hide[section]) next};"\
6121 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6122 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6123 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6124 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6125 "     ' prfx=^$ac_symprfx"
6126   else
6127     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6128   fi
6129   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6130
6131   # Check to see that the pipe works correctly.
6132   pipe_works=no
6133
6134   rm -f conftest*
6135   cat > conftest.$ac_ext <<_LT_EOF
6136 #ifdef __cplusplus
6137 extern "C" {
6138 #endif
6139 char nm_test_var;
6140 void nm_test_func(void);
6141 void nm_test_func(void){}
6142 #ifdef __cplusplus
6143 }
6144 #endif
6145 int main(){nm_test_var='a';nm_test_func();return(0);}
6146 _LT_EOF
6147
6148   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6149   (eval $ac_compile) 2>&5
6150   ac_status=$?
6151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6152   test $ac_status = 0; }; then
6153     # Now try to grab the symbols.
6154     nlist=conftest.nm
6155     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6156   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6157   ac_status=$?
6158   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6159   test $ac_status = 0; } && test -s "$nlist"; then
6160       # Try sorting and uniquifying the output.
6161       if sort "$nlist" | uniq > "$nlist"T; then
6162         mv -f "$nlist"T "$nlist"
6163       else
6164         rm -f "$nlist"T
6165       fi
6166
6167       # Make sure that we snagged all the symbols we need.
6168       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6169         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6170           cat <<_LT_EOF > conftest.$ac_ext
6171 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6172 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6173 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6174    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6175 # define LT_DLSYM_CONST
6176 #elif defined(__osf__)
6177 /* This system does not cope well with relocations in const data.  */
6178 # define LT_DLSYM_CONST
6179 #else
6180 # define LT_DLSYM_CONST const
6181 #endif
6182
6183 #ifdef __cplusplus
6184 extern "C" {
6185 #endif
6186
6187 _LT_EOF
6188           # Now generate the symbol file.
6189           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6190
6191           cat <<_LT_EOF >> conftest.$ac_ext
6192
6193 /* The mapping between symbol names and symbols.  */
6194 LT_DLSYM_CONST struct {
6195   const char *name;
6196   void       *address;
6197 }
6198 lt__PROGRAM__LTX_preloaded_symbols[] =
6199 {
6200   { "@PROGRAM@", (void *) 0 },
6201 _LT_EOF
6202           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6203           cat <<\_LT_EOF >> conftest.$ac_ext
6204   {0, (void *) 0}
6205 };
6206
6207 /* This works around a problem in FreeBSD linker */
6208 #ifdef FREEBSD_WORKAROUND
6209 static const void *lt_preloaded_setup() {
6210   return lt__PROGRAM__LTX_preloaded_symbols;
6211 }
6212 #endif
6213
6214 #ifdef __cplusplus
6215 }
6216 #endif
6217 _LT_EOF
6218           # Now try linking the two files.
6219           mv conftest.$ac_objext conftstm.$ac_objext
6220           lt_globsym_save_LIBS=$LIBS
6221           lt_globsym_save_CFLAGS=$CFLAGS
6222           LIBS="conftstm.$ac_objext"
6223           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6224           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6225   (eval $ac_link) 2>&5
6226   ac_status=$?
6227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6228   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6229             pipe_works=yes
6230           fi
6231           LIBS=$lt_globsym_save_LIBS
6232           CFLAGS=$lt_globsym_save_CFLAGS
6233         else
6234           echo "cannot find nm_test_func in $nlist" >&5
6235         fi
6236       else
6237         echo "cannot find nm_test_var in $nlist" >&5
6238       fi
6239     else
6240       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6241     fi
6242   else
6243     echo "$progname: failed program was:" >&5
6244     cat conftest.$ac_ext >&5
6245   fi
6246   rm -rf conftest* conftst*
6247
6248   # Do not use the global_symbol_pipe unless it works.
6249   if test "$pipe_works" = yes; then
6250     break
6251   else
6252     lt_cv_sys_global_symbol_pipe=
6253   fi
6254 done
6255
6256 fi
6257
6258 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6259   lt_cv_sys_global_symbol_to_cdecl=
6260 fi
6261 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6263 $as_echo "failed" >&6; }
6264 else
6265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6266 $as_echo "ok" >&6; }
6267 fi
6268
6269 # Response file support.
6270 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6271   nm_file_list_spec='@'
6272 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6273   nm_file_list_spec='@'
6274 fi
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6303 $as_echo_n "checking for sysroot... " >&6; }
6304
6305 # Check whether --with-sysroot was given.
6306 if test "${with_sysroot+set}" = set; then :
6307   withval=$with_sysroot;
6308 else
6309   with_sysroot=no
6310 fi
6311
6312
6313 lt_sysroot=
6314 case ${with_sysroot} in #(
6315  yes)
6316    if test "$GCC" = yes; then
6317      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6318    fi
6319    ;; #(
6320  /*)
6321    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6322    ;; #(
6323  no|'')
6324    ;; #(
6325  *)
6326    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6327 $as_echo "${with_sysroot}" >&6; }
6328    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6329    ;;
6330 esac
6331
6332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6333 $as_echo "${lt_sysroot:-no}" >&6; }
6334
6335
6336
6337
6338
6339 # Check whether --enable-libtool-lock was given.
6340 if test "${enable_libtool_lock+set}" = set; then :
6341   enableval=$enable_libtool_lock;
6342 fi
6343
6344 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6345
6346 # Some flags need to be propagated to the compiler or linker for good
6347 # libtool support.
6348 case $host in
6349 ia64-*-hpux*)
6350   # Find out which ABI we are using.
6351   echo 'int i;' > conftest.$ac_ext
6352   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6353   (eval $ac_compile) 2>&5
6354   ac_status=$?
6355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6356   test $ac_status = 0; }; then
6357     case `/usr/bin/file conftest.$ac_objext` in
6358       *ELF-32*)
6359         HPUX_IA64_MODE="32"
6360         ;;
6361       *ELF-64*)
6362         HPUX_IA64_MODE="64"
6363         ;;
6364     esac
6365   fi
6366   rm -rf conftest*
6367   ;;
6368 *-*-irix6*)
6369   # Find out which ABI we are using.
6370   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6371   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6372   (eval $ac_compile) 2>&5
6373   ac_status=$?
6374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375   test $ac_status = 0; }; then
6376     if test "$lt_cv_prog_gnu_ld" = yes; then
6377       case `/usr/bin/file conftest.$ac_objext` in
6378         *32-bit*)
6379           LD="${LD-ld} -melf32bsmip"
6380           ;;
6381         *N32*)
6382           LD="${LD-ld} -melf32bmipn32"
6383           ;;
6384         *64-bit*)
6385           LD="${LD-ld} -melf64bmip"
6386         ;;
6387       esac
6388     else
6389       case `/usr/bin/file conftest.$ac_objext` in
6390         *32-bit*)
6391           LD="${LD-ld} -32"
6392           ;;
6393         *N32*)
6394           LD="${LD-ld} -n32"
6395           ;;
6396         *64-bit*)
6397           LD="${LD-ld} -64"
6398           ;;
6399       esac
6400     fi
6401   fi
6402   rm -rf conftest*
6403   ;;
6404
6405 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6406 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6407   # Find out which ABI we are using.
6408   echo 'int i;' > conftest.$ac_ext
6409   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6410   (eval $ac_compile) 2>&5
6411   ac_status=$?
6412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6413   test $ac_status = 0; }; then
6414     case `/usr/bin/file conftest.o` in
6415       *32-bit*)
6416         case $host in
6417           x86_64-*kfreebsd*-gnu)
6418             LD="${LD-ld} -m elf_i386_fbsd"
6419             ;;
6420           x86_64-*linux*)
6421             LD="${LD-ld} -m elf_i386"
6422             ;;
6423           ppc64-*linux*|powerpc64-*linux*)
6424             LD="${LD-ld} -m elf32ppclinux"
6425             ;;
6426           s390x-*linux*)
6427             LD="${LD-ld} -m elf_s390"
6428             ;;
6429           sparc64-*linux*)
6430             LD="${LD-ld} -m elf32_sparc"
6431             ;;
6432         esac
6433         ;;
6434       *64-bit*)
6435         case $host in
6436           x86_64-*kfreebsd*-gnu)
6437             LD="${LD-ld} -m elf_x86_64_fbsd"
6438             ;;
6439           x86_64-*linux*)
6440             LD="${LD-ld} -m elf_x86_64"
6441             ;;
6442           ppc*-*linux*|powerpc*-*linux*)
6443             LD="${LD-ld} -m elf64ppc"
6444             ;;
6445           s390*-*linux*|s390*-*tpf*)
6446             LD="${LD-ld} -m elf64_s390"
6447             ;;
6448           sparc*-*linux*)
6449             LD="${LD-ld} -m elf64_sparc"
6450             ;;
6451         esac
6452         ;;
6453     esac
6454   fi
6455   rm -rf conftest*
6456   ;;
6457
6458 *-*-sco3.2v5*)
6459   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6460   SAVE_CFLAGS="$CFLAGS"
6461   CFLAGS="$CFLAGS -belf"
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6463 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6464 if ${lt_cv_cc_needs_belf+:} false; then :
6465   $as_echo_n "(cached) " >&6
6466 else
6467   ac_ext=c
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6472
6473      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h.  */
6475
6476 int
6477 main ()
6478 {
6479
6480   ;
6481   return 0;
6482 }
6483 _ACEOF
6484 if ac_fn_c_try_link "$LINENO"; then :
6485   lt_cv_cc_needs_belf=yes
6486 else
6487   lt_cv_cc_needs_belf=no
6488 fi
6489 rm -f core conftest.err conftest.$ac_objext \
6490     conftest$ac_exeext conftest.$ac_ext
6491      ac_ext=c
6492 ac_cpp='$CPP $CPPFLAGS'
6493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6496
6497 fi
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6499 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6500   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6501     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6502     CFLAGS="$SAVE_CFLAGS"
6503   fi
6504   ;;
6505 *-*solaris*)
6506   # Find out which ABI we are using.
6507   echo 'int i;' > conftest.$ac_ext
6508   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6509   (eval $ac_compile) 2>&5
6510   ac_status=$?
6511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512   test $ac_status = 0; }; then
6513     case `/usr/bin/file conftest.o` in
6514     *64-bit*)
6515       case $lt_cv_prog_gnu_ld in
6516       yes*)
6517         case $host in
6518         i?86-*-solaris*)
6519           LD="${LD-ld} -m elf_x86_64"
6520           ;;
6521         sparc*-*-solaris*)
6522           LD="${LD-ld} -m elf64_sparc"
6523           ;;
6524         esac
6525         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6526         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6527           LD="${LD-ld}_sol2"
6528         fi
6529         ;;
6530       *)
6531         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6532           LD="${LD-ld} -64"
6533         fi
6534         ;;
6535       esac
6536       ;;
6537     esac
6538   fi
6539   rm -rf conftest*
6540   ;;
6541 esac
6542
6543 need_locks="$enable_libtool_lock"
6544
6545 if test -n "$ac_tool_prefix"; then
6546   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}mt; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6551   $as_echo_n "(cached) " >&6
6552 else
6553   if test -n "$MANIFEST_TOOL"; then
6554   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559   IFS=$as_save_IFS
6560   test -z "$as_dir" && as_dir=.
6561     for ac_exec_ext in '' $ac_executable_extensions; do
6562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565     break 2
6566   fi
6567 done
6568   done
6569 IFS=$as_save_IFS
6570
6571 fi
6572 fi
6573 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6574 if test -n "$MANIFEST_TOOL"; then
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6576 $as_echo "$MANIFEST_TOOL" >&6; }
6577 else
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6580 fi
6581
6582
6583 fi
6584 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6585   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6586   # Extract the first word of "mt", so it can be a program name with args.
6587 set dummy mt; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6591   $as_echo_n "(cached) " >&6
6592 else
6593   if test -n "$ac_ct_MANIFEST_TOOL"; then
6594   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599   IFS=$as_save_IFS
6600   test -z "$as_dir" && as_dir=.
6601     for ac_exec_ext in '' $ac_executable_extensions; do
6602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605     break 2
6606   fi
6607 done
6608   done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6614 if test -n "$ac_ct_MANIFEST_TOOL"; then
6615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6616 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6617 else
6618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 fi
6621
6622   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6623     MANIFEST_TOOL=":"
6624   else
6625     case $cross_compiling:$ac_tool_warned in
6626 yes:)
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6630 esac
6631     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6632   fi
6633 else
6634   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6635 fi
6636
6637 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6639 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6640 if ${lt_cv_path_mainfest_tool+:} false; then :
6641   $as_echo_n "(cached) " >&6
6642 else
6643   lt_cv_path_mainfest_tool=no
6644   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6645   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6646   cat conftest.err >&5
6647   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6648     lt_cv_path_mainfest_tool=yes
6649   fi
6650   rm -f conftest*
6651 fi
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6653 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6654 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6655   MANIFEST_TOOL=:
6656 fi
6657
6658
6659
6660
6661
6662
6663   case $host_os in
6664     rhapsody* | darwin*)
6665     if test -n "$ac_tool_prefix"; then
6666   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6667 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6671   $as_echo_n "(cached) " >&6
6672 else
6673   if test -n "$DSYMUTIL"; then
6674   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681     for ac_exec_ext in '' $ac_executable_extensions; do
6682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685     break 2
6686   fi
6687 done
6688   done
6689 IFS=$as_save_IFS
6690
6691 fi
6692 fi
6693 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6694 if test -n "$DSYMUTIL"; then
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6696 $as_echo "$DSYMUTIL" >&6; }
6697 else
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6700 fi
6701
6702
6703 fi
6704 if test -z "$ac_cv_prog_DSYMUTIL"; then
6705   ac_ct_DSYMUTIL=$DSYMUTIL
6706   # Extract the first word of "dsymutil", so it can be a program name with args.
6707 set dummy dsymutil; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   if test -n "$ac_ct_DSYMUTIL"; then
6714   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721     for ac_exec_ext in '' $ac_executable_extensions; do
6722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728   done
6729 IFS=$as_save_IFS
6730
6731 fi
6732 fi
6733 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6734 if test -n "$ac_ct_DSYMUTIL"; then
6735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6736 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6737 else
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6740 fi
6741
6742   if test "x$ac_ct_DSYMUTIL" = x; then
6743     DSYMUTIL=":"
6744   else
6745     case $cross_compiling:$ac_tool_warned in
6746 yes:)
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6749 ac_tool_warned=yes ;;
6750 esac
6751     DSYMUTIL=$ac_ct_DSYMUTIL
6752   fi
6753 else
6754   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6755 fi
6756
6757     if test -n "$ac_tool_prefix"; then
6758   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_NMEDIT+:} false; then :
6763   $as_echo_n "(cached) " >&6
6764 else
6765   if test -n "$NMEDIT"; then
6766   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773     for ac_exec_ext in '' $ac_executable_extensions; do
6774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780   done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 NMEDIT=$ac_cv_prog_NMEDIT
6786 if test -n "$NMEDIT"; then
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6788 $as_echo "$NMEDIT" >&6; }
6789 else
6790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792 fi
6793
6794
6795 fi
6796 if test -z "$ac_cv_prog_NMEDIT"; then
6797   ac_ct_NMEDIT=$NMEDIT
6798   # Extract the first word of "nmedit", so it can be a program name with args.
6799 set dummy nmedit; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   if test -n "$ac_ct_NMEDIT"; then
6806   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811   IFS=$as_save_IFS
6812   test -z "$as_dir" && as_dir=.
6813     for ac_exec_ext in '' $ac_executable_extensions; do
6814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817     break 2
6818   fi
6819 done
6820   done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6826 if test -n "$ac_ct_NMEDIT"; then
6827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6828 $as_echo "$ac_ct_NMEDIT" >&6; }
6829 else
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834   if test "x$ac_ct_NMEDIT" = x; then
6835     NMEDIT=":"
6836   else
6837     case $cross_compiling:$ac_tool_warned in
6838 yes:)
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6842 esac
6843     NMEDIT=$ac_ct_NMEDIT
6844   fi
6845 else
6846   NMEDIT="$ac_cv_prog_NMEDIT"
6847 fi
6848
6849     if test -n "$ac_tool_prefix"; then
6850   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6851 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if ${ac_cv_prog_LIPO+:} false; then :
6855   $as_echo_n "(cached) " >&6
6856 else
6857   if test -n "$LIPO"; then
6858   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863   IFS=$as_save_IFS
6864   test -z "$as_dir" && as_dir=.
6865     for ac_exec_ext in '' $ac_executable_extensions; do
6866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6867     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869     break 2
6870   fi
6871 done
6872   done
6873 IFS=$as_save_IFS
6874
6875 fi
6876 fi
6877 LIPO=$ac_cv_prog_LIPO
6878 if test -n "$LIPO"; then
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6880 $as_echo "$LIPO" >&6; }
6881 else
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6884 fi
6885
6886
6887 fi
6888 if test -z "$ac_cv_prog_LIPO"; then
6889   ac_ct_LIPO=$LIPO
6890   # Extract the first word of "lipo", so it can be a program name with args.
6891 set dummy lipo; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6895   $as_echo_n "(cached) " >&6
6896 else
6897   if test -n "$ac_ct_LIPO"; then
6898   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903   IFS=$as_save_IFS
6904   test -z "$as_dir" && as_dir=.
6905     for ac_exec_ext in '' $ac_executable_extensions; do
6906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6907     ac_cv_prog_ac_ct_LIPO="lipo"
6908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909     break 2
6910   fi
6911 done
6912   done
6913 IFS=$as_save_IFS
6914
6915 fi
6916 fi
6917 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6918 if test -n "$ac_ct_LIPO"; then
6919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6920 $as_echo "$ac_ct_LIPO" >&6; }
6921 else
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6924 fi
6925
6926   if test "x$ac_ct_LIPO" = x; then
6927     LIPO=":"
6928   else
6929     case $cross_compiling:$ac_tool_warned in
6930 yes:)
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6933 ac_tool_warned=yes ;;
6934 esac
6935     LIPO=$ac_ct_LIPO
6936   fi
6937 else
6938   LIPO="$ac_cv_prog_LIPO"
6939 fi
6940
6941     if test -n "$ac_tool_prefix"; then
6942   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6943 set dummy ${ac_tool_prefix}otool; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if ${ac_cv_prog_OTOOL+:} false; then :
6947   $as_echo_n "(cached) " >&6
6948 else
6949   if test -n "$OTOOL"; then
6950   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955   IFS=$as_save_IFS
6956   test -z "$as_dir" && as_dir=.
6957     for ac_exec_ext in '' $ac_executable_extensions; do
6958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961     break 2
6962   fi
6963 done
6964   done
6965 IFS=$as_save_IFS
6966
6967 fi
6968 fi
6969 OTOOL=$ac_cv_prog_OTOOL
6970 if test -n "$OTOOL"; then
6971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6972 $as_echo "$OTOOL" >&6; }
6973 else
6974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6976 fi
6977
6978
6979 fi
6980 if test -z "$ac_cv_prog_OTOOL"; then
6981   ac_ct_OTOOL=$OTOOL
6982   # Extract the first word of "otool", so it can be a program name with args.
6983 set dummy otool; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6987   $as_echo_n "(cached) " >&6
6988 else
6989   if test -n "$ac_ct_OTOOL"; then
6990   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997     for ac_exec_ext in '' $ac_executable_extensions; do
6998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999     ac_cv_prog_ac_ct_OTOOL="otool"
7000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004   done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7010 if test -n "$ac_ct_OTOOL"; then
7011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7012 $as_echo "$ac_ct_OTOOL" >&6; }
7013 else
7014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 fi
7017
7018   if test "x$ac_ct_OTOOL" = x; then
7019     OTOOL=":"
7020   else
7021     case $cross_compiling:$ac_tool_warned in
7022 yes:)
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7025 ac_tool_warned=yes ;;
7026 esac
7027     OTOOL=$ac_ct_OTOOL
7028   fi
7029 else
7030   OTOOL="$ac_cv_prog_OTOOL"
7031 fi
7032
7033     if test -n "$ac_tool_prefix"; then
7034   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7035 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 $as_echo_n "checking for $ac_word... " >&6; }
7038 if ${ac_cv_prog_OTOOL64+:} false; then :
7039   $as_echo_n "(cached) " >&6
7040 else
7041   if test -n "$OTOOL64"; then
7042   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7046 do
7047   IFS=$as_save_IFS
7048   test -z "$as_dir" && as_dir=.
7049     for ac_exec_ext in '' $ac_executable_extensions; do
7050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7051     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053     break 2
7054   fi
7055 done
7056   done
7057 IFS=$as_save_IFS
7058
7059 fi
7060 fi
7061 OTOOL64=$ac_cv_prog_OTOOL64
7062 if test -n "$OTOOL64"; then
7063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7064 $as_echo "$OTOOL64" >&6; }
7065 else
7066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7068 fi
7069
7070
7071 fi
7072 if test -z "$ac_cv_prog_OTOOL64"; then
7073   ac_ct_OTOOL64=$OTOOL64
7074   # Extract the first word of "otool64", so it can be a program name with args.
7075 set dummy otool64; ac_word=$2
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 $as_echo_n "checking for $ac_word... " >&6; }
7078 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7079   $as_echo_n "(cached) " >&6
7080 else
7081   if test -n "$ac_ct_OTOOL64"; then
7082   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7083 else
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089     for ac_exec_ext in '' $ac_executable_extensions; do
7090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7091     ac_cv_prog_ac_ct_OTOOL64="otool64"
7092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096   done
7097 IFS=$as_save_IFS
7098
7099 fi
7100 fi
7101 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7102 if test -n "$ac_ct_OTOOL64"; then
7103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7104 $as_echo "$ac_ct_OTOOL64" >&6; }
7105 else
7106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7108 fi
7109
7110   if test "x$ac_ct_OTOOL64" = x; then
7111     OTOOL64=":"
7112   else
7113     case $cross_compiling:$ac_tool_warned in
7114 yes:)
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7117 ac_tool_warned=yes ;;
7118 esac
7119     OTOOL64=$ac_ct_OTOOL64
7120   fi
7121 else
7122   OTOOL64="$ac_cv_prog_OTOOL64"
7123 fi
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7152 $as_echo_n "checking for -single_module linker flag... " >&6; }
7153 if ${lt_cv_apple_cc_single_mod+:} false; then :
7154   $as_echo_n "(cached) " >&6
7155 else
7156   lt_cv_apple_cc_single_mod=no
7157       if test -z "${LT_MULTI_MODULE}"; then
7158         # By default we will add the -single_module flag. You can override
7159         # by either setting the environment variable LT_MULTI_MODULE
7160         # non-empty at configure time, or by adding -multi_module to the
7161         # link flags.
7162         rm -rf libconftest.dylib*
7163         echo "int foo(void){return 1;}" > conftest.c
7164         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7165 -dynamiclib -Wl,-single_module conftest.c" >&5
7166         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7167           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7168         _lt_result=$?
7169         # If there is a non-empty error log, and "single_module"
7170         # appears in it, assume the flag caused a linker warning
7171         if test -s conftest.err && $GREP single_module conftest.err; then
7172           cat conftest.err >&5
7173         # Otherwise, if the output was created with a 0 exit code from
7174         # the compiler, it worked.
7175         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7176           lt_cv_apple_cc_single_mod=yes
7177         else
7178           cat conftest.err >&5
7179         fi
7180         rm -rf libconftest.dylib*
7181         rm -f conftest.*
7182       fi
7183 fi
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7185 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7186
7187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7188 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7189 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7190   $as_echo_n "(cached) " >&6
7191 else
7192   lt_cv_ld_exported_symbols_list=no
7193       save_LDFLAGS=$LDFLAGS
7194       echo "_main" > conftest.sym
7195       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7196       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h.  */
7198
7199 int
7200 main ()
7201 {
7202
7203   ;
7204   return 0;
7205 }
7206 _ACEOF
7207 if ac_fn_c_try_link "$LINENO"; then :
7208   lt_cv_ld_exported_symbols_list=yes
7209 else
7210   lt_cv_ld_exported_symbols_list=no
7211 fi
7212 rm -f core conftest.err conftest.$ac_objext \
7213     conftest$ac_exeext conftest.$ac_ext
7214         LDFLAGS="$save_LDFLAGS"
7215
7216 fi
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7218 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7219
7220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7221 $as_echo_n "checking for -force_load linker flag... " >&6; }
7222 if ${lt_cv_ld_force_load+:} false; then :
7223   $as_echo_n "(cached) " >&6
7224 else
7225   lt_cv_ld_force_load=no
7226       cat > conftest.c << _LT_EOF
7227 int forced_loaded() { return 2;}
7228 _LT_EOF
7229       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7230       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7231       echo "$AR cru libconftest.a conftest.o" >&5
7232       $AR cru libconftest.a conftest.o 2>&5
7233       echo "$RANLIB libconftest.a" >&5
7234       $RANLIB libconftest.a 2>&5
7235       cat > conftest.c << _LT_EOF
7236 int main() { return 0;}
7237 _LT_EOF
7238       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7239       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7240       _lt_result=$?
7241       if test -s conftest.err && $GREP force_load conftest.err; then
7242         cat conftest.err >&5
7243       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7244         lt_cv_ld_force_load=yes
7245       else
7246         cat conftest.err >&5
7247       fi
7248         rm -f conftest.err libconftest.a conftest conftest.c
7249         rm -rf conftest.dSYM
7250
7251 fi
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7253 $as_echo "$lt_cv_ld_force_load" >&6; }
7254     case $host_os in
7255     rhapsody* | darwin1.[012])
7256       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7257     darwin1.*)
7258       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7259     darwin*) # darwin 5.x on
7260       # if running on 10.5 or later, the deployment target defaults
7261       # to the OS version, if on x86, and 10.4, the deployment
7262       # target defaults to 10.4. Don't you love it?
7263       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7264         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7265           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7266         10.[012]*)
7267           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7268         10.*)
7269           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7270       esac
7271     ;;
7272   esac
7273     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7274       _lt_dar_single_mod='$single_module'
7275     fi
7276     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7277       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7278     else
7279       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7280     fi
7281     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7282       _lt_dsymutil='~$DSYMUTIL $lib || :'
7283     else
7284       _lt_dsymutil=
7285     fi
7286     ;;
7287   esac
7288
7289 ac_ext=c
7290 ac_cpp='$CPP $CPPFLAGS'
7291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7295 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7296 # On Suns, sometimes $CPP names a directory.
7297 if test -n "$CPP" && test -d "$CPP"; then
7298   CPP=
7299 fi
7300 if test -z "$CPP"; then
7301   if ${ac_cv_prog_CPP+:} false; then :
7302   $as_echo_n "(cached) " >&6
7303 else
7304       # Double quotes because CPP needs to be expanded
7305     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7306     do
7307       ac_preproc_ok=false
7308 for ac_c_preproc_warn_flag in '' yes
7309 do
7310   # Use a header file that comes with gcc, so configuring glibc
7311   # with a fresh cross-compiler works.
7312   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7313   # <limits.h> exists even on freestanding compilers.
7314   # On the NeXT, cc -E runs the code through the compiler's parser,
7315   # not just through cpp. "Syntax error" is here to catch this case.
7316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h.  */
7318 #ifdef __STDC__
7319 # include <limits.h>
7320 #else
7321 # include <assert.h>
7322 #endif
7323                      Syntax error
7324 _ACEOF
7325 if ac_fn_c_try_cpp "$LINENO"; then :
7326
7327 else
7328   # Broken: fails on valid input.
7329 continue
7330 fi
7331 rm -f conftest.err conftest.i conftest.$ac_ext
7332
7333   # OK, works on sane cases.  Now check whether nonexistent headers
7334   # can be detected and how.
7335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h.  */
7337 #include <ac_nonexistent.h>
7338 _ACEOF
7339 if ac_fn_c_try_cpp "$LINENO"; then :
7340   # Broken: success on invalid input.
7341 continue
7342 else
7343   # Passes both tests.
7344 ac_preproc_ok=:
7345 break
7346 fi
7347 rm -f conftest.err conftest.i conftest.$ac_ext
7348
7349 done
7350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7351 rm -f conftest.i conftest.err conftest.$ac_ext
7352 if $ac_preproc_ok; then :
7353   break
7354 fi
7355
7356     done
7357     ac_cv_prog_CPP=$CPP
7358
7359 fi
7360   CPP=$ac_cv_prog_CPP
7361 else
7362   ac_cv_prog_CPP=$CPP
7363 fi
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7365 $as_echo "$CPP" >&6; }
7366 ac_preproc_ok=false
7367 for ac_c_preproc_warn_flag in '' yes
7368 do
7369   # Use a header file that comes with gcc, so configuring glibc
7370   # with a fresh cross-compiler works.
7371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7372   # <limits.h> exists even on freestanding compilers.
7373   # On the NeXT, cc -E runs the code through the compiler's parser,
7374   # not just through cpp. "Syntax error" is here to catch this case.
7375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h.  */
7377 #ifdef __STDC__
7378 # include <limits.h>
7379 #else
7380 # include <assert.h>
7381 #endif
7382                      Syntax error
7383 _ACEOF
7384 if ac_fn_c_try_cpp "$LINENO"; then :
7385
7386 else
7387   # Broken: fails on valid input.
7388 continue
7389 fi
7390 rm -f conftest.err conftest.i conftest.$ac_ext
7391
7392   # OK, works on sane cases.  Now check whether nonexistent headers
7393   # can be detected and how.
7394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h.  */
7396 #include <ac_nonexistent.h>
7397 _ACEOF
7398 if ac_fn_c_try_cpp "$LINENO"; then :
7399   # Broken: success on invalid input.
7400 continue
7401 else
7402   # Passes both tests.
7403 ac_preproc_ok=:
7404 break
7405 fi
7406 rm -f conftest.err conftest.i conftest.$ac_ext
7407
7408 done
7409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7410 rm -f conftest.i conftest.err conftest.$ac_ext
7411 if $ac_preproc_ok; then :
7412
7413 else
7414   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7416 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7417 See \`config.log' for more details" "$LINENO" 5; }
7418 fi
7419
7420 ac_ext=c
7421 ac_cpp='$CPP $CPPFLAGS'
7422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7425
7426
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7428 $as_echo_n "checking for ANSI C header files... " >&6; }
7429 if ${ac_cv_header_stdc+:} false; then :
7430   $as_echo_n "(cached) " >&6
7431 else
7432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h.  */
7434 #include <stdlib.h>
7435 #include <stdarg.h>
7436 #include <string.h>
7437 #include <float.h>
7438
7439 int
7440 main ()
7441 {
7442
7443   ;
7444   return 0;
7445 }
7446 _ACEOF
7447 if ac_fn_c_try_compile "$LINENO"; then :
7448   ac_cv_header_stdc=yes
7449 else
7450   ac_cv_header_stdc=no
7451 fi
7452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453
7454 if test $ac_cv_header_stdc = yes; then
7455   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h.  */
7458 #include <string.h>
7459
7460 _ACEOF
7461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7462   $EGREP "memchr" >/dev/null 2>&1; then :
7463
7464 else
7465   ac_cv_header_stdc=no
7466 fi
7467 rm -f conftest*
7468
7469 fi
7470
7471 if test $ac_cv_header_stdc = yes; then
7472   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h.  */
7475 #include <stdlib.h>
7476
7477 _ACEOF
7478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7479   $EGREP "free" >/dev/null 2>&1; then :
7480
7481 else
7482   ac_cv_header_stdc=no
7483 fi
7484 rm -f conftest*
7485
7486 fi
7487
7488 if test $ac_cv_header_stdc = yes; then
7489   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7490   if test "$cross_compiling" = yes; then :
7491   :
7492 else
7493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h.  */
7495 #include <ctype.h>
7496 #include <stdlib.h>
7497 #if ((' ' & 0x0FF) == 0x020)
7498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7500 #else
7501 # define ISLOWER(c) \
7502                    (('a' <= (c) && (c) <= 'i') \
7503                      || ('j' <= (c) && (c) <= 'r') \
7504                      || ('s' <= (c) && (c) <= 'z'))
7505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7506 #endif
7507
7508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7509 int
7510 main ()
7511 {
7512   int i;
7513   for (i = 0; i < 256; i++)
7514     if (XOR (islower (i), ISLOWER (i))
7515         || toupper (i) != TOUPPER (i))
7516       return 2;
7517   return 0;
7518 }
7519 _ACEOF
7520 if ac_fn_c_try_run "$LINENO"; then :
7521
7522 else
7523   ac_cv_header_stdc=no
7524 fi
7525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7526   conftest.$ac_objext conftest.beam conftest.$ac_ext
7527 fi
7528
7529 fi
7530 fi
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7532 $as_echo "$ac_cv_header_stdc" >&6; }
7533 if test $ac_cv_header_stdc = yes; then
7534
7535 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7536
7537 fi
7538
7539 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7540 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7541                   inttypes.h stdint.h unistd.h
7542 do :
7543   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7544 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7545 "
7546 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7547   cat >>confdefs.h <<_ACEOF
7548 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7549 _ACEOF
7550
7551 fi
7552
7553 done
7554
7555
7556 for ac_header in dlfcn.h
7557 do :
7558   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7559 "
7560 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7561   cat >>confdefs.h <<_ACEOF
7562 #define HAVE_DLFCN_H 1
7563 _ACEOF
7564
7565 fi
7566
7567 done
7568
7569
7570
7571
7572
7573 # Set options
7574
7575
7576
7577         enable_dlopen=no
7578
7579
7580   enable_win32_dll=no
7581
7582
7583             # Check whether --enable-shared was given.
7584 if test "${enable_shared+set}" = set; then :
7585   enableval=$enable_shared; p=${PACKAGE-default}
7586     case $enableval in
7587     yes) enable_shared=yes ;;
7588     no) enable_shared=no ;;
7589     *)
7590       enable_shared=no
7591       # Look at the argument we got.  We use all the common list separators.
7592       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7593       for pkg in $enableval; do
7594         IFS="$lt_save_ifs"
7595         if test "X$pkg" = "X$p"; then
7596           enable_shared=yes
7597         fi
7598       done
7599       IFS="$lt_save_ifs"
7600       ;;
7601     esac
7602 else
7603   enable_shared=yes
7604 fi
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614   # Check whether --enable-static was given.
7615 if test "${enable_static+set}" = set; then :
7616   enableval=$enable_static; p=${PACKAGE-default}
7617     case $enableval in
7618     yes) enable_static=yes ;;
7619     no) enable_static=no ;;
7620     *)
7621      enable_static=no
7622       # Look at the argument we got.  We use all the common list separators.
7623       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7624       for pkg in $enableval; do
7625         IFS="$lt_save_ifs"
7626         if test "X$pkg" = "X$p"; then
7627           enable_static=yes
7628         fi
7629       done
7630       IFS="$lt_save_ifs"
7631       ;;
7632     esac
7633 else
7634   enable_static=yes
7635 fi
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646 # Check whether --with-pic was given.
7647 if test "${with_pic+set}" = set; then :
7648   withval=$with_pic; lt_p=${PACKAGE-default}
7649     case $withval in
7650     yes|no) pic_mode=$withval ;;
7651     *)
7652       pic_mode=default
7653       # Look at the argument we got.  We use all the common list separators.
7654       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7655       for lt_pkg in $withval; do
7656         IFS="$lt_save_ifs"
7657         if test "X$lt_pkg" = "X$lt_p"; then
7658           pic_mode=yes
7659         fi
7660       done
7661       IFS="$lt_save_ifs"
7662       ;;
7663     esac
7664 else
7665   pic_mode=default
7666 fi
7667
7668
7669 test -z "$pic_mode" && pic_mode=default
7670
7671
7672
7673
7674
7675
7676
7677   # Check whether --enable-fast-install was given.
7678 if test "${enable_fast_install+set}" = set; then :
7679   enableval=$enable_fast_install; p=${PACKAGE-default}
7680     case $enableval in
7681     yes) enable_fast_install=yes ;;
7682     no) enable_fast_install=no ;;
7683     *)
7684       enable_fast_install=no
7685       # Look at the argument we got.  We use all the common list separators.
7686       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7687       for pkg in $enableval; do
7688         IFS="$lt_save_ifs"
7689         if test "X$pkg" = "X$p"; then
7690           enable_fast_install=yes
7691         fi
7692       done
7693       IFS="$lt_save_ifs"
7694       ;;
7695     esac
7696 else
7697   enable_fast_install=yes
7698 fi
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710 # This can be used to rebuild libtool when needed
7711 LIBTOOL_DEPS="$ltmain"
7712
7713 # Always use our own libtool.
7714 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745 test -z "$LN_S" && LN_S="ln -s"
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760 if test -n "${ZSH_VERSION+set}" ; then
7761    setopt NO_GLOB_SUBST
7762 fi
7763
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7765 $as_echo_n "checking for objdir... " >&6; }
7766 if ${lt_cv_objdir+:} false; then :
7767   $as_echo_n "(cached) " >&6
7768 else
7769   rm -f .libs 2>/dev/null
7770 mkdir .libs 2>/dev/null
7771 if test -d .libs; then
7772   lt_cv_objdir=.libs
7773 else
7774   # MS-DOS does not allow filenames that begin with a dot.
7775   lt_cv_objdir=_libs
7776 fi
7777 rmdir .libs 2>/dev/null
7778 fi
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7780 $as_echo "$lt_cv_objdir" >&6; }
7781 objdir=$lt_cv_objdir
7782
7783
7784
7785
7786
7787 cat >>confdefs.h <<_ACEOF
7788 #define LT_OBJDIR "$lt_cv_objdir/"
7789 _ACEOF
7790
7791
7792
7793
7794 case $host_os in
7795 aix3*)
7796   # AIX sometimes has problems with the GCC collect2 program.  For some
7797   # reason, if we set the COLLECT_NAMES environment variable, the problems
7798   # vanish in a puff of smoke.
7799   if test "X${COLLECT_NAMES+set}" != Xset; then
7800     COLLECT_NAMES=
7801     export COLLECT_NAMES
7802   fi
7803   ;;
7804 esac
7805
7806 # Global variables:
7807 ofile=libtool
7808 can_build_shared=yes
7809
7810 # All known linkers require a `.a' archive for static linking (except MSVC,
7811 # which needs '.lib').
7812 libext=a
7813
7814 with_gnu_ld="$lt_cv_prog_gnu_ld"
7815
7816 old_CC="$CC"
7817 old_CFLAGS="$CFLAGS"
7818
7819 # Set sane defaults for various variables
7820 test -z "$CC" && CC=cc
7821 test -z "$LTCC" && LTCC=$CC
7822 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7823 test -z "$LD" && LD=ld
7824 test -z "$ac_objext" && ac_objext=o
7825
7826 for cc_temp in $compiler""; do
7827   case $cc_temp in
7828     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7829     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7830     \-*) ;;
7831     *) break;;
7832   esac
7833 done
7834 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7835
7836
7837 # Only perform the check for file, if the check method requires it
7838 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7839 case $deplibs_check_method in
7840 file_magic*)
7841   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7843 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7844 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7845   $as_echo_n "(cached) " >&6
7846 else
7847   case $MAGIC_CMD in
7848 [\\/*] |  ?:[\\/]*)
7849   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7850   ;;
7851 *)
7852   lt_save_MAGIC_CMD="$MAGIC_CMD"
7853   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7854   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7855   for ac_dir in $ac_dummy; do
7856     IFS="$lt_save_ifs"
7857     test -z "$ac_dir" && ac_dir=.
7858     if test -f $ac_dir/${ac_tool_prefix}file; then
7859       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7860       if test -n "$file_magic_test_file"; then
7861         case $deplibs_check_method in
7862         "file_magic "*)
7863           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7864           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7865           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7866             $EGREP "$file_magic_regex" > /dev/null; then
7867             :
7868           else
7869             cat <<_LT_EOF 1>&2
7870
7871 *** Warning: the command libtool uses to detect shared libraries,
7872 *** $file_magic_cmd, produces output that libtool cannot recognize.
7873 *** The result is that libtool may fail to recognize shared libraries
7874 *** as such.  This will affect the creation of libtool libraries that
7875 *** depend on shared libraries, but programs linked with such libtool
7876 *** libraries will work regardless of this problem.  Nevertheless, you
7877 *** may want to report the problem to your system manager and/or to
7878 *** bug-libtool@gnu.org
7879
7880 _LT_EOF
7881           fi ;;
7882         esac
7883       fi
7884       break
7885     fi
7886   done
7887   IFS="$lt_save_ifs"
7888   MAGIC_CMD="$lt_save_MAGIC_CMD"
7889   ;;
7890 esac
7891 fi
7892
7893 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7894 if test -n "$MAGIC_CMD"; then
7895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7896 $as_echo "$MAGIC_CMD" >&6; }
7897 else
7898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7900 fi
7901
7902
7903
7904
7905
7906 if test -z "$lt_cv_path_MAGIC_CMD"; then
7907   if test -n "$ac_tool_prefix"; then
7908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7909 $as_echo_n "checking for file... " >&6; }
7910 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7911   $as_echo_n "(cached) " >&6
7912 else
7913   case $MAGIC_CMD in
7914 [\\/*] |  ?:[\\/]*)
7915   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7916   ;;
7917 *)
7918   lt_save_MAGIC_CMD="$MAGIC_CMD"
7919   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7920   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7921   for ac_dir in $ac_dummy; do
7922     IFS="$lt_save_ifs"
7923     test -z "$ac_dir" && ac_dir=.
7924     if test -f $ac_dir/file; then
7925       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7926       if test -n "$file_magic_test_file"; then
7927         case $deplibs_check_method in
7928         "file_magic "*)
7929           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7930           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7931           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7932             $EGREP "$file_magic_regex" > /dev/null; then
7933             :
7934           else
7935             cat <<_LT_EOF 1>&2
7936
7937 *** Warning: the command libtool uses to detect shared libraries,
7938 *** $file_magic_cmd, produces output that libtool cannot recognize.
7939 *** The result is that libtool may fail to recognize shared libraries
7940 *** as such.  This will affect the creation of libtool libraries that
7941 *** depend on shared libraries, but programs linked with such libtool
7942 *** libraries will work regardless of this problem.  Nevertheless, you
7943 *** may want to report the problem to your system manager and/or to
7944 *** bug-libtool@gnu.org
7945
7946 _LT_EOF
7947           fi ;;
7948         esac
7949       fi
7950       break
7951     fi
7952   done
7953   IFS="$lt_save_ifs"
7954   MAGIC_CMD="$lt_save_MAGIC_CMD"
7955   ;;
7956 esac
7957 fi
7958
7959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7960 if test -n "$MAGIC_CMD"; then
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7962 $as_echo "$MAGIC_CMD" >&6; }
7963 else
7964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7966 fi
7967
7968
7969   else
7970     MAGIC_CMD=:
7971   fi
7972 fi
7973
7974   fi
7975   ;;
7976 esac
7977
7978 # Use C for the default configuration in the libtool script
7979
7980 lt_save_CC="$CC"
7981 ac_ext=c
7982 ac_cpp='$CPP $CPPFLAGS'
7983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7986
7987
7988 # Source file extension for C test sources.
7989 ac_ext=c
7990
7991 # Object file extension for compiled C test sources.
7992 objext=o
7993 objext=$objext
7994
7995 # Code to be used in simple compile tests
7996 lt_simple_compile_test_code="int some_variable = 0;"
7997
7998 # Code to be used in simple link tests
7999 lt_simple_link_test_code='int main(){return(0);}'
8000
8001
8002
8003
8004
8005
8006
8007 # If no C compiler was specified, use CC.
8008 LTCC=${LTCC-"$CC"}
8009
8010 # If no C compiler flags were specified, use CFLAGS.
8011 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8012
8013 # Allow CC to be a program name with arguments.
8014 compiler=$CC
8015
8016 # Save the default compiler, since it gets overwritten when the other
8017 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8018 compiler_DEFAULT=$CC
8019
8020 # save warnings/boilerplate of simple test code
8021 ac_outfile=conftest.$ac_objext
8022 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8023 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8024 _lt_compiler_boilerplate=`cat conftest.err`
8025 $RM conftest*
8026
8027 ac_outfile=conftest.$ac_objext
8028 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8029 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8030 _lt_linker_boilerplate=`cat conftest.err`
8031 $RM -r conftest*
8032
8033
8034 ## CAVEAT EMPTOR:
8035 ## There is no encapsulation within the following macros, do not change
8036 ## the running order or otherwise move them around unless you know exactly
8037 ## what you are doing...
8038 if test -n "$compiler"; then
8039
8040 lt_prog_compiler_no_builtin_flag=
8041
8042 if test "$GCC" = yes; then
8043   case $cc_basename in
8044   nvcc*)
8045     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8046   *)
8047     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8048   esac
8049
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8051 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8052 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8053   $as_echo_n "(cached) " >&6
8054 else
8055   lt_cv_prog_compiler_rtti_exceptions=no
8056    ac_outfile=conftest.$ac_objext
8057    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8058    lt_compiler_flag="-fno-rtti -fno-exceptions"
8059    # Insert the option either (1) after the last *FLAGS variable, or
8060    # (2) before a word containing "conftest.", or (3) at the end.
8061    # Note that $ac_compile itself does not contain backslashes and begins
8062    # with a dollar sign (not a hyphen), so the echo should work correctly.
8063    # The option is referenced via a variable to avoid confusing sed.
8064    lt_compile=`echo "$ac_compile" | $SED \
8065    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8066    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8067    -e 's:$: $lt_compiler_flag:'`
8068    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8069    (eval "$lt_compile" 2>conftest.err)
8070    ac_status=$?
8071    cat conftest.err >&5
8072    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073    if (exit $ac_status) && test -s "$ac_outfile"; then
8074      # The compiler can only warn and ignore the option if not recognized
8075      # So say no if there are warnings other than the usual output.
8076      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8077      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8078      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8079        lt_cv_prog_compiler_rtti_exceptions=yes
8080      fi
8081    fi
8082    $RM conftest*
8083
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8086 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8087
8088 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8089     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8090 else
8091     :
8092 fi
8093
8094 fi
8095
8096
8097
8098
8099
8100
8101   lt_prog_compiler_wl=
8102 lt_prog_compiler_pic=
8103 lt_prog_compiler_static=
8104
8105
8106   if test "$GCC" = yes; then
8107     lt_prog_compiler_wl='-Wl,'
8108     lt_prog_compiler_static='-static'
8109
8110     case $host_os in
8111       aix*)
8112       # All AIX code is PIC.
8113       if test "$host_cpu" = ia64; then
8114         # AIX 5 now supports IA64 processor
8115         lt_prog_compiler_static='-Bstatic'
8116       fi
8117       ;;
8118
8119     amigaos*)
8120       case $host_cpu in
8121       powerpc)
8122             # see comment about AmigaOS4 .so support
8123             lt_prog_compiler_pic='-fPIC'
8124         ;;
8125       m68k)
8126             # FIXME: we need at least 68020 code to build shared libraries, but
8127             # adding the `-m68020' flag to GCC prevents building anything better,
8128             # like `-m68040'.
8129             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8130         ;;
8131       esac
8132       ;;
8133
8134     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8135       # PIC is the default for these OSes.
8136       ;;
8137
8138     mingw* | cygwin* | pw32* | os2* | cegcc*)
8139       # This hack is so that the source file can tell whether it is being
8140       # built for inclusion in a dll (and should export symbols for example).
8141       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8142       # (--disable-auto-import) libraries
8143       lt_prog_compiler_pic='-DDLL_EXPORT'
8144       ;;
8145
8146     darwin* | rhapsody*)
8147       # PIC is the default on this platform
8148       # Common symbols not allowed in MH_DYLIB files
8149       lt_prog_compiler_pic='-fno-common'
8150       ;;
8151
8152     haiku*)
8153       # PIC is the default for Haiku.
8154       # The "-static" flag exists, but is broken.
8155       lt_prog_compiler_static=
8156       ;;
8157
8158     hpux*)
8159       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8160       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8161       # sets the default TLS model and affects inlining.
8162       case $host_cpu in
8163       hppa*64*)
8164         # +Z the default
8165         ;;
8166       *)
8167         lt_prog_compiler_pic='-fPIC'
8168         ;;
8169       esac
8170       ;;
8171
8172     interix[3-9]*)
8173       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8174       # Instead, we relocate shared libraries at runtime.
8175       ;;
8176
8177     msdosdjgpp*)
8178       # Just because we use GCC doesn't mean we suddenly get shared libraries
8179       # on systems that don't support them.
8180       lt_prog_compiler_can_build_shared=no
8181       enable_shared=no
8182       ;;
8183
8184     *nto* | *qnx*)
8185       # QNX uses GNU C++, but need to define -shared option too, otherwise
8186       # it will coredump.
8187       lt_prog_compiler_pic='-fPIC -shared'
8188       ;;
8189
8190     sysv4*MP*)
8191       if test -d /usr/nec; then
8192         lt_prog_compiler_pic=-Kconform_pic
8193       fi
8194       ;;
8195
8196     *)
8197       lt_prog_compiler_pic='-fPIC'
8198       ;;
8199     esac
8200
8201     case $cc_basename in
8202     nvcc*) # Cuda Compiler Driver 2.2
8203       lt_prog_compiler_wl='-Xlinker '
8204       if test -n "$lt_prog_compiler_pic"; then
8205         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8206       fi
8207       ;;
8208     esac
8209   else
8210     # PORTME Check for flag to pass linker flags through the system compiler.
8211     case $host_os in
8212     aix*)
8213       lt_prog_compiler_wl='-Wl,'
8214       if test "$host_cpu" = ia64; then
8215         # AIX 5 now supports IA64 processor
8216         lt_prog_compiler_static='-Bstatic'
8217       else
8218         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8219       fi
8220       ;;
8221
8222     mingw* | cygwin* | pw32* | os2* | cegcc*)
8223       # This hack is so that the source file can tell whether it is being
8224       # built for inclusion in a dll (and should export symbols for example).
8225       lt_prog_compiler_pic='-DDLL_EXPORT'
8226       ;;
8227
8228     hpux9* | hpux10* | hpux11*)
8229       lt_prog_compiler_wl='-Wl,'
8230       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8231       # not for PA HP-UX.
8232       case $host_cpu in
8233       hppa*64*|ia64*)
8234         # +Z the default
8235         ;;
8236       *)
8237         lt_prog_compiler_pic='+Z'
8238         ;;
8239       esac
8240       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8241       lt_prog_compiler_static='${wl}-a ${wl}archive'
8242       ;;
8243
8244     irix5* | irix6* | nonstopux*)
8245       lt_prog_compiler_wl='-Wl,'
8246       # PIC (with -KPIC) is the default.
8247       lt_prog_compiler_static='-non_shared'
8248       ;;
8249
8250     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8251       case $cc_basename in
8252       # old Intel for x86_64 which still supported -KPIC.
8253       ecc*)
8254         lt_prog_compiler_wl='-Wl,'
8255         lt_prog_compiler_pic='-KPIC'
8256         lt_prog_compiler_static='-static'
8257         ;;
8258       # icc used to be incompatible with GCC.
8259       # ICC 10 doesn't accept -KPIC any more.
8260       icc* | ifort*)
8261         lt_prog_compiler_wl='-Wl,'
8262         lt_prog_compiler_pic='-fPIC'
8263         lt_prog_compiler_static='-static'
8264         ;;
8265       # Lahey Fortran 8.1.
8266       lf95*)
8267         lt_prog_compiler_wl='-Wl,'
8268         lt_prog_compiler_pic='--shared'
8269         lt_prog_compiler_static='--static'
8270         ;;
8271       nagfor*)
8272         # NAG Fortran compiler
8273         lt_prog_compiler_wl='-Wl,-Wl,,'
8274         lt_prog_compiler_pic='-PIC'
8275         lt_prog_compiler_static='-Bstatic'
8276         ;;
8277       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8278         # Portland Group compilers (*not* the Pentium gcc compiler,
8279         # which looks to be a dead project)
8280         lt_prog_compiler_wl='-Wl,'
8281         lt_prog_compiler_pic='-fpic'
8282         lt_prog_compiler_static='-Bstatic'
8283         ;;
8284       ccc*)
8285         lt_prog_compiler_wl='-Wl,'
8286         # All Alpha code is PIC.
8287         lt_prog_compiler_static='-non_shared'
8288         ;;
8289       xl* | bgxl* | bgf* | mpixl*)
8290         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8291         lt_prog_compiler_wl='-Wl,'
8292         lt_prog_compiler_pic='-qpic'
8293         lt_prog_compiler_static='-qstaticlink'
8294         ;;
8295       *)
8296         case `$CC -V 2>&1 | sed 5q` in
8297         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8298           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8299           lt_prog_compiler_pic='-KPIC'
8300           lt_prog_compiler_static='-Bstatic'
8301           lt_prog_compiler_wl=''
8302           ;;
8303         *Sun\ F* | *Sun*Fortran*)
8304           lt_prog_compiler_pic='-KPIC'
8305           lt_prog_compiler_static='-Bstatic'
8306           lt_prog_compiler_wl='-Qoption ld '
8307           ;;
8308         *Sun\ C*)
8309           # Sun C 5.9
8310           lt_prog_compiler_pic='-KPIC'
8311           lt_prog_compiler_static='-Bstatic'
8312           lt_prog_compiler_wl='-Wl,'
8313           ;;
8314         *Intel*\ [CF]*Compiler*)
8315           lt_prog_compiler_wl='-Wl,'
8316           lt_prog_compiler_pic='-fPIC'
8317           lt_prog_compiler_static='-static'
8318           ;;
8319         *Portland\ Group*)
8320           lt_prog_compiler_wl='-Wl,'
8321           lt_prog_compiler_pic='-fpic'
8322           lt_prog_compiler_static='-Bstatic'
8323           ;;
8324         esac
8325         ;;
8326       esac
8327       ;;
8328
8329     newsos6)
8330       lt_prog_compiler_pic='-KPIC'
8331       lt_prog_compiler_static='-Bstatic'
8332       ;;
8333
8334     *nto* | *qnx*)
8335       # QNX uses GNU C++, but need to define -shared option too, otherwise
8336       # it will coredump.
8337       lt_prog_compiler_pic='-fPIC -shared'
8338       ;;
8339
8340     osf3* | osf4* | osf5*)
8341       lt_prog_compiler_wl='-Wl,'
8342       # All OSF/1 code is PIC.
8343       lt_prog_compiler_static='-non_shared'
8344       ;;
8345
8346     rdos*)
8347       lt_prog_compiler_static='-non_shared'
8348       ;;
8349
8350     solaris*)
8351       lt_prog_compiler_pic='-KPIC'
8352       lt_prog_compiler_static='-Bstatic'
8353       case $cc_basename in
8354       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8355         lt_prog_compiler_wl='-Qoption ld ';;
8356       *)
8357         lt_prog_compiler_wl='-Wl,';;
8358       esac
8359       ;;
8360
8361     sunos4*)
8362       lt_prog_compiler_wl='-Qoption ld '
8363       lt_prog_compiler_pic='-PIC'
8364       lt_prog_compiler_static='-Bstatic'
8365       ;;
8366
8367     sysv4 | sysv4.2uw2* | sysv4.3*)
8368       lt_prog_compiler_wl='-Wl,'
8369       lt_prog_compiler_pic='-KPIC'
8370       lt_prog_compiler_static='-Bstatic'
8371       ;;
8372
8373     sysv4*MP*)
8374       if test -d /usr/nec ;then
8375         lt_prog_compiler_pic='-Kconform_pic'
8376         lt_prog_compiler_static='-Bstatic'
8377       fi
8378       ;;
8379
8380     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8381       lt_prog_compiler_wl='-Wl,'
8382       lt_prog_compiler_pic='-KPIC'
8383       lt_prog_compiler_static='-Bstatic'
8384       ;;
8385
8386     unicos*)
8387       lt_prog_compiler_wl='-Wl,'
8388       lt_prog_compiler_can_build_shared=no
8389       ;;
8390
8391     uts4*)
8392       lt_prog_compiler_pic='-pic'
8393       lt_prog_compiler_static='-Bstatic'
8394       ;;
8395
8396     *)
8397       lt_prog_compiler_can_build_shared=no
8398       ;;
8399     esac
8400   fi
8401
8402 case $host_os in
8403   # For platforms which do not support PIC, -DPIC is meaningless:
8404   *djgpp*)
8405     lt_prog_compiler_pic=
8406     ;;
8407   *)
8408     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8409     ;;
8410 esac
8411
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8413 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8414 if ${lt_cv_prog_compiler_pic+:} false; then :
8415   $as_echo_n "(cached) " >&6
8416 else
8417   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8418 fi
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8420 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8421 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8422
8423 #
8424 # Check to make sure the PIC flag actually works.
8425 #
8426 if test -n "$lt_prog_compiler_pic"; then
8427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8428 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8429 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   lt_cv_prog_compiler_pic_works=no
8433    ac_outfile=conftest.$ac_objext
8434    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8435    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8436    # Insert the option either (1) after the last *FLAGS variable, or
8437    # (2) before a word containing "conftest.", or (3) at the end.
8438    # Note that $ac_compile itself does not contain backslashes and begins
8439    # with a dollar sign (not a hyphen), so the echo should work correctly.
8440    # The option is referenced via a variable to avoid confusing sed.
8441    lt_compile=`echo "$ac_compile" | $SED \
8442    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8443    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8444    -e 's:$: $lt_compiler_flag:'`
8445    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8446    (eval "$lt_compile" 2>conftest.err)
8447    ac_status=$?
8448    cat conftest.err >&5
8449    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450    if (exit $ac_status) && test -s "$ac_outfile"; then
8451      # The compiler can only warn and ignore the option if not recognized
8452      # So say no if there are warnings other than the usual output.
8453      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8454      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8455      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8456        lt_cv_prog_compiler_pic_works=yes
8457      fi
8458    fi
8459    $RM conftest*
8460
8461 fi
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8463 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8464
8465 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8466     case $lt_prog_compiler_pic in
8467      "" | " "*) ;;
8468      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8469      esac
8470 else
8471     lt_prog_compiler_pic=
8472      lt_prog_compiler_can_build_shared=no
8473 fi
8474
8475 fi
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487 #
8488 # Check to make sure the static flag actually works.
8489 #
8490 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8492 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8493 if ${lt_cv_prog_compiler_static_works+:} false; then :
8494   $as_echo_n "(cached) " >&6
8495 else
8496   lt_cv_prog_compiler_static_works=no
8497    save_LDFLAGS="$LDFLAGS"
8498    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8499    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8500    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8501      # The linker can only warn and ignore the option if not recognized
8502      # So say no if there are warnings
8503      if test -s conftest.err; then
8504        # Append any errors to the config.log.
8505        cat conftest.err 1>&5
8506        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8507        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8508        if diff conftest.exp conftest.er2 >/dev/null; then
8509          lt_cv_prog_compiler_static_works=yes
8510        fi
8511      else
8512        lt_cv_prog_compiler_static_works=yes
8513      fi
8514    fi
8515    $RM -r conftest*
8516    LDFLAGS="$save_LDFLAGS"
8517
8518 fi
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8520 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8521
8522 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8523     :
8524 else
8525     lt_prog_compiler_static=
8526 fi
8527
8528
8529
8530
8531
8532
8533
8534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8535 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8536 if ${lt_cv_prog_compiler_c_o+:} false; then :
8537   $as_echo_n "(cached) " >&6
8538 else
8539   lt_cv_prog_compiler_c_o=no
8540    $RM -r conftest 2>/dev/null
8541    mkdir conftest
8542    cd conftest
8543    mkdir out
8544    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8545
8546    lt_compiler_flag="-o out/conftest2.$ac_objext"
8547    # Insert the option either (1) after the last *FLAGS variable, or
8548    # (2) before a word containing "conftest.", or (3) at the end.
8549    # Note that $ac_compile itself does not contain backslashes and begins
8550    # with a dollar sign (not a hyphen), so the echo should work correctly.
8551    lt_compile=`echo "$ac_compile" | $SED \
8552    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8553    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8554    -e 's:$: $lt_compiler_flag:'`
8555    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8556    (eval "$lt_compile" 2>out/conftest.err)
8557    ac_status=$?
8558    cat out/conftest.err >&5
8559    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8561    then
8562      # The compiler can only warn and ignore the option if not recognized
8563      # So say no if there are warnings
8564      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8565      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8566      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8567        lt_cv_prog_compiler_c_o=yes
8568      fi
8569    fi
8570    chmod u+w . 2>&5
8571    $RM conftest*
8572    # SGI C++ compiler will create directory out/ii_files/ for
8573    # template instantiation
8574    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8575    $RM out/* && rmdir out
8576    cd ..
8577    $RM -r conftest
8578    $RM conftest*
8579
8580 fi
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8582 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8583
8584
8585
8586
8587
8588
8589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8590 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8591 if ${lt_cv_prog_compiler_c_o+:} false; then :
8592   $as_echo_n "(cached) " >&6
8593 else
8594   lt_cv_prog_compiler_c_o=no
8595    $RM -r conftest 2>/dev/null
8596    mkdir conftest
8597    cd conftest
8598    mkdir out
8599    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8600
8601    lt_compiler_flag="-o out/conftest2.$ac_objext"
8602    # Insert the option either (1) after the last *FLAGS variable, or
8603    # (2) before a word containing "conftest.", or (3) at the end.
8604    # Note that $ac_compile itself does not contain backslashes and begins
8605    # with a dollar sign (not a hyphen), so the echo should work correctly.
8606    lt_compile=`echo "$ac_compile" | $SED \
8607    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8608    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8609    -e 's:$: $lt_compiler_flag:'`
8610    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8611    (eval "$lt_compile" 2>out/conftest.err)
8612    ac_status=$?
8613    cat out/conftest.err >&5
8614    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8616    then
8617      # The compiler can only warn and ignore the option if not recognized
8618      # So say no if there are warnings
8619      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8620      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8621      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8622        lt_cv_prog_compiler_c_o=yes
8623      fi
8624    fi
8625    chmod u+w . 2>&5
8626    $RM conftest*
8627    # SGI C++ compiler will create directory out/ii_files/ for
8628    # template instantiation
8629    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8630    $RM out/* && rmdir out
8631    cd ..
8632    $RM -r conftest
8633    $RM conftest*
8634
8635 fi
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8637 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8638
8639
8640
8641
8642 hard_links="nottested"
8643 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8644   # do not overwrite the value of need_locks provided by the user
8645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8646 $as_echo_n "checking if we can lock with hard links... " >&6; }
8647   hard_links=yes
8648   $RM conftest*
8649   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8650   touch conftest.a
8651   ln conftest.a conftest.b 2>&5 || hard_links=no
8652   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8654 $as_echo "$hard_links" >&6; }
8655   if test "$hard_links" = no; then
8656     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8657 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8658     need_locks=warn
8659   fi
8660 else
8661   need_locks=no
8662 fi
8663
8664
8665
8666
8667
8668
8669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8670 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8671
8672   runpath_var=
8673   allow_undefined_flag=
8674   always_export_symbols=no
8675   archive_cmds=
8676   archive_expsym_cmds=
8677   compiler_needs_object=no
8678   enable_shared_with_static_runtimes=no
8679   export_dynamic_flag_spec=
8680   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8681   hardcode_automatic=no
8682   hardcode_direct=no
8683   hardcode_direct_absolute=no
8684   hardcode_libdir_flag_spec=
8685   hardcode_libdir_separator=
8686   hardcode_minus_L=no
8687   hardcode_shlibpath_var=unsupported
8688   inherit_rpath=no
8689   link_all_deplibs=unknown
8690   module_cmds=
8691   module_expsym_cmds=
8692   old_archive_from_new_cmds=
8693   old_archive_from_expsyms_cmds=
8694   thread_safe_flag_spec=
8695   whole_archive_flag_spec=
8696   # include_expsyms should be a list of space-separated symbols to be *always*
8697   # included in the symbol list
8698   include_expsyms=
8699   # exclude_expsyms can be an extended regexp of symbols to exclude
8700   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8701   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8702   # as well as any symbol that contains `d'.
8703   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8704   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8705   # platforms (ab)use it in PIC code, but their linkers get confused if
8706   # the symbol is explicitly referenced.  Since portable code cannot
8707   # rely on this symbol name, it's probably fine to never include it in
8708   # preloaded symbol tables.
8709   # Exclude shared library initialization/finalization symbols.
8710   extract_expsyms_cmds=
8711
8712   case $host_os in
8713   cygwin* | mingw* | pw32* | cegcc*)
8714     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8715     # When not using gcc, we currently assume that we are using
8716     # Microsoft Visual C++.
8717     if test "$GCC" != yes; then
8718       with_gnu_ld=no
8719     fi
8720     ;;
8721   interix*)
8722     # we just hope/assume this is gcc and not c89 (= MSVC++)
8723     with_gnu_ld=yes
8724     ;;
8725   openbsd*)
8726     with_gnu_ld=no
8727     ;;
8728   esac
8729
8730   ld_shlibs=yes
8731
8732   # On some targets, GNU ld is compatible enough with the native linker
8733   # that we're better off using the native interface for both.
8734   lt_use_gnu_ld_interface=no
8735   if test "$with_gnu_ld" = yes; then
8736     case $host_os in
8737       aix*)
8738         # The AIX port of GNU ld has always aspired to compatibility
8739         # with the native linker.  However, as the warning in the GNU ld
8740         # block says, versions before 2.19.5* couldn't really create working
8741         # shared libraries, regardless of the interface used.
8742         case `$LD -v 2>&1` in
8743           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8744           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8745           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8746           *)
8747             lt_use_gnu_ld_interface=yes
8748             ;;
8749         esac
8750         ;;
8751       *)
8752         lt_use_gnu_ld_interface=yes
8753         ;;
8754     esac
8755   fi
8756
8757   if test "$lt_use_gnu_ld_interface" = yes; then
8758     # If archive_cmds runs LD, not CC, wlarc should be empty
8759     wlarc='${wl}'
8760
8761     # Set some defaults for GNU ld with shared library support. These
8762     # are reset later if shared libraries are not supported. Putting them
8763     # here allows them to be overridden if necessary.
8764     runpath_var=LD_RUN_PATH
8765     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8766     export_dynamic_flag_spec='${wl}--export-dynamic'
8767     # ancient GNU ld didn't support --whole-archive et. al.
8768     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8769       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8770     else
8771       whole_archive_flag_spec=
8772     fi
8773     supports_anon_versioning=no
8774     case `$LD -v 2>&1` in
8775       *GNU\ gold*) supports_anon_versioning=yes ;;
8776       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8777       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8778       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8779       *\ 2.11.*) ;; # other 2.11 versions
8780       *) supports_anon_versioning=yes ;;
8781     esac
8782
8783     # See if GNU ld supports shared libraries.
8784     case $host_os in
8785     aix[3-9]*)
8786       # On AIX/PPC, the GNU linker is very broken
8787       if test "$host_cpu" != ia64; then
8788         ld_shlibs=no
8789         cat <<_LT_EOF 1>&2
8790
8791 *** Warning: the GNU linker, at least up to release 2.19, is reported
8792 *** to be unable to reliably create shared libraries on AIX.
8793 *** Therefore, libtool is disabling shared libraries support.  If you
8794 *** really care for shared libraries, you may want to install binutils
8795 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8796 *** You will then need to restart the configuration process.
8797
8798 _LT_EOF
8799       fi
8800       ;;
8801
8802     amigaos*)
8803       case $host_cpu in
8804       powerpc)
8805             # see comment about AmigaOS4 .so support
8806             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8807             archive_expsym_cmds=''
8808         ;;
8809       m68k)
8810             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)'
8811             hardcode_libdir_flag_spec='-L$libdir'
8812             hardcode_minus_L=yes
8813         ;;
8814       esac
8815       ;;
8816
8817     beos*)
8818       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8819         allow_undefined_flag=unsupported
8820         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8821         # support --undefined.  This deserves some investigation.  FIXME
8822         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8823       else
8824         ld_shlibs=no
8825       fi
8826       ;;
8827
8828     cygwin* | mingw* | pw32* | cegcc*)
8829       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8830       # as there is no search path for DLLs.
8831       hardcode_libdir_flag_spec='-L$libdir'
8832       export_dynamic_flag_spec='${wl}--export-all-symbols'
8833       allow_undefined_flag=unsupported
8834       always_export_symbols=no
8835       enable_shared_with_static_runtimes=yes
8836       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8837       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8838
8839       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8840         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8841         # If the export-symbols file already is a .def file (1st line
8842         # is EXPORTS), use it as is; otherwise, prepend...
8843         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8844           cp $export_symbols $output_objdir/$soname.def;
8845         else
8846           echo EXPORTS > $output_objdir/$soname.def;
8847           cat $export_symbols >> $output_objdir/$soname.def;
8848         fi~
8849         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8850       else
8851         ld_shlibs=no
8852       fi
8853       ;;
8854
8855     haiku*)
8856       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8857       link_all_deplibs=yes
8858       ;;
8859
8860     interix[3-9]*)
8861       hardcode_direct=no
8862       hardcode_shlibpath_var=no
8863       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8864       export_dynamic_flag_spec='${wl}-E'
8865       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8866       # Instead, shared libraries are loaded at an image base (0x10000000 by
8867       # default) and relocated if they conflict, which is a slow very memory
8868       # consuming and fragmenting process.  To avoid this, we pick a random,
8869       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8870       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8871       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8872       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'
8873       ;;
8874
8875     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8876       tmp_diet=no
8877       if test "$host_os" = linux-dietlibc; then
8878         case $cc_basename in
8879           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8880         esac
8881       fi
8882       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8883          && test "$tmp_diet" = no
8884       then
8885         tmp_addflag=' $pic_flag'
8886         tmp_sharedflag='-shared'
8887         case $cc_basename,$host_cpu in
8888         pgcc*)                          # Portland Group C compiler
8889           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8890           tmp_addflag=' $pic_flag'
8891           ;;
8892         pgf77* | pgf90* | pgf95* | pgfortran*)
8893                                         # Portland Group f77 and f90 compilers
8894           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8895           tmp_addflag=' $pic_flag -Mnomain' ;;
8896         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8897           tmp_addflag=' -i_dynamic' ;;
8898         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8899           tmp_addflag=' -i_dynamic -nofor_main' ;;
8900         ifc* | ifort*)                  # Intel Fortran compiler
8901           tmp_addflag=' -nofor_main' ;;
8902         lf95*)                          # Lahey Fortran 8.1
8903           whole_archive_flag_spec=
8904           tmp_sharedflag='--shared' ;;
8905         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8906           tmp_sharedflag='-qmkshrobj'
8907           tmp_addflag= ;;
8908         nvcc*)  # Cuda Compiler Driver 2.2
8909           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8910           compiler_needs_object=yes
8911           ;;
8912         esac
8913         case `$CC -V 2>&1 | sed 5q` in
8914         *Sun\ C*)                       # Sun C 5.9
8915           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8916           compiler_needs_object=yes
8917           tmp_sharedflag='-G' ;;
8918         *Sun\ F*)                       # Sun Fortran 8.3
8919           tmp_sharedflag='-G' ;;
8920         esac
8921         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922
8923         if test "x$supports_anon_versioning" = xyes; then
8924           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8925             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8926             echo "local: *; };" >> $output_objdir/$libname.ver~
8927             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8928         fi
8929
8930         case $cc_basename in
8931         xlf* | bgf* | bgxlf* | mpixlf*)
8932           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8933           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8934           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8935           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8936           if test "x$supports_anon_versioning" = xyes; then
8937             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8938               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8939               echo "local: *; };" >> $output_objdir/$libname.ver~
8940               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8941           fi
8942           ;;
8943         esac
8944       else
8945         ld_shlibs=no
8946       fi
8947       ;;
8948
8949     netbsd*)
8950       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8951         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8952         wlarc=
8953       else
8954         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8956       fi
8957       ;;
8958
8959     solaris*)
8960       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8961         ld_shlibs=no
8962         cat <<_LT_EOF 1>&2
8963
8964 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8965 *** create shared libraries on Solaris systems.  Therefore, libtool
8966 *** is disabling shared libraries support.  We urge you to upgrade GNU
8967 *** binutils to release 2.9.1 or newer.  Another option is to modify
8968 *** your PATH or compiler configuration so that the native linker is
8969 *** used, and then restart.
8970
8971 _LT_EOF
8972       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8973         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8974         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8975       else
8976         ld_shlibs=no
8977       fi
8978       ;;
8979
8980     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8981       case `$LD -v 2>&1` in
8982         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8983         ld_shlibs=no
8984         cat <<_LT_EOF 1>&2
8985
8986 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8987 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8988 *** is disabling shared libraries support.  We urge you to upgrade GNU
8989 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8990 *** your PATH or compiler configuration so that the native linker is
8991 *** used, and then restart.
8992
8993 _LT_EOF
8994         ;;
8995         *)
8996           # For security reasons, it is highly recommended that you always
8997           # use absolute paths for naming shared libraries, and exclude the
8998           # DT_RUNPATH tag from executables and libraries.  But doing so
8999           # requires that you compile everything twice, which is a pain.
9000           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9001             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
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           else
9005             ld_shlibs=no
9006           fi
9007         ;;
9008       esac
9009       ;;
9010
9011     sunos4*)
9012       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9013       wlarc=
9014       hardcode_direct=yes
9015       hardcode_shlibpath_var=no
9016       ;;
9017
9018     *)
9019       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9020         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9021         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9022       else
9023         ld_shlibs=no
9024       fi
9025       ;;
9026     esac
9027
9028     if test "$ld_shlibs" = no; then
9029       runpath_var=
9030       hardcode_libdir_flag_spec=
9031       export_dynamic_flag_spec=
9032       whole_archive_flag_spec=
9033     fi
9034   else
9035     # PORTME fill in a description of your system's linker (not GNU ld)
9036     case $host_os in
9037     aix3*)
9038       allow_undefined_flag=unsupported
9039       always_export_symbols=yes
9040       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'
9041       # Note: this linker hardcodes the directories in LIBPATH if there
9042       # are no directories specified by -L.
9043       hardcode_minus_L=yes
9044       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9045         # Neither direct hardcoding nor static linking is supported with a
9046         # broken collect2.
9047         hardcode_direct=unsupported
9048       fi
9049       ;;
9050
9051     aix[4-9]*)
9052       if test "$host_cpu" = ia64; then
9053         # On IA64, the linker does run time linking by default, so we don't
9054         # have to do anything special.
9055         aix_use_runtimelinking=no
9056         exp_sym_flag='-Bexport'
9057         no_entry_flag=""
9058       else
9059         # If we're using GNU nm, then we don't want the "-C" option.
9060         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9061         # Also, AIX nm treats weak defined symbols like other global
9062         # defined symbols, whereas GNU nm marks them as "W".
9063         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9064           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9065         else
9066           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'
9067         fi
9068         aix_use_runtimelinking=no
9069
9070         # Test if we are trying to use run time linking or normal
9071         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9072         # need to do runtime linking.
9073         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9074           for ld_flag in $LDFLAGS; do
9075           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9076             aix_use_runtimelinking=yes
9077             break
9078           fi
9079           done
9080           ;;
9081         esac
9082
9083         exp_sym_flag='-bexport'
9084         no_entry_flag='-bnoentry'
9085       fi
9086
9087       # When large executables or shared objects are built, AIX ld can
9088       # have problems creating the table of contents.  If linking a library
9089       # or program results in "error TOC overflow" add -mminimal-toc to
9090       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9091       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9092
9093       archive_cmds=''
9094       hardcode_direct=yes
9095       hardcode_direct_absolute=yes
9096       hardcode_libdir_separator=':'
9097       link_all_deplibs=yes
9098       file_list_spec='${wl}-f,'
9099
9100       if test "$GCC" = yes; then
9101         case $host_os in aix4.[012]|aix4.[012].*)
9102         # We only want to do this on AIX 4.2 and lower, the check
9103         # below for broken collect2 doesn't work under 4.3+
9104           collect2name=`${CC} -print-prog-name=collect2`
9105           if test -f "$collect2name" &&
9106            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9107           then
9108           # We have reworked collect2
9109           :
9110           else
9111           # We have old collect2
9112           hardcode_direct=unsupported
9113           # It fails to find uninstalled libraries when the uninstalled
9114           # path is not listed in the libpath.  Setting hardcode_minus_L
9115           # to unsupported forces relinking
9116           hardcode_minus_L=yes
9117           hardcode_libdir_flag_spec='-L$libdir'
9118           hardcode_libdir_separator=
9119           fi
9120           ;;
9121         esac
9122         shared_flag='-shared'
9123         if test "$aix_use_runtimelinking" = yes; then
9124           shared_flag="$shared_flag "'${wl}-G'
9125         fi
9126       else
9127         # not using gcc
9128         if test "$host_cpu" = ia64; then
9129         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9130         # chokes on -Wl,-G. The following line is correct:
9131           shared_flag='-G'
9132         else
9133           if test "$aix_use_runtimelinking" = yes; then
9134             shared_flag='${wl}-G'
9135           else
9136             shared_flag='${wl}-bM:SRE'
9137           fi
9138         fi
9139       fi
9140
9141       export_dynamic_flag_spec='${wl}-bexpall'
9142       # It seems that -bexpall does not export symbols beginning with
9143       # underscore (_), so it is better to generate a list of symbols to export.
9144       always_export_symbols=yes
9145       if test "$aix_use_runtimelinking" = yes; then
9146         # Warning - without using the other runtime loading flags (-brtl),
9147         # -berok will link without error, but may produce a broken library.
9148         allow_undefined_flag='-berok'
9149         # Determine the default libpath from the value encoded in an
9150         # empty executable.
9151         if test "${lt_cv_aix_libpath+set}" = set; then
9152   aix_libpath=$lt_cv_aix_libpath
9153 else
9154   if ${lt_cv_aix_libpath_+:} false; then :
9155   $as_echo_n "(cached) " >&6
9156 else
9157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h.  */
9159
9160 int
9161 main ()
9162 {
9163
9164   ;
9165   return 0;
9166 }
9167 _ACEOF
9168 if ac_fn_c_try_link "$LINENO"; then :
9169
9170   lt_aix_libpath_sed='
9171       /Import File Strings/,/^$/ {
9172           /^0/ {
9173               s/^0  *\([^ ]*\) *$/\1/
9174               p
9175           }
9176       }'
9177   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9178   # Check for a 64-bit object if we didn't find anything.
9179   if test -z "$lt_cv_aix_libpath_"; then
9180     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9181   fi
9182 fi
9183 rm -f core conftest.err conftest.$ac_objext \
9184     conftest$ac_exeext conftest.$ac_ext
9185   if test -z "$lt_cv_aix_libpath_"; then
9186     lt_cv_aix_libpath_="/usr/lib:/lib"
9187   fi
9188
9189 fi
9190
9191   aix_libpath=$lt_cv_aix_libpath_
9192 fi
9193
9194         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9195         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9196       else
9197         if test "$host_cpu" = ia64; then
9198           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9199           allow_undefined_flag="-z nodefs"
9200           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"
9201         else
9202          # Determine the default libpath from the value encoded in an
9203          # empty executable.
9204          if test "${lt_cv_aix_libpath+set}" = set; then
9205   aix_libpath=$lt_cv_aix_libpath
9206 else
9207   if ${lt_cv_aix_libpath_+:} false; then :
9208   $as_echo_n "(cached) " >&6
9209 else
9210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h.  */
9212
9213 int
9214 main ()
9215 {
9216
9217   ;
9218   return 0;
9219 }
9220 _ACEOF
9221 if ac_fn_c_try_link "$LINENO"; then :
9222
9223   lt_aix_libpath_sed='
9224       /Import File Strings/,/^$/ {
9225           /^0/ {
9226               s/^0  *\([^ ]*\) *$/\1/
9227               p
9228           }
9229       }'
9230   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9231   # Check for a 64-bit object if we didn't find anything.
9232   if test -z "$lt_cv_aix_libpath_"; then
9233     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9234   fi
9235 fi
9236 rm -f core conftest.err conftest.$ac_objext \
9237     conftest$ac_exeext conftest.$ac_ext
9238   if test -z "$lt_cv_aix_libpath_"; then
9239     lt_cv_aix_libpath_="/usr/lib:/lib"
9240   fi
9241
9242 fi
9243
9244   aix_libpath=$lt_cv_aix_libpath_
9245 fi
9246
9247          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9248           # Warning - without using the other run time loading flags,
9249           # -berok will link without error, but may produce a broken library.
9250           no_undefined_flag=' ${wl}-bernotok'
9251           allow_undefined_flag=' ${wl}-berok'
9252           if test "$with_gnu_ld" = yes; then
9253             # We only use this code for GNU lds that support --whole-archive.
9254             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9255           else
9256             # Exported symbols can be pulled into shared objects from archives
9257             whole_archive_flag_spec='$convenience'
9258           fi
9259           archive_cmds_need_lc=yes
9260           # This is similar to how AIX traditionally builds its shared libraries.
9261           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'
9262         fi
9263       fi
9264       ;;
9265
9266     amigaos*)
9267       case $host_cpu in
9268       powerpc)
9269             # see comment about AmigaOS4 .so support
9270             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9271             archive_expsym_cmds=''
9272         ;;
9273       m68k)
9274             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)'
9275             hardcode_libdir_flag_spec='-L$libdir'
9276             hardcode_minus_L=yes
9277         ;;
9278       esac
9279       ;;
9280
9281     bsdi[45]*)
9282       export_dynamic_flag_spec=-rdynamic
9283       ;;
9284
9285     cygwin* | mingw* | pw32* | cegcc*)
9286       # When not using gcc, we currently assume that we are using
9287       # Microsoft Visual C++.
9288       # hardcode_libdir_flag_spec is actually meaningless, as there is
9289       # no search path for DLLs.
9290       case $cc_basename in
9291       cl*)
9292         # Native MSVC
9293         hardcode_libdir_flag_spec=' '
9294         allow_undefined_flag=unsupported
9295         always_export_symbols=yes
9296         file_list_spec='@'
9297         # Tell ltmain to make .lib files, not .a files.
9298         libext=lib
9299         # Tell ltmain to make .dll files, not .so files.
9300         shrext_cmds=".dll"
9301         # FIXME: Setting linknames here is a bad hack.
9302         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9303         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9304             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9305           else
9306             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9307           fi~
9308           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9309           linknames='
9310         # The linker will not automatically build a static lib if we build a DLL.
9311         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9312         enable_shared_with_static_runtimes=yes
9313         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9314         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9315         # Don't use ranlib
9316         old_postinstall_cmds='chmod 644 $oldlib'
9317         postlink_cmds='lt_outputfile="@OUTPUT@"~
9318           lt_tool_outputfile="@TOOL_OUTPUT@"~
9319           case $lt_outputfile in
9320             *.exe|*.EXE) ;;
9321             *)
9322               lt_outputfile="$lt_outputfile.exe"
9323               lt_tool_outputfile="$lt_tool_outputfile.exe"
9324               ;;
9325           esac~
9326           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9327             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9328             $RM "$lt_outputfile.manifest";
9329           fi'
9330         ;;
9331       *)
9332         # Assume MSVC wrapper
9333         hardcode_libdir_flag_spec=' '
9334         allow_undefined_flag=unsupported
9335         # Tell ltmain to make .lib files, not .a files.
9336         libext=lib
9337         # Tell ltmain to make .dll files, not .so files.
9338         shrext_cmds=".dll"
9339         # FIXME: Setting linknames here is a bad hack.
9340         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9341         # The linker will automatically build a .lib file if we build a DLL.
9342         old_archive_from_new_cmds='true'
9343         # FIXME: Should let the user specify the lib program.
9344         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9345         enable_shared_with_static_runtimes=yes
9346         ;;
9347       esac
9348       ;;
9349
9350     darwin* | rhapsody*)
9351
9352
9353   archive_cmds_need_lc=no
9354   hardcode_direct=no
9355   hardcode_automatic=yes
9356   hardcode_shlibpath_var=unsupported
9357   if test "$lt_cv_ld_force_load" = "yes"; then
9358     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9359
9360   else
9361     whole_archive_flag_spec=''
9362   fi
9363   link_all_deplibs=yes
9364   allow_undefined_flag="$_lt_dar_allow_undefined"
9365   case $cc_basename in
9366      ifort*) _lt_dar_can_shared=yes ;;
9367      *) _lt_dar_can_shared=$GCC ;;
9368   esac
9369   if test "$_lt_dar_can_shared" = "yes"; then
9370     output_verbose_link_cmd=func_echo_all
9371     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9372     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9373     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}"
9374     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}"
9375
9376   else
9377   ld_shlibs=no
9378   fi
9379
9380       ;;
9381
9382     dgux*)
9383       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384       hardcode_libdir_flag_spec='-L$libdir'
9385       hardcode_shlibpath_var=no
9386       ;;
9387
9388     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9389     # support.  Future versions do this automatically, but an explicit c++rt0.o
9390     # does not break anything, and helps significantly (at the cost of a little
9391     # extra space).
9392     freebsd2.2*)
9393       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9394       hardcode_libdir_flag_spec='-R$libdir'
9395       hardcode_direct=yes
9396       hardcode_shlibpath_var=no
9397       ;;
9398
9399     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9400     freebsd2.*)
9401       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9402       hardcode_direct=yes
9403       hardcode_minus_L=yes
9404       hardcode_shlibpath_var=no
9405       ;;
9406
9407     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9408     freebsd* | dragonfly*)
9409       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9410       hardcode_libdir_flag_spec='-R$libdir'
9411       hardcode_direct=yes
9412       hardcode_shlibpath_var=no
9413       ;;
9414
9415     hpux9*)
9416       if test "$GCC" = yes; then
9417         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9418       else
9419         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'
9420       fi
9421       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9422       hardcode_libdir_separator=:
9423       hardcode_direct=yes
9424
9425       # hardcode_minus_L: Not really in the search PATH,
9426       # but as the default location of the library.
9427       hardcode_minus_L=yes
9428       export_dynamic_flag_spec='${wl}-E'
9429       ;;
9430
9431     hpux10*)
9432       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9433         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9434       else
9435         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9436       fi
9437       if test "$with_gnu_ld" = no; then
9438         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9439         hardcode_libdir_separator=:
9440         hardcode_direct=yes
9441         hardcode_direct_absolute=yes
9442         export_dynamic_flag_spec='${wl}-E'
9443         # hardcode_minus_L: Not really in the search PATH,
9444         # but as the default location of the library.
9445         hardcode_minus_L=yes
9446       fi
9447       ;;
9448
9449     hpux11*)
9450       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9451         case $host_cpu in
9452         hppa*64*)
9453           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9454           ;;
9455         ia64*)
9456           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9457           ;;
9458         *)
9459           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9460           ;;
9461         esac
9462       else
9463         case $host_cpu in
9464         hppa*64*)
9465           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9466           ;;
9467         ia64*)
9468           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9469           ;;
9470         *)
9471
9472           # Older versions of the 11.00 compiler do not understand -b yet
9473           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9474           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9475 $as_echo_n "checking if $CC understands -b... " >&6; }
9476 if ${lt_cv_prog_compiler__b+:} false; then :
9477   $as_echo_n "(cached) " >&6
9478 else
9479   lt_cv_prog_compiler__b=no
9480    save_LDFLAGS="$LDFLAGS"
9481    LDFLAGS="$LDFLAGS -b"
9482    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9483    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9484      # The linker can only warn and ignore the option if not recognized
9485      # So say no if there are warnings
9486      if test -s conftest.err; then
9487        # Append any errors to the config.log.
9488        cat conftest.err 1>&5
9489        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9490        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9491        if diff conftest.exp conftest.er2 >/dev/null; then
9492          lt_cv_prog_compiler__b=yes
9493        fi
9494      else
9495        lt_cv_prog_compiler__b=yes
9496      fi
9497    fi
9498    $RM -r conftest*
9499    LDFLAGS="$save_LDFLAGS"
9500
9501 fi
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9503 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9504
9505 if test x"$lt_cv_prog_compiler__b" = xyes; then
9506     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9507 else
9508     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9509 fi
9510
9511           ;;
9512         esac
9513       fi
9514       if test "$with_gnu_ld" = no; then
9515         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9516         hardcode_libdir_separator=:
9517
9518         case $host_cpu in
9519         hppa*64*|ia64*)
9520           hardcode_direct=no
9521           hardcode_shlibpath_var=no
9522           ;;
9523         *)
9524           hardcode_direct=yes
9525           hardcode_direct_absolute=yes
9526           export_dynamic_flag_spec='${wl}-E'
9527
9528           # hardcode_minus_L: Not really in the search PATH,
9529           # but as the default location of the library.
9530           hardcode_minus_L=yes
9531           ;;
9532         esac
9533       fi
9534       ;;
9535
9536     irix5* | irix6* | nonstopux*)
9537       if test "$GCC" = yes; then
9538         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9539         # Try to use the -exported_symbol ld option, if it does not
9540         # work, assume that -exports_file does not work either and
9541         # implicitly export all symbols.
9542         # This should be the same for all languages, so no per-tag cache variable.
9543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9544 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9545 if ${lt_cv_irix_exported_symbol+:} false; then :
9546   $as_echo_n "(cached) " >&6
9547 else
9548   save_LDFLAGS="$LDFLAGS"
9549            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9550            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h.  */
9552 int foo (void) { return 0; }
9553 _ACEOF
9554 if ac_fn_c_try_link "$LINENO"; then :
9555   lt_cv_irix_exported_symbol=yes
9556 else
9557   lt_cv_irix_exported_symbol=no
9558 fi
9559 rm -f core conftest.err conftest.$ac_objext \
9560     conftest$ac_exeext conftest.$ac_ext
9561            LDFLAGS="$save_LDFLAGS"
9562 fi
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9564 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9565         if test "$lt_cv_irix_exported_symbol" = yes; then
9566           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9567         fi
9568       else
9569         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9570         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9571       fi
9572       archive_cmds_need_lc='no'
9573       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9574       hardcode_libdir_separator=:
9575       inherit_rpath=yes
9576       link_all_deplibs=yes
9577       ;;
9578
9579     netbsd*)
9580       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9581         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9582       else
9583         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9584       fi
9585       hardcode_libdir_flag_spec='-R$libdir'
9586       hardcode_direct=yes
9587       hardcode_shlibpath_var=no
9588       ;;
9589
9590     newsos6)
9591       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9592       hardcode_direct=yes
9593       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9594       hardcode_libdir_separator=:
9595       hardcode_shlibpath_var=no
9596       ;;
9597
9598     *nto* | *qnx*)
9599       ;;
9600
9601     openbsd*)
9602       if test -f /usr/libexec/ld.so; then
9603         hardcode_direct=yes
9604         hardcode_shlibpath_var=no
9605         hardcode_direct_absolute=yes
9606         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9607           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9608           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9609           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9610           export_dynamic_flag_spec='${wl}-E'
9611         else
9612           case $host_os in
9613            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9614              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9615              hardcode_libdir_flag_spec='-R$libdir'
9616              ;;
9617            *)
9618              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9619              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9620              ;;
9621           esac
9622         fi
9623       else
9624         ld_shlibs=no
9625       fi
9626       ;;
9627
9628     os2*)
9629       hardcode_libdir_flag_spec='-L$libdir'
9630       hardcode_minus_L=yes
9631       allow_undefined_flag=unsupported
9632       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'
9633       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9634       ;;
9635
9636     osf3*)
9637       if test "$GCC" = yes; then
9638         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9639         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9640       else
9641         allow_undefined_flag=' -expect_unresolved \*'
9642         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9643       fi
9644       archive_cmds_need_lc='no'
9645       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9646       hardcode_libdir_separator=:
9647       ;;
9648
9649     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9650       if test "$GCC" = yes; then
9651         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9652         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9653         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9654       else
9655         allow_undefined_flag=' -expect_unresolved \*'
9656         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9657         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~
9658         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9659
9660         # Both c and cxx compiler support -rpath directly
9661         hardcode_libdir_flag_spec='-rpath $libdir'
9662       fi
9663       archive_cmds_need_lc='no'
9664       hardcode_libdir_separator=:
9665       ;;
9666
9667     solaris*)
9668       no_undefined_flag=' -z defs'
9669       if test "$GCC" = yes; then
9670         wlarc='${wl}'
9671         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9672         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9673           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9674       else
9675         case `$CC -V 2>&1` in
9676         *"Compilers 5.0"*)
9677           wlarc=''
9678           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9680           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9681           ;;
9682         *)
9683           wlarc='${wl}'
9684           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9685           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9686           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9687           ;;
9688         esac
9689       fi
9690       hardcode_libdir_flag_spec='-R$libdir'
9691       hardcode_shlibpath_var=no
9692       case $host_os in
9693       solaris2.[0-5] | solaris2.[0-5].*) ;;
9694       *)
9695         # The compiler driver will combine and reorder linker options,
9696         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9697         # but is careful enough not to reorder.
9698         # Supported since Solaris 2.6 (maybe 2.5.1?)
9699         if test "$GCC" = yes; then
9700           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9701         else
9702           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9703         fi
9704         ;;
9705       esac
9706       link_all_deplibs=yes
9707       ;;
9708
9709     sunos4*)
9710       if test "x$host_vendor" = xsequent; then
9711         # Use $CC to link under sequent, because it throws in some extra .o
9712         # files that make .init and .fini sections work.
9713         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9714       else
9715         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9716       fi
9717       hardcode_libdir_flag_spec='-L$libdir'
9718       hardcode_direct=yes
9719       hardcode_minus_L=yes
9720       hardcode_shlibpath_var=no
9721       ;;
9722
9723     sysv4)
9724       case $host_vendor in
9725         sni)
9726           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727           hardcode_direct=yes # is this really true???
9728         ;;
9729         siemens)
9730           ## LD is ld it makes a PLAMLIB
9731           ## CC just makes a GrossModule.
9732           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9733           reload_cmds='$CC -r -o $output$reload_objs'
9734           hardcode_direct=no
9735         ;;
9736         motorola)
9737           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9738           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9739         ;;
9740       esac
9741       runpath_var='LD_RUN_PATH'
9742       hardcode_shlibpath_var=no
9743       ;;
9744
9745     sysv4.3*)
9746       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747       hardcode_shlibpath_var=no
9748       export_dynamic_flag_spec='-Bexport'
9749       ;;
9750
9751     sysv4*MP*)
9752       if test -d /usr/nec; then
9753         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754         hardcode_shlibpath_var=no
9755         runpath_var=LD_RUN_PATH
9756         hardcode_runpath_var=yes
9757         ld_shlibs=yes
9758       fi
9759       ;;
9760
9761     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9762       no_undefined_flag='${wl}-z,text'
9763       archive_cmds_need_lc=no
9764       hardcode_shlibpath_var=no
9765       runpath_var='LD_RUN_PATH'
9766
9767       if test "$GCC" = yes; then
9768         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9770       else
9771         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9773       fi
9774       ;;
9775
9776     sysv5* | sco3.2v5* | sco5v6*)
9777       # Note: We can NOT use -z defs as we might desire, because we do not
9778       # link with -lc, and that would cause any symbols used from libc to
9779       # always be unresolved, which means just about no library would
9780       # ever link correctly.  If we're not using GNU ld we use -z text
9781       # though, which does catch some bad symbols but isn't as heavy-handed
9782       # as -z defs.
9783       no_undefined_flag='${wl}-z,text'
9784       allow_undefined_flag='${wl}-z,nodefs'
9785       archive_cmds_need_lc=no
9786       hardcode_shlibpath_var=no
9787       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9788       hardcode_libdir_separator=':'
9789       link_all_deplibs=yes
9790       export_dynamic_flag_spec='${wl}-Bexport'
9791       runpath_var='LD_RUN_PATH'
9792
9793       if test "$GCC" = yes; then
9794         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9795         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9796       else
9797         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9798         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9799       fi
9800       ;;
9801
9802     uts4*)
9803       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9804       hardcode_libdir_flag_spec='-L$libdir'
9805       hardcode_shlibpath_var=no
9806       ;;
9807
9808     *)
9809       ld_shlibs=no
9810       ;;
9811     esac
9812
9813     if test x$host_vendor = xsni; then
9814       case $host in
9815       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9816         export_dynamic_flag_spec='${wl}-Blargedynsym'
9817         ;;
9818       esac
9819     fi
9820   fi
9821
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9823 $as_echo "$ld_shlibs" >&6; }
9824 test "$ld_shlibs" = no && can_build_shared=no
9825
9826 with_gnu_ld=$with_gnu_ld
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842 #
9843 # Do we need to explicitly link libc?
9844 #
9845 case "x$archive_cmds_need_lc" in
9846 x|xyes)
9847   # Assume -lc should be added
9848   archive_cmds_need_lc=yes
9849
9850   if test "$enable_shared" = yes && test "$GCC" = yes; then
9851     case $archive_cmds in
9852     *'~'*)
9853       # FIXME: we may have to deal with multi-command sequences.
9854       ;;
9855     '$CC '*)
9856       # Test whether the compiler implicitly links with -lc since on some
9857       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9858       # to ld, don't add -lc before -lgcc.
9859       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9860 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9861 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9862   $as_echo_n "(cached) " >&6
9863 else
9864   $RM conftest*
9865         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9866
9867         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9868   (eval $ac_compile) 2>&5
9869   ac_status=$?
9870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9871   test $ac_status = 0; } 2>conftest.err; then
9872           soname=conftest
9873           lib=conftest
9874           libobjs=conftest.$ac_objext
9875           deplibs=
9876           wl=$lt_prog_compiler_wl
9877           pic_flag=$lt_prog_compiler_pic
9878           compiler_flags=-v
9879           linker_flags=-v
9880           verstring=
9881           output_objdir=.
9882           libname=conftest
9883           lt_save_allow_undefined_flag=$allow_undefined_flag
9884           allow_undefined_flag=
9885           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9886   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9887   ac_status=$?
9888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9889   test $ac_status = 0; }
9890           then
9891             lt_cv_archive_cmds_need_lc=no
9892           else
9893             lt_cv_archive_cmds_need_lc=yes
9894           fi
9895           allow_undefined_flag=$lt_save_allow_undefined_flag
9896         else
9897           cat conftest.err 1>&5
9898         fi
9899         $RM conftest*
9900
9901 fi
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9903 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9904       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9905       ;;
9906     esac
9907   fi
9908   ;;
9909 esac
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
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10063 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10064
10065 if test "$GCC" = yes; then
10066   case $host_os in
10067     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10068     *) lt_awk_arg="/^libraries:/" ;;
10069   esac
10070   case $host_os in
10071     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10072     *) lt_sed_strip_eq="s,=/,/,g" ;;
10073   esac
10074   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10075   case $lt_search_path_spec in
10076   *\;*)
10077     # if the path contains ";" then we assume it to be the separator
10078     # otherwise default to the standard path separator (i.e. ":") - it is
10079     # assumed that no part of a normal pathname contains ";" but that should
10080     # okay in the real world where ";" in dirpaths is itself problematic.
10081     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10082     ;;
10083   *)
10084     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10085     ;;
10086   esac
10087   # Ok, now we have the path, separated by spaces, we can step through it
10088   # and add multilib dir if necessary.
10089   lt_tmp_lt_search_path_spec=
10090   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10091   for lt_sys_path in $lt_search_path_spec; do
10092     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10093       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10094     else
10095       test -d "$lt_sys_path" && \
10096         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10097     fi
10098   done
10099   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10100 BEGIN {RS=" "; FS="/|\n";} {
10101   lt_foo="";
10102   lt_count=0;
10103   for (lt_i = NF; lt_i > 0; lt_i--) {
10104     if ($lt_i != "" && $lt_i != ".") {
10105       if ($lt_i == "..") {
10106         lt_count++;
10107       } else {
10108         if (lt_count == 0) {
10109           lt_foo="/" $lt_i lt_foo;
10110         } else {
10111           lt_count--;
10112         }
10113       }
10114     }
10115   }
10116   if (lt_foo != "") { lt_freq[lt_foo]++; }
10117   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10118 }'`
10119   # AWK program above erroneously prepends '/' to C:/dos/paths
10120   # for these hosts.
10121   case $host_os in
10122     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10123       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10124   esac
10125   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10126 else
10127   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10128 fi
10129 library_names_spec=
10130 libname_spec='lib$name'
10131 soname_spec=
10132 shrext_cmds=".so"
10133 postinstall_cmds=
10134 postuninstall_cmds=
10135 finish_cmds=
10136 finish_eval=
10137 shlibpath_var=
10138 shlibpath_overrides_runpath=unknown
10139 version_type=none
10140 dynamic_linker="$host_os ld.so"
10141 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10142 need_lib_prefix=unknown
10143 hardcode_into_libs=no
10144
10145 # when you set need_version to no, make sure it does not cause -set_version
10146 # flags to be left without arguments
10147 need_version=unknown
10148
10149 case $host_os in
10150 aix3*)
10151   version_type=linux # correct to gnu/linux during the next big refactor
10152   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10153   shlibpath_var=LIBPATH
10154
10155   # AIX 3 has no versioning support, so we append a major version to the name.
10156   soname_spec='${libname}${release}${shared_ext}$major'
10157   ;;
10158
10159 aix[4-9]*)
10160   version_type=linux # correct to gnu/linux during the next big refactor
10161   need_lib_prefix=no
10162   need_version=no
10163   hardcode_into_libs=yes
10164   if test "$host_cpu" = ia64; then
10165     # AIX 5 supports IA64
10166     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10167     shlibpath_var=LD_LIBRARY_PATH
10168   else
10169     # With GCC up to 2.95.x, collect2 would create an import file
10170     # for dependence libraries.  The import file would start with
10171     # the line `#! .'.  This would cause the generated library to
10172     # depend on `.', always an invalid library.  This was fixed in
10173     # development snapshots of GCC prior to 3.0.
10174     case $host_os in
10175       aix4 | aix4.[01] | aix4.[01].*)
10176       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10177            echo ' yes '
10178            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10179         :
10180       else
10181         can_build_shared=no
10182       fi
10183       ;;
10184     esac
10185     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10186     # soname into executable. Probably we can add versioning support to
10187     # collect2, so additional links can be useful in future.
10188     if test "$aix_use_runtimelinking" = yes; then
10189       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10190       # instead of lib<name>.a to let people know that these are not
10191       # typical AIX shared libraries.
10192       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10193     else
10194       # We preserve .a as extension for shared libraries through AIX4.2
10195       # and later when we are not doing run time linking.
10196       library_names_spec='${libname}${release}.a $libname.a'
10197       soname_spec='${libname}${release}${shared_ext}$major'
10198     fi
10199     shlibpath_var=LIBPATH
10200   fi
10201   ;;
10202
10203 amigaos*)
10204   case $host_cpu in
10205   powerpc)
10206     # Since July 2007 AmigaOS4 officially supports .so libraries.
10207     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10208     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209     ;;
10210   m68k)
10211     library_names_spec='$libname.ixlibrary $libname.a'
10212     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10213     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10214     ;;
10215   esac
10216   ;;
10217
10218 beos*)
10219   library_names_spec='${libname}${shared_ext}'
10220   dynamic_linker="$host_os ld.so"
10221   shlibpath_var=LIBRARY_PATH
10222   ;;
10223
10224 bsdi[45]*)
10225   version_type=linux # correct to gnu/linux during the next big refactor
10226   need_version=no
10227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228   soname_spec='${libname}${release}${shared_ext}$major'
10229   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10230   shlibpath_var=LD_LIBRARY_PATH
10231   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10232   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10233   # the default ld.so.conf also contains /usr/contrib/lib and
10234   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10235   # libtool to hard-code these into programs
10236   ;;
10237
10238 cygwin* | mingw* | pw32* | cegcc*)
10239   version_type=windows
10240   shrext_cmds=".dll"
10241   need_version=no
10242   need_lib_prefix=no
10243
10244   case $GCC,$cc_basename in
10245   yes,*)
10246     # gcc
10247     library_names_spec='$libname.dll.a'
10248     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10249     postinstall_cmds='base_file=`basename \${file}`~
10250       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10251       dldir=$destdir/`dirname \$dlpath`~
10252       test -d \$dldir || mkdir -p \$dldir~
10253       $install_prog $dir/$dlname \$dldir/$dlname~
10254       chmod a+x \$dldir/$dlname~
10255       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10256         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10257       fi'
10258     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10259       dlpath=$dir/\$dldll~
10260        $RM \$dlpath'
10261     shlibpath_overrides_runpath=yes
10262
10263     case $host_os in
10264     cygwin*)
10265       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10266       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10267
10268       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10269       ;;
10270     mingw* | cegcc*)
10271       # MinGW DLLs use traditional 'lib' prefix
10272       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10273       ;;
10274     pw32*)
10275       # pw32 DLLs use 'pw' prefix rather than 'lib'
10276       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10277       ;;
10278     esac
10279     dynamic_linker='Win32 ld.exe'
10280     ;;
10281
10282   *,cl*)
10283     # Native MSVC
10284     libname_spec='$name'
10285     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10286     library_names_spec='${libname}.dll.lib'
10287
10288     case $build_os in
10289     mingw*)
10290       sys_lib_search_path_spec=
10291       lt_save_ifs=$IFS
10292       IFS=';'
10293       for lt_path in $LIB
10294       do
10295         IFS=$lt_save_ifs
10296         # Let DOS variable expansion print the short 8.3 style file name.
10297         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10298         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10299       done
10300       IFS=$lt_save_ifs
10301       # Convert to MSYS style.
10302       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10303       ;;
10304     cygwin*)
10305       # Convert to unix form, then to dos form, then back to unix form
10306       # but this time dos style (no spaces!) so that the unix form looks
10307       # like /cygdrive/c/PROGRA~1:/cygdr...
10308       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10309       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10310       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10311       ;;
10312     *)
10313       sys_lib_search_path_spec="$LIB"
10314       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10315         # It is most probably a Windows format PATH.
10316         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10317       else
10318         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10319       fi
10320       # FIXME: find the short name or the path components, as spaces are
10321       # common. (e.g. "Program Files" -> "PROGRA~1")
10322       ;;
10323     esac
10324
10325     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10326     postinstall_cmds='base_file=`basename \${file}`~
10327       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10328       dldir=$destdir/`dirname \$dlpath`~
10329       test -d \$dldir || mkdir -p \$dldir~
10330       $install_prog $dir/$dlname \$dldir/$dlname'
10331     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10332       dlpath=$dir/\$dldll~
10333        $RM \$dlpath'
10334     shlibpath_overrides_runpath=yes
10335     dynamic_linker='Win32 link.exe'
10336     ;;
10337
10338   *)
10339     # Assume MSVC wrapper
10340     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10341     dynamic_linker='Win32 ld.exe'
10342     ;;
10343   esac
10344   # FIXME: first we should search . and the directory the executable is in
10345   shlibpath_var=PATH
10346   ;;
10347
10348 darwin* | rhapsody*)
10349   dynamic_linker="$host_os dyld"
10350   version_type=darwin
10351   need_lib_prefix=no
10352   need_version=no
10353   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10354   soname_spec='${libname}${release}${major}$shared_ext'
10355   shlibpath_overrides_runpath=yes
10356   shlibpath_var=DYLD_LIBRARY_PATH
10357   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10358
10359   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10360   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10361   ;;
10362
10363 dgux*)
10364   version_type=linux # correct to gnu/linux during the next big refactor
10365   need_lib_prefix=no
10366   need_version=no
10367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10368   soname_spec='${libname}${release}${shared_ext}$major'
10369   shlibpath_var=LD_LIBRARY_PATH
10370   ;;
10371
10372 freebsd* | dragonfly*)
10373   # DragonFly does not have aout.  When/if they implement a new
10374   # versioning mechanism, adjust this.
10375   if test -x /usr/bin/objformat; then
10376     objformat=`/usr/bin/objformat`
10377   else
10378     case $host_os in
10379     freebsd[23].*) objformat=aout ;;
10380     *) objformat=elf ;;
10381     esac
10382   fi
10383   version_type=freebsd-$objformat
10384   case $version_type in
10385     freebsd-elf*)
10386       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10387       need_version=no
10388       need_lib_prefix=no
10389       ;;
10390     freebsd-*)
10391       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10392       need_version=yes
10393       ;;
10394   esac
10395   shlibpath_var=LD_LIBRARY_PATH
10396   case $host_os in
10397   freebsd2.*)
10398     shlibpath_overrides_runpath=yes
10399     ;;
10400   freebsd3.[01]* | freebsdelf3.[01]*)
10401     shlibpath_overrides_runpath=yes
10402     hardcode_into_libs=yes
10403     ;;
10404   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10405   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10406     shlibpath_overrides_runpath=no
10407     hardcode_into_libs=yes
10408     ;;
10409   *) # from 4.6 on, and DragonFly
10410     shlibpath_overrides_runpath=yes
10411     hardcode_into_libs=yes
10412     ;;
10413   esac
10414   ;;
10415
10416 gnu*)
10417   version_type=linux # correct to gnu/linux during the next big refactor
10418   need_lib_prefix=no
10419   need_version=no
10420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10421   soname_spec='${libname}${release}${shared_ext}$major'
10422   shlibpath_var=LD_LIBRARY_PATH
10423   shlibpath_overrides_runpath=no
10424   hardcode_into_libs=yes
10425   ;;
10426
10427 haiku*)
10428   version_type=linux # correct to gnu/linux during the next big refactor
10429   need_lib_prefix=no
10430   need_version=no
10431   dynamic_linker="$host_os runtime_loader"
10432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10433   soname_spec='${libname}${release}${shared_ext}$major'
10434   shlibpath_var=LIBRARY_PATH
10435   shlibpath_overrides_runpath=yes
10436   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10437   hardcode_into_libs=yes
10438   ;;
10439
10440 hpux9* | hpux10* | hpux11*)
10441   # Give a soname corresponding to the major version so that dld.sl refuses to
10442   # link against other versions.
10443   version_type=sunos
10444   need_lib_prefix=no
10445   need_version=no
10446   case $host_cpu in
10447   ia64*)
10448     shrext_cmds='.so'
10449     hardcode_into_libs=yes
10450     dynamic_linker="$host_os dld.so"
10451     shlibpath_var=LD_LIBRARY_PATH
10452     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10453     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454     soname_spec='${libname}${release}${shared_ext}$major'
10455     if test "X$HPUX_IA64_MODE" = X32; then
10456       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10457     else
10458       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10459     fi
10460     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10461     ;;
10462   hppa*64*)
10463     shrext_cmds='.sl'
10464     hardcode_into_libs=yes
10465     dynamic_linker="$host_os dld.sl"
10466     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10467     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10469     soname_spec='${libname}${release}${shared_ext}$major'
10470     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10471     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10472     ;;
10473   *)
10474     shrext_cmds='.sl'
10475     dynamic_linker="$host_os dld.sl"
10476     shlibpath_var=SHLIB_PATH
10477     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10478     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479     soname_spec='${libname}${release}${shared_ext}$major'
10480     ;;
10481   esac
10482   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10483   postinstall_cmds='chmod 555 $lib'
10484   # or fails outright, so override atomically:
10485   install_override_mode=555
10486   ;;
10487
10488 interix[3-9]*)
10489   version_type=linux # correct to gnu/linux during the next big refactor
10490   need_lib_prefix=no
10491   need_version=no
10492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10493   soname_spec='${libname}${release}${shared_ext}$major'
10494   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10495   shlibpath_var=LD_LIBRARY_PATH
10496   shlibpath_overrides_runpath=no
10497   hardcode_into_libs=yes
10498   ;;
10499
10500 irix5* | irix6* | nonstopux*)
10501   case $host_os in
10502     nonstopux*) version_type=nonstopux ;;
10503     *)
10504         if test "$lt_cv_prog_gnu_ld" = yes; then
10505                 version_type=linux # correct to gnu/linux during the next big refactor
10506         else
10507                 version_type=irix
10508         fi ;;
10509   esac
10510   need_lib_prefix=no
10511   need_version=no
10512   soname_spec='${libname}${release}${shared_ext}$major'
10513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10514   case $host_os in
10515   irix5* | nonstopux*)
10516     libsuff= shlibsuff=
10517     ;;
10518   *)
10519     case $LD in # libtool.m4 will add one of these switches to LD
10520     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10521       libsuff= shlibsuff= libmagic=32-bit;;
10522     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10523       libsuff=32 shlibsuff=N32 libmagic=N32;;
10524     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10525       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10526     *) libsuff= shlibsuff= libmagic=never-match;;
10527     esac
10528     ;;
10529   esac
10530   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10531   shlibpath_overrides_runpath=no
10532   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10533   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10534   hardcode_into_libs=yes
10535   ;;
10536
10537 # No shared lib support for Linux oldld, aout, or coff.
10538 linux*oldld* | linux*aout* | linux*coff*)
10539   dynamic_linker=no
10540   ;;
10541
10542 # This must be glibc/ELF.
10543 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10544   version_type=linux # correct to gnu/linux during the next big refactor
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10550   shlibpath_var=LD_LIBRARY_PATH
10551   shlibpath_overrides_runpath=no
10552
10553   # Some binutils ld are patched to set DT_RUNPATH
10554   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10555   $as_echo_n "(cached) " >&6
10556 else
10557   lt_cv_shlibpath_overrides_runpath=no
10558     save_LDFLAGS=$LDFLAGS
10559     save_libdir=$libdir
10560     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10561          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10562     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h.  */
10564
10565 int
10566 main ()
10567 {
10568
10569   ;
10570   return 0;
10571 }
10572 _ACEOF
10573 if ac_fn_c_try_link "$LINENO"; then :
10574   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10575   lt_cv_shlibpath_overrides_runpath=yes
10576 fi
10577 fi
10578 rm -f core conftest.err conftest.$ac_objext \
10579     conftest$ac_exeext conftest.$ac_ext
10580     LDFLAGS=$save_LDFLAGS
10581     libdir=$save_libdir
10582
10583 fi
10584
10585   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10586
10587   # This implies no fast_install, which is unacceptable.
10588   # Some rework will be needed to allow for fast_install
10589   # before this can be enabled.
10590   hardcode_into_libs=yes
10591
10592   # Add ABI-specific directories to the system library path.
10593   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10594
10595   # Append ld.so.conf contents to the search path
10596   if test -f /etc/ld.so.conf; then
10597     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10598     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10599
10600   fi
10601
10602   # We used to test for /lib/ld.so.1 and disable shared libraries on
10603   # powerpc, because MkLinux only supported shared libraries with the
10604   # GNU dynamic linker.  Since this was broken with cross compilers,
10605   # most powerpc-linux boxes support dynamic linking these days and
10606   # people can always --disable-shared, the test was removed, and we
10607   # assume the GNU/Linux dynamic linker is in use.
10608   dynamic_linker='GNU/Linux ld.so'
10609   ;;
10610
10611 netbsd*)
10612   version_type=sunos
10613   need_lib_prefix=no
10614   need_version=no
10615   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10617     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10618     dynamic_linker='NetBSD (a.out) ld.so'
10619   else
10620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10621     soname_spec='${libname}${release}${shared_ext}$major'
10622     dynamic_linker='NetBSD ld.elf_so'
10623   fi
10624   shlibpath_var=LD_LIBRARY_PATH
10625   shlibpath_overrides_runpath=yes
10626   hardcode_into_libs=yes
10627   ;;
10628
10629 newsos6)
10630   version_type=linux # correct to gnu/linux during the next big refactor
10631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632   shlibpath_var=LD_LIBRARY_PATH
10633   shlibpath_overrides_runpath=yes
10634   ;;
10635
10636 *nto* | *qnx*)
10637   version_type=qnx
10638   need_lib_prefix=no
10639   need_version=no
10640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641   soname_spec='${libname}${release}${shared_ext}$major'
10642   shlibpath_var=LD_LIBRARY_PATH
10643   shlibpath_overrides_runpath=no
10644   hardcode_into_libs=yes
10645   dynamic_linker='ldqnx.so'
10646   ;;
10647
10648 openbsd*)
10649   version_type=sunos
10650   sys_lib_dlsearch_path_spec="/usr/lib"
10651   need_lib_prefix=no
10652   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10653   case $host_os in
10654     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10655     *)                          need_version=no  ;;
10656   esac
10657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10658   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10659   shlibpath_var=LD_LIBRARY_PATH
10660   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10661     case $host_os in
10662       openbsd2.[89] | openbsd2.[89].*)
10663         shlibpath_overrides_runpath=no
10664         ;;
10665       *)
10666         shlibpath_overrides_runpath=yes
10667         ;;
10668       esac
10669   else
10670     shlibpath_overrides_runpath=yes
10671   fi
10672   ;;
10673
10674 os2*)
10675   libname_spec='$name'
10676   shrext_cmds=".dll"
10677   need_lib_prefix=no
10678   library_names_spec='$libname${shared_ext} $libname.a'
10679   dynamic_linker='OS/2 ld.exe'
10680   shlibpath_var=LIBPATH
10681   ;;
10682
10683 osf3* | osf4* | osf5*)
10684   version_type=osf
10685   need_lib_prefix=no
10686   need_version=no
10687   soname_spec='${libname}${release}${shared_ext}$major'
10688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689   shlibpath_var=LD_LIBRARY_PATH
10690   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10691   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10692   ;;
10693
10694 rdos*)
10695   dynamic_linker=no
10696   ;;
10697
10698 solaris*)
10699   version_type=linux # correct to gnu/linux during the next big refactor
10700   need_lib_prefix=no
10701   need_version=no
10702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703   soname_spec='${libname}${release}${shared_ext}$major'
10704   shlibpath_var=LD_LIBRARY_PATH
10705   shlibpath_overrides_runpath=yes
10706   hardcode_into_libs=yes
10707   # ldd complains unless libraries are executable
10708   postinstall_cmds='chmod +x $lib'
10709   ;;
10710
10711 sunos4*)
10712   version_type=sunos
10713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10714   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10715   shlibpath_var=LD_LIBRARY_PATH
10716   shlibpath_overrides_runpath=yes
10717   if test "$with_gnu_ld" = yes; then
10718     need_lib_prefix=no
10719   fi
10720   need_version=yes
10721   ;;
10722
10723 sysv4 | sysv4.3*)
10724   version_type=linux # correct to gnu/linux during the next big refactor
10725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726   soname_spec='${libname}${release}${shared_ext}$major'
10727   shlibpath_var=LD_LIBRARY_PATH
10728   case $host_vendor in
10729     sni)
10730       shlibpath_overrides_runpath=no
10731       need_lib_prefix=no
10732       runpath_var=LD_RUN_PATH
10733       ;;
10734     siemens)
10735       need_lib_prefix=no
10736       ;;
10737     motorola)
10738       need_lib_prefix=no
10739       need_version=no
10740       shlibpath_overrides_runpath=no
10741       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10742       ;;
10743   esac
10744   ;;
10745
10746 sysv4*MP*)
10747   if test -d /usr/nec ;then
10748     version_type=linux # correct to gnu/linux during the next big refactor
10749     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10750     soname_spec='$libname${shared_ext}.$major'
10751     shlibpath_var=LD_LIBRARY_PATH
10752   fi
10753   ;;
10754
10755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10756   version_type=freebsd-elf
10757   need_lib_prefix=no
10758   need_version=no
10759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10760   soname_spec='${libname}${release}${shared_ext}$major'
10761   shlibpath_var=LD_LIBRARY_PATH
10762   shlibpath_overrides_runpath=yes
10763   hardcode_into_libs=yes
10764   if test "$with_gnu_ld" = yes; then
10765     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10766   else
10767     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10768     case $host_os in
10769       sco3.2v5*)
10770         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10771         ;;
10772     esac
10773   fi
10774   sys_lib_dlsearch_path_spec='/usr/lib'
10775   ;;
10776
10777 tpf*)
10778   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10779   version_type=linux # correct to gnu/linux during the next big refactor
10780   need_lib_prefix=no
10781   need_version=no
10782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783   shlibpath_var=LD_LIBRARY_PATH
10784   shlibpath_overrides_runpath=no
10785   hardcode_into_libs=yes
10786   ;;
10787
10788 uts4*)
10789   version_type=linux # correct to gnu/linux during the next big refactor
10790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791   soname_spec='${libname}${release}${shared_ext}$major'
10792   shlibpath_var=LD_LIBRARY_PATH
10793   ;;
10794
10795 *)
10796   dynamic_linker=no
10797   ;;
10798 esac
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10800 $as_echo "$dynamic_linker" >&6; }
10801 test "$dynamic_linker" = no && can_build_shared=no
10802
10803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10804 if test "$GCC" = yes; then
10805   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10806 fi
10807
10808 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10809   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10810 fi
10811 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10812   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10813 fi
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10907 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10908 hardcode_action=
10909 if test -n "$hardcode_libdir_flag_spec" ||
10910    test -n "$runpath_var" ||
10911    test "X$hardcode_automatic" = "Xyes" ; then
10912
10913   # We can hardcode non-existent directories.
10914   if test "$hardcode_direct" != no &&
10915      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10916      # have to relink, otherwise we might link with an installed library
10917      # when we should be linking with a yet-to-be-installed one
10918      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10919      test "$hardcode_minus_L" != no; then
10920     # Linking always hardcodes the temporary library directory.
10921     hardcode_action=relink
10922   else
10923     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10924     hardcode_action=immediate
10925   fi
10926 else
10927   # We cannot hardcode anything, or else we can only hardcode existing
10928   # directories.
10929   hardcode_action=unsupported
10930 fi
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10932 $as_echo "$hardcode_action" >&6; }
10933
10934 if test "$hardcode_action" = relink ||
10935    test "$inherit_rpath" = yes; then
10936   # Fast installation is not supported
10937   enable_fast_install=no
10938 elif test "$shlibpath_overrides_runpath" = yes ||
10939      test "$enable_shared" = no; then
10940   # Fast installation is not necessary
10941   enable_fast_install=needless
10942 fi
10943
10944
10945
10946
10947
10948
10949   if test "x$enable_dlopen" != xyes; then
10950   enable_dlopen=unknown
10951   enable_dlopen_self=unknown
10952   enable_dlopen_self_static=unknown
10953 else
10954   lt_cv_dlopen=no
10955   lt_cv_dlopen_libs=
10956
10957   case $host_os in
10958   beos*)
10959     lt_cv_dlopen="load_add_on"
10960     lt_cv_dlopen_libs=
10961     lt_cv_dlopen_self=yes
10962     ;;
10963
10964   mingw* | pw32* | cegcc*)
10965     lt_cv_dlopen="LoadLibrary"
10966     lt_cv_dlopen_libs=
10967     ;;
10968
10969   cygwin*)
10970     lt_cv_dlopen="dlopen"
10971     lt_cv_dlopen_libs=
10972     ;;
10973
10974   darwin*)
10975   # if libdl is installed we need to link against it
10976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10977 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10978 if ${ac_cv_lib_dl_dlopen+:} false; then :
10979   $as_echo_n "(cached) " >&6
10980 else
10981   ac_check_lib_save_LIBS=$LIBS
10982 LIBS="-ldl  $LIBS"
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h.  */
10985
10986 /* Override any GCC internal prototype to avoid an error.
10987    Use char because int might match the return type of a GCC
10988    builtin and then its argument prototype would still apply.  */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 char dlopen ();
10993 int
10994 main ()
10995 {
10996 return dlopen ();
10997   ;
10998   return 0;
10999 }
11000 _ACEOF
11001 if ac_fn_c_try_link "$LINENO"; then :
11002   ac_cv_lib_dl_dlopen=yes
11003 else
11004   ac_cv_lib_dl_dlopen=no
11005 fi
11006 rm -f core conftest.err conftest.$ac_objext \
11007     conftest$ac_exeext conftest.$ac_ext
11008 LIBS=$ac_check_lib_save_LIBS
11009 fi
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11011 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11012 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11013   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11014 else
11015
11016     lt_cv_dlopen="dyld"
11017     lt_cv_dlopen_libs=
11018     lt_cv_dlopen_self=yes
11019
11020 fi
11021
11022     ;;
11023
11024   *)
11025     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11026 if test "x$ac_cv_func_shl_load" = xyes; then :
11027   lt_cv_dlopen="shl_load"
11028 else
11029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11030 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11031 if ${ac_cv_lib_dld_shl_load+:} false; then :
11032   $as_echo_n "(cached) " >&6
11033 else
11034   ac_check_lib_save_LIBS=$LIBS
11035 LIBS="-ldld  $LIBS"
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h.  */
11038
11039 /* Override any GCC internal prototype to avoid an error.
11040    Use char because int might match the return type of a GCC
11041    builtin and then its argument prototype would still apply.  */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 char shl_load ();
11046 int
11047 main ()
11048 {
11049 return shl_load ();
11050   ;
11051   return 0;
11052 }
11053 _ACEOF
11054 if ac_fn_c_try_link "$LINENO"; then :
11055   ac_cv_lib_dld_shl_load=yes
11056 else
11057   ac_cv_lib_dld_shl_load=no
11058 fi
11059 rm -f core conftest.err conftest.$ac_objext \
11060     conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_lib_save_LIBS
11062 fi
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11064 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11065 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11066   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11067 else
11068   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11069 if test "x$ac_cv_func_dlopen" = xyes; then :
11070   lt_cv_dlopen="dlopen"
11071 else
11072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11073 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11074 if ${ac_cv_lib_dl_dlopen+:} false; then :
11075   $as_echo_n "(cached) " >&6
11076 else
11077   ac_check_lib_save_LIBS=$LIBS
11078 LIBS="-ldl  $LIBS"
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h.  */
11081
11082 /* Override any GCC internal prototype to avoid an error.
11083    Use char because int might match the return type of a GCC
11084    builtin and then its argument prototype would still apply.  */
11085 #ifdef __cplusplus
11086 extern "C"
11087 #endif
11088 char dlopen ();
11089 int
11090 main ()
11091 {
11092 return dlopen ();
11093   ;
11094   return 0;
11095 }
11096 _ACEOF
11097 if ac_fn_c_try_link "$LINENO"; then :
11098   ac_cv_lib_dl_dlopen=yes
11099 else
11100   ac_cv_lib_dl_dlopen=no
11101 fi
11102 rm -f core conftest.err conftest.$ac_objext \
11103     conftest$ac_exeext conftest.$ac_ext
11104 LIBS=$ac_check_lib_save_LIBS
11105 fi
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11107 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11108 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11109   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11110 else
11111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11112 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11113 if ${ac_cv_lib_svld_dlopen+:} false; then :
11114   $as_echo_n "(cached) " >&6
11115 else
11116   ac_check_lib_save_LIBS=$LIBS
11117 LIBS="-lsvld  $LIBS"
11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h.  */
11120
11121 /* Override any GCC internal prototype to avoid an error.
11122    Use char because int might match the return type of a GCC
11123    builtin and then its argument prototype would still apply.  */
11124 #ifdef __cplusplus
11125 extern "C"
11126 #endif
11127 char dlopen ();
11128 int
11129 main ()
11130 {
11131 return dlopen ();
11132   ;
11133   return 0;
11134 }
11135 _ACEOF
11136 if ac_fn_c_try_link "$LINENO"; then :
11137   ac_cv_lib_svld_dlopen=yes
11138 else
11139   ac_cv_lib_svld_dlopen=no
11140 fi
11141 rm -f core conftest.err conftest.$ac_objext \
11142     conftest$ac_exeext conftest.$ac_ext
11143 LIBS=$ac_check_lib_save_LIBS
11144 fi
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11146 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11147 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11148   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11149 else
11150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11151 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11152 if ${ac_cv_lib_dld_dld_link+:} false; then :
11153   $as_echo_n "(cached) " >&6
11154 else
11155   ac_check_lib_save_LIBS=$LIBS
11156 LIBS="-ldld  $LIBS"
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h.  */
11159
11160 /* Override any GCC internal prototype to avoid an error.
11161    Use char because int might match the return type of a GCC
11162    builtin and then its argument prototype would still apply.  */
11163 #ifdef __cplusplus
11164 extern "C"
11165 #endif
11166 char dld_link ();
11167 int
11168 main ()
11169 {
11170 return dld_link ();
11171   ;
11172   return 0;
11173 }
11174 _ACEOF
11175 if ac_fn_c_try_link "$LINENO"; then :
11176   ac_cv_lib_dld_dld_link=yes
11177 else
11178   ac_cv_lib_dld_dld_link=no
11179 fi
11180 rm -f core conftest.err conftest.$ac_objext \
11181     conftest$ac_exeext conftest.$ac_ext
11182 LIBS=$ac_check_lib_save_LIBS
11183 fi
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11185 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11186 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11187   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11188 fi
11189
11190
11191 fi
11192
11193
11194 fi
11195
11196
11197 fi
11198
11199
11200 fi
11201
11202
11203 fi
11204
11205     ;;
11206   esac
11207
11208   if test "x$lt_cv_dlopen" != xno; then
11209     enable_dlopen=yes
11210   else
11211     enable_dlopen=no
11212   fi
11213
11214   case $lt_cv_dlopen in
11215   dlopen)
11216     save_CPPFLAGS="$CPPFLAGS"
11217     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11218
11219     save_LDFLAGS="$LDFLAGS"
11220     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11221
11222     save_LIBS="$LIBS"
11223     LIBS="$lt_cv_dlopen_libs $LIBS"
11224
11225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11226 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11227 if ${lt_cv_dlopen_self+:} false; then :
11228   $as_echo_n "(cached) " >&6
11229 else
11230           if test "$cross_compiling" = yes; then :
11231   lt_cv_dlopen_self=cross
11232 else
11233   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11234   lt_status=$lt_dlunknown
11235   cat > conftest.$ac_ext <<_LT_EOF
11236 #line $LINENO "configure"
11237 #include "confdefs.h"
11238
11239 #if HAVE_DLFCN_H
11240 #include <dlfcn.h>
11241 #endif
11242
11243 #include <stdio.h>
11244
11245 #ifdef RTLD_GLOBAL
11246 #  define LT_DLGLOBAL           RTLD_GLOBAL
11247 #else
11248 #  ifdef DL_GLOBAL
11249 #    define LT_DLGLOBAL         DL_GLOBAL
11250 #  else
11251 #    define LT_DLGLOBAL         0
11252 #  endif
11253 #endif
11254
11255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11256    find out it does not work in some platform. */
11257 #ifndef LT_DLLAZY_OR_NOW
11258 #  ifdef RTLD_LAZY
11259 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11260 #  else
11261 #    ifdef DL_LAZY
11262 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11263 #    else
11264 #      ifdef RTLD_NOW
11265 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11266 #      else
11267 #        ifdef DL_NOW
11268 #          define LT_DLLAZY_OR_NOW      DL_NOW
11269 #        else
11270 #          define LT_DLLAZY_OR_NOW      0
11271 #        endif
11272 #      endif
11273 #    endif
11274 #  endif
11275 #endif
11276
11277 /* When -fvisbility=hidden is used, assume the code has been annotated
11278    correspondingly for the symbols needed.  */
11279 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11280 int fnord () __attribute__((visibility("default")));
11281 #endif
11282
11283 int fnord () { return 42; }
11284 int main ()
11285 {
11286   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11287   int status = $lt_dlunknown;
11288
11289   if (self)
11290     {
11291       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11292       else
11293         {
11294           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11295           else puts (dlerror ());
11296         }
11297       /* dlclose (self); */
11298     }
11299   else
11300     puts (dlerror ());
11301
11302   return status;
11303 }
11304 _LT_EOF
11305   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11306   (eval $ac_link) 2>&5
11307   ac_status=$?
11308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11309   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11310     (./conftest; exit; ) >&5 2>/dev/null
11311     lt_status=$?
11312     case x$lt_status in
11313       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11314       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11315       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11316     esac
11317   else :
11318     # compilation failed
11319     lt_cv_dlopen_self=no
11320   fi
11321 fi
11322 rm -fr conftest*
11323
11324
11325 fi
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11327 $as_echo "$lt_cv_dlopen_self" >&6; }
11328
11329     if test "x$lt_cv_dlopen_self" = xyes; then
11330       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11331       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11332 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11333 if ${lt_cv_dlopen_self_static+:} false; then :
11334   $as_echo_n "(cached) " >&6
11335 else
11336           if test "$cross_compiling" = yes; then :
11337   lt_cv_dlopen_self_static=cross
11338 else
11339   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11340   lt_status=$lt_dlunknown
11341   cat > conftest.$ac_ext <<_LT_EOF
11342 #line $LINENO "configure"
11343 #include "confdefs.h"
11344
11345 #if HAVE_DLFCN_H
11346 #include <dlfcn.h>
11347 #endif
11348
11349 #include <stdio.h>
11350
11351 #ifdef RTLD_GLOBAL
11352 #  define LT_DLGLOBAL           RTLD_GLOBAL
11353 #else
11354 #  ifdef DL_GLOBAL
11355 #    define LT_DLGLOBAL         DL_GLOBAL
11356 #  else
11357 #    define LT_DLGLOBAL         0
11358 #  endif
11359 #endif
11360
11361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11362    find out it does not work in some platform. */
11363 #ifndef LT_DLLAZY_OR_NOW
11364 #  ifdef RTLD_LAZY
11365 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11366 #  else
11367 #    ifdef DL_LAZY
11368 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11369 #    else
11370 #      ifdef RTLD_NOW
11371 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11372 #      else
11373 #        ifdef DL_NOW
11374 #          define LT_DLLAZY_OR_NOW      DL_NOW
11375 #        else
11376 #          define LT_DLLAZY_OR_NOW      0
11377 #        endif
11378 #      endif
11379 #    endif
11380 #  endif
11381 #endif
11382
11383 /* When -fvisbility=hidden is used, assume the code has been annotated
11384    correspondingly for the symbols needed.  */
11385 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11386 int fnord () __attribute__((visibility("default")));
11387 #endif
11388
11389 int fnord () { return 42; }
11390 int main ()
11391 {
11392   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11393   int status = $lt_dlunknown;
11394
11395   if (self)
11396     {
11397       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11398       else
11399         {
11400           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11401           else puts (dlerror ());
11402         }
11403       /* dlclose (self); */
11404     }
11405   else
11406     puts (dlerror ());
11407
11408   return status;
11409 }
11410 _LT_EOF
11411   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11412   (eval $ac_link) 2>&5
11413   ac_status=$?
11414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11415   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11416     (./conftest; exit; ) >&5 2>/dev/null
11417     lt_status=$?
11418     case x$lt_status in
11419       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11420       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11421       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11422     esac
11423   else :
11424     # compilation failed
11425     lt_cv_dlopen_self_static=no
11426   fi
11427 fi
11428 rm -fr conftest*
11429
11430
11431 fi
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11433 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11434     fi
11435
11436     CPPFLAGS="$save_CPPFLAGS"
11437     LDFLAGS="$save_LDFLAGS"
11438     LIBS="$save_LIBS"
11439     ;;
11440   esac
11441
11442   case $lt_cv_dlopen_self in
11443   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11444   *) enable_dlopen_self=unknown ;;
11445   esac
11446
11447   case $lt_cv_dlopen_self_static in
11448   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11449   *) enable_dlopen_self_static=unknown ;;
11450   esac
11451 fi
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469 striplib=
11470 old_striplib=
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11472 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11473 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11474   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11475   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11477 $as_echo "yes" >&6; }
11478 else
11479 # FIXME - insert some real tests, host_os isn't really good enough
11480   case $host_os in
11481   darwin*)
11482     if test -n "$STRIP" ; then
11483       striplib="$STRIP -x"
11484       old_striplib="$STRIP -S"
11485       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11486 $as_echo "yes" >&6; }
11487     else
11488       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11490     fi
11491     ;;
11492   *)
11493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11495     ;;
11496   esac
11497 fi
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510   # Report which library types will actually be built
11511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11512 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11514 $as_echo "$can_build_shared" >&6; }
11515
11516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11517 $as_echo_n "checking whether to build shared libraries... " >&6; }
11518   test "$can_build_shared" = "no" && enable_shared=no
11519
11520   # On AIX, shared libraries and static libraries use the same namespace, and
11521   # are all built from PIC.
11522   case $host_os in
11523   aix3*)
11524     test "$enable_shared" = yes && enable_static=no
11525     if test -n "$RANLIB"; then
11526       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11527       postinstall_cmds='$RANLIB $lib'
11528     fi
11529     ;;
11530
11531   aix[4-9]*)
11532     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11533       test "$enable_shared" = yes && enable_static=no
11534     fi
11535     ;;
11536   esac
11537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11538 $as_echo "$enable_shared" >&6; }
11539
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11541 $as_echo_n "checking whether to build static libraries... " >&6; }
11542   # Make sure either enable_shared or enable_static is yes.
11543   test "$enable_shared" = yes || enable_static=yes
11544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11545 $as_echo "$enable_static" >&6; }
11546
11547
11548
11549
11550 fi
11551 ac_ext=c
11552 ac_cpp='$CPP $CPPFLAGS'
11553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11556
11557 CC="$lt_save_CC"
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573         ac_config_commands="$ac_config_commands libtool"
11574
11575
11576
11577
11578 # Only expand once:
11579
11580
11581
11582 # Check whether --enable-tools was given.
11583 if test "${enable_tools+set}" = set; then :
11584   enableval=$enable_tools; case $enableval in
11585      yes|no) enable_tools=${enableval} ;;
11586      *) as_fn_error $? "Invalid value passed to --enable-tools" "$LINENO" 5 ;;
11587      esac
11588 else
11589   enable_tools=no
11590 fi
11591
11592 ENABLE_TOOLS=${enable_tools}
11593
11594  if test "${enable_tools}" = yes; then
11595   ENABLE_TOOLS_TRUE=
11596   ENABLE_TOOLS_FALSE='#'
11597 else
11598   ENABLE_TOOLS_TRUE='#'
11599   ENABLE_TOOLS_FALSE=
11600 fi
11601
11602
11603
11604 ac_ext=c
11605 ac_cpp='$CPP $CPPFLAGS'
11606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11609
11610 ac_ext=c
11611 ac_cpp='$CPP $CPPFLAGS'
11612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11615 if test -n "$ac_tool_prefix"; then
11616   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11617 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11619 $as_echo_n "checking for $ac_word... " >&6; }
11620 if ${ac_cv_prog_CC+:} false; then :
11621   $as_echo_n "(cached) " >&6
11622 else
11623   if test -n "$CC"; then
11624   ac_cv_prog_CC="$CC" # Let the user override the test.
11625 else
11626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH
11628 do
11629   IFS=$as_save_IFS
11630   test -z "$as_dir" && as_dir=.
11631     for ac_exec_ext in '' $ac_executable_extensions; do
11632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11633     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11635     break 2
11636   fi
11637 done
11638   done
11639 IFS=$as_save_IFS
11640
11641 fi
11642 fi
11643 CC=$ac_cv_prog_CC
11644 if test -n "$CC"; then
11645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11646 $as_echo "$CC" >&6; }
11647 else
11648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649 $as_echo "no" >&6; }
11650 fi
11651
11652
11653 fi
11654 if test -z "$ac_cv_prog_CC"; then
11655   ac_ct_CC=$CC
11656   # Extract the first word of "gcc", so it can be a program name with args.
11657 set dummy gcc; ac_word=$2
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11659 $as_echo_n "checking for $ac_word... " >&6; }
11660 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11661   $as_echo_n "(cached) " >&6
11662 else
11663   if test -n "$ac_ct_CC"; then
11664   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11665 else
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11668 do
11669   IFS=$as_save_IFS
11670   test -z "$as_dir" && as_dir=.
11671     for ac_exec_ext in '' $ac_executable_extensions; do
11672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11673     ac_cv_prog_ac_ct_CC="gcc"
11674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11675     break 2
11676   fi
11677 done
11678   done
11679 IFS=$as_save_IFS
11680
11681 fi
11682 fi
11683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11684 if test -n "$ac_ct_CC"; then
11685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11686 $as_echo "$ac_ct_CC" >&6; }
11687 else
11688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689 $as_echo "no" >&6; }
11690 fi
11691
11692   if test "x$ac_ct_CC" = x; then
11693     CC=""
11694   else
11695     case $cross_compiling:$ac_tool_warned in
11696 yes:)
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11699 ac_tool_warned=yes ;;
11700 esac
11701     CC=$ac_ct_CC
11702   fi
11703 else
11704   CC="$ac_cv_prog_CC"
11705 fi
11706
11707 if test -z "$CC"; then
11708           if test -n "$ac_tool_prefix"; then
11709     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11710 set dummy ${ac_tool_prefix}cc; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if ${ac_cv_prog_CC+:} false; then :
11714   $as_echo_n "(cached) " >&6
11715 else
11716   if test -n "$CC"; then
11717   ac_cv_prog_CC="$CC" # Let the user override the test.
11718 else
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722   IFS=$as_save_IFS
11723   test -z "$as_dir" && as_dir=.
11724     for ac_exec_ext in '' $ac_executable_extensions; do
11725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726     ac_cv_prog_CC="${ac_tool_prefix}cc"
11727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728     break 2
11729   fi
11730 done
11731   done
11732 IFS=$as_save_IFS
11733
11734 fi
11735 fi
11736 CC=$ac_cv_prog_CC
11737 if test -n "$CC"; then
11738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11739 $as_echo "$CC" >&6; }
11740 else
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11743 fi
11744
11745
11746   fi
11747 fi
11748 if test -z "$CC"; then
11749   # Extract the first word of "cc", so it can be a program name with args.
11750 set dummy cc; ac_word=$2
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11752 $as_echo_n "checking for $ac_word... " >&6; }
11753 if ${ac_cv_prog_CC+:} false; then :
11754   $as_echo_n "(cached) " >&6
11755 else
11756   if test -n "$CC"; then
11757   ac_cv_prog_CC="$CC" # Let the user override the test.
11758 else
11759   ac_prog_rejected=no
11760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761 for as_dir in $PATH
11762 do
11763   IFS=$as_save_IFS
11764   test -z "$as_dir" && as_dir=.
11765     for ac_exec_ext in '' $ac_executable_extensions; do
11766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11767     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11768        ac_prog_rejected=yes
11769        continue
11770      fi
11771     ac_cv_prog_CC="cc"
11772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11773     break 2
11774   fi
11775 done
11776   done
11777 IFS=$as_save_IFS
11778
11779 if test $ac_prog_rejected = yes; then
11780   # We found a bogon in the path, so make sure we never use it.
11781   set dummy $ac_cv_prog_CC
11782   shift
11783   if test $# != 0; then
11784     # We chose a different compiler from the bogus one.
11785     # However, it has the same basename, so the bogon will be chosen
11786     # first if we set CC to just the basename; use the full file name.
11787     shift
11788     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11789   fi
11790 fi
11791 fi
11792 fi
11793 CC=$ac_cv_prog_CC
11794 if test -n "$CC"; then
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11796 $as_echo "$CC" >&6; }
11797 else
11798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11800 fi
11801
11802
11803 fi
11804 if test -z "$CC"; then
11805   if test -n "$ac_tool_prefix"; then
11806   for ac_prog in cl.exe
11807   do
11808     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811 $as_echo_n "checking for $ac_word... " >&6; }
11812 if ${ac_cv_prog_CC+:} false; then :
11813   $as_echo_n "(cached) " >&6
11814 else
11815   if test -n "$CC"; then
11816   ac_cv_prog_CC="$CC" # Let the user override the test.
11817 else
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819 for as_dir in $PATH
11820 do
11821   IFS=$as_save_IFS
11822   test -z "$as_dir" && as_dir=.
11823     for ac_exec_ext in '' $ac_executable_extensions; do
11824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11825     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11827     break 2
11828   fi
11829 done
11830   done
11831 IFS=$as_save_IFS
11832
11833 fi
11834 fi
11835 CC=$ac_cv_prog_CC
11836 if test -n "$CC"; then
11837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11838 $as_echo "$CC" >&6; }
11839 else
11840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11842 fi
11843
11844
11845     test -n "$CC" && break
11846   done
11847 fi
11848 if test -z "$CC"; then
11849   ac_ct_CC=$CC
11850   for ac_prog in cl.exe
11851 do
11852   # Extract the first word of "$ac_prog", so it can be a program name with args.
11853 set dummy $ac_prog; ac_word=$2
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855 $as_echo_n "checking for $ac_word... " >&6; }
11856 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11857   $as_echo_n "(cached) " >&6
11858 else
11859   if test -n "$ac_ct_CC"; then
11860   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11861 else
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
11864 do
11865   IFS=$as_save_IFS
11866   test -z "$as_dir" && as_dir=.
11867     for ac_exec_ext in '' $ac_executable_extensions; do
11868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11869     ac_cv_prog_ac_ct_CC="$ac_prog"
11870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871     break 2
11872   fi
11873 done
11874   done
11875 IFS=$as_save_IFS
11876
11877 fi
11878 fi
11879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11880 if test -n "$ac_ct_CC"; then
11881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11882 $as_echo "$ac_ct_CC" >&6; }
11883 else
11884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11886 fi
11887
11888
11889   test -n "$ac_ct_CC" && break
11890 done
11891
11892   if test "x$ac_ct_CC" = x; then
11893     CC=""
11894   else
11895     case $cross_compiling:$ac_tool_warned in
11896 yes:)
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11899 ac_tool_warned=yes ;;
11900 esac
11901     CC=$ac_ct_CC
11902   fi
11903 fi
11904
11905 fi
11906
11907
11908 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11910 as_fn_error $? "no acceptable C compiler found in \$PATH
11911 See \`config.log' for more details" "$LINENO" 5; }
11912
11913 # Provide some information about the compiler.
11914 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11915 set X $ac_compile
11916 ac_compiler=$2
11917 for ac_option in --version -v -V -qversion; do
11918   { { ac_try="$ac_compiler $ac_option >&5"
11919 case "(($ac_try" in
11920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921   *) ac_try_echo=$ac_try;;
11922 esac
11923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11924 $as_echo "$ac_try_echo"; } >&5
11925   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11926   ac_status=$?
11927   if test -s conftest.err; then
11928     sed '10a\
11929 ... rest of stderr output deleted ...
11930          10q' conftest.err >conftest.er1
11931     cat conftest.er1 >&5
11932   fi
11933   rm -f conftest.er1 conftest.err
11934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11935   test $ac_status = 0; }
11936 done
11937
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11939 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11940 if ${ac_cv_c_compiler_gnu+:} false; then :
11941   $as_echo_n "(cached) " >&6
11942 else
11943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h.  */
11945
11946 int
11947 main ()
11948 {
11949 #ifndef __GNUC__
11950        choke me
11951 #endif
11952
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 if ac_fn_c_try_compile "$LINENO"; then :
11958   ac_compiler_gnu=yes
11959 else
11960   ac_compiler_gnu=no
11961 fi
11962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11963 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11964
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11967 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11968 if test $ac_compiler_gnu = yes; then
11969   GCC=yes
11970 else
11971   GCC=
11972 fi
11973 ac_test_CFLAGS=${CFLAGS+set}
11974 ac_save_CFLAGS=$CFLAGS
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11976 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11977 if ${ac_cv_prog_cc_g+:} false; then :
11978   $as_echo_n "(cached) " >&6
11979 else
11980   ac_save_c_werror_flag=$ac_c_werror_flag
11981    ac_c_werror_flag=yes
11982    ac_cv_prog_cc_g=no
11983    CFLAGS="-g"
11984    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h.  */
11986
11987 int
11988 main ()
11989 {
11990
11991   ;
11992   return 0;
11993 }
11994 _ACEOF
11995 if ac_fn_c_try_compile "$LINENO"; then :
11996   ac_cv_prog_cc_g=yes
11997 else
11998   CFLAGS=""
11999       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000 /* end confdefs.h.  */
12001
12002 int
12003 main ()
12004 {
12005
12006   ;
12007   return 0;
12008 }
12009 _ACEOF
12010 if ac_fn_c_try_compile "$LINENO"; then :
12011
12012 else
12013   ac_c_werror_flag=$ac_save_c_werror_flag
12014          CFLAGS="-g"
12015          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h.  */
12017
12018 int
12019 main ()
12020 {
12021
12022   ;
12023   return 0;
12024 }
12025 _ACEOF
12026 if ac_fn_c_try_compile "$LINENO"; then :
12027   ac_cv_prog_cc_g=yes
12028 fi
12029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12030 fi
12031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12032 fi
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034    ac_c_werror_flag=$ac_save_c_werror_flag
12035 fi
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12037 $as_echo "$ac_cv_prog_cc_g" >&6; }
12038 if test "$ac_test_CFLAGS" = set; then
12039   CFLAGS=$ac_save_CFLAGS
12040 elif test $ac_cv_prog_cc_g = yes; then
12041   if test "$GCC" = yes; then
12042     CFLAGS="-g -O2"
12043   else
12044     CFLAGS="-g"
12045   fi
12046 else
12047   if test "$GCC" = yes; then
12048     CFLAGS="-O2"
12049   else
12050     CFLAGS=
12051   fi
12052 fi
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12054 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12055 if ${ac_cv_prog_cc_c89+:} false; then :
12056   $as_echo_n "(cached) " >&6
12057 else
12058   ac_cv_prog_cc_c89=no
12059 ac_save_CC=$CC
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h.  */
12062 #include <stdarg.h>
12063 #include <stdio.h>
12064 #include <sys/types.h>
12065 #include <sys/stat.h>
12066 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12067 struct buf { int x; };
12068 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12069 static char *e (p, i)
12070      char **p;
12071      int i;
12072 {
12073   return p[i];
12074 }
12075 static char *f (char * (*g) (char **, int), char **p, ...)
12076 {
12077   char *s;
12078   va_list v;
12079   va_start (v,p);
12080   s = g (p, va_arg (v,int));
12081   va_end (v);
12082   return s;
12083 }
12084
12085 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12086    function prototypes and stuff, but not '\xHH' hex character constants.
12087    These don't provoke an error unfortunately, instead are silently treated
12088    as 'x'.  The following induces an error, until -std is added to get
12089    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12090    array size at least.  It's necessary to write '\x00'==0 to get something
12091    that's true only with -std.  */
12092 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12093
12094 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12095    inside strings and character constants.  */
12096 #define FOO(x) 'x'
12097 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12098
12099 int test (int i, double x);
12100 struct s1 {int (*f) (int a);};
12101 struct s2 {int (*f) (double a);};
12102 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12103 int argc;
12104 char **argv;
12105 int
12106 main ()
12107 {
12108 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12109   ;
12110   return 0;
12111 }
12112 _ACEOF
12113 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12114         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12115 do
12116   CC="$ac_save_CC $ac_arg"
12117   if ac_fn_c_try_compile "$LINENO"; then :
12118   ac_cv_prog_cc_c89=$ac_arg
12119 fi
12120 rm -f core conftest.err conftest.$ac_objext
12121   test "x$ac_cv_prog_cc_c89" != "xno" && break
12122 done
12123 rm -f conftest.$ac_ext
12124 CC=$ac_save_CC
12125
12126 fi
12127 # AC_CACHE_VAL
12128 case "x$ac_cv_prog_cc_c89" in
12129   x)
12130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12131 $as_echo "none needed" >&6; } ;;
12132   xno)
12133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12134 $as_echo "unsupported" >&6; } ;;
12135   *)
12136     CC="$CC $ac_cv_prog_cc_c89"
12137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12138 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12139 esac
12140 if test "x$ac_cv_prog_cc_c89" != xno; then :
12141
12142 fi
12143
12144 ac_ext=c
12145 ac_cpp='$CPP $CPPFLAGS'
12146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12149
12150 depcc="$CC"   am_compiler_list=
12151
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12153 $as_echo_n "checking dependency style of $depcc... " >&6; }
12154 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12155   $as_echo_n "(cached) " >&6
12156 else
12157   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12158   # We make a subdir and do the tests there.  Otherwise we can end up
12159   # making bogus files that we don't know about and never remove.  For
12160   # instance it was reported that on HP-UX the gcc test will end up
12161   # making a dummy file named `D' -- because `-MD' means `put the output
12162   # in D'.
12163   rm -rf conftest.dir
12164   mkdir conftest.dir
12165   # Copy depcomp to subdir because otherwise we won't find it if we're
12166   # using a relative directory.
12167   cp "$am_depcomp" conftest.dir
12168   cd conftest.dir
12169   # We will build objects and dependencies in a subdirectory because
12170   # it helps to detect inapplicable dependency modes.  For instance
12171   # both Tru64's cc and ICC support -MD to output dependencies as a
12172   # side effect of compilation, but ICC will put the dependencies in
12173   # the current directory while Tru64 will put them in the object
12174   # directory.
12175   mkdir sub
12176
12177   am_cv_CC_dependencies_compiler_type=none
12178   if test "$am_compiler_list" = ""; then
12179      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12180   fi
12181   am__universal=false
12182   case " $depcc " in #(
12183      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12184      esac
12185
12186   for depmode in $am_compiler_list; do
12187     # Setup a source with many dependencies, because some compilers
12188     # like to wrap large dependency lists on column 80 (with \), and
12189     # we should not choose a depcomp mode which is confused by this.
12190     #
12191     # We need to recreate these files for each test, as the compiler may
12192     # overwrite some of them when testing with obscure command lines.
12193     # This happens at least with the AIX C compiler.
12194     : > sub/conftest.c
12195     for i in 1 2 3 4 5 6; do
12196       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12197       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12198       # Solaris 8's {/usr,}/bin/sh.
12199       touch sub/conftst$i.h
12200     done
12201     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12202
12203     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12204     # mode.  It turns out that the SunPro C++ compiler does not properly
12205     # handle `-M -o', and we need to detect this.  Also, some Intel
12206     # versions had trouble with output in subdirs
12207     am__obj=sub/conftest.${OBJEXT-o}
12208     am__minus_obj="-o $am__obj"
12209     case $depmode in
12210     gcc)
12211       # This depmode causes a compiler race in universal mode.
12212       test "$am__universal" = false || continue
12213       ;;
12214     nosideeffect)
12215       # after this tag, mechanisms are not by side-effect, so they'll
12216       # only be used when explicitly requested
12217       if test "x$enable_dependency_tracking" = xyes; then
12218         continue
12219       else
12220         break
12221       fi
12222       ;;
12223     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12224       # This compiler won't grok `-c -o', but also, the minuso test has
12225       # not run yet.  These depmodes are late enough in the game, and
12226       # so weak that their functioning should not be impacted.
12227       am__obj=conftest.${OBJEXT-o}
12228       am__minus_obj=
12229       ;;
12230     none) break ;;
12231     esac
12232     if depmode=$depmode \
12233        source=sub/conftest.c object=$am__obj \
12234        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12235        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12236          >/dev/null 2>conftest.err &&
12237        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12238        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12239        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12240        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12241       # icc doesn't choke on unknown options, it will just issue warnings
12242       # or remarks (even with -Werror).  So we grep stderr for any message
12243       # that says an option was ignored or not supported.
12244       # When given -MP, icc 7.0 and 7.1 complain thusly:
12245       #   icc: Command line warning: ignoring option '-M'; no argument required
12246       # The diagnosis changed in icc 8.0:
12247       #   icc: Command line remark: option '-MP' not supported
12248       if (grep 'ignoring option' conftest.err ||
12249           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12250         am_cv_CC_dependencies_compiler_type=$depmode
12251         break
12252       fi
12253     fi
12254   done
12255
12256   cd ..
12257   rm -rf conftest.dir
12258 else
12259   am_cv_CC_dependencies_compiler_type=none
12260 fi
12261
12262 fi
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12264 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12265 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12266
12267  if
12268   test "x$enable_dependency_tracking" != xno \
12269   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12270   am__fastdepCC_TRUE=
12271   am__fastdepCC_FALSE='#'
12272 else
12273   am__fastdepCC_TRUE='#'
12274   am__fastdepCC_FALSE=
12275 fi
12276
12277
12278 if test "x$CC" != xcc; then
12279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12280 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12281 else
12282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12283 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12284 fi
12285 set dummy $CC; ac_cc=`$as_echo "$2" |
12286                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12287 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12288   $as_echo_n "(cached) " >&6
12289 else
12290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291 /* end confdefs.h.  */
12292
12293 int
12294 main ()
12295 {
12296
12297   ;
12298   return 0;
12299 }
12300 _ACEOF
12301 # Make sure it works both with $CC and with simple cc.
12302 # We do the test twice because some compilers refuse to overwrite an
12303 # existing .o file with -o, though they will create one.
12304 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12305 rm -f conftest2.*
12306 if { { case "(($ac_try" in
12307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308   *) ac_try_echo=$ac_try;;
12309 esac
12310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12311 $as_echo "$ac_try_echo"; } >&5
12312   (eval "$ac_try") 2>&5
12313   ac_status=$?
12314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12315   test $ac_status = 0; } &&
12316    test -f conftest2.$ac_objext && { { case "(($ac_try" in
12317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318   *) ac_try_echo=$ac_try;;
12319 esac
12320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12321 $as_echo "$ac_try_echo"; } >&5
12322   (eval "$ac_try") 2>&5
12323   ac_status=$?
12324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12325   test $ac_status = 0; };
12326 then
12327   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12328   if test "x$CC" != xcc; then
12329     # Test first that cc exists at all.
12330     if { ac_try='cc -c conftest.$ac_ext >&5'
12331   { { case "(($ac_try" in
12332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333   *) ac_try_echo=$ac_try;;
12334 esac
12335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12336 $as_echo "$ac_try_echo"; } >&5
12337   (eval "$ac_try") 2>&5
12338   ac_status=$?
12339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12340   test $ac_status = 0; }; }; then
12341       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12342       rm -f conftest2.*
12343       if { { case "(($ac_try" in
12344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345   *) ac_try_echo=$ac_try;;
12346 esac
12347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12348 $as_echo "$ac_try_echo"; } >&5
12349   (eval "$ac_try") 2>&5
12350   ac_status=$?
12351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12352   test $ac_status = 0; } &&
12353          test -f conftest2.$ac_objext && { { case "(($ac_try" in
12354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355   *) ac_try_echo=$ac_try;;
12356 esac
12357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12358 $as_echo "$ac_try_echo"; } >&5
12359   (eval "$ac_try") 2>&5
12360   ac_status=$?
12361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12362   test $ac_status = 0; };
12363       then
12364         # cc works too.
12365         :
12366       else
12367         # cc exists but doesn't like -o.
12368         eval ac_cv_prog_cc_${ac_cc}_c_o=no
12369       fi
12370     fi
12371   fi
12372 else
12373   eval ac_cv_prog_cc_${ac_cc}_c_o=no
12374 fi
12375 rm -f core conftest*
12376
12377 fi
12378 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380 $as_echo "yes" >&6; }
12381 else
12382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12384
12385 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12386
12387 fi
12388
12389 # FIXME: we rely on the cache variable name because
12390 # there is no other way.
12391 set dummy $CC
12392 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12393 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12394 if test "$am_t" != yes; then
12395    # Losing compiler, so override with the script.
12396    # FIXME: It is wrong to rewrite CC.
12397    # But if we don't then we get into trouble of one sort or another.
12398    # A longer-term fix would be to have automake use am__CC in this case,
12399    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12400    CC="$am_aux_dir/compile $CC"
12401 fi
12402
12403
12404
12405 ac_ext=cpp
12406 ac_cpp='$CXXCPP $CPPFLAGS'
12407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12410
12411 ac_ext=cpp
12412 ac_cpp='$CXXCPP $CPPFLAGS'
12413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12416 if test -z "$CXX"; then
12417   if test -n "$CCC"; then
12418     CXX=$CCC
12419   else
12420     if test -n "$ac_tool_prefix"; then
12421   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12422   do
12423     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12424 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426 $as_echo_n "checking for $ac_word... " >&6; }
12427 if ${ac_cv_prog_CXX+:} false; then :
12428   $as_echo_n "(cached) " >&6
12429 else
12430   if test -n "$CXX"; then
12431   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12432 else
12433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12435 do
12436   IFS=$as_save_IFS
12437   test -z "$as_dir" && as_dir=.
12438     for ac_exec_ext in '' $ac_executable_extensions; do
12439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12440     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442     break 2
12443   fi
12444 done
12445   done
12446 IFS=$as_save_IFS
12447
12448 fi
12449 fi
12450 CXX=$ac_cv_prog_CXX
12451 if test -n "$CXX"; then
12452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12453 $as_echo "$CXX" >&6; }
12454 else
12455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 $as_echo "no" >&6; }
12457 fi
12458
12459
12460     test -n "$CXX" && break
12461   done
12462 fi
12463 if test -z "$CXX"; then
12464   ac_ct_CXX=$CXX
12465   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12466 do
12467   # Extract the first word of "$ac_prog", so it can be a program name with args.
12468 set dummy $ac_prog; ac_word=$2
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12470 $as_echo_n "checking for $ac_word... " >&6; }
12471 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12472   $as_echo_n "(cached) " >&6
12473 else
12474   if test -n "$ac_ct_CXX"; then
12475   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12476 else
12477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12478 for as_dir in $PATH
12479 do
12480   IFS=$as_save_IFS
12481   test -z "$as_dir" && as_dir=.
12482     for ac_exec_ext in '' $ac_executable_extensions; do
12483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12484     ac_cv_prog_ac_ct_CXX="$ac_prog"
12485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12486     break 2
12487   fi
12488 done
12489   done
12490 IFS=$as_save_IFS
12491
12492 fi
12493 fi
12494 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12495 if test -n "$ac_ct_CXX"; then
12496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12497 $as_echo "$ac_ct_CXX" >&6; }
12498 else
12499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500 $as_echo "no" >&6; }
12501 fi
12502
12503
12504   test -n "$ac_ct_CXX" && break
12505 done
12506
12507   if test "x$ac_ct_CXX" = x; then
12508     CXX="g++"
12509   else
12510     case $cross_compiling:$ac_tool_warned in
12511 yes:)
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12514 ac_tool_warned=yes ;;
12515 esac
12516     CXX=$ac_ct_CXX
12517   fi
12518 fi
12519
12520   fi
12521 fi
12522 # Provide some information about the compiler.
12523 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12524 set X $ac_compile
12525 ac_compiler=$2
12526 for ac_option in --version -v -V -qversion; do
12527   { { ac_try="$ac_compiler $ac_option >&5"
12528 case "(($ac_try" in
12529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530   *) ac_try_echo=$ac_try;;
12531 esac
12532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12533 $as_echo "$ac_try_echo"; } >&5
12534   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12535   ac_status=$?
12536   if test -s conftest.err; then
12537     sed '10a\
12538 ... rest of stderr output deleted ...
12539          10q' conftest.err >conftest.er1
12540     cat conftest.er1 >&5
12541   fi
12542   rm -f conftest.er1 conftest.err
12543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12544   test $ac_status = 0; }
12545 done
12546
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12548 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12549 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12550   $as_echo_n "(cached) " >&6
12551 else
12552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h.  */
12554
12555 int
12556 main ()
12557 {
12558 #ifndef __GNUC__
12559        choke me
12560 #endif
12561
12562   ;
12563   return 0;
12564 }
12565 _ACEOF
12566 if ac_fn_cxx_try_compile "$LINENO"; then :
12567   ac_compiler_gnu=yes
12568 else
12569   ac_compiler_gnu=no
12570 fi
12571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12573
12574 fi
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12576 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12577 if test $ac_compiler_gnu = yes; then
12578   GXX=yes
12579 else
12580   GXX=
12581 fi
12582 ac_test_CXXFLAGS=${CXXFLAGS+set}
12583 ac_save_CXXFLAGS=$CXXFLAGS
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12585 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12586 if ${ac_cv_prog_cxx_g+:} false; then :
12587   $as_echo_n "(cached) " >&6
12588 else
12589   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12590    ac_cxx_werror_flag=yes
12591    ac_cv_prog_cxx_g=no
12592    CXXFLAGS="-g"
12593    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h.  */
12595
12596 int
12597 main ()
12598 {
12599
12600   ;
12601   return 0;
12602 }
12603 _ACEOF
12604 if ac_fn_cxx_try_compile "$LINENO"; then :
12605   ac_cv_prog_cxx_g=yes
12606 else
12607   CXXFLAGS=""
12608       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h.  */
12610
12611 int
12612 main ()
12613 {
12614
12615   ;
12616   return 0;
12617 }
12618 _ACEOF
12619 if ac_fn_cxx_try_compile "$LINENO"; then :
12620
12621 else
12622   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12623          CXXFLAGS="-g"
12624          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h.  */
12626
12627 int
12628 main ()
12629 {
12630
12631   ;
12632   return 0;
12633 }
12634 _ACEOF
12635 if ac_fn_cxx_try_compile "$LINENO"; then :
12636   ac_cv_prog_cxx_g=yes
12637 fi
12638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12639 fi
12640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12641 fi
12642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12643    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12644 fi
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12646 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12647 if test "$ac_test_CXXFLAGS" = set; then
12648   CXXFLAGS=$ac_save_CXXFLAGS
12649 elif test $ac_cv_prog_cxx_g = yes; then
12650   if test "$GXX" = yes; then
12651     CXXFLAGS="-g -O2"
12652   else
12653     CXXFLAGS="-g"
12654   fi
12655 else
12656   if test "$GXX" = yes; then
12657     CXXFLAGS="-O2"
12658   else
12659     CXXFLAGS=
12660   fi
12661 fi
12662 ac_ext=cpp
12663 ac_cpp='$CXXCPP $CPPFLAGS'
12664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12667
12668 depcc="$CXX"  am_compiler_list=
12669
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12671 $as_echo_n "checking dependency style of $depcc... " >&6; }
12672 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12673   $as_echo_n "(cached) " >&6
12674 else
12675   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12676   # We make a subdir and do the tests there.  Otherwise we can end up
12677   # making bogus files that we don't know about and never remove.  For
12678   # instance it was reported that on HP-UX the gcc test will end up
12679   # making a dummy file named `D' -- because `-MD' means `put the output
12680   # in D'.
12681   rm -rf conftest.dir
12682   mkdir conftest.dir
12683   # Copy depcomp to subdir because otherwise we won't find it if we're
12684   # using a relative directory.
12685   cp "$am_depcomp" conftest.dir
12686   cd conftest.dir
12687   # We will build objects and dependencies in a subdirectory because
12688   # it helps to detect inapplicable dependency modes.  For instance
12689   # both Tru64's cc and ICC support -MD to output dependencies as a
12690   # side effect of compilation, but ICC will put the dependencies in
12691   # the current directory while Tru64 will put them in the object
12692   # directory.
12693   mkdir sub
12694
12695   am_cv_CXX_dependencies_compiler_type=none
12696   if test "$am_compiler_list" = ""; then
12697      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12698   fi
12699   am__universal=false
12700   case " $depcc " in #(
12701      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12702      esac
12703
12704   for depmode in $am_compiler_list; do
12705     # Setup a source with many dependencies, because some compilers
12706     # like to wrap large dependency lists on column 80 (with \), and
12707     # we should not choose a depcomp mode which is confused by this.
12708     #
12709     # We need to recreate these files for each test, as the compiler may
12710     # overwrite some of them when testing with obscure command lines.
12711     # This happens at least with the AIX C compiler.
12712     : > sub/conftest.c
12713     for i in 1 2 3 4 5 6; do
12714       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12715       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12716       # Solaris 8's {/usr,}/bin/sh.
12717       touch sub/conftst$i.h
12718     done
12719     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12720
12721     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12722     # mode.  It turns out that the SunPro C++ compiler does not properly
12723     # handle `-M -o', and we need to detect this.  Also, some Intel
12724     # versions had trouble with output in subdirs
12725     am__obj=sub/conftest.${OBJEXT-o}
12726     am__minus_obj="-o $am__obj"
12727     case $depmode in
12728     gcc)
12729       # This depmode causes a compiler race in universal mode.
12730       test "$am__universal" = false || continue
12731       ;;
12732     nosideeffect)
12733       # after this tag, mechanisms are not by side-effect, so they'll
12734       # only be used when explicitly requested
12735       if test "x$enable_dependency_tracking" = xyes; then
12736         continue
12737       else
12738         break
12739       fi
12740       ;;
12741     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12742       # This compiler won't grok `-c -o', but also, the minuso test has
12743       # not run yet.  These depmodes are late enough in the game, and
12744       # so weak that their functioning should not be impacted.
12745       am__obj=conftest.${OBJEXT-o}
12746       am__minus_obj=
12747       ;;
12748     none) break ;;
12749     esac
12750     if depmode=$depmode \
12751        source=sub/conftest.c object=$am__obj \
12752        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12753        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12754          >/dev/null 2>conftest.err &&
12755        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12756        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12757        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12758        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12759       # icc doesn't choke on unknown options, it will just issue warnings
12760       # or remarks (even with -Werror).  So we grep stderr for any message
12761       # that says an option was ignored or not supported.
12762       # When given -MP, icc 7.0 and 7.1 complain thusly:
12763       #   icc: Command line warning: ignoring option '-M'; no argument required
12764       # The diagnosis changed in icc 8.0:
12765       #   icc: Command line remark: option '-MP' not supported
12766       if (grep 'ignoring option' conftest.err ||
12767           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12768         am_cv_CXX_dependencies_compiler_type=$depmode
12769         break
12770       fi
12771     fi
12772   done
12773
12774   cd ..
12775   rm -rf conftest.dir
12776 else
12777   am_cv_CXX_dependencies_compiler_type=none
12778 fi
12779
12780 fi
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12782 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12783 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12784
12785  if
12786   test "x$enable_dependency_tracking" != xno \
12787   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12788   am__fastdepCXX_TRUE=
12789   am__fastdepCXX_FALSE='#'
12790 else
12791   am__fastdepCXX_TRUE='#'
12792   am__fastdepCXX_FALSE=
12793 fi
12794
12795
12796
12797
12798 func_stripname_cnf ()
12799 {
12800   case ${2} in
12801   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12802   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12803   esac
12804 } # func_stripname_cnf
12805
12806       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12807     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12808     (test "X$CXX" != "Xg++"))) ; then
12809   ac_ext=cpp
12810 ac_cpp='$CXXCPP $CPPFLAGS'
12811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12815 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12816 if test -z "$CXXCPP"; then
12817   if ${ac_cv_prog_CXXCPP+:} false; then :
12818   $as_echo_n "(cached) " >&6
12819 else
12820       # Double quotes because CXXCPP needs to be expanded
12821     for CXXCPP in "$CXX -E" "/lib/cpp"
12822     do
12823       ac_preproc_ok=false
12824 for ac_cxx_preproc_warn_flag in '' yes
12825 do
12826   # Use a header file that comes with gcc, so configuring glibc
12827   # with a fresh cross-compiler works.
12828   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12829   # <limits.h> exists even on freestanding compilers.
12830   # On the NeXT, cc -E runs the code through the compiler's parser,
12831   # not just through cpp. "Syntax error" is here to catch this case.
12832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h.  */
12834 #ifdef __STDC__
12835 # include <limits.h>
12836 #else
12837 # include <assert.h>
12838 #endif
12839                      Syntax error
12840 _ACEOF
12841 if ac_fn_cxx_try_cpp "$LINENO"; then :
12842
12843 else
12844   # Broken: fails on valid input.
12845 continue
12846 fi
12847 rm -f conftest.err conftest.i conftest.$ac_ext
12848
12849   # OK, works on sane cases.  Now check whether nonexistent headers
12850   # can be detected and how.
12851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h.  */
12853 #include <ac_nonexistent.h>
12854 _ACEOF
12855 if ac_fn_cxx_try_cpp "$LINENO"; then :
12856   # Broken: success on invalid input.
12857 continue
12858 else
12859   # Passes both tests.
12860 ac_preproc_ok=:
12861 break
12862 fi
12863 rm -f conftest.err conftest.i conftest.$ac_ext
12864
12865 done
12866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12867 rm -f conftest.i conftest.err conftest.$ac_ext
12868 if $ac_preproc_ok; then :
12869   break
12870 fi
12871
12872     done
12873     ac_cv_prog_CXXCPP=$CXXCPP
12874
12875 fi
12876   CXXCPP=$ac_cv_prog_CXXCPP
12877 else
12878   ac_cv_prog_CXXCPP=$CXXCPP
12879 fi
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12881 $as_echo "$CXXCPP" >&6; }
12882 ac_preproc_ok=false
12883 for ac_cxx_preproc_warn_flag in '' yes
12884 do
12885   # Use a header file that comes with gcc, so configuring glibc
12886   # with a fresh cross-compiler works.
12887   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12888   # <limits.h> exists even on freestanding compilers.
12889   # On the NeXT, cc -E runs the code through the compiler's parser,
12890   # not just through cpp. "Syntax error" is here to catch this case.
12891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h.  */
12893 #ifdef __STDC__
12894 # include <limits.h>
12895 #else
12896 # include <assert.h>
12897 #endif
12898                      Syntax error
12899 _ACEOF
12900 if ac_fn_cxx_try_cpp "$LINENO"; then :
12901
12902 else
12903   # Broken: fails on valid input.
12904 continue
12905 fi
12906 rm -f conftest.err conftest.i conftest.$ac_ext
12907
12908   # OK, works on sane cases.  Now check whether nonexistent headers
12909   # can be detected and how.
12910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h.  */
12912 #include <ac_nonexistent.h>
12913 _ACEOF
12914 if ac_fn_cxx_try_cpp "$LINENO"; then :
12915   # Broken: success on invalid input.
12916 continue
12917 else
12918   # Passes both tests.
12919 ac_preproc_ok=:
12920 break
12921 fi
12922 rm -f conftest.err conftest.i conftest.$ac_ext
12923
12924 done
12925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12926 rm -f conftest.i conftest.err conftest.$ac_ext
12927 if $ac_preproc_ok; then :
12928
12929 else
12930   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12932 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12933 See \`config.log' for more details" "$LINENO" 5; }
12934 fi
12935
12936 ac_ext=cpp
12937 ac_cpp='$CXXCPP $CPPFLAGS'
12938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12941
12942 else
12943   _lt_caught_CXX_error=yes
12944 fi
12945
12946 ac_ext=cpp
12947 ac_cpp='$CXXCPP $CPPFLAGS'
12948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12951
12952 archive_cmds_need_lc_CXX=no
12953 allow_undefined_flag_CXX=
12954 always_export_symbols_CXX=no
12955 archive_expsym_cmds_CXX=
12956 compiler_needs_object_CXX=no
12957 export_dynamic_flag_spec_CXX=
12958 hardcode_direct_CXX=no
12959 hardcode_direct_absolute_CXX=no
12960 hardcode_libdir_flag_spec_CXX=
12961 hardcode_libdir_separator_CXX=
12962 hardcode_minus_L_CXX=no
12963 hardcode_shlibpath_var_CXX=unsupported
12964 hardcode_automatic_CXX=no
12965 inherit_rpath_CXX=no
12966 module_cmds_CXX=
12967 module_expsym_cmds_CXX=
12968 link_all_deplibs_CXX=unknown
12969 old_archive_cmds_CXX=$old_archive_cmds
12970 reload_flag_CXX=$reload_flag
12971 reload_cmds_CXX=$reload_cmds
12972 no_undefined_flag_CXX=
12973 whole_archive_flag_spec_CXX=
12974 enable_shared_with_static_runtimes_CXX=no
12975
12976 # Source file extension for C++ test sources.
12977 ac_ext=cpp
12978
12979 # Object file extension for compiled C++ test sources.
12980 objext=o
12981 objext_CXX=$objext
12982
12983 # No sense in running all these tests if we already determined that
12984 # the CXX compiler isn't working.  Some variables (like enable_shared)
12985 # are currently assumed to apply to all compilers on this platform,
12986 # and will be corrupted by setting them based on a non-working compiler.
12987 if test "$_lt_caught_CXX_error" != yes; then
12988   # Code to be used in simple compile tests
12989   lt_simple_compile_test_code="int some_variable = 0;"
12990
12991   # Code to be used in simple link tests
12992   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12993
12994   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12995
12996
12997
12998
12999
13000
13001 # If no C compiler was specified, use CC.
13002 LTCC=${LTCC-"$CC"}
13003
13004 # If no C compiler flags were specified, use CFLAGS.
13005 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13006
13007 # Allow CC to be a program name with arguments.
13008 compiler=$CC
13009
13010
13011   # save warnings/boilerplate of simple test code
13012   ac_outfile=conftest.$ac_objext
13013 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13014 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13015 _lt_compiler_boilerplate=`cat conftest.err`
13016 $RM conftest*
13017
13018   ac_outfile=conftest.$ac_objext
13019 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13020 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13021 _lt_linker_boilerplate=`cat conftest.err`
13022 $RM -r conftest*
13023
13024
13025   # Allow CC to be a program name with arguments.
13026   lt_save_CC=$CC
13027   lt_save_CFLAGS=$CFLAGS
13028   lt_save_LD=$LD
13029   lt_save_GCC=$GCC
13030   GCC=$GXX
13031   lt_save_with_gnu_ld=$with_gnu_ld
13032   lt_save_path_LD=$lt_cv_path_LD
13033   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13034     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13035   else
13036     $as_unset lt_cv_prog_gnu_ld
13037   fi
13038   if test -n "${lt_cv_path_LDCXX+set}"; then
13039     lt_cv_path_LD=$lt_cv_path_LDCXX
13040   else
13041     $as_unset lt_cv_path_LD
13042   fi
13043   test -z "${LDCXX+set}" || LD=$LDCXX
13044   CC=${CXX-"c++"}
13045   CFLAGS=$CXXFLAGS
13046   compiler=$CC
13047   compiler_CXX=$CC
13048   for cc_temp in $compiler""; do
13049   case $cc_temp in
13050     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13051     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13052     \-*) ;;
13053     *) break;;
13054   esac
13055 done
13056 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13057
13058
13059   if test -n "$compiler"; then
13060     # We don't want -fno-exception when compiling C++ code, so set the
13061     # no_builtin_flag separately
13062     if test "$GXX" = yes; then
13063       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13064     else
13065       lt_prog_compiler_no_builtin_flag_CXX=
13066     fi
13067
13068     if test "$GXX" = yes; then
13069       # Set up default GNU C++ configuration
13070
13071
13072
13073 # Check whether --with-gnu-ld was given.
13074 if test "${with_gnu_ld+set}" = set; then :
13075   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13076 else
13077   with_gnu_ld=no
13078 fi
13079
13080 ac_prog=ld
13081 if test "$GCC" = yes; then
13082   # Check if gcc -print-prog-name=ld gives a path.
13083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13084 $as_echo_n "checking for ld used by $CC... " >&6; }
13085   case $host in
13086   *-*-mingw*)
13087     # gcc leaves a trailing carriage return which upsets mingw
13088     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13089   *)
13090     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13091   esac
13092   case $ac_prog in
13093     # Accept absolute paths.
13094     [\\/]* | ?:[\\/]*)
13095       re_direlt='/[^/][^/]*/\.\./'
13096       # Canonicalize the pathname of ld
13097       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13098       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13099         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13100       done
13101       test -z "$LD" && LD="$ac_prog"
13102       ;;
13103   "")
13104     # If it fails, then pretend we aren't using GCC.
13105     ac_prog=ld
13106     ;;
13107   *)
13108     # If it is relative, then search for the first ld in PATH.
13109     with_gnu_ld=unknown
13110     ;;
13111   esac
13112 elif test "$with_gnu_ld" = yes; then
13113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13114 $as_echo_n "checking for GNU ld... " >&6; }
13115 else
13116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13117 $as_echo_n "checking for non-GNU ld... " >&6; }
13118 fi
13119 if ${lt_cv_path_LD+:} false; then :
13120   $as_echo_n "(cached) " >&6
13121 else
13122   if test -z "$LD"; then
13123   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13124   for ac_dir in $PATH; do
13125     IFS="$lt_save_ifs"
13126     test -z "$ac_dir" && ac_dir=.
13127     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13128       lt_cv_path_LD="$ac_dir/$ac_prog"
13129       # Check to see if the program is GNU ld.  I'd rather use --version,
13130       # but apparently some variants of GNU ld only accept -v.
13131       # Break only if it was the GNU/non-GNU ld that we prefer.
13132       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13133       *GNU* | *'with BFD'*)
13134         test "$with_gnu_ld" != no && break
13135         ;;
13136       *)
13137         test "$with_gnu_ld" != yes && break
13138         ;;
13139       esac
13140     fi
13141   done
13142   IFS="$lt_save_ifs"
13143 else
13144   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13145 fi
13146 fi
13147
13148 LD="$lt_cv_path_LD"
13149 if test -n "$LD"; then
13150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13151 $as_echo "$LD" >&6; }
13152 else
13153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13155 fi
13156 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13158 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13159 if ${lt_cv_prog_gnu_ld+:} false; then :
13160   $as_echo_n "(cached) " >&6
13161 else
13162   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13163 case `$LD -v 2>&1 </dev/null` in
13164 *GNU* | *'with BFD'*)
13165   lt_cv_prog_gnu_ld=yes
13166   ;;
13167 *)
13168   lt_cv_prog_gnu_ld=no
13169   ;;
13170 esac
13171 fi
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13173 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13174 with_gnu_ld=$lt_cv_prog_gnu_ld
13175
13176
13177
13178
13179
13180
13181
13182       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13183       # archiving commands below assume that GNU ld is being used.
13184       if test "$with_gnu_ld" = yes; then
13185         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13186         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13187
13188         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13189         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13190
13191         # If archive_cmds runs LD, not CC, wlarc should be empty
13192         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13193         #     investigate it a little bit more. (MM)
13194         wlarc='${wl}'
13195
13196         # ancient GNU ld didn't support --whole-archive et. al.
13197         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13198           $GREP 'no-whole-archive' > /dev/null; then
13199           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13200         else
13201           whole_archive_flag_spec_CXX=
13202         fi
13203       else
13204         with_gnu_ld=no
13205         wlarc=
13206
13207         # A generic and very simple default shared library creation
13208         # command for GNU C++ for the case where it uses the native
13209         # linker, instead of GNU ld.  If possible, this setting should
13210         # overridden to take advantage of the native linker features on
13211         # the platform it is being used on.
13212         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13213       fi
13214
13215       # Commands to make compiler produce verbose output that lists
13216       # what "hidden" libraries, object files and flags are used when
13217       # linking a shared library.
13218       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13219
13220     else
13221       GXX=no
13222       with_gnu_ld=no
13223       wlarc=
13224     fi
13225
13226     # PORTME: fill in a description of your system's C++ link characteristics
13227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13228 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13229     ld_shlibs_CXX=yes
13230     case $host_os in
13231       aix3*)
13232         # FIXME: insert proper C++ library support
13233         ld_shlibs_CXX=no
13234         ;;
13235       aix[4-9]*)
13236         if test "$host_cpu" = ia64; then
13237           # On IA64, the linker does run time linking by default, so we don't
13238           # have to do anything special.
13239           aix_use_runtimelinking=no
13240           exp_sym_flag='-Bexport'
13241           no_entry_flag=""
13242         else
13243           aix_use_runtimelinking=no
13244
13245           # Test if we are trying to use run time linking or normal
13246           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13247           # need to do runtime linking.
13248           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13249             for ld_flag in $LDFLAGS; do
13250               case $ld_flag in
13251               *-brtl*)
13252                 aix_use_runtimelinking=yes
13253                 break
13254                 ;;
13255               esac
13256             done
13257             ;;
13258           esac
13259
13260           exp_sym_flag='-bexport'
13261           no_entry_flag='-bnoentry'
13262         fi
13263
13264         # When large executables or shared objects are built, AIX ld can
13265         # have problems creating the table of contents.  If linking a library
13266         # or program results in "error TOC overflow" add -mminimal-toc to
13267         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13268         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13269
13270         archive_cmds_CXX=''
13271         hardcode_direct_CXX=yes
13272         hardcode_direct_absolute_CXX=yes
13273         hardcode_libdir_separator_CXX=':'
13274         link_all_deplibs_CXX=yes
13275         file_list_spec_CXX='${wl}-f,'
13276
13277         if test "$GXX" = yes; then
13278           case $host_os in aix4.[012]|aix4.[012].*)
13279           # We only want to do this on AIX 4.2 and lower, the check
13280           # below for broken collect2 doesn't work under 4.3+
13281           collect2name=`${CC} -print-prog-name=collect2`
13282           if test -f "$collect2name" &&
13283              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13284           then
13285             # We have reworked collect2
13286             :
13287           else
13288             # We have old collect2
13289             hardcode_direct_CXX=unsupported
13290             # It fails to find uninstalled libraries when the uninstalled
13291             # path is not listed in the libpath.  Setting hardcode_minus_L
13292             # to unsupported forces relinking
13293             hardcode_minus_L_CXX=yes
13294             hardcode_libdir_flag_spec_CXX='-L$libdir'
13295             hardcode_libdir_separator_CXX=
13296           fi
13297           esac
13298           shared_flag='-shared'
13299           if test "$aix_use_runtimelinking" = yes; then
13300             shared_flag="$shared_flag "'${wl}-G'
13301           fi
13302         else
13303           # not using gcc
13304           if test "$host_cpu" = ia64; then
13305           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13306           # chokes on -Wl,-G. The following line is correct:
13307           shared_flag='-G'
13308           else
13309             if test "$aix_use_runtimelinking" = yes; then
13310               shared_flag='${wl}-G'
13311             else
13312               shared_flag='${wl}-bM:SRE'
13313             fi
13314           fi
13315         fi
13316
13317         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13318         # It seems that -bexpall does not export symbols beginning with
13319         # underscore (_), so it is better to generate a list of symbols to
13320         # export.
13321         always_export_symbols_CXX=yes
13322         if test "$aix_use_runtimelinking" = yes; then
13323           # Warning - without using the other runtime loading flags (-brtl),
13324           # -berok will link without error, but may produce a broken library.
13325           allow_undefined_flag_CXX='-berok'
13326           # Determine the default libpath from the value encoded in an empty
13327           # executable.
13328           if test "${lt_cv_aix_libpath+set}" = set; then
13329   aix_libpath=$lt_cv_aix_libpath
13330 else
13331   if ${lt_cv_aix_libpath__CXX+:} false; then :
13332   $as_echo_n "(cached) " >&6
13333 else
13334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h.  */
13336
13337 int
13338 main ()
13339 {
13340
13341   ;
13342   return 0;
13343 }
13344 _ACEOF
13345 if ac_fn_cxx_try_link "$LINENO"; then :
13346
13347   lt_aix_libpath_sed='
13348       /Import File Strings/,/^$/ {
13349           /^0/ {
13350               s/^0  *\([^ ]*\) *$/\1/
13351               p
13352           }
13353       }'
13354   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13355   # Check for a 64-bit object if we didn't find anything.
13356   if test -z "$lt_cv_aix_libpath__CXX"; then
13357     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13358   fi
13359 fi
13360 rm -f core conftest.err conftest.$ac_objext \
13361     conftest$ac_exeext conftest.$ac_ext
13362   if test -z "$lt_cv_aix_libpath__CXX"; then
13363     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13364   fi
13365
13366 fi
13367
13368   aix_libpath=$lt_cv_aix_libpath__CXX
13369 fi
13370
13371           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13372
13373           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13374         else
13375           if test "$host_cpu" = ia64; then
13376             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13377             allow_undefined_flag_CXX="-z nodefs"
13378             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"
13379           else
13380             # Determine the default libpath from the value encoded in an
13381             # empty executable.
13382             if test "${lt_cv_aix_libpath+set}" = set; then
13383   aix_libpath=$lt_cv_aix_libpath
13384 else
13385   if ${lt_cv_aix_libpath__CXX+:} false; then :
13386   $as_echo_n "(cached) " >&6
13387 else
13388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h.  */
13390
13391 int
13392 main ()
13393 {
13394
13395   ;
13396   return 0;
13397 }
13398 _ACEOF
13399 if ac_fn_cxx_try_link "$LINENO"; then :
13400
13401   lt_aix_libpath_sed='
13402       /Import File Strings/,/^$/ {
13403           /^0/ {
13404               s/^0  *\([^ ]*\) *$/\1/
13405               p
13406           }
13407       }'
13408   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13409   # Check for a 64-bit object if we didn't find anything.
13410   if test -z "$lt_cv_aix_libpath__CXX"; then
13411     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13412   fi
13413 fi
13414 rm -f core conftest.err conftest.$ac_objext \
13415     conftest$ac_exeext conftest.$ac_ext
13416   if test -z "$lt_cv_aix_libpath__CXX"; then
13417     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13418   fi
13419
13420 fi
13421
13422   aix_libpath=$lt_cv_aix_libpath__CXX
13423 fi
13424
13425             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13426             # Warning - without using the other run time loading flags,
13427             # -berok will link without error, but may produce a broken library.
13428             no_undefined_flag_CXX=' ${wl}-bernotok'
13429             allow_undefined_flag_CXX=' ${wl}-berok'
13430             if test "$with_gnu_ld" = yes; then
13431               # We only use this code for GNU lds that support --whole-archive.
13432               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13433             else
13434               # Exported symbols can be pulled into shared objects from archives
13435               whole_archive_flag_spec_CXX='$convenience'
13436             fi
13437             archive_cmds_need_lc_CXX=yes
13438             # This is similar to how AIX traditionally builds its shared
13439             # libraries.
13440             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'
13441           fi
13442         fi
13443         ;;
13444
13445       beos*)
13446         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13447           allow_undefined_flag_CXX=unsupported
13448           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13449           # support --undefined.  This deserves some investigation.  FIXME
13450           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13451         else
13452           ld_shlibs_CXX=no
13453         fi
13454         ;;
13455
13456       chorus*)
13457         case $cc_basename in
13458           *)
13459           # FIXME: insert proper C++ library support
13460           ld_shlibs_CXX=no
13461           ;;
13462         esac
13463         ;;
13464
13465       cygwin* | mingw* | pw32* | cegcc*)
13466         case $GXX,$cc_basename in
13467         ,cl* | no,cl*)
13468           # Native MSVC
13469           # hardcode_libdir_flag_spec is actually meaningless, as there is
13470           # no search path for DLLs.
13471           hardcode_libdir_flag_spec_CXX=' '
13472           allow_undefined_flag_CXX=unsupported
13473           always_export_symbols_CXX=yes
13474           file_list_spec_CXX='@'
13475           # Tell ltmain to make .lib files, not .a files.
13476           libext=lib
13477           # Tell ltmain to make .dll files, not .so files.
13478           shrext_cmds=".dll"
13479           # FIXME: Setting linknames here is a bad hack.
13480           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13481           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13482               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13483             else
13484               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13485             fi~
13486             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13487             linknames='
13488           # The linker will not automatically build a static lib if we build a DLL.
13489           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13490           enable_shared_with_static_runtimes_CXX=yes
13491           # Don't use ranlib
13492           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13493           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13494             lt_tool_outputfile="@TOOL_OUTPUT@"~
13495             case $lt_outputfile in
13496               *.exe|*.EXE) ;;
13497               *)
13498                 lt_outputfile="$lt_outputfile.exe"
13499                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13500                 ;;
13501             esac~
13502             func_to_tool_file "$lt_outputfile"~
13503             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13504               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13505               $RM "$lt_outputfile.manifest";
13506             fi'
13507           ;;
13508         *)
13509           # g++
13510           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13511           # as there is no search path for DLLs.
13512           hardcode_libdir_flag_spec_CXX='-L$libdir'
13513           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13514           allow_undefined_flag_CXX=unsupported
13515           always_export_symbols_CXX=no
13516           enable_shared_with_static_runtimes_CXX=yes
13517
13518           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13519             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'
13520             # If the export-symbols file already is a .def file (1st line
13521             # is EXPORTS), use it as is; otherwise, prepend...
13522             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13523               cp $export_symbols $output_objdir/$soname.def;
13524             else
13525               echo EXPORTS > $output_objdir/$soname.def;
13526               cat $export_symbols >> $output_objdir/$soname.def;
13527             fi~
13528             $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'
13529           else
13530             ld_shlibs_CXX=no
13531           fi
13532           ;;
13533         esac
13534         ;;
13535       darwin* | rhapsody*)
13536
13537
13538   archive_cmds_need_lc_CXX=no
13539   hardcode_direct_CXX=no
13540   hardcode_automatic_CXX=yes
13541   hardcode_shlibpath_var_CXX=unsupported
13542   if test "$lt_cv_ld_force_load" = "yes"; then
13543     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13544
13545   else
13546     whole_archive_flag_spec_CXX=''
13547   fi
13548   link_all_deplibs_CXX=yes
13549   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13550   case $cc_basename in
13551      ifort*) _lt_dar_can_shared=yes ;;
13552      *) _lt_dar_can_shared=$GCC ;;
13553   esac
13554   if test "$_lt_dar_can_shared" = "yes"; then
13555     output_verbose_link_cmd=func_echo_all
13556     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}"
13557     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13558     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}"
13559     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}"
13560        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13561       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}"
13562       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}"
13563     fi
13564
13565   else
13566   ld_shlibs_CXX=no
13567   fi
13568
13569         ;;
13570
13571       dgux*)
13572         case $cc_basename in
13573           ec++*)
13574             # FIXME: insert proper C++ library support
13575             ld_shlibs_CXX=no
13576             ;;
13577           ghcx*)
13578             # Green Hills C++ Compiler
13579             # FIXME: insert proper C++ library support
13580             ld_shlibs_CXX=no
13581             ;;
13582           *)
13583             # FIXME: insert proper C++ library support
13584             ld_shlibs_CXX=no
13585             ;;
13586         esac
13587         ;;
13588
13589       freebsd2.*)
13590         # C++ shared libraries reported to be fairly broken before
13591         # switch to ELF
13592         ld_shlibs_CXX=no
13593         ;;
13594
13595       freebsd-elf*)
13596         archive_cmds_need_lc_CXX=no
13597         ;;
13598
13599       freebsd* | dragonfly*)
13600         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13601         # conventions
13602         ld_shlibs_CXX=yes
13603         ;;
13604
13605       gnu*)
13606         ;;
13607
13608       haiku*)
13609         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13610         link_all_deplibs_CXX=yes
13611         ;;
13612
13613       hpux9*)
13614         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13615         hardcode_libdir_separator_CXX=:
13616         export_dynamic_flag_spec_CXX='${wl}-E'
13617         hardcode_direct_CXX=yes
13618         hardcode_minus_L_CXX=yes # Not in the search PATH,
13619                                              # but as the default
13620                                              # location of the library.
13621
13622         case $cc_basename in
13623           CC*)
13624             # FIXME: insert proper C++ library support
13625             ld_shlibs_CXX=no
13626             ;;
13627           aCC*)
13628             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'
13629             # Commands to make compiler produce verbose output that lists
13630             # what "hidden" libraries, object files and flags are used when
13631             # linking a shared library.
13632             #
13633             # There doesn't appear to be a way to prevent this compiler from
13634             # explicitly linking system object files so we need to strip them
13635             # from the output so that they don't get included in the library
13636             # dependencies.
13637             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13638             ;;
13639           *)
13640             if test "$GXX" = yes; then
13641               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13642             else
13643               # FIXME: insert proper C++ library support
13644               ld_shlibs_CXX=no
13645             fi
13646             ;;
13647         esac
13648         ;;
13649
13650       hpux10*|hpux11*)
13651         if test $with_gnu_ld = no; then
13652           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13653           hardcode_libdir_separator_CXX=:
13654
13655           case $host_cpu in
13656             hppa*64*|ia64*)
13657               ;;
13658             *)
13659               export_dynamic_flag_spec_CXX='${wl}-E'
13660               ;;
13661           esac
13662         fi
13663         case $host_cpu in
13664           hppa*64*|ia64*)
13665             hardcode_direct_CXX=no
13666             hardcode_shlibpath_var_CXX=no
13667             ;;
13668           *)
13669             hardcode_direct_CXX=yes
13670             hardcode_direct_absolute_CXX=yes
13671             hardcode_minus_L_CXX=yes # Not in the search PATH,
13672                                                  # but as the default
13673                                                  # location of the library.
13674             ;;
13675         esac
13676
13677         case $cc_basename in
13678           CC*)
13679             # FIXME: insert proper C++ library support
13680             ld_shlibs_CXX=no
13681             ;;
13682           aCC*)
13683             case $host_cpu in
13684               hppa*64*)
13685                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13686                 ;;
13687               ia64*)
13688                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13689                 ;;
13690               *)
13691                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13692                 ;;
13693             esac
13694             # Commands to make compiler produce verbose output that lists
13695             # what "hidden" libraries, object files and flags are used when
13696             # linking a shared library.
13697             #
13698             # There doesn't appear to be a way to prevent this compiler from
13699             # explicitly linking system object files so we need to strip them
13700             # from the output so that they don't get included in the library
13701             # dependencies.
13702             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13703             ;;
13704           *)
13705             if test "$GXX" = yes; then
13706               if test $with_gnu_ld = no; then
13707                 case $host_cpu in
13708                   hppa*64*)
13709                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13710                     ;;
13711                   ia64*)
13712                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13713                     ;;
13714                   *)
13715                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13716                     ;;
13717                 esac
13718               fi
13719             else
13720               # FIXME: insert proper C++ library support
13721               ld_shlibs_CXX=no
13722             fi
13723             ;;
13724         esac
13725         ;;
13726
13727       interix[3-9]*)
13728         hardcode_direct_CXX=no
13729         hardcode_shlibpath_var_CXX=no
13730         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13731         export_dynamic_flag_spec_CXX='${wl}-E'
13732         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13733         # Instead, shared libraries are loaded at an image base (0x10000000 by
13734         # default) and relocated if they conflict, which is a slow very memory
13735         # consuming and fragmenting process.  To avoid this, we pick a random,
13736         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13737         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13738         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'
13739         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'
13740         ;;
13741       irix5* | irix6*)
13742         case $cc_basename in
13743           CC*)
13744             # SGI C++
13745             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13746
13747             # Archives containing C++ object files must be created using
13748             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13749             # necessary to make sure instantiated templates are included
13750             # in the archive.
13751             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13752             ;;
13753           *)
13754             if test "$GXX" = yes; then
13755               if test "$with_gnu_ld" = no; then
13756                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13757               else
13758                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13759               fi
13760             fi
13761             link_all_deplibs_CXX=yes
13762             ;;
13763         esac
13764         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13765         hardcode_libdir_separator_CXX=:
13766         inherit_rpath_CXX=yes
13767         ;;
13768
13769       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13770         case $cc_basename in
13771           KCC*)
13772             # Kuck and Associates, Inc. (KAI) C++ Compiler
13773
13774             # KCC will only create a shared library if the output file
13775             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13776             # to its proper name (with version) after linking.
13777             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'
13778             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'
13779             # Commands to make compiler produce verbose output that lists
13780             # what "hidden" libraries, object files and flags are used when
13781             # linking a shared library.
13782             #
13783             # There doesn't appear to be a way to prevent this compiler from
13784             # explicitly linking system object files so we need to strip them
13785             # from the output so that they don't get included in the library
13786             # dependencies.
13787             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13788
13789             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13790             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13791
13792             # Archives containing C++ object files must be created using
13793             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13794             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13795             ;;
13796           icpc* | ecpc* )
13797             # Intel C++
13798             with_gnu_ld=yes
13799             # version 8.0 and above of icpc choke on multiply defined symbols
13800             # if we add $predep_objects and $postdep_objects, however 7.1 and
13801             # earlier do not add the objects themselves.
13802             case `$CC -V 2>&1` in
13803               *"Version 7."*)
13804                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13805                 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'
13806                 ;;
13807               *)  # Version 8.0 or newer
13808                 tmp_idyn=
13809                 case $host_cpu in
13810                   ia64*) tmp_idyn=' -i_dynamic';;
13811                 esac
13812                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13813                 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'
13814                 ;;
13815             esac
13816             archive_cmds_need_lc_CXX=no
13817             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13818             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13819             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13820             ;;
13821           pgCC* | pgcpp*)
13822             # Portland Group C++ compiler
13823             case `$CC -V` in
13824             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13825               prelink_cmds_CXX='tpldir=Template.dir~
13826                 rm -rf $tpldir~
13827                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13828                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13829               old_archive_cmds_CXX='tpldir=Template.dir~
13830                 rm -rf $tpldir~
13831                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13832                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13833                 $RANLIB $oldlib'
13834               archive_cmds_CXX='tpldir=Template.dir~
13835                 rm -rf $tpldir~
13836                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13837                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13838               archive_expsym_cmds_CXX='tpldir=Template.dir~
13839                 rm -rf $tpldir~
13840                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13841                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13842               ;;
13843             *) # Version 6 and above use weak symbols
13844               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13845               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'
13846               ;;
13847             esac
13848
13849             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13850             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13851             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13852             ;;
13853           cxx*)
13854             # Compaq C++
13855             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13856             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'
13857
13858             runpath_var=LD_RUN_PATH
13859             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13860             hardcode_libdir_separator_CXX=:
13861
13862             # Commands to make compiler produce verbose output that lists
13863             # what "hidden" libraries, object files and flags are used when
13864             # linking a shared library.
13865             #
13866             # There doesn't appear to be a way to prevent this compiler from
13867             # explicitly linking system object files so we need to strip them
13868             # from the output so that they don't get included in the library
13869             # dependencies.
13870             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13871             ;;
13872           xl* | mpixl* | bgxl*)
13873             # IBM XL 8.0 on PPC, with GNU ld
13874             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13875             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13876             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13877             if test "x$supports_anon_versioning" = xyes; then
13878               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13879                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13880                 echo "local: *; };" >> $output_objdir/$libname.ver~
13881                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13882             fi
13883             ;;
13884           *)
13885             case `$CC -V 2>&1 | sed 5q` in
13886             *Sun\ C*)
13887               # Sun C++ 5.9
13888               no_undefined_flag_CXX=' -zdefs'
13889               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13890               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'
13891               hardcode_libdir_flag_spec_CXX='-R$libdir'
13892               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13893               compiler_needs_object_CXX=yes
13894
13895               # Not sure whether something based on
13896               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13897               # would be better.
13898               output_verbose_link_cmd='func_echo_all'
13899
13900               # Archives containing C++ object files must be created using
13901               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13902               # necessary to make sure instantiated templates are included
13903               # in the archive.
13904               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13905               ;;
13906             esac
13907             ;;
13908         esac
13909         ;;
13910
13911       lynxos*)
13912         # FIXME: insert proper C++ library support
13913         ld_shlibs_CXX=no
13914         ;;
13915
13916       m88k*)
13917         # FIXME: insert proper C++ library support
13918         ld_shlibs_CXX=no
13919         ;;
13920
13921       mvs*)
13922         case $cc_basename in
13923           cxx*)
13924             # FIXME: insert proper C++ library support
13925             ld_shlibs_CXX=no
13926             ;;
13927           *)
13928             # FIXME: insert proper C++ library support
13929             ld_shlibs_CXX=no
13930             ;;
13931         esac
13932         ;;
13933
13934       netbsd*)
13935         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13936           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13937           wlarc=
13938           hardcode_libdir_flag_spec_CXX='-R$libdir'
13939           hardcode_direct_CXX=yes
13940           hardcode_shlibpath_var_CXX=no
13941         fi
13942         # Workaround some broken pre-1.5 toolchains
13943         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13944         ;;
13945
13946       *nto* | *qnx*)
13947         ld_shlibs_CXX=yes
13948         ;;
13949
13950       openbsd2*)
13951         # C++ shared libraries are fairly broken
13952         ld_shlibs_CXX=no
13953         ;;
13954
13955       openbsd*)
13956         if test -f /usr/libexec/ld.so; then
13957           hardcode_direct_CXX=yes
13958           hardcode_shlibpath_var_CXX=no
13959           hardcode_direct_absolute_CXX=yes
13960           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13961           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13962           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13963             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13964             export_dynamic_flag_spec_CXX='${wl}-E'
13965             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13966           fi
13967           output_verbose_link_cmd=func_echo_all
13968         else
13969           ld_shlibs_CXX=no
13970         fi
13971         ;;
13972
13973       osf3* | osf4* | osf5*)
13974         case $cc_basename in
13975           KCC*)
13976             # Kuck and Associates, Inc. (KAI) C++ Compiler
13977
13978             # KCC will only create a shared library if the output file
13979             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13980             # to its proper name (with version) after linking.
13981             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'
13982
13983             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13984             hardcode_libdir_separator_CXX=:
13985
13986             # Archives containing C++ object files must be created using
13987             # the KAI C++ compiler.
13988             case $host in
13989               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13990               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13991             esac
13992             ;;
13993           RCC*)
13994             # Rational C++ 2.4.1
13995             # FIXME: insert proper C++ library support
13996             ld_shlibs_CXX=no
13997             ;;
13998           cxx*)
13999             case $host in
14000               osf3*)
14001                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14002                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14003                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14004                 ;;
14005               *)
14006                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14007                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14008                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14009                   echo "-hidden">> $lib.exp~
14010                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14011                   $RM $lib.exp'
14012                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14013                 ;;
14014             esac
14015
14016             hardcode_libdir_separator_CXX=:
14017
14018             # Commands to make compiler produce verbose output that lists
14019             # what "hidden" libraries, object files and flags are used when
14020             # linking a shared library.
14021             #
14022             # There doesn't appear to be a way to prevent this compiler from
14023             # explicitly linking system object files so we need to strip them
14024             # from the output so that they don't get included in the library
14025             # dependencies.
14026             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14027             ;;
14028           *)
14029             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14030               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14031               case $host in
14032                 osf3*)
14033                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14034                   ;;
14035                 *)
14036                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14037                   ;;
14038               esac
14039
14040               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14041               hardcode_libdir_separator_CXX=:
14042
14043               # Commands to make compiler produce verbose output that lists
14044               # what "hidden" libraries, object files and flags are used when
14045               # linking a shared library.
14046               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14047
14048             else
14049               # FIXME: insert proper C++ library support
14050               ld_shlibs_CXX=no
14051             fi
14052             ;;
14053         esac
14054         ;;
14055
14056       psos*)
14057         # FIXME: insert proper C++ library support
14058         ld_shlibs_CXX=no
14059         ;;
14060
14061       sunos4*)
14062         case $cc_basename in
14063           CC*)
14064             # Sun C++ 4.x
14065             # FIXME: insert proper C++ library support
14066             ld_shlibs_CXX=no
14067             ;;
14068           lcc*)
14069             # Lucid
14070             # FIXME: insert proper C++ library support
14071             ld_shlibs_CXX=no
14072             ;;
14073           *)
14074             # FIXME: insert proper C++ library support
14075             ld_shlibs_CXX=no
14076             ;;
14077         esac
14078         ;;
14079
14080       solaris*)
14081         case $cc_basename in
14082           CC* | sunCC*)
14083             # Sun C++ 4.2, 5.x and Centerline C++
14084             archive_cmds_need_lc_CXX=yes
14085             no_undefined_flag_CXX=' -zdefs'
14086             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14087             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14088               $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'
14089
14090             hardcode_libdir_flag_spec_CXX='-R$libdir'
14091             hardcode_shlibpath_var_CXX=no
14092             case $host_os in
14093               solaris2.[0-5] | solaris2.[0-5].*) ;;
14094               *)
14095                 # The compiler driver will combine and reorder linker options,
14096                 # but understands `-z linker_flag'.
14097                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14098                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14099                 ;;
14100             esac
14101             link_all_deplibs_CXX=yes
14102
14103             output_verbose_link_cmd='func_echo_all'
14104
14105             # Archives containing C++ object files must be created using
14106             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14107             # necessary to make sure instantiated templates are included
14108             # in the archive.
14109             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14110             ;;
14111           gcx*)
14112             # Green Hills C++ Compiler
14113             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14114
14115             # The C++ compiler must be used to create the archive.
14116             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14117             ;;
14118           *)
14119             # GNU C++ compiler with Solaris linker
14120             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14121               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14122               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14123                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14124                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14125                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14126
14127                 # Commands to make compiler produce verbose output that lists
14128                 # what "hidden" libraries, object files and flags are used when
14129                 # linking a shared library.
14130                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14131               else
14132                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14133                 # platform.
14134                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14135                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14136                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14137
14138                 # Commands to make compiler produce verbose output that lists
14139                 # what "hidden" libraries, object files and flags are used when
14140                 # linking a shared library.
14141                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14142               fi
14143
14144               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14145               case $host_os in
14146                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14147                 *)
14148                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14149                   ;;
14150               esac
14151             fi
14152             ;;
14153         esac
14154         ;;
14155
14156     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14157       no_undefined_flag_CXX='${wl}-z,text'
14158       archive_cmds_need_lc_CXX=no
14159       hardcode_shlibpath_var_CXX=no
14160       runpath_var='LD_RUN_PATH'
14161
14162       case $cc_basename in
14163         CC*)
14164           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14165           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14166           ;;
14167         *)
14168           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14169           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14170           ;;
14171       esac
14172       ;;
14173
14174       sysv5* | sco3.2v5* | sco5v6*)
14175         # Note: We can NOT use -z defs as we might desire, because we do not
14176         # link with -lc, and that would cause any symbols used from libc to
14177         # always be unresolved, which means just about no library would
14178         # ever link correctly.  If we're not using GNU ld we use -z text
14179         # though, which does catch some bad symbols but isn't as heavy-handed
14180         # as -z defs.
14181         no_undefined_flag_CXX='${wl}-z,text'
14182         allow_undefined_flag_CXX='${wl}-z,nodefs'
14183         archive_cmds_need_lc_CXX=no
14184         hardcode_shlibpath_var_CXX=no
14185         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14186         hardcode_libdir_separator_CXX=':'
14187         link_all_deplibs_CXX=yes
14188         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14189         runpath_var='LD_RUN_PATH'
14190
14191         case $cc_basename in
14192           CC*)
14193             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14194             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14195             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14196               '"$old_archive_cmds_CXX"
14197             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14198               '"$reload_cmds_CXX"
14199             ;;
14200           *)
14201             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14202             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14203             ;;
14204         esac
14205       ;;
14206
14207       tandem*)
14208         case $cc_basename in
14209           NCC*)
14210             # NonStop-UX NCC 3.20
14211             # FIXME: insert proper C++ library support
14212             ld_shlibs_CXX=no
14213             ;;
14214           *)
14215             # FIXME: insert proper C++ library support
14216             ld_shlibs_CXX=no
14217             ;;
14218         esac
14219         ;;
14220
14221       vxworks*)
14222         # FIXME: insert proper C++ library support
14223         ld_shlibs_CXX=no
14224         ;;
14225
14226       *)
14227         # FIXME: insert proper C++ library support
14228         ld_shlibs_CXX=no
14229         ;;
14230     esac
14231
14232     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14233 $as_echo "$ld_shlibs_CXX" >&6; }
14234     test "$ld_shlibs_CXX" = no && can_build_shared=no
14235
14236     GCC_CXX="$GXX"
14237     LD_CXX="$LD"
14238
14239     ## CAVEAT EMPTOR:
14240     ## There is no encapsulation within the following macros, do not change
14241     ## the running order or otherwise move them around unless you know exactly
14242     ## what you are doing...
14243     # Dependencies to place before and after the object being linked:
14244 predep_objects_CXX=
14245 postdep_objects_CXX=
14246 predeps_CXX=
14247 postdeps_CXX=
14248 compiler_lib_search_path_CXX=
14249
14250 cat > conftest.$ac_ext <<_LT_EOF
14251 class Foo
14252 {
14253 public:
14254   Foo (void) { a = 0; }
14255 private:
14256   int a;
14257 };
14258 _LT_EOF
14259
14260
14261 _lt_libdeps_save_CFLAGS=$CFLAGS
14262 case "$CC $CFLAGS " in #(
14263 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14264 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14265 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14266 esac
14267
14268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14269   (eval $ac_compile) 2>&5
14270   ac_status=$?
14271   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14272   test $ac_status = 0; }; then
14273   # Parse the compiler output and extract the necessary
14274   # objects, libraries and library flags.
14275
14276   # Sentinel used to keep track of whether or not we are before
14277   # the conftest object file.
14278   pre_test_object_deps_done=no
14279
14280   for p in `eval "$output_verbose_link_cmd"`; do
14281     case ${prev}${p} in
14282
14283     -L* | -R* | -l*)
14284        # Some compilers place space between "-{L,R}" and the path.
14285        # Remove the space.
14286        if test $p = "-L" ||
14287           test $p = "-R"; then
14288          prev=$p
14289          continue
14290        fi
14291
14292        # Expand the sysroot to ease extracting the directories later.
14293        if test -z "$prev"; then
14294          case $p in
14295          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14296          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14297          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14298          esac
14299        fi
14300        case $p in
14301        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14302        esac
14303        if test "$pre_test_object_deps_done" = no; then
14304          case ${prev} in
14305          -L | -R)
14306            # Internal compiler library paths should come after those
14307            # provided the user.  The postdeps already come after the
14308            # user supplied libs so there is no need to process them.
14309            if test -z "$compiler_lib_search_path_CXX"; then
14310              compiler_lib_search_path_CXX="${prev}${p}"
14311            else
14312              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14313            fi
14314            ;;
14315          # The "-l" case would never come before the object being
14316          # linked, so don't bother handling this case.
14317          esac
14318        else
14319          if test -z "$postdeps_CXX"; then
14320            postdeps_CXX="${prev}${p}"
14321          else
14322            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14323          fi
14324        fi
14325        prev=
14326        ;;
14327
14328     *.lto.$objext) ;; # Ignore GCC LTO objects
14329     *.$objext)
14330        # This assumes that the test object file only shows up
14331        # once in the compiler output.
14332        if test "$p" = "conftest.$objext"; then
14333          pre_test_object_deps_done=yes
14334          continue
14335        fi
14336
14337        if test "$pre_test_object_deps_done" = no; then
14338          if test -z "$predep_objects_CXX"; then
14339            predep_objects_CXX="$p"
14340          else
14341            predep_objects_CXX="$predep_objects_CXX $p"
14342          fi
14343        else
14344          if test -z "$postdep_objects_CXX"; then
14345            postdep_objects_CXX="$p"
14346          else
14347            postdep_objects_CXX="$postdep_objects_CXX $p"
14348          fi
14349        fi
14350        ;;
14351
14352     *) ;; # Ignore the rest.
14353
14354     esac
14355   done
14356
14357   # Clean up.
14358   rm -f a.out a.exe
14359 else
14360   echo "libtool.m4: error: problem compiling CXX test program"
14361 fi
14362
14363 $RM -f confest.$objext
14364 CFLAGS=$_lt_libdeps_save_CFLAGS
14365
14366 # PORTME: override above test on systems where it is broken
14367 case $host_os in
14368 interix[3-9]*)
14369   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14370   # hack all around it, let's just trust "g++" to DTRT.
14371   predep_objects_CXX=
14372   postdep_objects_CXX=
14373   postdeps_CXX=
14374   ;;
14375
14376 linux*)
14377   case `$CC -V 2>&1 | sed 5q` in
14378   *Sun\ C*)
14379     # Sun C++ 5.9
14380
14381     # The more standards-conforming stlport4 library is
14382     # incompatible with the Cstd library. Avoid specifying
14383     # it if it's in CXXFLAGS. Ignore libCrun as
14384     # -library=stlport4 depends on it.
14385     case " $CXX $CXXFLAGS " in
14386     *" -library=stlport4 "*)
14387       solaris_use_stlport4=yes
14388       ;;
14389     esac
14390
14391     if test "$solaris_use_stlport4" != yes; then
14392       postdeps_CXX='-library=Cstd -library=Crun'
14393     fi
14394     ;;
14395   esac
14396   ;;
14397
14398 solaris*)
14399   case $cc_basename in
14400   CC* | sunCC*)
14401     # The more standards-conforming stlport4 library is
14402     # incompatible with the Cstd library. Avoid specifying
14403     # it if it's in CXXFLAGS. Ignore libCrun as
14404     # -library=stlport4 depends on it.
14405     case " $CXX $CXXFLAGS " in
14406     *" -library=stlport4 "*)
14407       solaris_use_stlport4=yes
14408       ;;
14409     esac
14410
14411     # Adding this requires a known-good setup of shared libraries for
14412     # Sun compiler versions before 5.6, else PIC objects from an old
14413     # archive will be linked into the output, leading to subtle bugs.
14414     if test "$solaris_use_stlport4" != yes; then
14415       postdeps_CXX='-library=Cstd -library=Crun'
14416     fi
14417     ;;
14418   esac
14419   ;;
14420 esac
14421
14422
14423 case " $postdeps_CXX " in
14424 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14425 esac
14426  compiler_lib_search_dirs_CXX=
14427 if test -n "${compiler_lib_search_path_CXX}"; then
14428  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14429 fi
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461     lt_prog_compiler_wl_CXX=
14462 lt_prog_compiler_pic_CXX=
14463 lt_prog_compiler_static_CXX=
14464
14465
14466   # C++ specific cases for pic, static, wl, etc.
14467   if test "$GXX" = yes; then
14468     lt_prog_compiler_wl_CXX='-Wl,'
14469     lt_prog_compiler_static_CXX='-static'
14470
14471     case $host_os in
14472     aix*)
14473       # All AIX code is PIC.
14474       if test "$host_cpu" = ia64; then
14475         # AIX 5 now supports IA64 processor
14476         lt_prog_compiler_static_CXX='-Bstatic'
14477       fi
14478       ;;
14479
14480     amigaos*)
14481       case $host_cpu in
14482       powerpc)
14483             # see comment about AmigaOS4 .so support
14484             lt_prog_compiler_pic_CXX='-fPIC'
14485         ;;
14486       m68k)
14487             # FIXME: we need at least 68020 code to build shared libraries, but
14488             # adding the `-m68020' flag to GCC prevents building anything better,
14489             # like `-m68040'.
14490             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14491         ;;
14492       esac
14493       ;;
14494
14495     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14496       # PIC is the default for these OSes.
14497       ;;
14498     mingw* | cygwin* | os2* | pw32* | cegcc*)
14499       # This hack is so that the source file can tell whether it is being
14500       # built for inclusion in a dll (and should export symbols for example).
14501       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14502       # (--disable-auto-import) libraries
14503       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14504       ;;
14505     darwin* | rhapsody*)
14506       # PIC is the default on this platform
14507       # Common symbols not allowed in MH_DYLIB files
14508       lt_prog_compiler_pic_CXX='-fno-common'
14509       ;;
14510     *djgpp*)
14511       # DJGPP does not support shared libraries at all
14512       lt_prog_compiler_pic_CXX=
14513       ;;
14514     haiku*)
14515       # PIC is the default for Haiku.
14516       # The "-static" flag exists, but is broken.
14517       lt_prog_compiler_static_CXX=
14518       ;;
14519     interix[3-9]*)
14520       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14521       # Instead, we relocate shared libraries at runtime.
14522       ;;
14523     sysv4*MP*)
14524       if test -d /usr/nec; then
14525         lt_prog_compiler_pic_CXX=-Kconform_pic
14526       fi
14527       ;;
14528     hpux*)
14529       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14530       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14531       # sets the default TLS model and affects inlining.
14532       case $host_cpu in
14533       hppa*64*)
14534         ;;
14535       *)
14536         lt_prog_compiler_pic_CXX='-fPIC'
14537         ;;
14538       esac
14539       ;;
14540     *qnx* | *nto*)
14541       # QNX uses GNU C++, but need to define -shared option too, otherwise
14542       # it will coredump.
14543       lt_prog_compiler_pic_CXX='-fPIC -shared'
14544       ;;
14545     *)
14546       lt_prog_compiler_pic_CXX='-fPIC'
14547       ;;
14548     esac
14549   else
14550     case $host_os in
14551       aix[4-9]*)
14552         # All AIX code is PIC.
14553         if test "$host_cpu" = ia64; then
14554           # AIX 5 now supports IA64 processor
14555           lt_prog_compiler_static_CXX='-Bstatic'
14556         else
14557           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14558         fi
14559         ;;
14560       chorus*)
14561         case $cc_basename in
14562         cxch68*)
14563           # Green Hills C++ Compiler
14564           # _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"
14565           ;;
14566         esac
14567         ;;
14568       mingw* | cygwin* | os2* | pw32* | cegcc*)
14569         # This hack is so that the source file can tell whether it is being
14570         # built for inclusion in a dll (and should export symbols for example).
14571         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14572         ;;
14573       dgux*)
14574         case $cc_basename in
14575           ec++*)
14576             lt_prog_compiler_pic_CXX='-KPIC'
14577             ;;
14578           ghcx*)
14579             # Green Hills C++ Compiler
14580             lt_prog_compiler_pic_CXX='-pic'
14581             ;;
14582           *)
14583             ;;
14584         esac
14585         ;;
14586       freebsd* | dragonfly*)
14587         # FreeBSD uses GNU C++
14588         ;;
14589       hpux9* | hpux10* | hpux11*)
14590         case $cc_basename in
14591           CC*)
14592             lt_prog_compiler_wl_CXX='-Wl,'
14593             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14594             if test "$host_cpu" != ia64; then
14595               lt_prog_compiler_pic_CXX='+Z'
14596             fi
14597             ;;
14598           aCC*)
14599             lt_prog_compiler_wl_CXX='-Wl,'
14600             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14601             case $host_cpu in
14602             hppa*64*|ia64*)
14603               # +Z the default
14604               ;;
14605             *)
14606               lt_prog_compiler_pic_CXX='+Z'
14607               ;;
14608             esac
14609             ;;
14610           *)
14611             ;;
14612         esac
14613         ;;
14614       interix*)
14615         # This is c89, which is MS Visual C++ (no shared libs)
14616         # Anyone wants to do a port?
14617         ;;
14618       irix5* | irix6* | nonstopux*)
14619         case $cc_basename in
14620           CC*)
14621             lt_prog_compiler_wl_CXX='-Wl,'
14622             lt_prog_compiler_static_CXX='-non_shared'
14623             # CC pic flag -KPIC is the default.
14624             ;;
14625           *)
14626             ;;
14627         esac
14628         ;;
14629       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14630         case $cc_basename in
14631           KCC*)
14632             # KAI C++ Compiler
14633             lt_prog_compiler_wl_CXX='--backend -Wl,'
14634             lt_prog_compiler_pic_CXX='-fPIC'
14635             ;;
14636           ecpc* )
14637             # old Intel C++ for x86_64 which still supported -KPIC.
14638             lt_prog_compiler_wl_CXX='-Wl,'
14639             lt_prog_compiler_pic_CXX='-KPIC'
14640             lt_prog_compiler_static_CXX='-static'
14641             ;;
14642           icpc* )
14643             # Intel C++, used to be incompatible with GCC.
14644             # ICC 10 doesn't accept -KPIC any more.
14645             lt_prog_compiler_wl_CXX='-Wl,'
14646             lt_prog_compiler_pic_CXX='-fPIC'
14647             lt_prog_compiler_static_CXX='-static'
14648             ;;
14649           pgCC* | pgcpp*)
14650             # Portland Group C++ compiler
14651             lt_prog_compiler_wl_CXX='-Wl,'
14652             lt_prog_compiler_pic_CXX='-fpic'
14653             lt_prog_compiler_static_CXX='-Bstatic'
14654             ;;
14655           cxx*)
14656             # Compaq C++
14657             # Make sure the PIC flag is empty.  It appears that all Alpha
14658             # Linux and Compaq Tru64 Unix objects are PIC.
14659             lt_prog_compiler_pic_CXX=
14660             lt_prog_compiler_static_CXX='-non_shared'
14661             ;;
14662           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14663             # IBM XL 8.0, 9.0 on PPC and BlueGene
14664             lt_prog_compiler_wl_CXX='-Wl,'
14665             lt_prog_compiler_pic_CXX='-qpic'
14666             lt_prog_compiler_static_CXX='-qstaticlink'
14667             ;;
14668           *)
14669             case `$CC -V 2>&1 | sed 5q` in
14670             *Sun\ C*)
14671               # Sun C++ 5.9
14672               lt_prog_compiler_pic_CXX='-KPIC'
14673               lt_prog_compiler_static_CXX='-Bstatic'
14674               lt_prog_compiler_wl_CXX='-Qoption ld '
14675               ;;
14676             esac
14677             ;;
14678         esac
14679         ;;
14680       lynxos*)
14681         ;;
14682       m88k*)
14683         ;;
14684       mvs*)
14685         case $cc_basename in
14686           cxx*)
14687             lt_prog_compiler_pic_CXX='-W c,exportall'
14688             ;;
14689           *)
14690             ;;
14691         esac
14692         ;;
14693       netbsd*)
14694         ;;
14695       *qnx* | *nto*)
14696         # QNX uses GNU C++, but need to define -shared option too, otherwise
14697         # it will coredump.
14698         lt_prog_compiler_pic_CXX='-fPIC -shared'
14699         ;;
14700       osf3* | osf4* | osf5*)
14701         case $cc_basename in
14702           KCC*)
14703             lt_prog_compiler_wl_CXX='--backend -Wl,'
14704             ;;
14705           RCC*)
14706             # Rational C++ 2.4.1
14707             lt_prog_compiler_pic_CXX='-pic'
14708             ;;
14709           cxx*)
14710             # Digital/Compaq C++
14711             lt_prog_compiler_wl_CXX='-Wl,'
14712             # Make sure the PIC flag is empty.  It appears that all Alpha
14713             # Linux and Compaq Tru64 Unix objects are PIC.
14714             lt_prog_compiler_pic_CXX=
14715             lt_prog_compiler_static_CXX='-non_shared'
14716             ;;
14717           *)
14718             ;;
14719         esac
14720         ;;
14721       psos*)
14722         ;;
14723       solaris*)
14724         case $cc_basename in
14725           CC* | sunCC*)
14726             # Sun C++ 4.2, 5.x and Centerline C++
14727             lt_prog_compiler_pic_CXX='-KPIC'
14728             lt_prog_compiler_static_CXX='-Bstatic'
14729             lt_prog_compiler_wl_CXX='-Qoption ld '
14730             ;;
14731           gcx*)
14732             # Green Hills C++ Compiler
14733             lt_prog_compiler_pic_CXX='-PIC'
14734             ;;
14735           *)
14736             ;;
14737         esac
14738         ;;
14739       sunos4*)
14740         case $cc_basename in
14741           CC*)
14742             # Sun C++ 4.x
14743             lt_prog_compiler_pic_CXX='-pic'
14744             lt_prog_compiler_static_CXX='-Bstatic'
14745             ;;
14746           lcc*)
14747             # Lucid
14748             lt_prog_compiler_pic_CXX='-pic'
14749             ;;
14750           *)
14751             ;;
14752         esac
14753         ;;
14754       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14755         case $cc_basename in
14756           CC*)
14757             lt_prog_compiler_wl_CXX='-Wl,'
14758             lt_prog_compiler_pic_CXX='-KPIC'
14759             lt_prog_compiler_static_CXX='-Bstatic'
14760             ;;
14761         esac
14762         ;;
14763       tandem*)
14764         case $cc_basename in
14765           NCC*)
14766             # NonStop-UX NCC 3.20
14767             lt_prog_compiler_pic_CXX='-KPIC'
14768             ;;
14769           *)
14770             ;;
14771         esac
14772         ;;
14773       vxworks*)
14774         ;;
14775       *)
14776         lt_prog_compiler_can_build_shared_CXX=no
14777         ;;
14778     esac
14779   fi
14780
14781 case $host_os in
14782   # For platforms which do not support PIC, -DPIC is meaningless:
14783   *djgpp*)
14784     lt_prog_compiler_pic_CXX=
14785     ;;
14786   *)
14787     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14788     ;;
14789 esac
14790
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14792 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14793 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14794   $as_echo_n "(cached) " >&6
14795 else
14796   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14797 fi
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14799 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14800 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14801
14802 #
14803 # Check to make sure the PIC flag actually works.
14804 #
14805 if test -n "$lt_prog_compiler_pic_CXX"; then
14806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14807 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14808 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14809   $as_echo_n "(cached) " >&6
14810 else
14811   lt_cv_prog_compiler_pic_works_CXX=no
14812    ac_outfile=conftest.$ac_objext
14813    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14814    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14815    # Insert the option either (1) after the last *FLAGS variable, or
14816    # (2) before a word containing "conftest.", or (3) at the end.
14817    # Note that $ac_compile itself does not contain backslashes and begins
14818    # with a dollar sign (not a hyphen), so the echo should work correctly.
14819    # The option is referenced via a variable to avoid confusing sed.
14820    lt_compile=`echo "$ac_compile" | $SED \
14821    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14822    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14823    -e 's:$: $lt_compiler_flag:'`
14824    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14825    (eval "$lt_compile" 2>conftest.err)
14826    ac_status=$?
14827    cat conftest.err >&5
14828    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829    if (exit $ac_status) && test -s "$ac_outfile"; then
14830      # The compiler can only warn and ignore the option if not recognized
14831      # So say no if there are warnings other than the usual output.
14832      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14833      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14834      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14835        lt_cv_prog_compiler_pic_works_CXX=yes
14836      fi
14837    fi
14838    $RM conftest*
14839
14840 fi
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14842 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14843
14844 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14845     case $lt_prog_compiler_pic_CXX in
14846      "" | " "*) ;;
14847      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14848      esac
14849 else
14850     lt_prog_compiler_pic_CXX=
14851      lt_prog_compiler_can_build_shared_CXX=no
14852 fi
14853
14854 fi
14855
14856
14857
14858
14859
14860 #
14861 # Check to make sure the static flag actually works.
14862 #
14863 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14865 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14866 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14867   $as_echo_n "(cached) " >&6
14868 else
14869   lt_cv_prog_compiler_static_works_CXX=no
14870    save_LDFLAGS="$LDFLAGS"
14871    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14872    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14873    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14874      # The linker can only warn and ignore the option if not recognized
14875      # So say no if there are warnings
14876      if test -s conftest.err; then
14877        # Append any errors to the config.log.
14878        cat conftest.err 1>&5
14879        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14880        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14881        if diff conftest.exp conftest.er2 >/dev/null; then
14882          lt_cv_prog_compiler_static_works_CXX=yes
14883        fi
14884      else
14885        lt_cv_prog_compiler_static_works_CXX=yes
14886      fi
14887    fi
14888    $RM -r conftest*
14889    LDFLAGS="$save_LDFLAGS"
14890
14891 fi
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14893 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14894
14895 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14896     :
14897 else
14898     lt_prog_compiler_static_CXX=
14899 fi
14900
14901
14902
14903
14904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14905 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14906 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14907   $as_echo_n "(cached) " >&6
14908 else
14909   lt_cv_prog_compiler_c_o_CXX=no
14910    $RM -r conftest 2>/dev/null
14911    mkdir conftest
14912    cd conftest
14913    mkdir out
14914    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14915
14916    lt_compiler_flag="-o out/conftest2.$ac_objext"
14917    # Insert the option either (1) after the last *FLAGS variable, or
14918    # (2) before a word containing "conftest.", or (3) at the end.
14919    # Note that $ac_compile itself does not contain backslashes and begins
14920    # with a dollar sign (not a hyphen), so the echo should work correctly.
14921    lt_compile=`echo "$ac_compile" | $SED \
14922    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14923    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14924    -e 's:$: $lt_compiler_flag:'`
14925    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14926    (eval "$lt_compile" 2>out/conftest.err)
14927    ac_status=$?
14928    cat out/conftest.err >&5
14929    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14931    then
14932      # The compiler can only warn and ignore the option if not recognized
14933      # So say no if there are warnings
14934      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14935      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14936      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14937        lt_cv_prog_compiler_c_o_CXX=yes
14938      fi
14939    fi
14940    chmod u+w . 2>&5
14941    $RM conftest*
14942    # SGI C++ compiler will create directory out/ii_files/ for
14943    # template instantiation
14944    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14945    $RM out/* && rmdir out
14946    cd ..
14947    $RM -r conftest
14948    $RM conftest*
14949
14950 fi
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14952 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14953
14954
14955
14956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14957 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14958 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14959   $as_echo_n "(cached) " >&6
14960 else
14961   lt_cv_prog_compiler_c_o_CXX=no
14962    $RM -r conftest 2>/dev/null
14963    mkdir conftest
14964    cd conftest
14965    mkdir out
14966    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14967
14968    lt_compiler_flag="-o out/conftest2.$ac_objext"
14969    # Insert the option either (1) after the last *FLAGS variable, or
14970    # (2) before a word containing "conftest.", or (3) at the end.
14971    # Note that $ac_compile itself does not contain backslashes and begins
14972    # with a dollar sign (not a hyphen), so the echo should work correctly.
14973    lt_compile=`echo "$ac_compile" | $SED \
14974    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14975    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14976    -e 's:$: $lt_compiler_flag:'`
14977    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14978    (eval "$lt_compile" 2>out/conftest.err)
14979    ac_status=$?
14980    cat out/conftest.err >&5
14981    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14983    then
14984      # The compiler can only warn and ignore the option if not recognized
14985      # So say no if there are warnings
14986      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14987      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14988      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14989        lt_cv_prog_compiler_c_o_CXX=yes
14990      fi
14991    fi
14992    chmod u+w . 2>&5
14993    $RM conftest*
14994    # SGI C++ compiler will create directory out/ii_files/ for
14995    # template instantiation
14996    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14997    $RM out/* && rmdir out
14998    cd ..
14999    $RM -r conftest
15000    $RM conftest*
15001
15002 fi
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15004 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15005
15006
15007
15008
15009 hard_links="nottested"
15010 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15011   # do not overwrite the value of need_locks provided by the user
15012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15013 $as_echo_n "checking if we can lock with hard links... " >&6; }
15014   hard_links=yes
15015   $RM conftest*
15016   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15017   touch conftest.a
15018   ln conftest.a conftest.b 2>&5 || hard_links=no
15019   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15021 $as_echo "$hard_links" >&6; }
15022   if test "$hard_links" = no; then
15023     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15024 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15025     need_locks=warn
15026   fi
15027 else
15028   need_locks=no
15029 fi
15030
15031
15032
15033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15034 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15035
15036   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15037   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15038   case $host_os in
15039   aix[4-9]*)
15040     # If we're using GNU nm, then we don't want the "-C" option.
15041     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15042     # Also, AIX nm treats weak defined symbols like other global defined
15043     # symbols, whereas GNU nm marks them as "W".
15044     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15045       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15046     else
15047       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'
15048     fi
15049     ;;
15050   pw32*)
15051     export_symbols_cmds_CXX="$ltdll_cmds"
15052     ;;
15053   cygwin* | mingw* | cegcc*)
15054     case $cc_basename in
15055     cl*)
15056       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15057       ;;
15058     *)
15059       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15060       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15061       ;;
15062     esac
15063     ;;
15064   *)
15065     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15066     ;;
15067   esac
15068
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15070 $as_echo "$ld_shlibs_CXX" >&6; }
15071 test "$ld_shlibs_CXX" = no && can_build_shared=no
15072
15073 with_gnu_ld_CXX=$with_gnu_ld
15074
15075
15076
15077
15078
15079
15080 #
15081 # Do we need to explicitly link libc?
15082 #
15083 case "x$archive_cmds_need_lc_CXX" in
15084 x|xyes)
15085   # Assume -lc should be added
15086   archive_cmds_need_lc_CXX=yes
15087
15088   if test "$enable_shared" = yes && test "$GCC" = yes; then
15089     case $archive_cmds_CXX in
15090     *'~'*)
15091       # FIXME: we may have to deal with multi-command sequences.
15092       ;;
15093     '$CC '*)
15094       # Test whether the compiler implicitly links with -lc since on some
15095       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15096       # to ld, don't add -lc before -lgcc.
15097       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15098 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15099 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15100   $as_echo_n "(cached) " >&6
15101 else
15102   $RM conftest*
15103         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15104
15105         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15106   (eval $ac_compile) 2>&5
15107   ac_status=$?
15108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15109   test $ac_status = 0; } 2>conftest.err; then
15110           soname=conftest
15111           lib=conftest
15112           libobjs=conftest.$ac_objext
15113           deplibs=
15114           wl=$lt_prog_compiler_wl_CXX
15115           pic_flag=$lt_prog_compiler_pic_CXX
15116           compiler_flags=-v
15117           linker_flags=-v
15118           verstring=
15119           output_objdir=.
15120           libname=conftest
15121           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15122           allow_undefined_flag_CXX=
15123           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15124   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15125   ac_status=$?
15126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15127   test $ac_status = 0; }
15128           then
15129             lt_cv_archive_cmds_need_lc_CXX=no
15130           else
15131             lt_cv_archive_cmds_need_lc_CXX=yes
15132           fi
15133           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15134         else
15135           cat conftest.err 1>&5
15136         fi
15137         $RM conftest*
15138
15139 fi
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15141 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15142       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15143       ;;
15144     esac
15145   fi
15146   ;;
15147 esac
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15211 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15212
15213 library_names_spec=
15214 libname_spec='lib$name'
15215 soname_spec=
15216 shrext_cmds=".so"
15217 postinstall_cmds=
15218 postuninstall_cmds=
15219 finish_cmds=
15220 finish_eval=
15221 shlibpath_var=
15222 shlibpath_overrides_runpath=unknown
15223 version_type=none
15224 dynamic_linker="$host_os ld.so"
15225 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15226 need_lib_prefix=unknown
15227 hardcode_into_libs=no
15228
15229 # when you set need_version to no, make sure it does not cause -set_version
15230 # flags to be left without arguments
15231 need_version=unknown
15232
15233 case $host_os in
15234 aix3*)
15235   version_type=linux # correct to gnu/linux during the next big refactor
15236   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15237   shlibpath_var=LIBPATH
15238
15239   # AIX 3 has no versioning support, so we append a major version to the name.
15240   soname_spec='${libname}${release}${shared_ext}$major'
15241   ;;
15242
15243 aix[4-9]*)
15244   version_type=linux # correct to gnu/linux during the next big refactor
15245   need_lib_prefix=no
15246   need_version=no
15247   hardcode_into_libs=yes
15248   if test "$host_cpu" = ia64; then
15249     # AIX 5 supports IA64
15250     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15251     shlibpath_var=LD_LIBRARY_PATH
15252   else
15253     # With GCC up to 2.95.x, collect2 would create an import file
15254     # for dependence libraries.  The import file would start with
15255     # the line `#! .'.  This would cause the generated library to
15256     # depend on `.', always an invalid library.  This was fixed in
15257     # development snapshots of GCC prior to 3.0.
15258     case $host_os in
15259       aix4 | aix4.[01] | aix4.[01].*)
15260       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15261            echo ' yes '
15262            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15263         :
15264       else
15265         can_build_shared=no
15266       fi
15267       ;;
15268     esac
15269     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15270     # soname into executable. Probably we can add versioning support to
15271     # collect2, so additional links can be useful in future.
15272     if test "$aix_use_runtimelinking" = yes; then
15273       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15274       # instead of lib<name>.a to let people know that these are not
15275       # typical AIX shared libraries.
15276       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15277     else
15278       # We preserve .a as extension for shared libraries through AIX4.2
15279       # and later when we are not doing run time linking.
15280       library_names_spec='${libname}${release}.a $libname.a'
15281       soname_spec='${libname}${release}${shared_ext}$major'
15282     fi
15283     shlibpath_var=LIBPATH
15284   fi
15285   ;;
15286
15287 amigaos*)
15288   case $host_cpu in
15289   powerpc)
15290     # Since July 2007 AmigaOS4 officially supports .so libraries.
15291     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15292     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15293     ;;
15294   m68k)
15295     library_names_spec='$libname.ixlibrary $libname.a'
15296     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15297     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15298     ;;
15299   esac
15300   ;;
15301
15302 beos*)
15303   library_names_spec='${libname}${shared_ext}'
15304   dynamic_linker="$host_os ld.so"
15305   shlibpath_var=LIBRARY_PATH
15306   ;;
15307
15308 bsdi[45]*)
15309   version_type=linux # correct to gnu/linux during the next big refactor
15310   need_version=no
15311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15312   soname_spec='${libname}${release}${shared_ext}$major'
15313   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15314   shlibpath_var=LD_LIBRARY_PATH
15315   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15316   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15317   # the default ld.so.conf also contains /usr/contrib/lib and
15318   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15319   # libtool to hard-code these into programs
15320   ;;
15321
15322 cygwin* | mingw* | pw32* | cegcc*)
15323   version_type=windows
15324   shrext_cmds=".dll"
15325   need_version=no
15326   need_lib_prefix=no
15327
15328   case $GCC,$cc_basename in
15329   yes,*)
15330     # gcc
15331     library_names_spec='$libname.dll.a'
15332     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15333     postinstall_cmds='base_file=`basename \${file}`~
15334       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15335       dldir=$destdir/`dirname \$dlpath`~
15336       test -d \$dldir || mkdir -p \$dldir~
15337       $install_prog $dir/$dlname \$dldir/$dlname~
15338       chmod a+x \$dldir/$dlname~
15339       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15340         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15341       fi'
15342     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15343       dlpath=$dir/\$dldll~
15344        $RM \$dlpath'
15345     shlibpath_overrides_runpath=yes
15346
15347     case $host_os in
15348     cygwin*)
15349       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15350       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15351
15352       ;;
15353     mingw* | cegcc*)
15354       # MinGW DLLs use traditional 'lib' prefix
15355       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15356       ;;
15357     pw32*)
15358       # pw32 DLLs use 'pw' prefix rather than 'lib'
15359       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15360       ;;
15361     esac
15362     dynamic_linker='Win32 ld.exe'
15363     ;;
15364
15365   *,cl*)
15366     # Native MSVC
15367     libname_spec='$name'
15368     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15369     library_names_spec='${libname}.dll.lib'
15370
15371     case $build_os in
15372     mingw*)
15373       sys_lib_search_path_spec=
15374       lt_save_ifs=$IFS
15375       IFS=';'
15376       for lt_path in $LIB
15377       do
15378         IFS=$lt_save_ifs
15379         # Let DOS variable expansion print the short 8.3 style file name.
15380         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15381         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15382       done
15383       IFS=$lt_save_ifs
15384       # Convert to MSYS style.
15385       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15386       ;;
15387     cygwin*)
15388       # Convert to unix form, then to dos form, then back to unix form
15389       # but this time dos style (no spaces!) so that the unix form looks
15390       # like /cygdrive/c/PROGRA~1:/cygdr...
15391       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15392       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15393       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15394       ;;
15395     *)
15396       sys_lib_search_path_spec="$LIB"
15397       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15398         # It is most probably a Windows format PATH.
15399         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15400       else
15401         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15402       fi
15403       # FIXME: find the short name or the path components, as spaces are
15404       # common. (e.g. "Program Files" -> "PROGRA~1")
15405       ;;
15406     esac
15407
15408     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15409     postinstall_cmds='base_file=`basename \${file}`~
15410       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15411       dldir=$destdir/`dirname \$dlpath`~
15412       test -d \$dldir || mkdir -p \$dldir~
15413       $install_prog $dir/$dlname \$dldir/$dlname'
15414     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15415       dlpath=$dir/\$dldll~
15416        $RM \$dlpath'
15417     shlibpath_overrides_runpath=yes
15418     dynamic_linker='Win32 link.exe'
15419     ;;
15420
15421   *)
15422     # Assume MSVC wrapper
15423     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15424     dynamic_linker='Win32 ld.exe'
15425     ;;
15426   esac
15427   # FIXME: first we should search . and the directory the executable is in
15428   shlibpath_var=PATH
15429   ;;
15430
15431 darwin* | rhapsody*)
15432   dynamic_linker="$host_os dyld"
15433   version_type=darwin
15434   need_lib_prefix=no
15435   need_version=no
15436   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15437   soname_spec='${libname}${release}${major}$shared_ext'
15438   shlibpath_overrides_runpath=yes
15439   shlibpath_var=DYLD_LIBRARY_PATH
15440   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15441
15442   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15443   ;;
15444
15445 dgux*)
15446   version_type=linux # correct to gnu/linux during the next big refactor
15447   need_lib_prefix=no
15448   need_version=no
15449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15450   soname_spec='${libname}${release}${shared_ext}$major'
15451   shlibpath_var=LD_LIBRARY_PATH
15452   ;;
15453
15454 freebsd* | dragonfly*)
15455   # DragonFly does not have aout.  When/if they implement a new
15456   # versioning mechanism, adjust this.
15457   if test -x /usr/bin/objformat; then
15458     objformat=`/usr/bin/objformat`
15459   else
15460     case $host_os in
15461     freebsd[23].*) objformat=aout ;;
15462     *) objformat=elf ;;
15463     esac
15464   fi
15465   version_type=freebsd-$objformat
15466   case $version_type in
15467     freebsd-elf*)
15468       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15469       need_version=no
15470       need_lib_prefix=no
15471       ;;
15472     freebsd-*)
15473       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15474       need_version=yes
15475       ;;
15476   esac
15477   shlibpath_var=LD_LIBRARY_PATH
15478   case $host_os in
15479   freebsd2.*)
15480     shlibpath_overrides_runpath=yes
15481     ;;
15482   freebsd3.[01]* | freebsdelf3.[01]*)
15483     shlibpath_overrides_runpath=yes
15484     hardcode_into_libs=yes
15485     ;;
15486   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15487   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15488     shlibpath_overrides_runpath=no
15489     hardcode_into_libs=yes
15490     ;;
15491   *) # from 4.6 on, and DragonFly
15492     shlibpath_overrides_runpath=yes
15493     hardcode_into_libs=yes
15494     ;;
15495   esac
15496   ;;
15497
15498 gnu*)
15499   version_type=linux # correct to gnu/linux during the next big refactor
15500   need_lib_prefix=no
15501   need_version=no
15502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15503   soname_spec='${libname}${release}${shared_ext}$major'
15504   shlibpath_var=LD_LIBRARY_PATH
15505   shlibpath_overrides_runpath=no
15506   hardcode_into_libs=yes
15507   ;;
15508
15509 haiku*)
15510   version_type=linux # correct to gnu/linux during the next big refactor
15511   need_lib_prefix=no
15512   need_version=no
15513   dynamic_linker="$host_os runtime_loader"
15514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15515   soname_spec='${libname}${release}${shared_ext}$major'
15516   shlibpath_var=LIBRARY_PATH
15517   shlibpath_overrides_runpath=yes
15518   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15519   hardcode_into_libs=yes
15520   ;;
15521
15522 hpux9* | hpux10* | hpux11*)
15523   # Give a soname corresponding to the major version so that dld.sl refuses to
15524   # link against other versions.
15525   version_type=sunos
15526   need_lib_prefix=no
15527   need_version=no
15528   case $host_cpu in
15529   ia64*)
15530     shrext_cmds='.so'
15531     hardcode_into_libs=yes
15532     dynamic_linker="$host_os dld.so"
15533     shlibpath_var=LD_LIBRARY_PATH
15534     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536     soname_spec='${libname}${release}${shared_ext}$major'
15537     if test "X$HPUX_IA64_MODE" = X32; then
15538       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15539     else
15540       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15541     fi
15542     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15543     ;;
15544   hppa*64*)
15545     shrext_cmds='.sl'
15546     hardcode_into_libs=yes
15547     dynamic_linker="$host_os dld.sl"
15548     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15549     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15550     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15551     soname_spec='${libname}${release}${shared_ext}$major'
15552     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15553     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15554     ;;
15555   *)
15556     shrext_cmds='.sl'
15557     dynamic_linker="$host_os dld.sl"
15558     shlibpath_var=SHLIB_PATH
15559     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15560     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561     soname_spec='${libname}${release}${shared_ext}$major'
15562     ;;
15563   esac
15564   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15565   postinstall_cmds='chmod 555 $lib'
15566   # or fails outright, so override atomically:
15567   install_override_mode=555
15568   ;;
15569
15570 interix[3-9]*)
15571   version_type=linux # correct to gnu/linux during the next big refactor
15572   need_lib_prefix=no
15573   need_version=no
15574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15575   soname_spec='${libname}${release}${shared_ext}$major'
15576   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15577   shlibpath_var=LD_LIBRARY_PATH
15578   shlibpath_overrides_runpath=no
15579   hardcode_into_libs=yes
15580   ;;
15581
15582 irix5* | irix6* | nonstopux*)
15583   case $host_os in
15584     nonstopux*) version_type=nonstopux ;;
15585     *)
15586         if test "$lt_cv_prog_gnu_ld" = yes; then
15587                 version_type=linux # correct to gnu/linux during the next big refactor
15588         else
15589                 version_type=irix
15590         fi ;;
15591   esac
15592   need_lib_prefix=no
15593   need_version=no
15594   soname_spec='${libname}${release}${shared_ext}$major'
15595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15596   case $host_os in
15597   irix5* | nonstopux*)
15598     libsuff= shlibsuff=
15599     ;;
15600   *)
15601     case $LD in # libtool.m4 will add one of these switches to LD
15602     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15603       libsuff= shlibsuff= libmagic=32-bit;;
15604     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15605       libsuff=32 shlibsuff=N32 libmagic=N32;;
15606     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15607       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15608     *) libsuff= shlibsuff= libmagic=never-match;;
15609     esac
15610     ;;
15611   esac
15612   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15613   shlibpath_overrides_runpath=no
15614   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15615   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15616   hardcode_into_libs=yes
15617   ;;
15618
15619 # No shared lib support for Linux oldld, aout, or coff.
15620 linux*oldld* | linux*aout* | linux*coff*)
15621   dynamic_linker=no
15622   ;;
15623
15624 # This must be glibc/ELF.
15625 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15626   version_type=linux # correct to gnu/linux during the next big refactor
15627   need_lib_prefix=no
15628   need_version=no
15629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630   soname_spec='${libname}${release}${shared_ext}$major'
15631   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15632   shlibpath_var=LD_LIBRARY_PATH
15633   shlibpath_overrides_runpath=no
15634
15635   # Some binutils ld are patched to set DT_RUNPATH
15636   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15637   $as_echo_n "(cached) " >&6
15638 else
15639   lt_cv_shlibpath_overrides_runpath=no
15640     save_LDFLAGS=$LDFLAGS
15641     save_libdir=$libdir
15642     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15643          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15644     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h.  */
15646
15647 int
15648 main ()
15649 {
15650
15651   ;
15652   return 0;
15653 }
15654 _ACEOF
15655 if ac_fn_cxx_try_link "$LINENO"; then :
15656   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15657   lt_cv_shlibpath_overrides_runpath=yes
15658 fi
15659 fi
15660 rm -f core conftest.err conftest.$ac_objext \
15661     conftest$ac_exeext conftest.$ac_ext
15662     LDFLAGS=$save_LDFLAGS
15663     libdir=$save_libdir
15664
15665 fi
15666
15667   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15668
15669   # This implies no fast_install, which is unacceptable.
15670   # Some rework will be needed to allow for fast_install
15671   # before this can be enabled.
15672   hardcode_into_libs=yes
15673
15674   # Add ABI-specific directories to the system library path.
15675   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15676
15677   # Append ld.so.conf contents to the search path
15678   if test -f /etc/ld.so.conf; then
15679     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15680     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15681
15682   fi
15683
15684   # We used to test for /lib/ld.so.1 and disable shared libraries on
15685   # powerpc, because MkLinux only supported shared libraries with the
15686   # GNU dynamic linker.  Since this was broken with cross compilers,
15687   # most powerpc-linux boxes support dynamic linking these days and
15688   # people can always --disable-shared, the test was removed, and we
15689   # assume the GNU/Linux dynamic linker is in use.
15690   dynamic_linker='GNU/Linux ld.so'
15691   ;;
15692
15693 netbsd*)
15694   version_type=sunos
15695   need_lib_prefix=no
15696   need_version=no
15697   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15698     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15699     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15700     dynamic_linker='NetBSD (a.out) ld.so'
15701   else
15702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15703     soname_spec='${libname}${release}${shared_ext}$major'
15704     dynamic_linker='NetBSD ld.elf_so'
15705   fi
15706   shlibpath_var=LD_LIBRARY_PATH
15707   shlibpath_overrides_runpath=yes
15708   hardcode_into_libs=yes
15709   ;;
15710
15711 newsos6)
15712   version_type=linux # correct to gnu/linux during the next big refactor
15713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714   shlibpath_var=LD_LIBRARY_PATH
15715   shlibpath_overrides_runpath=yes
15716   ;;
15717
15718 *nto* | *qnx*)
15719   version_type=qnx
15720   need_lib_prefix=no
15721   need_version=no
15722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15723   soname_spec='${libname}${release}${shared_ext}$major'
15724   shlibpath_var=LD_LIBRARY_PATH
15725   shlibpath_overrides_runpath=no
15726   hardcode_into_libs=yes
15727   dynamic_linker='ldqnx.so'
15728   ;;
15729
15730 openbsd*)
15731   version_type=sunos
15732   sys_lib_dlsearch_path_spec="/usr/lib"
15733   need_lib_prefix=no
15734   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15735   case $host_os in
15736     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15737     *)                          need_version=no  ;;
15738   esac
15739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15740   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15741   shlibpath_var=LD_LIBRARY_PATH
15742   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15743     case $host_os in
15744       openbsd2.[89] | openbsd2.[89].*)
15745         shlibpath_overrides_runpath=no
15746         ;;
15747       *)
15748         shlibpath_overrides_runpath=yes
15749         ;;
15750       esac
15751   else
15752     shlibpath_overrides_runpath=yes
15753   fi
15754   ;;
15755
15756 os2*)
15757   libname_spec='$name'
15758   shrext_cmds=".dll"
15759   need_lib_prefix=no
15760   library_names_spec='$libname${shared_ext} $libname.a'
15761   dynamic_linker='OS/2 ld.exe'
15762   shlibpath_var=LIBPATH
15763   ;;
15764
15765 osf3* | osf4* | osf5*)
15766   version_type=osf
15767   need_lib_prefix=no
15768   need_version=no
15769   soname_spec='${libname}${release}${shared_ext}$major'
15770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15771   shlibpath_var=LD_LIBRARY_PATH
15772   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15773   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15774   ;;
15775
15776 rdos*)
15777   dynamic_linker=no
15778   ;;
15779
15780 solaris*)
15781   version_type=linux # correct to gnu/linux during the next big refactor
15782   need_lib_prefix=no
15783   need_version=no
15784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785   soname_spec='${libname}${release}${shared_ext}$major'
15786   shlibpath_var=LD_LIBRARY_PATH
15787   shlibpath_overrides_runpath=yes
15788   hardcode_into_libs=yes
15789   # ldd complains unless libraries are executable
15790   postinstall_cmds='chmod +x $lib'
15791   ;;
15792
15793 sunos4*)
15794   version_type=sunos
15795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15796   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15797   shlibpath_var=LD_LIBRARY_PATH
15798   shlibpath_overrides_runpath=yes
15799   if test "$with_gnu_ld" = yes; then
15800     need_lib_prefix=no
15801   fi
15802   need_version=yes
15803   ;;
15804
15805 sysv4 | sysv4.3*)
15806   version_type=linux # correct to gnu/linux during the next big refactor
15807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15808   soname_spec='${libname}${release}${shared_ext}$major'
15809   shlibpath_var=LD_LIBRARY_PATH
15810   case $host_vendor in
15811     sni)
15812       shlibpath_overrides_runpath=no
15813       need_lib_prefix=no
15814       runpath_var=LD_RUN_PATH
15815       ;;
15816     siemens)
15817       need_lib_prefix=no
15818       ;;
15819     motorola)
15820       need_lib_prefix=no
15821       need_version=no
15822       shlibpath_overrides_runpath=no
15823       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15824       ;;
15825   esac
15826   ;;
15827
15828 sysv4*MP*)
15829   if test -d /usr/nec ;then
15830     version_type=linux # correct to gnu/linux during the next big refactor
15831     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15832     soname_spec='$libname${shared_ext}.$major'
15833     shlibpath_var=LD_LIBRARY_PATH
15834   fi
15835   ;;
15836
15837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15838   version_type=freebsd-elf
15839   need_lib_prefix=no
15840   need_version=no
15841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15842   soname_spec='${libname}${release}${shared_ext}$major'
15843   shlibpath_var=LD_LIBRARY_PATH
15844   shlibpath_overrides_runpath=yes
15845   hardcode_into_libs=yes
15846   if test "$with_gnu_ld" = yes; then
15847     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15848   else
15849     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15850     case $host_os in
15851       sco3.2v5*)
15852         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15853         ;;
15854     esac
15855   fi
15856   sys_lib_dlsearch_path_spec='/usr/lib'
15857   ;;
15858
15859 tpf*)
15860   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15861   version_type=linux # correct to gnu/linux during the next big refactor
15862   need_lib_prefix=no
15863   need_version=no
15864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15865   shlibpath_var=LD_LIBRARY_PATH
15866   shlibpath_overrides_runpath=no
15867   hardcode_into_libs=yes
15868   ;;
15869
15870 uts4*)
15871   version_type=linux # correct to gnu/linux during the next big refactor
15872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15873   soname_spec='${libname}${release}${shared_ext}$major'
15874   shlibpath_var=LD_LIBRARY_PATH
15875   ;;
15876
15877 *)
15878   dynamic_linker=no
15879   ;;
15880 esac
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15882 $as_echo "$dynamic_linker" >&6; }
15883 test "$dynamic_linker" = no && can_build_shared=no
15884
15885 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15886 if test "$GCC" = yes; then
15887   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15888 fi
15889
15890 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15891   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15892 fi
15893 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15894   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15895 fi
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15935 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15936 hardcode_action_CXX=
15937 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15938    test -n "$runpath_var_CXX" ||
15939    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15940
15941   # We can hardcode non-existent directories.
15942   if test "$hardcode_direct_CXX" != no &&
15943      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15944      # have to relink, otherwise we might link with an installed library
15945      # when we should be linking with a yet-to-be-installed one
15946      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15947      test "$hardcode_minus_L_CXX" != no; then
15948     # Linking always hardcodes the temporary library directory.
15949     hardcode_action_CXX=relink
15950   else
15951     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15952     hardcode_action_CXX=immediate
15953   fi
15954 else
15955   # We cannot hardcode anything, or else we can only hardcode existing
15956   # directories.
15957   hardcode_action_CXX=unsupported
15958 fi
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15960 $as_echo "$hardcode_action_CXX" >&6; }
15961
15962 if test "$hardcode_action_CXX" = relink ||
15963    test "$inherit_rpath_CXX" = yes; then
15964   # Fast installation is not supported
15965   enable_fast_install=no
15966 elif test "$shlibpath_overrides_runpath" = yes ||
15967      test "$enable_shared" = no; then
15968   # Fast installation is not necessary
15969   enable_fast_install=needless
15970 fi
15971
15972
15973
15974
15975
15976
15977
15978   fi # test -n "$compiler"
15979
15980   CC=$lt_save_CC
15981   CFLAGS=$lt_save_CFLAGS
15982   LDCXX=$LD
15983   LD=$lt_save_LD
15984   GCC=$lt_save_GCC
15985   with_gnu_ld=$lt_save_with_gnu_ld
15986   lt_cv_path_LDCXX=$lt_cv_path_LD
15987   lt_cv_path_LD=$lt_save_path_LD
15988   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15989   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15990 fi # test "$_lt_caught_CXX_error" != yes
15991
15992 ac_ext=cpp
15993 ac_cpp='$CXXCPP $CPPFLAGS'
15994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15997
15998
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
16000 $as_echo_n "checking whether the C++ compiler works... " >&6; }
16001 if ${atf_cv_prog_cxx_works+:} false; then :
16002   $as_echo_n "(cached) " >&6
16003 else
16004   ac_ext=cpp
16005 ac_cpp='$CXXCPP $CPPFLAGS'
16006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16009
16010                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16011 /* end confdefs.h.  */
16012
16013 int
16014 main ()
16015 {
16016
16017   ;
16018   return 0;
16019 }
16020 _ACEOF
16021 if ac_fn_cxx_try_link "$LINENO"; then :
16022   atf_cv_prog_cxx_works=yes
16023 else
16024   atf_cv_prog_cxx_works=no
16025 fi
16026 rm -f core conftest.err conftest.$ac_objext \
16027     conftest$ac_exeext conftest.$ac_ext
16028                 ac_ext=cpp
16029 ac_cpp='$CXXCPP $CPPFLAGS'
16030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16033
16034 fi
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $atf_cv_prog_cxx_works" >&5
16036 $as_echo "$atf_cv_prog_cxx_works" >&6; }
16037 if test "${atf_cv_prog_cxx_works}" = no; then
16038     as_fn_error $? "C++ compiler cannot create executables" "$LINENO" 5
16039 fi
16040
16041
16042
16043
16044     # Check whether --enable-developer was given.
16045 if test "${enable_developer+set}" = set; then :
16046   enableval=$enable_developer;
16047 else
16048   if test -d ${srcdir}/.git; then
16049              { $as_echo "$as_me:${as_lineno-$LINENO}: building from HEAD; developer mode autoenabled" >&5
16050 $as_echo "$as_me: building from HEAD; developer mode autoenabled" >&6;}
16051              enable_developer=yes
16052          else
16053              enable_developer=no
16054          fi
16055 fi
16056
16057
16058     #
16059     # The following warning flags should also be enabled but cannot be.
16060     # Reasons given below.
16061     #
16062     # -Wold-style-cast: Raises errors when using TIOCGWINSZ, at least under
16063     #                   Mac OS X.  This is due to the way _IOR is defined.
16064     #
16065
16066     try_c_cxx_flags="-D_FORTIFY_SOURCE=2 \
16067                      -Wall \
16068                      -Wcast-qual \
16069                      -Wextra \
16070                      -Wpointer-arith \
16071                      -Wredundant-decls \
16072                      -Wreturn-type \
16073                      -Wshadow \
16074                      -Wsign-compare \
16075                      -Wswitch \
16076                      -Wwrite-strings"
16077
16078     try_c_flags="-Wmissing-prototypes \
16079                  -Wno-traditional \
16080                  -Wstrict-prototypes"
16081
16082     try_cxx_flags="-Wabi \
16083                    -Wctor-dtor-privacy \
16084                    -Wno-deprecated \
16085                    -Wno-non-template-friend \
16086                    -Wno-pmf-conversions \
16087                    -Wnon-virtual-dtor \
16088                    -Woverloaded-virtual \
16089                    -Wreorder \
16090                    -Wsign-promo \
16091                    -Wsynth"
16092
16093     if test ${enable_developer} = yes; then
16094         try_werror=yes
16095         try_c_cxx_flags="${try_c_cxx_flags} -g -Werror"
16096     else
16097         try_werror=no
16098         try_c_cxx_flags="${try_c_cxx_flags} -DNDEBUG"
16099     fi
16100
16101
16102     ac_ext=c
16103 ac_cpp='$CPP $CPPFLAGS'
16104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16107
16108     valid_cflags=
16109     for f in ${try_c_cxx_flags} ${try_c_flags}; do
16110
16111
16112
16113
16114     if test x"${kyua_CC_has_werror-unset}" = xunset; then
16115         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror" >&5
16116 $as_echo_n "checking whether ${CC} supports -Werror... " >&6; }
16117         saved_flags="${CFLAGS}"
16118         kyua_CC_has_werror=no
16119         CFLAGS="${CFLAGS}  -Werror"
16120         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h.  */
16122
16123 int
16124 main ()
16125 {
16126 return 0;
16127   ;
16128   return 0;
16129 }
16130 _ACEOF
16131 if ac_fn_c_try_link "$LINENO"; then :
16132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16133 $as_echo "yes" >&6; }
16134                        kyua_CC_has_werror=yes
16135 else
16136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16137 $as_echo "no" >&6; }
16138 fi
16139 rm -f core conftest.err conftest.$ac_objext \
16140     conftest$ac_exeext conftest.$ac_ext
16141         CFLAGS="${saved_flags}"
16142     fi
16143
16144     if test "${f}" = "-Werror"; then
16145         found=${kyua_CC_has_werror}
16146     else
16147         found=unset
16148         if test ${kyua_CC_has_werror} = yes; then
16149
16150     if test x"${found-unset}" = xunset; then
16151         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports ${f}" >&5
16152 $as_echo_n "checking whether ${CC} supports ${f}... " >&6; }
16153         saved_flags="${CFLAGS}"
16154         found=no
16155         CFLAGS="${CFLAGS} -Werror ${f}"
16156         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h.  */
16158
16159 int
16160 main ()
16161 {
16162 return 0;
16163   ;
16164   return 0;
16165 }
16166 _ACEOF
16167 if ac_fn_c_try_link "$LINENO"; then :
16168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16169 $as_echo "yes" >&6; }
16170                        found=yes
16171 else
16172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173 $as_echo "no" >&6; }
16174 fi
16175 rm -f core conftest.err conftest.$ac_objext \
16176     conftest$ac_exeext conftest.$ac_ext
16177         CFLAGS="${saved_flags}"
16178     fi
16179
16180         else
16181
16182     if test x"${found-unset}" = xunset; then
16183         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports ${f}" >&5
16184 $as_echo_n "checking whether ${CC} supports ${f}... " >&6; }
16185         saved_flags="${CFLAGS}"
16186         found=no
16187         CFLAGS="${CFLAGS}  ${f}"
16188         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h.  */
16190
16191 int
16192 main ()
16193 {
16194 return 0;
16195   ;
16196   return 0;
16197 }
16198 _ACEOF
16199 if ac_fn_c_try_link "$LINENO"; then :
16200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16201 $as_echo "yes" >&6; }
16202                        found=yes
16203 else
16204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16205 $as_echo "no" >&6; }
16206 fi
16207 rm -f core conftest.err conftest.$ac_objext \
16208     conftest$ac_exeext conftest.$ac_ext
16209         CFLAGS="${saved_flags}"
16210     fi
16211
16212         fi
16213     fi
16214     if test ${found} = yes; then
16215         valid_cflags="${valid_cflags} ${f}"
16216     fi
16217
16218
16219     done
16220     if test -n "${valid_cflags}"; then
16221         CFLAGS="${CFLAGS} ${valid_cflags}"
16222     fi
16223     ac_ext=cpp
16224 ac_cpp='$CXXCPP $CPPFLAGS'
16225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16228
16229
16230
16231     ac_ext=cpp
16232 ac_cpp='$CXXCPP $CPPFLAGS'
16233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16236
16237     valid_cxxflags=
16238     for f in ${try_c_cxx_flags} ${try_cxx_flags}; do
16239
16240
16241
16242
16243     if test x"${kyua_CXX_has_werror-unset}" = xunset; then
16244         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Werror" >&5
16245 $as_echo_n "checking whether ${CXX} supports -Werror... " >&6; }
16246         saved_flags="${CXXFLAGS}"
16247         kyua_CXX_has_werror=no
16248         CXXFLAGS="${CXXFLAGS}  -Werror"
16249         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250 /* end confdefs.h.  */
16251
16252 int
16253 main ()
16254 {
16255 return 0;
16256   ;
16257   return 0;
16258 }
16259 _ACEOF
16260 if ac_fn_cxx_try_link "$LINENO"; then :
16261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16262 $as_echo "yes" >&6; }
16263                        kyua_CXX_has_werror=yes
16264 else
16265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16266 $as_echo "no" >&6; }
16267 fi
16268 rm -f core conftest.err conftest.$ac_objext \
16269     conftest$ac_exeext conftest.$ac_ext
16270         CXXFLAGS="${saved_flags}"
16271     fi
16272
16273     if test "${f}" = "-Werror"; then
16274         found=${kyua_CXX_has_werror}
16275     else
16276         found=unset
16277         if test ${kyua_CXX_has_werror} = yes; then
16278
16279     if test x"${found-unset}" = xunset; then
16280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports ${f}" >&5
16281 $as_echo_n "checking whether ${CXX} supports ${f}... " >&6; }
16282         saved_flags="${CXXFLAGS}"
16283         found=no
16284         CXXFLAGS="${CXXFLAGS} -Werror ${f}"
16285         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h.  */
16287
16288 int
16289 main ()
16290 {
16291 return 0;
16292   ;
16293   return 0;
16294 }
16295 _ACEOF
16296 if ac_fn_cxx_try_link "$LINENO"; then :
16297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16298 $as_echo "yes" >&6; }
16299                        found=yes
16300 else
16301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16302 $as_echo "no" >&6; }
16303 fi
16304 rm -f core conftest.err conftest.$ac_objext \
16305     conftest$ac_exeext conftest.$ac_ext
16306         CXXFLAGS="${saved_flags}"
16307     fi
16308
16309         else
16310
16311     if test x"${found-unset}" = xunset; then
16312         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports ${f}" >&5
16313 $as_echo_n "checking whether ${CXX} supports ${f}... " >&6; }
16314         saved_flags="${CXXFLAGS}"
16315         found=no
16316         CXXFLAGS="${CXXFLAGS}  ${f}"
16317         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h.  */
16319
16320 int
16321 main ()
16322 {
16323 return 0;
16324   ;
16325   return 0;
16326 }
16327 _ACEOF
16328 if ac_fn_cxx_try_link "$LINENO"; then :
16329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16330 $as_echo "yes" >&6; }
16331                        found=yes
16332 else
16333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16334 $as_echo "no" >&6; }
16335 fi
16336 rm -f core conftest.err conftest.$ac_objext \
16337     conftest$ac_exeext conftest.$ac_ext
16338         CXXFLAGS="${saved_flags}"
16339     fi
16340
16341         fi
16342     fi
16343     if test ${found} = yes; then
16344         valid_cxxflags="${valid_cxxflags} ${f}"
16345     fi
16346
16347
16348     done
16349     if test -n "${valid_cxxflags}"; then
16350         CXXFLAGS="${CXXFLAGS} ${valid_cxxflags}"
16351     fi
16352     ac_ext=cpp
16353 ac_cpp='$CXXCPP $CPPFLAGS'
16354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16357
16358
16359
16360
16361
16362
16363
16364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is in std" >&5
16365 $as_echo_n "checking whether vsnprintf is in std... " >&6; }
16366     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16367 /* end confdefs.h.  */
16368 #include <cstdarg>
16369                       #include <cstdio>
16370 int
16371 main ()
16372 {
16373 va_list ap;
16374                       char* buf = NULL;
16375                       const char* fmt = NULL;
16376                       std::vsnprintf(buf, 0, fmt, ap);
16377                      return 0;
16378   ;
16379   return 0;
16380 }
16381 _ACEOF
16382 if ac_fn_cxx_try_compile "$LINENO"; then :
16383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16384 $as_echo "yes" >&6; }
16385
16386 $as_echo "#define HAVE_VSNPRINTF_IN_STD 1" >>confdefs.h
16387
16388 else
16389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16390 $as_echo "no" >&6; }
16391
16392 fi
16393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16394
16395
16396
16397     ac_ext=c
16398 ac_cpp='$CPP $CPPFLAGS'
16399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16402
16403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt allows a + sign for POSIX behavior" >&5
16404 $as_echo_n "checking whether getopt allows a + sign for POSIX behavior... " >&6; }
16405     if test "$cross_compiling" = yes; then :
16406   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16408 as_fn_error $? "cannot run test program while cross compiling
16409 See \`config.log' for more details" "$LINENO" 5; }
16410 else
16411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h.  */
16413 #include <stdlib.h>
16414 #include <string.h>
16415 #include <unistd.h>
16416 int
16417 main ()
16418 {
16419
16420     int argc = 4;
16421     char* argv[5] = {
16422         strdup("conftest"),
16423         strdup("-+"),
16424         strdup("-a"),
16425         strdup("bar"),
16426         NULL
16427     };
16428     int ch;
16429     int seen_a = 0, seen_plus = 0;
16430
16431     while ((ch = getopt(argc, argv, "+a:")) != -1) {
16432         switch (ch) {
16433         case 'a':
16434             seen_a = 1;
16435             break;
16436
16437         case '+':
16438             seen_plus = 1;
16439             break;
16440
16441         case '?':
16442         default:
16443             ;
16444         }
16445     }
16446
16447     return (seen_a && !seen_plus) ? EXIT_SUCCESS : EXIT_FAILURE;
16448
16449   ;
16450   return 0;
16451 }
16452 _ACEOF
16453 if ac_fn_c_try_run "$LINENO"; then :
16454   getopt_allows_plus=yes
16455
16456 $as_echo "#define HAVE_GNU_GETOPT 1" >>confdefs.h
16457
16458 else
16459   getopt_allows_plus=no
16460 fi
16461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16462   conftest.$ac_objext conftest.beam conftest.$ac_ext
16463 fi
16464
16465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${getopt_allows_plus}" >&5
16466 $as_echo "${getopt_allows_plus}" >&6; }
16467     ac_ext=cpp
16468 ac_cpp='$CXXCPP $CPPFLAGS'
16469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16472
16473
16474     ac_ext=c
16475 ac_cpp='$CPP $CPPFLAGS'
16476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16479
16480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset" >&5
16481 $as_echo_n "checking whether getopt has optreset... " >&6; }
16482     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h.  */
16484 #include <stdlib.h>
16485 #include <unistd.h>
16486 int
16487 main ()
16488 {
16489
16490     optreset = 1;
16491     return EXIT_SUCCESS;
16492
16493   ;
16494   return 0;
16495 }
16496 _ACEOF
16497 if ac_fn_c_try_compile "$LINENO"; then :
16498   getopt_has_optreset=yes
16499 else
16500   getopt_has_optreset=no
16501 fi
16502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16503     if test x"${getopt_has_optreset}" = yes; then
16504
16505 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
16506
16507     fi
16508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${getopt_has_optreset}" >&5
16509 $as_echo "${getopt_has_optreset}" >&6; }
16510     ac_ext=cpp
16511 ac_cpp='$CXXCPP $CPPFLAGS'
16512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16515
16516
16517
16518
16519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((__format__(__printf__, a, b))) is supported" >&5
16520 $as_echo_n "checking whether __attribute__((__format__(__printf__, a, b))) is supported... " >&6; }
16521     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h.  */
16523
16524 #include <stdarg.h>
16525 #include <stdio.h>
16526
16527 static void test_printf(const char *, ...)
16528     __attribute__((__format__(__printf__, 1, 2)));
16529
16530 static void
16531 test_printf(const char *format, ...)
16532 {
16533     va_list ap;
16534
16535     va_start(ap, format);
16536     vprintf(format, ap);
16537     va_end(ap);
16538 }
16539 int
16540 main ()
16541 {
16542
16543     test_printf("foo %s", "bar");
16544     return 0;
16545
16546   ;
16547   return 0;
16548 }
16549 _ACEOF
16550 if ac_fn_cxx_try_compile "$LINENO"; then :
16551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16552 $as_echo "yes" >&6; }
16553          value="__attribute__((__format__(__printf__, a, b)))"
16554 else
16555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16556 $as_echo "no" >&6; }
16557          value=""
16558
16559 fi
16560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561     ATTRIBUTE_FORMAT_PRINTF=${value}
16562
16563
16564
16565                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((__noreturn__)) is supported" >&5
16566 $as_echo_n "checking whether __attribute__((__noreturn__)) is supported... " >&6; }
16567     if test "$cross_compiling" = yes; then :
16568   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16570 as_fn_error $? "cannot run test program while cross compiling
16571 See \`config.log' for more details" "$LINENO" 5; }
16572 else
16573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16574 /* end confdefs.h.  */
16575
16576 int
16577 main ()
16578 {
16579
16580 #if ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
16581     return 0;
16582 #else
16583     return 1;
16584 #endif
16585
16586   ;
16587   return 0;
16588 }
16589 _ACEOF
16590 if ac_fn_cxx_try_run "$LINENO"; then :
16591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16592 $as_echo "yes" >&6; }
16593          value="__attribute__((__noreturn__))"
16594 else
16595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16596 $as_echo "no" >&6; }
16597          value=""
16598
16599 fi
16600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16601   conftest.$ac_objext conftest.beam conftest.$ac_ext
16602 fi
16603
16604     ATTRIBUTE_NORETURN=${value}
16605
16606
16607
16608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((__unused__)) is supported" >&5
16609 $as_echo_n "checking whether __attribute__((__unused__)) is supported... " >&6; }
16610     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h.  */
16612
16613 static void
16614 function(int a __attribute__((__unused__)))
16615 {
16616 }
16617 int
16618 main ()
16619 {
16620
16621     function(3);
16622     return 0;
16623
16624   ;
16625   return 0;
16626 }
16627 _ACEOF
16628 if ac_fn_cxx_try_compile "$LINENO"; then :
16629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16630 $as_echo "yes" >&6; }
16631          value="__attribute__((__unused__))"
16632 else
16633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16634 $as_echo "no" >&6; }
16635          value=""
16636
16637 fi
16638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639     ATTRIBUTE_UNUSED=${value}
16640
16641
16642
16643
16644     for ac_func in putenv setenv unsetenv
16645 do :
16646   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16647 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16648 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16649   cat >>confdefs.h <<_ACEOF
16650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16651 _ACEOF
16652
16653 fi
16654 done
16655
16656
16657
16658
16659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv is in std" >&5
16660 $as_echo_n "checking whether putenv is in std... " >&6; }
16661     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h.  */
16663 #include <cstdio>
16664 int
16665 main ()
16666 {
16667 std::putenv("a=b");
16668                      return 0;
16669   ;
16670   return 0;
16671 }
16672 _ACEOF
16673 if ac_fn_cxx_try_compile "$LINENO"; then :
16674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16675 $as_echo "yes" >&6; }
16676
16677 $as_echo "#define HAVE_PUTENV_IN_STD 1" >>confdefs.h
16678
16679 else
16680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16681 $as_echo "no" >&6; }
16682
16683 fi
16684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16685
16686
16687
16688
16689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv is in std" >&5
16690 $as_echo_n "checking whether setenv is in std... " >&6; }
16691     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692 /* end confdefs.h.  */
16693 #include <cstdio>
16694 int
16695 main ()
16696 {
16697 std::setenv("a", "b");
16698                      return 0;
16699   ;
16700   return 0;
16701 }
16702 _ACEOF
16703 if ac_fn_cxx_try_compile "$LINENO"; then :
16704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16705 $as_echo "yes" >&6; }
16706
16707 $as_echo "#define HAVE_SETENV_IN_STD 1" >>confdefs.h
16708
16709 else
16710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16711 $as_echo "no" >&6; }
16712
16713 fi
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715
16716
16717
16718
16719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv is in std" >&5
16720 $as_echo_n "checking whether unsetenv is in std... " >&6; }
16721     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h.  */
16723 #include <cstdio>
16724 int
16725 main ()
16726 {
16727 std::unsetenv("a");
16728                      return 0;
16729   ;
16730   return 0;
16731 }
16732 _ACEOF
16733 if ac_fn_cxx_try_compile "$LINENO"; then :
16734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16735 $as_echo "yes" >&6; }
16736
16737 $as_echo "#define HAVE_UNSETENV_IN_STD 1" >>confdefs.h
16738
16739 else
16740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16741 $as_echo "no" >&6; }
16742
16743 fi
16744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16745
16746
16747
16748
16749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basename takes a constant pointer" >&5
16750 $as_echo_n "checking whether basename takes a constant pointer... " >&6; }
16751     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h.  */
16753 #include <libgen.h>
16754 int
16755 main ()
16756 {
16757
16758          const char* s = "/foo/bar/";
16759          (void)::basename(s);
16760
16761   ;
16762   return 0;
16763 }
16764 _ACEOF
16765 if ac_fn_cxx_try_compile "$LINENO"; then :
16766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16767 $as_echo "yes" >&6; }
16768
16769 $as_echo "#define HAVE_CONST_BASENAME 1" >>confdefs.h
16770
16771 else
16772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16773 $as_echo "no" >&6; }
16774 fi
16775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16776
16777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirname takes a constant pointer" >&5
16778 $as_echo_n "checking whether dirname takes a constant pointer... " >&6; }
16779     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h.  */
16781 #include <libgen.h>
16782 int
16783 main ()
16784 {
16785
16786          const char* s = "/foo/bar/";
16787          (void)::dirname(s);
16788
16789   ;
16790   return 0;
16791 }
16792 _ACEOF
16793 if ac_fn_cxx_try_compile "$LINENO"; then :
16794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16795 $as_echo "yes" >&6; }
16796
16797 $as_echo "#define HAVE_CONST_DIRNAME 1" >>confdefs.h
16798
16799 else
16800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16801 $as_echo "no" >&6; }
16802 fi
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804
16805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd(NULL, 0) works" >&5
16806 $as_echo_n "checking whether getcwd(NULL, 0) works... " >&6; }
16807     if test "$cross_compiling" = yes; then :
16808   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16810 as_fn_error $? "cannot run test program while cross compiling
16811 See \`config.log' for more details" "$LINENO" 5; }
16812 else
16813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h.  */
16815 #include <stdlib.h>
16816 #include <unistd.h>
16817 int
16818 main ()
16819 {
16820
16821          char *cwd = getcwd(NULL, 0);
16822          return (cwd != NULL) ? EXIT_SUCCESS : EXIT_FAILURE;
16823
16824   ;
16825   return 0;
16826 }
16827 _ACEOF
16828 if ac_fn_cxx_try_run "$LINENO"; then :
16829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16830 $as_echo "yes" >&6; }
16831
16832 $as_echo "#define HAVE_GETCWD_DYN 1" >>confdefs.h
16833
16834 else
16835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16836 $as_echo "no" >&6; }
16837 fi
16838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16839   conftest.$ac_objext conftest.beam conftest.$ac_ext
16840 fi
16841
16842
16843     for ac_func in unmount
16844 do :
16845   ac_fn_cxx_check_func "$LINENO" "unmount" "ac_cv_func_unmount"
16846 if test "x$ac_cv_func_unmount" = xyes; then :
16847   cat >>confdefs.h <<_ACEOF
16848 #define HAVE_UNMOUNT 1
16849 _ACEOF
16850
16851 fi
16852 done
16853
16854
16855
16856
16857
16858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is in std" >&5
16859 $as_echo_n "checking whether snprintf is in std... " >&6; }
16860     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h.  */
16862 #include <cstdio>
16863 int
16864 main ()
16865 {
16866 char buf;
16867                       std::snprintf(&buf, 1, "");
16868                      return 0;
16869   ;
16870   return 0;
16871 }
16872 _ACEOF
16873 if ac_fn_cxx_try_compile "$LINENO"; then :
16874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16875 $as_echo "yes" >&6; }
16876
16877 $as_echo "#define HAVE_SNPRINTF_IN_STD 1" >>confdefs.h
16878
16879 else
16880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16881 $as_echo "no" >&6; }
16882
16883 fi
16884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885
16886
16887
16888
16889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the last valid signal" >&5
16890 $as_echo_n "checking for the last valid signal... " >&6; }
16891     if test "$cross_compiling" = yes; then :
16892   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16894 as_fn_error $? "cannot run test program while cross compiling
16895 See \`config.log' for more details" "$LINENO" 5; }
16896 else
16897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h.  */
16899 #include <err.h>
16900 #include <errno.h>
16901 #include <signal.h>
16902 #include <stdio.h>
16903 #include <stdio.h>
16904 #include <stdlib.h>
16905 int
16906 main ()
16907 {
16908
16909     int i;
16910     FILE *f;
16911
16912     i = 0;
16913     while (i < 1024) {
16914         i++;
16915         if (i != SIGKILL && i != SIGSTOP) {
16916             struct sigaction sa;
16917             int ret;
16918
16919             sa.sa_handler = SIG_IGN;
16920             sigemptyset(&sa.sa_mask);
16921             sa.sa_flags = 0;
16922
16923             ret = sigaction(i, &sa, NULL);
16924             if (ret == -1) {
16925                 if (errno == EINVAL) {
16926                     i--;
16927                     break;
16928                 } else
16929                     err(EXIT_FAILURE, "sigaction failed");
16930             }
16931         }
16932     }
16933     if (i == 100)
16934         errx(EXIT_FAILURE, "too much signals");
16935
16936     f = fopen("conftest.cnt", "w");
16937     if (f == NULL)
16938         err(EXIT_FAILURE, "failed to open file");
16939
16940     fprintf(f, "%d\n", i);
16941     fclose(f);
16942
16943     return EXIT_SUCCESS;
16944
16945   ;
16946   return 0;
16947 }
16948 _ACEOF
16949 if ac_fn_cxx_try_run "$LINENO"; then :
16950   if test ! -f conftest.cnt; then
16951          last_signo=15
16952          { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed; assuming ${last_signo}" >&5
16953 $as_echo "failed; assuming ${last_signo}" >&6; }
16954      else
16955          last_signo=$(cat conftest.cnt)
16956          rm -f conftest.cnt
16957          { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${last_signo}" >&5
16958 $as_echo "${last_signo}" >&6; }
16959      fi
16960 else
16961   last_signo=15
16962      { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed; assuming ${last_signo}" >&5
16963 $as_echo "failed; assuming ${last_signo}" >&6; }
16964 fi
16965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16966   conftest.$ac_objext conftest.beam conftest.$ac_ext
16967 fi
16968
16969
16970 cat >>confdefs.h <<_ACEOF
16971 #define LAST_SIGNO ${last_signo}
16972 _ACEOF
16973
16974
16975
16976 ac_fn_cxx_check_type "$LINENO" "timer_t" "ac_cv_type_timer_t" "#include <time.h>
16977 "
16978 if test "x$ac_cv_type_timer_t" = xyes; then :
16979
16980 fi
16981
16982
16983
16984
16985     test x"${ATF_BUILD_CC-unset}" = x"unset" && ATF_BUILD_CC="${CC}"
16986
16987
16988
16989
16990     test x"${ATF_BUILD_CFLAGS-unset}" = x"unset" && ATF_BUILD_CFLAGS="${CFLAGS}"
16991
16992
16993
16994
16995     test x"${ATF_BUILD_CPP-unset}" = x"unset" && ATF_BUILD_CPP="${CPP}"
16996
16997
16998
16999
17000     test x"${ATF_BUILD_CPPFLAGS-unset}" = x"unset" && ATF_BUILD_CPPFLAGS="${CPPFLAGS}"
17001
17002
17003
17004
17005     test x"${ATF_BUILD_CXX-unset}" = x"unset" && ATF_BUILD_CXX="${CXX}"
17006
17007
17008
17009
17010     test x"${ATF_BUILD_CXXFLAGS-unset}" = x"unset" && ATF_BUILD_CXXFLAGS="${CXXFLAGS}"
17011
17012
17013
17014
17015 if test "${srcdir}" = .; then
17016     target_srcdir=
17017 else
17018     target_srcdir="${srcdir}/"
17019 fi
17020
17021
17022
17023 atf_arch=`uname -p`
17024 atf_machine=`uname -m`
17025
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: Machine type: ${atf_machine}, architecture: ${atf_arch}" >&5
17027 $as_echo "$as_me: Machine type: ${atf_machine}, architecture: ${atf_arch}" >&6;}
17028 atf_arch=${atf_arch}
17029
17030 atf_machine=${atf_machine}
17031
17032
17033
17034
17035 if test x"${ATF_CONFSUBDIR-unset}" = x"unset"; then
17036     ATF_CONFSUBDIR=atf
17037 else
17038     case ${ATF_CONFSUBDIR} in
17039     /*)
17040         as_fn_error $? "ATF_CONFSUBDIR must hold a relative path" "$LINENO" 5
17041         ;;
17042     *)
17043         ;;
17044     esac
17045 fi
17046 if test x"${ATF_CONFSUBDIR}" = x""; then
17047     atf_confdir=\${sysconfdir}
17048
17049 else
17050     atf_confdir=\${sysconfdir}/${ATF_CONFSUBDIR}
17051
17052 fi
17053
17054
17055 if test x"${ATF_WORKDIR}" = x""; then
17056     for t in /tmp /var/tmp; do
17057         if test -d ${t}; then
17058             ATF_WORKDIR=${t}
17059             break
17060         fi
17061     done
17062     if test x"${ATF_WORKDIR}" = x""; then
17063         as_fn_error $? "Could not guess a value for ATF_WORKDIR" "$LINENO" 5
17064     fi
17065 else
17066     case ${ATF_WORKDIR} in
17067     /*)
17068         ;;
17069     *)
17070         as_fn_error $? "ATF_WORKDIR must hold an absolute path" "$LINENO" 5
17071         ;;
17072     esac
17073 fi
17074
17075 atf_aclocaldir=\${datadir}/aclocal
17076
17077 atf_cssdir=\${datadir}/examples/atf
17078
17079 atf_dtddir=\${datadir}/xml/atf
17080
17081 atf_egdir=\${datadir}/examples/atf
17082
17083 atf_pkgconfigdir=\${libdir}/pkgconfig
17084
17085 atf_xsldir=\${datadir}/xsl/atf
17086
17087
17088
17089
17090 if test x"${ATF_SHELL}" = x""; then
17091     for ac_prog in bash sh
17092 do
17093   # Extract the first word of "$ac_prog", so it can be a program name with args.
17094 set dummy $ac_prog; ac_word=$2
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17096 $as_echo_n "checking for $ac_word... " >&6; }
17097 if ${ac_cv_path_ATF_SHELL+:} false; then :
17098   $as_echo_n "(cached) " >&6
17099 else
17100   case $ATF_SHELL in
17101   [\\/]* | ?:[\\/]*)
17102   ac_cv_path_ATF_SHELL="$ATF_SHELL" # Let the user override the test with a path.
17103   ;;
17104   *)
17105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17106 for as_dir in $PATH
17107 do
17108   IFS=$as_save_IFS
17109   test -z "$as_dir" && as_dir=.
17110     for ac_exec_ext in '' $ac_executable_extensions; do
17111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17112     ac_cv_path_ATF_SHELL="$as_dir/$ac_word$ac_exec_ext"
17113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17114     break 2
17115   fi
17116 done
17117   done
17118 IFS=$as_save_IFS
17119
17120   ;;
17121 esac
17122 fi
17123 ATF_SHELL=$ac_cv_path_ATF_SHELL
17124 if test -n "$ATF_SHELL"; then
17125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATF_SHELL" >&5
17126 $as_echo "$ATF_SHELL" >&6; }
17127 else
17128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17129 $as_echo "no" >&6; }
17130 fi
17131
17132
17133   test -n "$ATF_SHELL" && break
17134 done
17135
17136 else
17137     case ${ATF_SHELL} in
17138     /*)
17139         ;;
17140     *)
17141         as_fn_error $? "ATF_SHELL must hold an absolute path" "$LINENO" 5
17142         ;;
17143     esac
17144 fi
17145 if test x"${ATF_SHELL}" = x""; then
17146     as_fn_error $? "No POSIX shell interpreter found; maybe set ATF_SHELL?" "$LINENO" 5
17147 fi
17148
17149
17150 # Extract the first word of "gdb", so it can be a program name with args.
17151 set dummy gdb; ac_word=$2
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17153 $as_echo_n "checking for $ac_word... " >&6; }
17154 if ${ac_cv_path_GDB+:} false; then :
17155   $as_echo_n "(cached) " >&6
17156 else
17157   case $GDB in
17158   [\\/]* | ?:[\\/]*)
17159   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
17160   ;;
17161   *)
17162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17163 for as_dir in $PATH
17164 do
17165   IFS=$as_save_IFS
17166   test -z "$as_dir" && as_dir=.
17167     for ac_exec_ext in '' $ac_executable_extensions; do
17168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17169     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
17170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17171     break 2
17172   fi
17173 done
17174   done
17175 IFS=$as_save_IFS
17176
17177   ;;
17178 esac
17179 fi
17180 GDB=$ac_cv_path_GDB
17181 if test -n "$GDB"; then
17182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
17183 $as_echo "$GDB" >&6; }
17184 else
17185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17186 $as_echo "no" >&6; }
17187 fi
17188
17189
17190 # Extract the first word of "kyua", so it can be a program name with args.
17191 set dummy kyua; ac_word=$2
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17193 $as_echo_n "checking for $ac_word... " >&6; }
17194 if ${ac_cv_path_KYUA+:} false; then :
17195   $as_echo_n "(cached) " >&6
17196 else
17197   case $KYUA in
17198   [\\/]* | ?:[\\/]*)
17199   ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
17200   ;;
17201   *)
17202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17203 for as_dir in $PATH
17204 do
17205   IFS=$as_save_IFS
17206   test -z "$as_dir" && as_dir=.
17207     for ac_exec_ext in '' $ac_executable_extensions; do
17208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17209     ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
17210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17211     break 2
17212   fi
17213 done
17214   done
17215 IFS=$as_save_IFS
17216
17217   ;;
17218 esac
17219 fi
17220 KYUA=$ac_cv_path_KYUA
17221 if test -n "$KYUA"; then
17222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
17223 $as_echo "$KYUA" >&6; }
17224 else
17225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17226 $as_echo "no" >&6; }
17227 fi
17228
17229
17230  if test -n "${KYUA}"; then
17231   HAVE_KYUA_TRUE=
17232   HAVE_KYUA_FALSE='#'
17233 else
17234   HAVE_KYUA_TRUE='#'
17235   HAVE_KYUA_FALSE=
17236 fi
17237
17238 # Extract the first word of "git", so it can be a program name with args.
17239 set dummy git; ac_word=$2
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17241 $as_echo_n "checking for $ac_word... " >&6; }
17242 if ${ac_cv_path_GIT+:} false; then :
17243   $as_echo_n "(cached) " >&6
17244 else
17245   case $GIT in
17246   [\\/]* | ?:[\\/]*)
17247   ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
17248   ;;
17249   *)
17250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17251 for as_dir in $PATH
17252 do
17253   IFS=$as_save_IFS
17254   test -z "$as_dir" && as_dir=.
17255     for ac_exec_ext in '' $ac_executable_extensions; do
17256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17257     ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
17258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17259     break 2
17260   fi
17261 done
17262   done
17263 IFS=$as_save_IFS
17264
17265   ;;
17266 esac
17267 fi
17268 GIT=$ac_cv_path_GIT
17269 if test -n "$GIT"; then
17270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
17271 $as_echo "$GIT" >&6; }
17272 else
17273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17274 $as_echo "no" >&6; }
17275 fi
17276
17277
17278
17279
17280 ac_config_files="$ac_config_files Makefile atf-c/defs.h"
17281
17282 cat >confcache <<\_ACEOF
17283 # This file is a shell script that caches the results of configure
17284 # tests run on this system so they can be shared between configure
17285 # scripts and configure runs, see configure's option --config-cache.
17286 # It is not useful on other systems.  If it contains results you don't
17287 # want to keep, you may remove or edit it.
17288 #
17289 # config.status only pays attention to the cache file if you give it
17290 # the --recheck option to rerun configure.
17291 #
17292 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17293 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17294 # following values.
17295
17296 _ACEOF
17297
17298 # The following way of writing the cache mishandles newlines in values,
17299 # but we know of no workaround that is simple, portable, and efficient.
17300 # So, we kill variables containing newlines.
17301 # Ultrix sh set writes to stderr and can't be redirected directly,
17302 # and sets the high bit in the cache file unless we assign to the vars.
17303 (
17304   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17305     eval ac_val=\$$ac_var
17306     case $ac_val in #(
17307     *${as_nl}*)
17308       case $ac_var in #(
17309       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17310 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17311       esac
17312       case $ac_var in #(
17313       _ | IFS | as_nl) ;; #(
17314       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17315       *) { eval $ac_var=; unset $ac_var;} ;;
17316       esac ;;
17317     esac
17318   done
17319
17320   (set) 2>&1 |
17321     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17322     *${as_nl}ac_space=\ *)
17323       # `set' does not quote correctly, so add quotes: double-quote
17324       # substitution turns \\\\ into \\, and sed turns \\ into \.
17325       sed -n \
17326         "s/'/'\\\\''/g;
17327           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17328       ;; #(
17329     *)
17330       # `set' quotes correctly as required by POSIX, so do not add quotes.
17331       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17332       ;;
17333     esac |
17334     sort
17335 ) |
17336   sed '
17337      /^ac_cv_env_/b end
17338      t clear
17339      :clear
17340      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17341      t end
17342      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17343      :end' >>confcache
17344 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17345   if test -w "$cache_file"; then
17346     if test "x$cache_file" != "x/dev/null"; then
17347       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17348 $as_echo "$as_me: updating cache $cache_file" >&6;}
17349       if test ! -f "$cache_file" || test -h "$cache_file"; then
17350         cat confcache >"$cache_file"
17351       else
17352         case $cache_file in #(
17353         */* | ?:*)
17354           mv -f confcache "$cache_file"$$ &&
17355           mv -f "$cache_file"$$ "$cache_file" ;; #(
17356         *)
17357           mv -f confcache "$cache_file" ;;
17358         esac
17359       fi
17360     fi
17361   else
17362     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17363 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17364   fi
17365 fi
17366 rm -f confcache
17367
17368 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17369 # Let make expand exec_prefix.
17370 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17371
17372 DEFS=-DHAVE_CONFIG_H
17373
17374 ac_libobjs=
17375 ac_ltlibobjs=
17376 U=
17377 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17378   # 1. Remove the extension, and $U if already installed.
17379   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17380   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17381   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17382   #    will be set to the directory where LIBOBJS objects are built.
17383   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17384   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17385 done
17386 LIBOBJS=$ac_libobjs
17387
17388 LTLIBOBJS=$ac_ltlibobjs
17389
17390
17391  if test -n "$EXEEXT"; then
17392   am__EXEEXT_TRUE=
17393   am__EXEEXT_FALSE='#'
17394 else
17395   am__EXEEXT_TRUE='#'
17396   am__EXEEXT_FALSE=
17397 fi
17398
17399 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17400   as_fn_error $? "conditional \"AMDEP\" was never defined.
17401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17402 fi
17403 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17404   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17406 fi
17407 if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then
17408   as_fn_error $? "conditional \"ENABLE_TOOLS\" was never defined.
17409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17410 fi
17411 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17412   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17414 fi
17415 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17416   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17418 fi
17419 if test -z "${HAVE_KYUA_TRUE}" && test -z "${HAVE_KYUA_FALSE}"; then
17420   as_fn_error $? "conditional \"HAVE_KYUA\" was never defined.
17421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17422 fi
17423
17424 : "${CONFIG_STATUS=./config.status}"
17425 ac_write_fail=0
17426 ac_clean_files_save=$ac_clean_files
17427 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17429 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17430 as_write_fail=0
17431 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17432 #! $SHELL
17433 # Generated by $as_me.
17434 # Run this file to recreate the current configuration.
17435 # Compiler output produced by configure, useful for debugging
17436 # configure, is in config.log if it exists.
17437
17438 debug=false
17439 ac_cs_recheck=false
17440 ac_cs_silent=false
17441
17442 SHELL=\${CONFIG_SHELL-$SHELL}
17443 export SHELL
17444 _ASEOF
17445 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17446 ## -------------------- ##
17447 ## M4sh Initialization. ##
17448 ## -------------------- ##
17449
17450 # Be more Bourne compatible
17451 DUALCASE=1; export DUALCASE # for MKS sh
17452 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17453   emulate sh
17454   NULLCMD=:
17455   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17456   # is contrary to our usage.  Disable this feature.
17457   alias -g '${1+"$@"}'='"$@"'
17458   setopt NO_GLOB_SUBST
17459 else
17460   case `(set -o) 2>/dev/null` in #(
17461   *posix*) :
17462     set -o posix ;; #(
17463   *) :
17464      ;;
17465 esac
17466 fi
17467
17468
17469 as_nl='
17470 '
17471 export as_nl
17472 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17473 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17474 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17475 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17476 # Prefer a ksh shell builtin over an external printf program on Solaris,
17477 # but without wasting forks for bash or zsh.
17478 if test -z "$BASH_VERSION$ZSH_VERSION" \
17479     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17480   as_echo='print -r --'
17481   as_echo_n='print -rn --'
17482 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17483   as_echo='printf %s\n'
17484   as_echo_n='printf %s'
17485 else
17486   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17487     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17488     as_echo_n='/usr/ucb/echo -n'
17489   else
17490     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17491     as_echo_n_body='eval
17492       arg=$1;
17493       case $arg in #(
17494       *"$as_nl"*)
17495         expr "X$arg" : "X\\(.*\\)$as_nl";
17496         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17497       esac;
17498       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17499     '
17500     export as_echo_n_body
17501     as_echo_n='sh -c $as_echo_n_body as_echo'
17502   fi
17503   export as_echo_body
17504   as_echo='sh -c $as_echo_body as_echo'
17505 fi
17506
17507 # The user is always right.
17508 if test "${PATH_SEPARATOR+set}" != set; then
17509   PATH_SEPARATOR=:
17510   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17511     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17512       PATH_SEPARATOR=';'
17513   }
17514 fi
17515
17516
17517 # IFS
17518 # We need space, tab and new line, in precisely that order.  Quoting is
17519 # there to prevent editors from complaining about space-tab.
17520 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17521 # splitting by setting IFS to empty value.)
17522 IFS=" ""        $as_nl"
17523
17524 # Find who we are.  Look in the path if we contain no directory separator.
17525 as_myself=
17526 case $0 in #((
17527   *[\\/]* ) as_myself=$0 ;;
17528   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17529 for as_dir in $PATH
17530 do
17531   IFS=$as_save_IFS
17532   test -z "$as_dir" && as_dir=.
17533     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17534   done
17535 IFS=$as_save_IFS
17536
17537      ;;
17538 esac
17539 # We did not find ourselves, most probably we were run as `sh COMMAND'
17540 # in which case we are not to be found in the path.
17541 if test "x$as_myself" = x; then
17542   as_myself=$0
17543 fi
17544 if test ! -f "$as_myself"; then
17545   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17546   exit 1
17547 fi
17548
17549 # Unset variables that we do not need and which cause bugs (e.g. in
17550 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17551 # suppresses any "Segmentation fault" message there.  '((' could
17552 # trigger a bug in pdksh 5.2.14.
17553 for as_var in BASH_ENV ENV MAIL MAILPATH
17554 do eval test x\${$as_var+set} = xset \
17555   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17556 done
17557 PS1='$ '
17558 PS2='> '
17559 PS4='+ '
17560
17561 # NLS nuisances.
17562 LC_ALL=C
17563 export LC_ALL
17564 LANGUAGE=C
17565 export LANGUAGE
17566
17567 # CDPATH.
17568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17569
17570
17571 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17572 # ----------------------------------------
17573 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17574 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17575 # script with STATUS, using 1 if that was 0.
17576 as_fn_error ()
17577 {
17578   as_status=$1; test $as_status -eq 0 && as_status=1
17579   if test "$4"; then
17580     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17581     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17582   fi
17583   $as_echo "$as_me: error: $2" >&2
17584   as_fn_exit $as_status
17585 } # as_fn_error
17586
17587
17588 # as_fn_set_status STATUS
17589 # -----------------------
17590 # Set $? to STATUS, without forking.
17591 as_fn_set_status ()
17592 {
17593   return $1
17594 } # as_fn_set_status
17595
17596 # as_fn_exit STATUS
17597 # -----------------
17598 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17599 as_fn_exit ()
17600 {
17601   set +e
17602   as_fn_set_status $1
17603   exit $1
17604 } # as_fn_exit
17605
17606 # as_fn_unset VAR
17607 # ---------------
17608 # Portably unset VAR.
17609 as_fn_unset ()
17610 {
17611   { eval $1=; unset $1;}
17612 }
17613 as_unset=as_fn_unset
17614 # as_fn_append VAR VALUE
17615 # ----------------------
17616 # Append the text in VALUE to the end of the definition contained in VAR. Take
17617 # advantage of any shell optimizations that allow amortized linear growth over
17618 # repeated appends, instead of the typical quadratic growth present in naive
17619 # implementations.
17620 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17621   eval 'as_fn_append ()
17622   {
17623     eval $1+=\$2
17624   }'
17625 else
17626   as_fn_append ()
17627   {
17628     eval $1=\$$1\$2
17629   }
17630 fi # as_fn_append
17631
17632 # as_fn_arith ARG...
17633 # ------------------
17634 # Perform arithmetic evaluation on the ARGs, and store the result in the
17635 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17636 # must be portable across $(()) and expr.
17637 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17638   eval 'as_fn_arith ()
17639   {
17640     as_val=$(( $* ))
17641   }'
17642 else
17643   as_fn_arith ()
17644   {
17645     as_val=`expr "$@" || test $? -eq 1`
17646   }
17647 fi # as_fn_arith
17648
17649
17650 if expr a : '\(a\)' >/dev/null 2>&1 &&
17651    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17652   as_expr=expr
17653 else
17654   as_expr=false
17655 fi
17656
17657 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17658   as_basename=basename
17659 else
17660   as_basename=false
17661 fi
17662
17663 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17664   as_dirname=dirname
17665 else
17666   as_dirname=false
17667 fi
17668
17669 as_me=`$as_basename -- "$0" ||
17670 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17671          X"$0" : 'X\(//\)$' \| \
17672          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17673 $as_echo X/"$0" |
17674     sed '/^.*\/\([^/][^/]*\)\/*$/{
17675             s//\1/
17676             q
17677           }
17678           /^X\/\(\/\/\)$/{
17679             s//\1/
17680             q
17681           }
17682           /^X\/\(\/\).*/{
17683             s//\1/
17684             q
17685           }
17686           s/.*/./; q'`
17687
17688 # Avoid depending upon Character Ranges.
17689 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17690 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17691 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17692 as_cr_digits='0123456789'
17693 as_cr_alnum=$as_cr_Letters$as_cr_digits
17694
17695 ECHO_C= ECHO_N= ECHO_T=
17696 case `echo -n x` in #(((((
17697 -n*)
17698   case `echo 'xy\c'` in
17699   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17700   xy)  ECHO_C='\c';;
17701   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17702        ECHO_T=' ';;
17703   esac;;
17704 *)
17705   ECHO_N='-n';;
17706 esac
17707
17708 rm -f conf$$ conf$$.exe conf$$.file
17709 if test -d conf$$.dir; then
17710   rm -f conf$$.dir/conf$$.file
17711 else
17712   rm -f conf$$.dir
17713   mkdir conf$$.dir 2>/dev/null
17714 fi
17715 if (echo >conf$$.file) 2>/dev/null; then
17716   if ln -s conf$$.file conf$$ 2>/dev/null; then
17717     as_ln_s='ln -s'
17718     # ... but there are two gotchas:
17719     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17720     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17721     # In both cases, we have to default to `cp -p'.
17722     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17723       as_ln_s='cp -p'
17724   elif ln conf$$.file conf$$ 2>/dev/null; then
17725     as_ln_s=ln
17726   else
17727     as_ln_s='cp -p'
17728   fi
17729 else
17730   as_ln_s='cp -p'
17731 fi
17732 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17733 rmdir conf$$.dir 2>/dev/null
17734
17735
17736 # as_fn_mkdir_p
17737 # -------------
17738 # Create "$as_dir" as a directory, including parents if necessary.
17739 as_fn_mkdir_p ()
17740 {
17741
17742   case $as_dir in #(
17743   -*) as_dir=./$as_dir;;
17744   esac
17745   test -d "$as_dir" || eval $as_mkdir_p || {
17746     as_dirs=
17747     while :; do
17748       case $as_dir in #(
17749       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17750       *) as_qdir=$as_dir;;
17751       esac
17752       as_dirs="'$as_qdir' $as_dirs"
17753       as_dir=`$as_dirname -- "$as_dir" ||
17754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17755          X"$as_dir" : 'X\(//\)[^/]' \| \
17756          X"$as_dir" : 'X\(//\)$' \| \
17757          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17758 $as_echo X"$as_dir" |
17759     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17760             s//\1/
17761             q
17762           }
17763           /^X\(\/\/\)[^/].*/{
17764             s//\1/
17765             q
17766           }
17767           /^X\(\/\/\)$/{
17768             s//\1/
17769             q
17770           }
17771           /^X\(\/\).*/{
17772             s//\1/
17773             q
17774           }
17775           s/.*/./; q'`
17776       test -d "$as_dir" && break
17777     done
17778     test -z "$as_dirs" || eval "mkdir $as_dirs"
17779   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17780
17781
17782 } # as_fn_mkdir_p
17783 if mkdir -p . 2>/dev/null; then
17784   as_mkdir_p='mkdir -p "$as_dir"'
17785 else
17786   test -d ./-p && rmdir ./-p
17787   as_mkdir_p=false
17788 fi
17789
17790 if test -x / >/dev/null 2>&1; then
17791   as_test_x='test -x'
17792 else
17793   if ls -dL / >/dev/null 2>&1; then
17794     as_ls_L_option=L
17795   else
17796     as_ls_L_option=
17797   fi
17798   as_test_x='
17799     eval sh -c '\''
17800       if test -d "$1"; then
17801         test -d "$1/.";
17802       else
17803         case $1 in #(
17804         -*)set "./$1";;
17805         esac;
17806         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17807         ???[sx]*):;;*)false;;esac;fi
17808     '\'' sh
17809   '
17810 fi
17811 as_executable_p=$as_test_x
17812
17813 # Sed expression to map a string onto a valid CPP name.
17814 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17815
17816 # Sed expression to map a string onto a valid variable name.
17817 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17818
17819
17820 exec 6>&1
17821 ## ----------------------------------- ##
17822 ## Main body of $CONFIG_STATUS script. ##
17823 ## ----------------------------------- ##
17824 _ASEOF
17825 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17826
17827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17828 # Save the log message, to keep $0 and so on meaningful, and to
17829 # report actual input values of CONFIG_FILES etc. instead of their
17830 # values after options handling.
17831 ac_log="
17832 This file was extended by Automated Testing Framework $as_me 0.16, which was
17833 generated by GNU Autoconf 2.68.  Invocation command line was
17834
17835   CONFIG_FILES    = $CONFIG_FILES
17836   CONFIG_HEADERS  = $CONFIG_HEADERS
17837   CONFIG_LINKS    = $CONFIG_LINKS
17838   CONFIG_COMMANDS = $CONFIG_COMMANDS
17839   $ $0 $@
17840
17841 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17842 "
17843
17844 _ACEOF
17845
17846 case $ac_config_files in *"
17847 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17848 esac
17849
17850 case $ac_config_headers in *"
17851 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17852 esac
17853
17854
17855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17856 # Files that config.status was made for.
17857 config_files="$ac_config_files"
17858 config_headers="$ac_config_headers"
17859 config_commands="$ac_config_commands"
17860
17861 _ACEOF
17862
17863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17864 ac_cs_usage="\
17865 \`$as_me' instantiates files and other configuration actions
17866 from templates according to the current configuration.  Unless the files
17867 and actions are specified as TAGs, all are instantiated by default.
17868
17869 Usage: $0 [OPTION]... [TAG]...
17870
17871   -h, --help       print this help, then exit
17872   -V, --version    print version number and configuration settings, then exit
17873       --config     print configuration, then exit
17874   -q, --quiet, --silent
17875                    do not print progress messages
17876   -d, --debug      don't remove temporary files
17877       --recheck    update $as_me by reconfiguring in the same conditions
17878       --file=FILE[:TEMPLATE]
17879                    instantiate the configuration file FILE
17880       --header=FILE[:TEMPLATE]
17881                    instantiate the configuration header FILE
17882
17883 Configuration files:
17884 $config_files
17885
17886 Configuration headers:
17887 $config_headers
17888
17889 Configuration commands:
17890 $config_commands
17891
17892 Report bugs to <atf-devel@NetBSD.org>.
17893 Automated Testing Framework home page: <http://code.google.com/p/kyua/wiki/ATF>."
17894
17895 _ACEOF
17896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17897 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17898 ac_cs_version="\\
17899 Automated Testing Framework config.status 0.16
17900 configured by $0, generated by GNU Autoconf 2.68,
17901   with options \\"\$ac_cs_config\\"
17902
17903 Copyright (C) 2010 Free Software Foundation, Inc.
17904 This config.status script is free software; the Free Software Foundation
17905 gives unlimited permission to copy, distribute and modify it."
17906
17907 ac_pwd='$ac_pwd'
17908 srcdir='$srcdir'
17909 INSTALL='$INSTALL'
17910 MKDIR_P='$MKDIR_P'
17911 AWK='$AWK'
17912 test -n "\$AWK" || AWK=awk
17913 _ACEOF
17914
17915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17916 # The default lists apply if the user does not specify any file.
17917 ac_need_defaults=:
17918 while test $# != 0
17919 do
17920   case $1 in
17921   --*=?*)
17922     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17923     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17924     ac_shift=:
17925     ;;
17926   --*=)
17927     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17928     ac_optarg=
17929     ac_shift=:
17930     ;;
17931   *)
17932     ac_option=$1
17933     ac_optarg=$2
17934     ac_shift=shift
17935     ;;
17936   esac
17937
17938   case $ac_option in
17939   # Handling of the options.
17940   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17941     ac_cs_recheck=: ;;
17942   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17943     $as_echo "$ac_cs_version"; exit ;;
17944   --config | --confi | --conf | --con | --co | --c )
17945     $as_echo "$ac_cs_config"; exit ;;
17946   --debug | --debu | --deb | --de | --d | -d )
17947     debug=: ;;
17948   --file | --fil | --fi | --f )
17949     $ac_shift
17950     case $ac_optarg in
17951     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17952     '') as_fn_error $? "missing file argument" ;;
17953     esac
17954     as_fn_append CONFIG_FILES " '$ac_optarg'"
17955     ac_need_defaults=false;;
17956   --header | --heade | --head | --hea )
17957     $ac_shift
17958     case $ac_optarg in
17959     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17960     esac
17961     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17962     ac_need_defaults=false;;
17963   --he | --h)
17964     # Conflict between --help and --header
17965     as_fn_error $? "ambiguous option: \`$1'
17966 Try \`$0 --help' for more information.";;
17967   --help | --hel | -h )
17968     $as_echo "$ac_cs_usage"; exit ;;
17969   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17970   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17971     ac_cs_silent=: ;;
17972
17973   # This is an error.
17974   -*) as_fn_error $? "unrecognized option: \`$1'
17975 Try \`$0 --help' for more information." ;;
17976
17977   *) as_fn_append ac_config_targets " $1"
17978      ac_need_defaults=false ;;
17979
17980   esac
17981   shift
17982 done
17983
17984 ac_configure_extra_args=
17985
17986 if $ac_cs_silent; then
17987   exec 6>/dev/null
17988   ac_configure_extra_args="$ac_configure_extra_args --silent"
17989 fi
17990
17991 _ACEOF
17992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17993 if \$ac_cs_recheck; then
17994   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17995   shift
17996   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17997   CONFIG_SHELL='$SHELL'
17998   export CONFIG_SHELL
17999   exec "\$@"
18000 fi
18001
18002 _ACEOF
18003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18004 exec 5>>config.log
18005 {
18006   echo
18007   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18008 ## Running $as_me. ##
18009 _ASBOX
18010   $as_echo "$ac_log"
18011 } >&5
18012
18013 _ACEOF
18014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18015 #
18016 # INIT-COMMANDS
18017 #
18018
18019 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18020
18021
18022 # The HP-UX ksh and POSIX shell print the target directory to stdout
18023 # if CDPATH is set.
18024 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18025
18026 sed_quote_subst='$sed_quote_subst'
18027 double_quote_subst='$double_quote_subst'
18028 delay_variable_subst='$delay_variable_subst'
18029 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18030 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18031 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18032 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18033 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18034 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18035 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18036 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18037 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18038 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18039 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18040 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18041 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18042 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18043 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18044 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18045 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18046 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18047 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18048 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18049 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18050 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18051 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18052 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18053 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18054 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18055 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18056 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18057 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18058 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18059 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18060 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18061 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18062 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18063 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18064 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18065 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18066 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18067 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18068 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18069 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18070 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18071 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18072 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18073 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18074 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18075 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18076 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18077 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18078 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18079 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18080 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18081 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18082 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18083 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18084 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18085 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18086 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18087 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18088 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18089 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18090 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18091 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18092 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18093 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18094 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18095 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18096 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18097 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18098 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18099 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18100 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18101 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18102 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18103 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18104 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18105 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18106 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18107 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18108 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18109 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18110 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18111 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18112 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18113 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18114 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18115 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18116 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18117 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18118 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18119 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18120 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18121 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18122 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18123 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18124 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18125 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18126 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18127 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18128 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18129 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18130 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18131 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18132 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18133 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18134 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18135 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18136 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18137 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18138 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18139 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18140 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18141 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18142 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18143 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18144 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18145 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18146 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18147 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18148 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18149 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18150 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18151 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18152 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18153 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18154 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18155 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18156 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18157 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18158 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18159 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18160 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18161 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18162 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18163 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18164 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18165 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18166 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18167 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18168 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18169 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18170 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18171 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18172 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18173 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18174 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18175 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18176 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18177 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18178 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18179 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18180 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18181 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18182 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18183 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18184 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18185 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18186 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18187 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18188 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18189 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18190 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18191 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18192 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18193 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18194 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18195 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18196 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18197 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18198 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18199 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18200 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18201 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18202 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18203 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18204 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18205 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18206 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18207 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18208 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18209 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18210 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18211 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18212 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18213
18214 LTCC='$LTCC'
18215 LTCFLAGS='$LTCFLAGS'
18216 compiler='$compiler_DEFAULT'
18217
18218 # A function that is used when there is no print builtin or printf.
18219 func_fallback_echo ()
18220 {
18221   eval 'cat <<_LTECHO_EOF
18222 \$1
18223 _LTECHO_EOF'
18224 }
18225
18226 # Quote evaled strings.
18227 for var in SHELL \
18228 ECHO \
18229 PATH_SEPARATOR \
18230 SED \
18231 GREP \
18232 EGREP \
18233 FGREP \
18234 LD \
18235 NM \
18236 LN_S \
18237 lt_SP2NL \
18238 lt_NL2SP \
18239 reload_flag \
18240 OBJDUMP \
18241 deplibs_check_method \
18242 file_magic_cmd \
18243 file_magic_glob \
18244 want_nocaseglob \
18245 DLLTOOL \
18246 sharedlib_from_linklib_cmd \
18247 AR \
18248 AR_FLAGS \
18249 archiver_list_spec \
18250 STRIP \
18251 RANLIB \
18252 CC \
18253 CFLAGS \
18254 compiler \
18255 lt_cv_sys_global_symbol_pipe \
18256 lt_cv_sys_global_symbol_to_cdecl \
18257 lt_cv_sys_global_symbol_to_c_name_address \
18258 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18259 nm_file_list_spec \
18260 lt_prog_compiler_no_builtin_flag \
18261 lt_prog_compiler_pic \
18262 lt_prog_compiler_wl \
18263 lt_prog_compiler_static \
18264 lt_cv_prog_compiler_c_o \
18265 need_locks \
18266 MANIFEST_TOOL \
18267 DSYMUTIL \
18268 NMEDIT \
18269 LIPO \
18270 OTOOL \
18271 OTOOL64 \
18272 shrext_cmds \
18273 export_dynamic_flag_spec \
18274 whole_archive_flag_spec \
18275 compiler_needs_object \
18276 with_gnu_ld \
18277 allow_undefined_flag \
18278 no_undefined_flag \
18279 hardcode_libdir_flag_spec \
18280 hardcode_libdir_separator \
18281 exclude_expsyms \
18282 include_expsyms \
18283 file_list_spec \
18284 variables_saved_for_relink \
18285 libname_spec \
18286 library_names_spec \
18287 soname_spec \
18288 install_override_mode \
18289 finish_eval \
18290 old_striplib \
18291 striplib \
18292 compiler_lib_search_dirs \
18293 predep_objects \
18294 postdep_objects \
18295 predeps \
18296 postdeps \
18297 compiler_lib_search_path \
18298 LD_CXX \
18299 reload_flag_CXX \
18300 compiler_CXX \
18301 lt_prog_compiler_no_builtin_flag_CXX \
18302 lt_prog_compiler_pic_CXX \
18303 lt_prog_compiler_wl_CXX \
18304 lt_prog_compiler_static_CXX \
18305 lt_cv_prog_compiler_c_o_CXX \
18306 export_dynamic_flag_spec_CXX \
18307 whole_archive_flag_spec_CXX \
18308 compiler_needs_object_CXX \
18309 with_gnu_ld_CXX \
18310 allow_undefined_flag_CXX \
18311 no_undefined_flag_CXX \
18312 hardcode_libdir_flag_spec_CXX \
18313 hardcode_libdir_separator_CXX \
18314 exclude_expsyms_CXX \
18315 include_expsyms_CXX \
18316 file_list_spec_CXX \
18317 compiler_lib_search_dirs_CXX \
18318 predep_objects_CXX \
18319 postdep_objects_CXX \
18320 predeps_CXX \
18321 postdeps_CXX \
18322 compiler_lib_search_path_CXX; do
18323     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18324     *[\\\\\\\`\\"\\\$]*)
18325       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18326       ;;
18327     *)
18328       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18329       ;;
18330     esac
18331 done
18332
18333 # Double-quote double-evaled strings.
18334 for var in reload_cmds \
18335 old_postinstall_cmds \
18336 old_postuninstall_cmds \
18337 old_archive_cmds \
18338 extract_expsyms_cmds \
18339 old_archive_from_new_cmds \
18340 old_archive_from_expsyms_cmds \
18341 archive_cmds \
18342 archive_expsym_cmds \
18343 module_cmds \
18344 module_expsym_cmds \
18345 export_symbols_cmds \
18346 prelink_cmds \
18347 postlink_cmds \
18348 postinstall_cmds \
18349 postuninstall_cmds \
18350 finish_cmds \
18351 sys_lib_search_path_spec \
18352 sys_lib_dlsearch_path_spec \
18353 reload_cmds_CXX \
18354 old_archive_cmds_CXX \
18355 old_archive_from_new_cmds_CXX \
18356 old_archive_from_expsyms_cmds_CXX \
18357 archive_cmds_CXX \
18358 archive_expsym_cmds_CXX \
18359 module_cmds_CXX \
18360 module_expsym_cmds_CXX \
18361 export_symbols_cmds_CXX \
18362 prelink_cmds_CXX \
18363 postlink_cmds_CXX; do
18364     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18365     *[\\\\\\\`\\"\\\$]*)
18366       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18367       ;;
18368     *)
18369       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18370       ;;
18371     esac
18372 done
18373
18374 ac_aux_dir='$ac_aux_dir'
18375 xsi_shell='$xsi_shell'
18376 lt_shell_append='$lt_shell_append'
18377
18378 # See if we are running on zsh, and set the options which allow our
18379 # commands through without removal of \ escapes INIT.
18380 if test -n "\${ZSH_VERSION+set}" ; then
18381    setopt NO_GLOB_SUBST
18382 fi
18383
18384
18385     PACKAGE='$PACKAGE'
18386     VERSION='$VERSION'
18387     TIMESTAMP='$TIMESTAMP'
18388     RM='$RM'
18389     ofile='$ofile'
18390
18391
18392
18393
18394
18395
18396 _ACEOF
18397
18398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18399
18400 # Handling of arguments.
18401 for ac_config_target in $ac_config_targets
18402 do
18403   case $ac_config_target in
18404     "bconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS bconfig.h" ;;
18405     "bootstrap/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS bootstrap/atconfig" ;;
18406     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18407     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18408     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18409     "atf-c/defs.h") CONFIG_FILES="$CONFIG_FILES atf-c/defs.h" ;;
18410
18411   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18412   esac
18413 done
18414
18415
18416 # If the user did not use the arguments to specify the items to instantiate,
18417 # then the envvar interface is used.  Set only those that are not.
18418 # We use the long form for the default assignment because of an extremely
18419 # bizarre bug on SunOS 4.1.3.
18420 if $ac_need_defaults; then
18421   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18422   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18423   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18424 fi
18425
18426 # Have a temporary directory for convenience.  Make it in the build tree
18427 # simply because there is no reason against having it here, and in addition,
18428 # creating and moving files from /tmp can sometimes cause problems.
18429 # Hook for its removal unless debugging.
18430 # Note that there is a small window in which the directory will not be cleaned:
18431 # after its creation but before its name has been assigned to `$tmp'.
18432 $debug ||
18433 {
18434   tmp= ac_tmp=
18435   trap 'exit_status=$?
18436   : "${ac_tmp:=$tmp}"
18437   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18438 ' 0
18439   trap 'as_fn_exit 1' 1 2 13 15
18440 }
18441 # Create a (secure) tmp directory for tmp files.
18442
18443 {
18444   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18445   test -d "$tmp"
18446 }  ||
18447 {
18448   tmp=./conf$$-$RANDOM
18449   (umask 077 && mkdir "$tmp")
18450 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18451 ac_tmp=$tmp
18452
18453 # Set up the scripts for CONFIG_FILES section.
18454 # No need to generate them if there are no CONFIG_FILES.
18455 # This happens for instance with `./config.status config.h'.
18456 if test -n "$CONFIG_FILES"; then
18457
18458
18459 ac_cr=`echo X | tr X '\015'`
18460 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18461 # But we know of no other shell where ac_cr would be empty at this
18462 # point, so we can use a bashism as a fallback.
18463 if test "x$ac_cr" = x; then
18464   eval ac_cr=\$\'\\r\'
18465 fi
18466 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18467 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18468   ac_cs_awk_cr='\\r'
18469 else
18470   ac_cs_awk_cr=$ac_cr
18471 fi
18472
18473 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18474 _ACEOF
18475
18476
18477 {
18478   echo "cat >conf$$subs.awk <<_ACEOF" &&
18479   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18480   echo "_ACEOF"
18481 } >conf$$subs.sh ||
18482   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18483 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18484 ac_delim='%!_!# '
18485 for ac_last_try in false false false false false :; do
18486   . ./conf$$subs.sh ||
18487     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18488
18489   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18490   if test $ac_delim_n = $ac_delim_num; then
18491     break
18492   elif $ac_last_try; then
18493     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18494   else
18495     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18496   fi
18497 done
18498 rm -f conf$$subs.sh
18499
18500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18501 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18502 _ACEOF
18503 sed -n '
18504 h
18505 s/^/S["/; s/!.*/"]=/
18506 p
18507 g
18508 s/^[^!]*!//
18509 :repl
18510 t repl
18511 s/'"$ac_delim"'$//
18512 t delim
18513 :nl
18514 h
18515 s/\(.\{148\}\)..*/\1/
18516 t more1
18517 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18518 p
18519 n
18520 b repl
18521 :more1
18522 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18523 p
18524 g
18525 s/.\{148\}//
18526 t nl
18527 :delim
18528 h
18529 s/\(.\{148\}\)..*/\1/
18530 t more2
18531 s/["\\]/\\&/g; s/^/"/; s/$/"/
18532 p
18533 b
18534 :more2
18535 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18536 p
18537 g
18538 s/.\{148\}//
18539 t delim
18540 ' <conf$$subs.awk | sed '
18541 /^[^""]/{
18542   N
18543   s/\n//
18544 }
18545 ' >>$CONFIG_STATUS || ac_write_fail=1
18546 rm -f conf$$subs.awk
18547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18548 _ACAWK
18549 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18550   for (key in S) S_is_set[key] = 1
18551   FS = "\a"
18552
18553 }
18554 {
18555   line = $ 0
18556   nfields = split(line, field, "@")
18557   substed = 0
18558   len = length(field[1])
18559   for (i = 2; i < nfields; i++) {
18560     key = field[i]
18561     keylen = length(key)
18562     if (S_is_set[key]) {
18563       value = S[key]
18564       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18565       len += length(value) + length(field[++i])
18566       substed = 1
18567     } else
18568       len += 1 + keylen
18569   }
18570
18571   print line
18572 }
18573
18574 _ACAWK
18575 _ACEOF
18576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18577 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18578   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18579 else
18580   cat
18581 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18582   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18583 _ACEOF
18584
18585 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18586 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18587 # trailing colons and then remove the whole line if VPATH becomes empty
18588 # (actually we leave an empty line to preserve line numbers).
18589 if test "x$srcdir" = x.; then
18590   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18591 h
18592 s///
18593 s/^/:/
18594 s/[      ]*$/:/
18595 s/:\$(srcdir):/:/g
18596 s/:\${srcdir}:/:/g
18597 s/:@srcdir@:/:/g
18598 s/^:*//
18599 s/:*$//
18600 x
18601 s/\(=[   ]*\).*/\1/
18602 G
18603 s/\n//
18604 s/^[^=]*=[       ]*$//
18605 }'
18606 fi
18607
18608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18609 fi # test -n "$CONFIG_FILES"
18610
18611 # Set up the scripts for CONFIG_HEADERS section.
18612 # No need to generate them if there are no CONFIG_HEADERS.
18613 # This happens for instance with `./config.status Makefile'.
18614 if test -n "$CONFIG_HEADERS"; then
18615 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18616 BEGIN {
18617 _ACEOF
18618
18619 # Transform confdefs.h into an awk script `defines.awk', embedded as
18620 # here-document in config.status, that substitutes the proper values into
18621 # config.h.in to produce config.h.
18622
18623 # Create a delimiter string that does not exist in confdefs.h, to ease
18624 # handling of long lines.
18625 ac_delim='%!_!# '
18626 for ac_last_try in false false :; do
18627   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18628   if test -z "$ac_tt"; then
18629     break
18630   elif $ac_last_try; then
18631     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18632   else
18633     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18634   fi
18635 done
18636
18637 # For the awk script, D is an array of macro values keyed by name,
18638 # likewise P contains macro parameters if any.  Preserve backslash
18639 # newline sequences.
18640
18641 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18642 sed -n '
18643 s/.\{148\}/&'"$ac_delim"'/g
18644 t rset
18645 :rset
18646 s/^[     ]*#[    ]*define[       ][      ]*/ /
18647 t def
18648 d
18649 :def
18650 s/\\$//
18651 t bsnl
18652 s/["\\]/\\&/g
18653 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18654 D["\1"]=" \3"/p
18655 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18656 d
18657 :bsnl
18658 s/["\\]/\\&/g
18659 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18660 D["\1"]=" \3\\\\\\n"\\/p
18661 t cont
18662 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18663 t cont
18664 d
18665 :cont
18666 n
18667 s/.\{148\}/&'"$ac_delim"'/g
18668 t clear
18669 :clear
18670 s/\\$//
18671 t bsnlc
18672 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18673 d
18674 :bsnlc
18675 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18676 b cont
18677 ' <confdefs.h | sed '
18678 s/'"$ac_delim"'/"\\\
18679 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18680
18681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18682   for (key in D) D_is_set[key] = 1
18683   FS = "\a"
18684 }
18685 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18686   line = \$ 0
18687   split(line, arg, " ")
18688   if (arg[1] == "#") {
18689     defundef = arg[2]
18690     mac1 = arg[3]
18691   } else {
18692     defundef = substr(arg[1], 2)
18693     mac1 = arg[2]
18694   }
18695   split(mac1, mac2, "(") #)
18696   macro = mac2[1]
18697   prefix = substr(line, 1, index(line, defundef) - 1)
18698   if (D_is_set[macro]) {
18699     # Preserve the white space surrounding the "#".
18700     print prefix "define", macro P[macro] D[macro]
18701     next
18702   } else {
18703     # Replace #undef with comments.  This is necessary, for example,
18704     # in the case of _POSIX_SOURCE, which is predefined and required
18705     # on some systems where configure will not decide to define it.
18706     if (defundef == "undef") {
18707       print "/*", prefix defundef, macro, "*/"
18708       next
18709     }
18710   }
18711 }
18712 { print }
18713 _ACAWK
18714 _ACEOF
18715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18716   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18717 fi # test -n "$CONFIG_HEADERS"
18718
18719
18720 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18721 shift
18722 for ac_tag
18723 do
18724   case $ac_tag in
18725   :[FHLC]) ac_mode=$ac_tag; continue;;
18726   esac
18727   case $ac_mode$ac_tag in
18728   :[FHL]*:*);;
18729   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18730   :[FH]-) ac_tag=-:-;;
18731   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18732   esac
18733   ac_save_IFS=$IFS
18734   IFS=:
18735   set x $ac_tag
18736   IFS=$ac_save_IFS
18737   shift
18738   ac_file=$1
18739   shift
18740
18741   case $ac_mode in
18742   :L) ac_source=$1;;
18743   :[FH])
18744     ac_file_inputs=
18745     for ac_f
18746     do
18747       case $ac_f in
18748       -) ac_f="$ac_tmp/stdin";;
18749       *) # Look for the file first in the build tree, then in the source tree
18750          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18751          # because $ac_f cannot contain `:'.
18752          test -f "$ac_f" ||
18753            case $ac_f in
18754            [\\/$]*) false;;
18755            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18756            esac ||
18757            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18758       esac
18759       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18760       as_fn_append ac_file_inputs " '$ac_f'"
18761     done
18762
18763     # Let's still pretend it is `configure' which instantiates (i.e., don't
18764     # use $as_me), people would be surprised to read:
18765     #    /* config.h.  Generated by config.status.  */
18766     configure_input='Generated from '`
18767           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18768         `' by configure.'
18769     if test x"$ac_file" != x-; then
18770       configure_input="$ac_file.  $configure_input"
18771       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18772 $as_echo "$as_me: creating $ac_file" >&6;}
18773     fi
18774     # Neutralize special characters interpreted by sed in replacement strings.
18775     case $configure_input in #(
18776     *\&* | *\|* | *\\* )
18777        ac_sed_conf_input=`$as_echo "$configure_input" |
18778        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18779     *) ac_sed_conf_input=$configure_input;;
18780     esac
18781
18782     case $ac_tag in
18783     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18784       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18785     esac
18786     ;;
18787   esac
18788
18789   ac_dir=`$as_dirname -- "$ac_file" ||
18790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18791          X"$ac_file" : 'X\(//\)[^/]' \| \
18792          X"$ac_file" : 'X\(//\)$' \| \
18793          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18794 $as_echo X"$ac_file" |
18795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18796             s//\1/
18797             q
18798           }
18799           /^X\(\/\/\)[^/].*/{
18800             s//\1/
18801             q
18802           }
18803           /^X\(\/\/\)$/{
18804             s//\1/
18805             q
18806           }
18807           /^X\(\/\).*/{
18808             s//\1/
18809             q
18810           }
18811           s/.*/./; q'`
18812   as_dir="$ac_dir"; as_fn_mkdir_p
18813   ac_builddir=.
18814
18815 case "$ac_dir" in
18816 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18817 *)
18818   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18819   # A ".." for each directory in $ac_dir_suffix.
18820   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18821   case $ac_top_builddir_sub in
18822   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18823   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18824   esac ;;
18825 esac
18826 ac_abs_top_builddir=$ac_pwd
18827 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18828 # for backward compatibility:
18829 ac_top_builddir=$ac_top_build_prefix
18830
18831 case $srcdir in
18832   .)  # We are building in place.
18833     ac_srcdir=.
18834     ac_top_srcdir=$ac_top_builddir_sub
18835     ac_abs_top_srcdir=$ac_pwd ;;
18836   [\\/]* | ?:[\\/]* )  # Absolute name.
18837     ac_srcdir=$srcdir$ac_dir_suffix;
18838     ac_top_srcdir=$srcdir
18839     ac_abs_top_srcdir=$srcdir ;;
18840   *) # Relative name.
18841     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18842     ac_top_srcdir=$ac_top_build_prefix$srcdir
18843     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18844 esac
18845 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18846
18847
18848   case $ac_mode in
18849   :F)
18850   #
18851   # CONFIG_FILE
18852   #
18853
18854   case $INSTALL in
18855   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18856   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18857   esac
18858   ac_MKDIR_P=$MKDIR_P
18859   case $MKDIR_P in
18860   [\\/$]* | ?:[\\/]* ) ;;
18861   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18862   esac
18863 _ACEOF
18864
18865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18866 # If the template does not know about datarootdir, expand it.
18867 # FIXME: This hack should be removed a few years after 2.60.
18868 ac_datarootdir_hack=; ac_datarootdir_seen=
18869 ac_sed_dataroot='
18870 /datarootdir/ {
18871   p
18872   q
18873 }
18874 /@datadir@/p
18875 /@docdir@/p
18876 /@infodir@/p
18877 /@localedir@/p
18878 /@mandir@/p'
18879 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18880 *datarootdir*) ac_datarootdir_seen=yes;;
18881 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18882   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18883 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18884 _ACEOF
18885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18886   ac_datarootdir_hack='
18887   s&@datadir@&$datadir&g
18888   s&@docdir@&$docdir&g
18889   s&@infodir@&$infodir&g
18890   s&@localedir@&$localedir&g
18891   s&@mandir@&$mandir&g
18892   s&\\\${datarootdir}&$datarootdir&g' ;;
18893 esac
18894 _ACEOF
18895
18896 # Neutralize VPATH when `$srcdir' = `.'.
18897 # Shell code in configure.ac might set extrasub.
18898 # FIXME: do we really want to maintain this feature?
18899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18900 ac_sed_extra="$ac_vpsub
18901 $extrasub
18902 _ACEOF
18903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18904 :t
18905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18906 s|@configure_input@|$ac_sed_conf_input|;t t
18907 s&@top_builddir@&$ac_top_builddir_sub&;t t
18908 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18909 s&@srcdir@&$ac_srcdir&;t t
18910 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18911 s&@top_srcdir@&$ac_top_srcdir&;t t
18912 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18913 s&@builddir@&$ac_builddir&;t t
18914 s&@abs_builddir@&$ac_abs_builddir&;t t
18915 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18916 s&@INSTALL@&$ac_INSTALL&;t t
18917 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18918 $ac_datarootdir_hack
18919 "
18920 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18921   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18922
18923 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18924   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18925   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18926       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18927   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18928 which seems to be undefined.  Please make sure it is defined" >&5
18929 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18930 which seems to be undefined.  Please make sure it is defined" >&2;}
18931
18932   rm -f "$ac_tmp/stdin"
18933   case $ac_file in
18934   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18935   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18936   esac \
18937   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18938  ;;
18939   :H)
18940   #
18941   # CONFIG_HEADER
18942   #
18943   if test x"$ac_file" != x-; then
18944     {
18945       $as_echo "/* $configure_input  */" \
18946       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18947     } >"$ac_tmp/config.h" \
18948       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18949     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18950       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18951 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18952     else
18953       rm -f "$ac_file"
18954       mv "$ac_tmp/config.h" "$ac_file" \
18955         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18956     fi
18957   else
18958     $as_echo "/* $configure_input  */" \
18959       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18960       || as_fn_error $? "could not create -" "$LINENO" 5
18961   fi
18962 # Compute "$ac_file"'s index in $config_headers.
18963 _am_arg="$ac_file"
18964 _am_stamp_count=1
18965 for _am_header in $config_headers :; do
18966   case $_am_header in
18967     $_am_arg | $_am_arg:* )
18968       break ;;
18969     * )
18970       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18971   esac
18972 done
18973 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18974 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18975          X"$_am_arg" : 'X\(//\)[^/]' \| \
18976          X"$_am_arg" : 'X\(//\)$' \| \
18977          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18978 $as_echo X"$_am_arg" |
18979     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18980             s//\1/
18981             q
18982           }
18983           /^X\(\/\/\)[^/].*/{
18984             s//\1/
18985             q
18986           }
18987           /^X\(\/\/\)$/{
18988             s//\1/
18989             q
18990           }
18991           /^X\(\/\).*/{
18992             s//\1/
18993             q
18994           }
18995           s/.*/./; q'`/stamp-h$_am_stamp_count
18996  ;;
18997
18998   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18999 $as_echo "$as_me: executing $ac_file commands" >&6;}
19000  ;;
19001   esac
19002
19003
19004   case $ac_file$ac_mode in
19005     "bootstrap/atconfig":C) cat >bootstrap/atconfig <<ATEOF
19006 # Configurable variable values for building test suites.
19007 # Generated by $0.
19008 # Copyright (C) 2010 Free Software Foundation, Inc.
19009
19010 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
19011 at_testdir='bootstrap'
19012 abs_builddir='$ac_abs_builddir'
19013 at_srcdir='$ac_srcdir'
19014 abs_srcdir='$ac_abs_srcdir'
19015 at_top_srcdir='$ac_top_srcdir'
19016 abs_top_srcdir='$ac_abs_top_srcdir'
19017 at_top_build_prefix='$ac_top_build_prefix'
19018 abs_top_builddir='$ac_abs_top_builddir'
19019
19020 # Backward compatibility with Autotest <= 2.59b:
19021 at_top_builddir=\$at_top_build_prefix
19022
19023 AUTOTEST_PATH='bootstrap'
19024
19025 SHELL=\${CONFIG_SHELL-'$SHELL'}
19026 ATEOF
19027  ;;
19028     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19029   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19030   # are listed without --file.  Let's play safe and only enable the eval
19031   # if we detect the quoting.
19032   case $CONFIG_FILES in
19033   *\'*) eval set x "$CONFIG_FILES" ;;
19034   *)   set x $CONFIG_FILES ;;
19035   esac
19036   shift
19037   for mf
19038   do
19039     # Strip MF so we end up with the name of the file.
19040     mf=`echo "$mf" | sed -e 's/:.*$//'`
19041     # Check whether this is an Automake generated Makefile or not.
19042     # We used to match only the files named `Makefile.in', but
19043     # some people rename them; so instead we look at the file content.
19044     # Grep'ing the first line is not enough: some people post-process
19045     # each Makefile.in and add a new line on top of each file to say so.
19046     # Grep'ing the whole file is not good either: AIX grep has a line
19047     # limit of 2048, but all sed's we know have understand at least 4000.
19048     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19049       dirpart=`$as_dirname -- "$mf" ||
19050 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19051          X"$mf" : 'X\(//\)[^/]' \| \
19052          X"$mf" : 'X\(//\)$' \| \
19053          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19054 $as_echo X"$mf" |
19055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19056             s//\1/
19057             q
19058           }
19059           /^X\(\/\/\)[^/].*/{
19060             s//\1/
19061             q
19062           }
19063           /^X\(\/\/\)$/{
19064             s//\1/
19065             q
19066           }
19067           /^X\(\/\).*/{
19068             s//\1/
19069             q
19070           }
19071           s/.*/./; q'`
19072     else
19073       continue
19074     fi
19075     # Extract the definition of DEPDIR, am__include, and am__quote
19076     # from the Makefile without running `make'.
19077     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19078     test -z "$DEPDIR" && continue
19079     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19080     test -z "am__include" && continue
19081     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19082     # When using ansi2knr, U may be empty or an underscore; expand it
19083     U=`sed -n 's/^U = //p' < "$mf"`
19084     # Find all dependency output files, they are included files with
19085     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19086     # simplest approach to changing $(DEPDIR) to its actual value in the
19087     # expansion.
19088     for file in `sed -n "
19089       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19090          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19091       # Make sure the directory exists.
19092       test -f "$dirpart/$file" && continue
19093       fdir=`$as_dirname -- "$file" ||
19094 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19095          X"$file" : 'X\(//\)[^/]' \| \
19096          X"$file" : 'X\(//\)$' \| \
19097          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19098 $as_echo X"$file" |
19099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19100             s//\1/
19101             q
19102           }
19103           /^X\(\/\/\)[^/].*/{
19104             s//\1/
19105             q
19106           }
19107           /^X\(\/\/\)$/{
19108             s//\1/
19109             q
19110           }
19111           /^X\(\/\).*/{
19112             s//\1/
19113             q
19114           }
19115           s/.*/./; q'`
19116       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19117       # echo "creating $dirpart/$file"
19118       echo '# dummy' > "$dirpart/$file"
19119     done
19120   done
19121 }
19122  ;;
19123     "libtool":C)
19124
19125     # See if we are running on zsh, and set the options which allow our
19126     # commands through without removal of \ escapes.
19127     if test -n "${ZSH_VERSION+set}" ; then
19128       setopt NO_GLOB_SUBST
19129     fi
19130
19131     cfgfile="${ofile}T"
19132     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19133     $RM "$cfgfile"
19134
19135     cat <<_LT_EOF >> "$cfgfile"
19136 #! $SHELL
19137
19138 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19139 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19140 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19141 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19142 #
19143 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19144 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19145 #                 Foundation, Inc.
19146 #   Written by Gordon Matzigkeit, 1996
19147 #
19148 #   This file is part of GNU Libtool.
19149 #
19150 # GNU Libtool is free software; you can redistribute it and/or
19151 # modify it under the terms of the GNU General Public License as
19152 # published by the Free Software Foundation; either version 2 of
19153 # the License, or (at your option) any later version.
19154 #
19155 # As a special exception to the GNU General Public License,
19156 # if you distribute this file as part of a program or library that
19157 # is built using GNU Libtool, you may include this file under the
19158 # same distribution terms that you use for the rest of that program.
19159 #
19160 # GNU Libtool is distributed in the hope that it will be useful,
19161 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19162 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19163 # GNU General Public License for more details.
19164 #
19165 # You should have received a copy of the GNU General Public License
19166 # along with GNU Libtool; see the file COPYING.  If not, a copy
19167 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19168 # obtained by writing to the Free Software Foundation, Inc.,
19169 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19170
19171
19172 # The names of the tagged configurations supported by this script.
19173 available_tags="CXX "
19174
19175 # ### BEGIN LIBTOOL CONFIG
19176
19177 # Which release of libtool.m4 was used?
19178 macro_version=$macro_version
19179 macro_revision=$macro_revision
19180
19181 # Whether or not to build shared libraries.
19182 build_libtool_libs=$enable_shared
19183
19184 # Whether or not to build static libraries.
19185 build_old_libs=$enable_static
19186
19187 # What type of objects to build.
19188 pic_mode=$pic_mode
19189
19190 # Whether or not to optimize for fast installation.
19191 fast_install=$enable_fast_install
19192
19193 # Shell to use when invoking shell scripts.
19194 SHELL=$lt_SHELL
19195
19196 # An echo program that protects backslashes.
19197 ECHO=$lt_ECHO
19198
19199 # The PATH separator for the build system.
19200 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19201
19202 # The host system.
19203 host_alias=$host_alias
19204 host=$host
19205 host_os=$host_os
19206
19207 # The build system.
19208 build_alias=$build_alias
19209 build=$build
19210 build_os=$build_os
19211
19212 # A sed program that does not truncate output.
19213 SED=$lt_SED
19214
19215 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19216 Xsed="\$SED -e 1s/^X//"
19217
19218 # A grep program that handles long lines.
19219 GREP=$lt_GREP
19220
19221 # An ERE matcher.
19222 EGREP=$lt_EGREP
19223
19224 # A literal string matcher.
19225 FGREP=$lt_FGREP
19226
19227 # A BSD- or MS-compatible name lister.
19228 NM=$lt_NM
19229
19230 # Whether we need soft or hard links.
19231 LN_S=$lt_LN_S
19232
19233 # What is the maximum length of a command?
19234 max_cmd_len=$max_cmd_len
19235
19236 # Object file suffix (normally "o").
19237 objext=$ac_objext
19238
19239 # Executable file suffix (normally "").
19240 exeext=$exeext
19241
19242 # whether the shell understands "unset".
19243 lt_unset=$lt_unset
19244
19245 # turn spaces into newlines.
19246 SP2NL=$lt_lt_SP2NL
19247
19248 # turn newlines into spaces.
19249 NL2SP=$lt_lt_NL2SP
19250
19251 # convert \$build file names to \$host format.
19252 to_host_file_cmd=$lt_cv_to_host_file_cmd
19253
19254 # convert \$build files to toolchain format.
19255 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19256
19257 # An object symbol dumper.
19258 OBJDUMP=$lt_OBJDUMP
19259
19260 # Method to check whether dependent libraries are shared objects.
19261 deplibs_check_method=$lt_deplibs_check_method
19262
19263 # Command to use when deplibs_check_method = "file_magic".
19264 file_magic_cmd=$lt_file_magic_cmd
19265
19266 # How to find potential files when deplibs_check_method = "file_magic".
19267 file_magic_glob=$lt_file_magic_glob
19268
19269 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19270 want_nocaseglob=$lt_want_nocaseglob
19271
19272 # DLL creation program.
19273 DLLTOOL=$lt_DLLTOOL
19274
19275 # Command to associate shared and link libraries.
19276 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19277
19278 # The archiver.
19279 AR=$lt_AR
19280
19281 # Flags to create an archive.
19282 AR_FLAGS=$lt_AR_FLAGS
19283
19284 # How to feed a file listing to the archiver.
19285 archiver_list_spec=$lt_archiver_list_spec
19286
19287 # A symbol stripping program.
19288 STRIP=$lt_STRIP
19289
19290 # Commands used to install an old-style archive.
19291 RANLIB=$lt_RANLIB
19292 old_postinstall_cmds=$lt_old_postinstall_cmds
19293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19294
19295 # Whether to use a lock for old archive extraction.
19296 lock_old_archive_extraction=$lock_old_archive_extraction
19297
19298 # A C compiler.
19299 LTCC=$lt_CC
19300
19301 # LTCC compiler flags.
19302 LTCFLAGS=$lt_CFLAGS
19303
19304 # Take the output of nm and produce a listing of raw symbols and C names.
19305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19306
19307 # Transform the output of nm in a proper C declaration.
19308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19309
19310 # Transform the output of nm in a C name address pair.
19311 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19312
19313 # Transform the output of nm in a C name address pair when lib prefix is needed.
19314 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19315
19316 # Specify filename containing input files for \$NM.
19317 nm_file_list_spec=$lt_nm_file_list_spec
19318
19319 # The root where to search for dependent libraries,and in which our libraries should be installed.
19320 lt_sysroot=$lt_sysroot
19321
19322 # The name of the directory that contains temporary libtool files.
19323 objdir=$objdir
19324
19325 # Used to examine libraries when file_magic_cmd begins with "file".
19326 MAGIC_CMD=$MAGIC_CMD
19327
19328 # Must we lock files when doing compilation?
19329 need_locks=$lt_need_locks
19330
19331 # Manifest tool.
19332 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19333
19334 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19335 DSYMUTIL=$lt_DSYMUTIL
19336
19337 # Tool to change global to local symbols on Mac OS X.
19338 NMEDIT=$lt_NMEDIT
19339
19340 # Tool to manipulate fat objects and archives on Mac OS X.
19341 LIPO=$lt_LIPO
19342
19343 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19344 OTOOL=$lt_OTOOL
19345
19346 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19347 OTOOL64=$lt_OTOOL64
19348
19349 # Old archive suffix (normally "a").
19350 libext=$libext
19351
19352 # Shared library suffix (normally ".so").
19353 shrext_cmds=$lt_shrext_cmds
19354
19355 # The commands to extract the exported symbol list from a shared archive.
19356 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19357
19358 # Variables whose values should be saved in libtool wrapper scripts and
19359 # restored at link time.
19360 variables_saved_for_relink=$lt_variables_saved_for_relink
19361
19362 # Do we need the "lib" prefix for modules?
19363 need_lib_prefix=$need_lib_prefix
19364
19365 # Do we need a version for libraries?
19366 need_version=$need_version
19367
19368 # Library versioning type.
19369 version_type=$version_type
19370
19371 # Shared library runtime path variable.
19372 runpath_var=$runpath_var
19373
19374 # Shared library path variable.
19375 shlibpath_var=$shlibpath_var
19376
19377 # Is shlibpath searched before the hard-coded library search path?
19378 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19379
19380 # Format of library name prefix.
19381 libname_spec=$lt_libname_spec
19382
19383 # List of archive names.  First name is the real one, the rest are links.
19384 # The last name is the one that the linker finds with -lNAME
19385 library_names_spec=$lt_library_names_spec
19386
19387 # The coded name of the library, if different from the real name.
19388 soname_spec=$lt_soname_spec
19389
19390 # Permission mode override for installation of shared libraries.
19391 install_override_mode=$lt_install_override_mode
19392
19393 # Command to use after installation of a shared archive.
19394 postinstall_cmds=$lt_postinstall_cmds
19395
19396 # Command to use after uninstallation of a shared archive.
19397 postuninstall_cmds=$lt_postuninstall_cmds
19398
19399 # Commands used to finish a libtool library installation in a directory.
19400 finish_cmds=$lt_finish_cmds
19401
19402 # As "finish_cmds", except a single script fragment to be evaled but
19403 # not shown.
19404 finish_eval=$lt_finish_eval
19405
19406 # Whether we should hardcode library paths into libraries.
19407 hardcode_into_libs=$hardcode_into_libs
19408
19409 # Compile-time system search path for libraries.
19410 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19411
19412 # Run-time system search path for libraries.
19413 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19414
19415 # Whether dlopen is supported.
19416 dlopen_support=$enable_dlopen
19417
19418 # Whether dlopen of programs is supported.
19419 dlopen_self=$enable_dlopen_self
19420
19421 # Whether dlopen of statically linked programs is supported.
19422 dlopen_self_static=$enable_dlopen_self_static
19423
19424 # Commands to strip libraries.
19425 old_striplib=$lt_old_striplib
19426 striplib=$lt_striplib
19427
19428
19429 # The linker used to build libraries.
19430 LD=$lt_LD
19431
19432 # How to create reloadable object files.
19433 reload_flag=$lt_reload_flag
19434 reload_cmds=$lt_reload_cmds
19435
19436 # Commands used to build an old-style archive.
19437 old_archive_cmds=$lt_old_archive_cmds
19438
19439 # A language specific compiler.
19440 CC=$lt_compiler
19441
19442 # Is the compiler the GNU compiler?
19443 with_gcc=$GCC
19444
19445 # Compiler flag to turn off builtin functions.
19446 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19447
19448 # Additional compiler flags for building library objects.
19449 pic_flag=$lt_lt_prog_compiler_pic
19450
19451 # How to pass a linker flag through the compiler.
19452 wl=$lt_lt_prog_compiler_wl
19453
19454 # Compiler flag to prevent dynamic linking.
19455 link_static_flag=$lt_lt_prog_compiler_static
19456
19457 # Does compiler simultaneously support -c and -o options?
19458 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19459
19460 # Whether or not to add -lc for building shared libraries.
19461 build_libtool_need_lc=$archive_cmds_need_lc
19462
19463 # Whether or not to disallow shared libs when runtime libs are static.
19464 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19465
19466 # Compiler flag to allow reflexive dlopens.
19467 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19468
19469 # Compiler flag to generate shared objects directly from archives.
19470 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19471
19472 # Whether the compiler copes with passing no objects directly.
19473 compiler_needs_object=$lt_compiler_needs_object
19474
19475 # Create an old-style archive from a shared archive.
19476 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19477
19478 # Create a temporary old-style archive to link instead of a shared archive.
19479 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19480
19481 # Commands used to build a shared archive.
19482 archive_cmds=$lt_archive_cmds
19483 archive_expsym_cmds=$lt_archive_expsym_cmds
19484
19485 # Commands used to build a loadable module if different from building
19486 # a shared archive.
19487 module_cmds=$lt_module_cmds
19488 module_expsym_cmds=$lt_module_expsym_cmds
19489
19490 # Whether we are building with GNU ld or not.
19491 with_gnu_ld=$lt_with_gnu_ld
19492
19493 # Flag that allows shared libraries with undefined symbols to be built.
19494 allow_undefined_flag=$lt_allow_undefined_flag
19495
19496 # Flag that enforces no undefined symbols.
19497 no_undefined_flag=$lt_no_undefined_flag
19498
19499 # Flag to hardcode \$libdir into a binary during linking.
19500 # This must work even if \$libdir does not exist
19501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19502
19503 # Whether we need a single "-rpath" flag with a separated argument.
19504 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19505
19506 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19507 # DIR into the resulting binary.
19508 hardcode_direct=$hardcode_direct
19509
19510 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19511 # DIR into the resulting binary and the resulting library dependency is
19512 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19513 # library is relocated.
19514 hardcode_direct_absolute=$hardcode_direct_absolute
19515
19516 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19517 # into the resulting binary.
19518 hardcode_minus_L=$hardcode_minus_L
19519
19520 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19521 # into the resulting binary.
19522 hardcode_shlibpath_var=$hardcode_shlibpath_var
19523
19524 # Set to "yes" if building a shared library automatically hardcodes DIR
19525 # into the library and all subsequent libraries and executables linked
19526 # against it.
19527 hardcode_automatic=$hardcode_automatic
19528
19529 # Set to yes if linker adds runtime paths of dependent libraries
19530 # to runtime path list.
19531 inherit_rpath=$inherit_rpath
19532
19533 # Whether libtool must link a program against all its dependency libraries.
19534 link_all_deplibs=$link_all_deplibs
19535
19536 # Set to "yes" if exported symbols are required.
19537 always_export_symbols=$always_export_symbols
19538
19539 # The commands to list exported symbols.
19540 export_symbols_cmds=$lt_export_symbols_cmds
19541
19542 # Symbols that should not be listed in the preloaded symbols.
19543 exclude_expsyms=$lt_exclude_expsyms
19544
19545 # Symbols that must always be exported.
19546 include_expsyms=$lt_include_expsyms
19547
19548 # Commands necessary for linking programs (against libraries) with templates.
19549 prelink_cmds=$lt_prelink_cmds
19550
19551 # Commands necessary for finishing linking programs.
19552 postlink_cmds=$lt_postlink_cmds
19553
19554 # Specify filename containing input files.
19555 file_list_spec=$lt_file_list_spec
19556
19557 # How to hardcode a shared library path into an executable.
19558 hardcode_action=$hardcode_action
19559
19560 # The directories searched by this compiler when creating a shared library.
19561 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19562
19563 # Dependencies to place before and after the objects being linked to
19564 # create a shared library.
19565 predep_objects=$lt_predep_objects
19566 postdep_objects=$lt_postdep_objects
19567 predeps=$lt_predeps
19568 postdeps=$lt_postdeps
19569
19570 # The library search path used internally by the compiler when linking
19571 # a shared library.
19572 compiler_lib_search_path=$lt_compiler_lib_search_path
19573
19574 # ### END LIBTOOL CONFIG
19575
19576 _LT_EOF
19577
19578   case $host_os in
19579   aix3*)
19580     cat <<\_LT_EOF >> "$cfgfile"
19581 # AIX sometimes has problems with the GCC collect2 program.  For some
19582 # reason, if we set the COLLECT_NAMES environment variable, the problems
19583 # vanish in a puff of smoke.
19584 if test "X${COLLECT_NAMES+set}" != Xset; then
19585   COLLECT_NAMES=
19586   export COLLECT_NAMES
19587 fi
19588 _LT_EOF
19589     ;;
19590   esac
19591
19592
19593 ltmain="$ac_aux_dir/ltmain.sh"
19594
19595
19596   # We use sed instead of cat because bash on DJGPP gets confused if
19597   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19598   # text mode, it properly converts lines to CR/LF.  This bash problem
19599   # is reportedly fixed, but why not run on old versions too?
19600   sed '$q' "$ltmain" >> "$cfgfile" \
19601      || (rm -f "$cfgfile"; exit 1)
19602
19603   if test x"$xsi_shell" = xyes; then
19604   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19605 func_dirname ()\
19606 {\
19607 \    case ${1} in\
19608 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19609 \      *  ) func_dirname_result="${3}" ;;\
19610 \    esac\
19611 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19612   && mv -f "$cfgfile.tmp" "$cfgfile" \
19613     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19614 test 0 -eq $? || _lt_function_replace_fail=:
19615
19616
19617   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19618 func_basename ()\
19619 {\
19620 \    func_basename_result="${1##*/}"\
19621 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19622   && mv -f "$cfgfile.tmp" "$cfgfile" \
19623     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19624 test 0 -eq $? || _lt_function_replace_fail=:
19625
19626
19627   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19628 func_dirname_and_basename ()\
19629 {\
19630 \    case ${1} in\
19631 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19632 \      *  ) func_dirname_result="${3}" ;;\
19633 \    esac\
19634 \    func_basename_result="${1##*/}"\
19635 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19636   && mv -f "$cfgfile.tmp" "$cfgfile" \
19637     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19638 test 0 -eq $? || _lt_function_replace_fail=:
19639
19640
19641   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19642 func_stripname ()\
19643 {\
19644 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19645 \    # positional parameters, so assign one to ordinary parameter first.\
19646 \    func_stripname_result=${3}\
19647 \    func_stripname_result=${func_stripname_result#"${1}"}\
19648 \    func_stripname_result=${func_stripname_result%"${2}"}\
19649 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19650   && mv -f "$cfgfile.tmp" "$cfgfile" \
19651     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19652 test 0 -eq $? || _lt_function_replace_fail=:
19653
19654
19655   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19656 func_split_long_opt ()\
19657 {\
19658 \    func_split_long_opt_name=${1%%=*}\
19659 \    func_split_long_opt_arg=${1#*=}\
19660 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19661   && mv -f "$cfgfile.tmp" "$cfgfile" \
19662     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19663 test 0 -eq $? || _lt_function_replace_fail=:
19664
19665
19666   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19667 func_split_short_opt ()\
19668 {\
19669 \    func_split_short_opt_arg=${1#??}\
19670 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19671 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19672   && mv -f "$cfgfile.tmp" "$cfgfile" \
19673     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19674 test 0 -eq $? || _lt_function_replace_fail=:
19675
19676
19677   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19678 func_lo2o ()\
19679 {\
19680 \    case ${1} in\
19681 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19682 \      *)    func_lo2o_result=${1} ;;\
19683 \    esac\
19684 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19685   && mv -f "$cfgfile.tmp" "$cfgfile" \
19686     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19687 test 0 -eq $? || _lt_function_replace_fail=:
19688
19689
19690   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19691 func_xform ()\
19692 {\
19693     func_xform_result=${1%.*}.lo\
19694 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19695   && mv -f "$cfgfile.tmp" "$cfgfile" \
19696     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19697 test 0 -eq $? || _lt_function_replace_fail=:
19698
19699
19700   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19701 func_arith ()\
19702 {\
19703     func_arith_result=$(( $* ))\
19704 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19705   && mv -f "$cfgfile.tmp" "$cfgfile" \
19706     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19707 test 0 -eq $? || _lt_function_replace_fail=:
19708
19709
19710   sed -e '/^func_len ()$/,/^} # func_len /c\
19711 func_len ()\
19712 {\
19713     func_len_result=${#1}\
19714 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19715   && mv -f "$cfgfile.tmp" "$cfgfile" \
19716     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19717 test 0 -eq $? || _lt_function_replace_fail=:
19718
19719 fi
19720
19721 if test x"$lt_shell_append" = xyes; then
19722   sed -e '/^func_append ()$/,/^} # func_append /c\
19723 func_append ()\
19724 {\
19725     eval "${1}+=\\${2}"\
19726 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19727   && mv -f "$cfgfile.tmp" "$cfgfile" \
19728     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19729 test 0 -eq $? || _lt_function_replace_fail=:
19730
19731
19732   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19733 func_append_quoted ()\
19734 {\
19735 \    func_quote_for_eval "${2}"\
19736 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19737 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19738   && mv -f "$cfgfile.tmp" "$cfgfile" \
19739     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19740 test 0 -eq $? || _lt_function_replace_fail=:
19741
19742
19743   # Save a `func_append' function call where possible by direct use of '+='
19744   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19745     && mv -f "$cfgfile.tmp" "$cfgfile" \
19746       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19747   test 0 -eq $? || _lt_function_replace_fail=:
19748 else
19749   # Save a `func_append' function call even when '+=' is not available
19750   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19751     && mv -f "$cfgfile.tmp" "$cfgfile" \
19752       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19753   test 0 -eq $? || _lt_function_replace_fail=:
19754 fi
19755
19756 if test x"$_lt_function_replace_fail" = x":"; then
19757   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19758 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19759 fi
19760
19761
19762    mv -f "$cfgfile" "$ofile" ||
19763     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19764   chmod +x "$ofile"
19765
19766
19767     cat <<_LT_EOF >> "$ofile"
19768
19769 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19770
19771 # The linker used to build libraries.
19772 LD=$lt_LD_CXX
19773
19774 # How to create reloadable object files.
19775 reload_flag=$lt_reload_flag_CXX
19776 reload_cmds=$lt_reload_cmds_CXX
19777
19778 # Commands used to build an old-style archive.
19779 old_archive_cmds=$lt_old_archive_cmds_CXX
19780
19781 # A language specific compiler.
19782 CC=$lt_compiler_CXX
19783
19784 # Is the compiler the GNU compiler?
19785 with_gcc=$GCC_CXX
19786
19787 # Compiler flag to turn off builtin functions.
19788 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19789
19790 # Additional compiler flags for building library objects.
19791 pic_flag=$lt_lt_prog_compiler_pic_CXX
19792
19793 # How to pass a linker flag through the compiler.
19794 wl=$lt_lt_prog_compiler_wl_CXX
19795
19796 # Compiler flag to prevent dynamic linking.
19797 link_static_flag=$lt_lt_prog_compiler_static_CXX
19798
19799 # Does compiler simultaneously support -c and -o options?
19800 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19801
19802 # Whether or not to add -lc for building shared libraries.
19803 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19804
19805 # Whether or not to disallow shared libs when runtime libs are static.
19806 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19807
19808 # Compiler flag to allow reflexive dlopens.
19809 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19810
19811 # Compiler flag to generate shared objects directly from archives.
19812 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19813
19814 # Whether the compiler copes with passing no objects directly.
19815 compiler_needs_object=$lt_compiler_needs_object_CXX
19816
19817 # Create an old-style archive from a shared archive.
19818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19819
19820 # Create a temporary old-style archive to link instead of a shared archive.
19821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19822
19823 # Commands used to build a shared archive.
19824 archive_cmds=$lt_archive_cmds_CXX
19825 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19826
19827 # Commands used to build a loadable module if different from building
19828 # a shared archive.
19829 module_cmds=$lt_module_cmds_CXX
19830 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19831
19832 # Whether we are building with GNU ld or not.
19833 with_gnu_ld=$lt_with_gnu_ld_CXX
19834
19835 # Flag that allows shared libraries with undefined symbols to be built.
19836 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19837
19838 # Flag that enforces no undefined symbols.
19839 no_undefined_flag=$lt_no_undefined_flag_CXX
19840
19841 # Flag to hardcode \$libdir into a binary during linking.
19842 # This must work even if \$libdir does not exist
19843 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19844
19845 # Whether we need a single "-rpath" flag with a separated argument.
19846 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19847
19848 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19849 # DIR into the resulting binary.
19850 hardcode_direct=$hardcode_direct_CXX
19851
19852 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19853 # DIR into the resulting binary and the resulting library dependency is
19854 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19855 # library is relocated.
19856 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19857
19858 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19859 # into the resulting binary.
19860 hardcode_minus_L=$hardcode_minus_L_CXX
19861
19862 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19863 # into the resulting binary.
19864 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19865
19866 # Set to "yes" if building a shared library automatically hardcodes DIR
19867 # into the library and all subsequent libraries and executables linked
19868 # against it.
19869 hardcode_automatic=$hardcode_automatic_CXX
19870
19871 # Set to yes if linker adds runtime paths of dependent libraries
19872 # to runtime path list.
19873 inherit_rpath=$inherit_rpath_CXX
19874
19875 # Whether libtool must link a program against all its dependency libraries.
19876 link_all_deplibs=$link_all_deplibs_CXX
19877
19878 # Set to "yes" if exported symbols are required.
19879 always_export_symbols=$always_export_symbols_CXX
19880
19881 # The commands to list exported symbols.
19882 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19883
19884 # Symbols that should not be listed in the preloaded symbols.
19885 exclude_expsyms=$lt_exclude_expsyms_CXX
19886
19887 # Symbols that must always be exported.
19888 include_expsyms=$lt_include_expsyms_CXX
19889
19890 # Commands necessary for linking programs (against libraries) with templates.
19891 prelink_cmds=$lt_prelink_cmds_CXX
19892
19893 # Commands necessary for finishing linking programs.
19894 postlink_cmds=$lt_postlink_cmds_CXX
19895
19896 # Specify filename containing input files.
19897 file_list_spec=$lt_file_list_spec_CXX
19898
19899 # How to hardcode a shared library path into an executable.
19900 hardcode_action=$hardcode_action_CXX
19901
19902 # The directories searched by this compiler when creating a shared library.
19903 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19904
19905 # Dependencies to place before and after the objects being linked to
19906 # create a shared library.
19907 predep_objects=$lt_predep_objects_CXX
19908 postdep_objects=$lt_postdep_objects_CXX
19909 predeps=$lt_predeps_CXX
19910 postdeps=$lt_postdeps_CXX
19911
19912 # The library search path used internally by the compiler when linking
19913 # a shared library.
19914 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19915
19916 # ### END LIBTOOL TAG CONFIG: CXX
19917 _LT_EOF
19918
19919  ;;
19920
19921   esac
19922 done # for ac_tag
19923
19924
19925 as_fn_exit 0
19926 _ACEOF
19927 ac_clean_files=$ac_clean_files_save
19928
19929 test $ac_write_fail = 0 ||
19930   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19931
19932
19933 # configure is writing to config.log, and then calls config.status.
19934 # config.status does its own redirection, appending to config.log.
19935 # Unfortunately, on DOS this fails, as config.log is still kept open
19936 # by configure, so config.status won't be able to write to it; its
19937 # output is simply discarded.  So we exec the FD to /dev/null,
19938 # effectively closing config.log, so it can be properly (re)opened and
19939 # appended to by config.status.  When coming back to configure, we
19940 # need to make the FD available again.
19941 if test "$no_create" != yes; then
19942   ac_cs_success=:
19943   ac_config_status_args=
19944   test "$silent" = yes &&
19945     ac_config_status_args="$ac_config_status_args --quiet"
19946   exec 5>/dev/null
19947   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19948   exec 5>>config.log
19949   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19950   # would make configure fail if this is the last instruction.
19951   $ac_cs_success || as_fn_exit 1
19952 fi
19953 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19954   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19955 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19956 fi
19957
19958
19959 if test ${enable_tools} = yes; then
19960     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building the deprecated ATF tools (atf-run and atf-report);" >&5
19961 $as_echo "$as_me: WARNING: Building the deprecated ATF tools (atf-run and atf-report);" >&2;}
19962     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: please migrate to Kyua as soon as feasible." >&5
19963 $as_echo "$as_me: WARNING: please migrate to Kyua as soon as feasible." >&2;}
19964 fi
19965