gdb/testsuite: Remove use of dejagnu cleanup proc
[external/binutils.git] / zlib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     PATH=/empty FPATH=/empty; export PATH FPATH
178     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="zlib.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 PICFLAG
606 TARGET_LIBRARY_FALSE
607 TARGET_LIBRARY_TRUE
608 toolexeclibdir
609 toolexecdir
610 target_all
611 CPP
612 OTOOL64
613 OTOOL
614 LIPO
615 NMEDIT
616 DSYMUTIL
617 RANLIB
618 AR
619 OBJDUMP
620 LN_S
621 NM
622 ac_ct_DUMPBIN
623 DUMPBIN
624 LD
625 FGREP
626 EGREP
627 GREP
628 SED
629 LIBTOOL
630 am__fastdepCC_FALSE
631 am__fastdepCC_TRUE
632 CCDEPMODE
633 am__nodep
634 AMDEPBACKSLASH
635 AMDEP_FALSE
636 AMDEP_TRUE
637 am__quote
638 am__include
639 DEPDIR
640 OBJEXT
641 EXEEXT
642 ac_ct_CC
643 CPPFLAGS
644 LDFLAGS
645 CFLAGS
646 CC
647 COMPPATH
648 MAINT
649 MAINTAINER_MODE_FALSE
650 MAINTAINER_MODE_TRUE
651 am__untar
652 am__tar
653 AMTAR
654 am__leading_dot
655 SET_MAKE
656 AWK
657 mkdir_p
658 MKDIR_P
659 INSTALL_STRIP_PROGRAM
660 STRIP
661 install_sh
662 MAKEINFO
663 AUTOHEADER
664 AUTOMAKE
665 AUTOCONF
666 ACLOCAL
667 VERSION
668 PACKAGE
669 CYGPATH_W
670 am__isrc
671 INSTALL_DATA
672 INSTALL_SCRIPT
673 INSTALL_PROGRAM
674 mkinstalldirs
675 target_os
676 target_vendor
677 target_cpu
678 target
679 host_os
680 host_vendor
681 host_cpu
682 host
683 build_os
684 build_vendor
685 build_cpu
686 build
687 multi_basedir
688 target_alias
689 host_alias
690 build_alias
691 LIBS
692 ECHO_T
693 ECHO_N
694 ECHO_C
695 DEFS
696 mandir
697 localedir
698 libdir
699 psdir
700 pdfdir
701 dvidir
702 htmldir
703 infodir
704 docdir
705 oldincludedir
706 includedir
707 localstatedir
708 sharedstatedir
709 sysconfdir
710 datadir
711 datarootdir
712 libexecdir
713 sbindir
714 bindir
715 program_transform_name
716 prefix
717 exec_prefix
718 PACKAGE_URL
719 PACKAGE_BUGREPORT
720 PACKAGE_STRING
721 PACKAGE_VERSION
722 PACKAGE_TARNAME
723 PACKAGE_NAME
724 PATH_SEPARATOR
725 SHELL'
726 ac_subst_files=''
727 ac_user_opts='
728 enable_option_checking
729 enable_multilib
730 enable_maintainer_mode
731 with_target_subdir
732 with_cross_host
733 with_system_zlib
734 enable_dependency_tracking
735 enable_shared
736 enable_static
737 with_pic
738 enable_fast_install
739 with_gnu_ld
740 enable_libtool_lock
741 enable_host_shared
742 '
743       ac_precious_vars='build_alias
744 host_alias
745 target_alias
746 CPP
747 CPPFLAGS'
748
749
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 ac_unrecognized_opts=
754 ac_unrecognized_sep=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
771
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
797
798 ac_prev=
799 ac_dashdash=
800 for ac_option
801 do
802   # If the previous option needs an argument, assign it.
803   if test -n "$ac_prev"; then
804     eval $ac_prev=\$ac_option
805     ac_prev=
806     continue
807   fi
808
809   case $ac_option in
810   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811   *)    ac_optarg=yes ;;
812   esac
813
814   # Accept the important Cygnus configure options, so we can diagnose typos.
815
816   case $ac_dashdash$ac_option in
817   --)
818     ac_dashdash=yes ;;
819
820   -bindir | --bindir | --bindi | --bind | --bin | --bi)
821     ac_prev=bindir ;;
822   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823     bindir=$ac_optarg ;;
824
825   -build | --build | --buil | --bui | --bu)
826     ac_prev=build_alias ;;
827   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828     build_alias=$ac_optarg ;;
829
830   -cache-file | --cache-file | --cache-fil | --cache-fi \
831   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832     ac_prev=cache_file ;;
833   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835     cache_file=$ac_optarg ;;
836
837   --config-cache | -C)
838     cache_file=config.cache ;;
839
840   -datadir | --datadir | --datadi | --datad)
841     ac_prev=datadir ;;
842   -datadir=* | --datadir=* | --datadi=* | --datad=*)
843     datadir=$ac_optarg ;;
844
845   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846   | --dataroo | --dataro | --datar)
847     ac_prev=datarootdir ;;
848   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850     datarootdir=$ac_optarg ;;
851
852   -disable-* | --disable-*)
853     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854     # Reject names that are not valid shell variable names.
855     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856       as_fn_error "invalid feature name: $ac_useropt"
857     ac_useropt_orig=$ac_useropt
858     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859     case $ac_user_opts in
860       *"
861 "enable_$ac_useropt"
862 "*) ;;
863       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864          ac_unrecognized_sep=', ';;
865     esac
866     eval enable_$ac_useropt=no ;;
867
868   -docdir | --docdir | --docdi | --doc | --do)
869     ac_prev=docdir ;;
870   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871     docdir=$ac_optarg ;;
872
873   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874     ac_prev=dvidir ;;
875   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876     dvidir=$ac_optarg ;;
877
878   -enable-* | --enable-*)
879     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880     # Reject names that are not valid shell variable names.
881     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882       as_fn_error "invalid feature name: $ac_useropt"
883     ac_useropt_orig=$ac_useropt
884     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885     case $ac_user_opts in
886       *"
887 "enable_$ac_useropt"
888 "*) ;;
889       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890          ac_unrecognized_sep=', ';;
891     esac
892     eval enable_$ac_useropt=\$ac_optarg ;;
893
894   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896   | --exec | --exe | --ex)
897     ac_prev=exec_prefix ;;
898   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900   | --exec=* | --exe=* | --ex=*)
901     exec_prefix=$ac_optarg ;;
902
903   -gas | --gas | --ga | --g)
904     # Obsolete; use --with-gas.
905     with_gas=yes ;;
906
907   -help | --help | --hel | --he | -h)
908     ac_init_help=long ;;
909   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
910     ac_init_help=recursive ;;
911   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
912     ac_init_help=short ;;
913
914   -host | --host | --hos | --ho)
915     ac_prev=host_alias ;;
916   -host=* | --host=* | --hos=* | --ho=*)
917     host_alias=$ac_optarg ;;
918
919   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920     ac_prev=htmldir ;;
921   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922   | --ht=*)
923     htmldir=$ac_optarg ;;
924
925   -includedir | --includedir | --includedi | --included | --include \
926   | --includ | --inclu | --incl | --inc)
927     ac_prev=includedir ;;
928   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929   | --includ=* | --inclu=* | --incl=* | --inc=*)
930     includedir=$ac_optarg ;;
931
932   -infodir | --infodir | --infodi | --infod | --info | --inf)
933     ac_prev=infodir ;;
934   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935     infodir=$ac_optarg ;;
936
937   -libdir | --libdir | --libdi | --libd)
938     ac_prev=libdir ;;
939   -libdir=* | --libdir=* | --libdi=* | --libd=*)
940     libdir=$ac_optarg ;;
941
942   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943   | --libexe | --libex | --libe)
944     ac_prev=libexecdir ;;
945   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946   | --libexe=* | --libex=* | --libe=*)
947     libexecdir=$ac_optarg ;;
948
949   -localedir | --localedir | --localedi | --localed | --locale)
950     ac_prev=localedir ;;
951   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952     localedir=$ac_optarg ;;
953
954   -localstatedir | --localstatedir | --localstatedi | --localstated \
955   | --localstate | --localstat | --localsta | --localst | --locals)
956     ac_prev=localstatedir ;;
957   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959     localstatedir=$ac_optarg ;;
960
961   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962     ac_prev=mandir ;;
963   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964     mandir=$ac_optarg ;;
965
966   -nfp | --nfp | --nf)
967     # Obsolete; use --without-fp.
968     with_fp=no ;;
969
970   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971   | --no-cr | --no-c | -n)
972     no_create=yes ;;
973
974   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
976     no_recursion=yes ;;
977
978   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980   | --oldin | --oldi | --old | --ol | --o)
981     ac_prev=oldincludedir ;;
982   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985     oldincludedir=$ac_optarg ;;
986
987   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988     ac_prev=prefix ;;
989   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
990     prefix=$ac_optarg ;;
991
992   -program-prefix | --program-prefix | --program-prefi | --program-pref \
993   | --program-pre | --program-pr | --program-p)
994     ac_prev=program_prefix ;;
995   -program-prefix=* | --program-prefix=* | --program-prefi=* \
996   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997     program_prefix=$ac_optarg ;;
998
999   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000   | --program-suf | --program-su | --program-s)
1001     ac_prev=program_suffix ;;
1002   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004     program_suffix=$ac_optarg ;;
1005
1006   -program-transform-name | --program-transform-name \
1007   | --program-transform-nam | --program-transform-na \
1008   | --program-transform-n | --program-transform- \
1009   | --program-transform | --program-transfor \
1010   | --program-transfo | --program-transf \
1011   | --program-trans | --program-tran \
1012   | --progr-tra | --program-tr | --program-t)
1013     ac_prev=program_transform_name ;;
1014   -program-transform-name=* | --program-transform-name=* \
1015   | --program-transform-nam=* | --program-transform-na=* \
1016   | --program-transform-n=* | --program-transform-=* \
1017   | --program-transform=* | --program-transfor=* \
1018   | --program-transfo=* | --program-transf=* \
1019   | --program-trans=* | --program-tran=* \
1020   | --progr-tra=* | --program-tr=* | --program-t=*)
1021     program_transform_name=$ac_optarg ;;
1022
1023   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024     ac_prev=pdfdir ;;
1025   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026     pdfdir=$ac_optarg ;;
1027
1028   -psdir | --psdir | --psdi | --psd | --ps)
1029     ac_prev=psdir ;;
1030   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1031     psdir=$ac_optarg ;;
1032
1033   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034   | -silent | --silent | --silen | --sile | --sil)
1035     silent=yes ;;
1036
1037   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038     ac_prev=sbindir ;;
1039   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040   | --sbi=* | --sb=*)
1041     sbindir=$ac_optarg ;;
1042
1043   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045   | --sharedst | --shareds | --shared | --share | --shar \
1046   | --sha | --sh)
1047     ac_prev=sharedstatedir ;;
1048   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051   | --sha=* | --sh=*)
1052     sharedstatedir=$ac_optarg ;;
1053
1054   -site | --site | --sit)
1055     ac_prev=site ;;
1056   -site=* | --site=* | --sit=*)
1057     site=$ac_optarg ;;
1058
1059   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060     ac_prev=srcdir ;;
1061   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062     srcdir=$ac_optarg ;;
1063
1064   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065   | --syscon | --sysco | --sysc | --sys | --sy)
1066     ac_prev=sysconfdir ;;
1067   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069     sysconfdir=$ac_optarg ;;
1070
1071   -target | --target | --targe | --targ | --tar | --ta | --t)
1072     ac_prev=target_alias ;;
1073   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074     target_alias=$ac_optarg ;;
1075
1076   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077     verbose=yes ;;
1078
1079   -version | --version | --versio | --versi | --vers | -V)
1080     ac_init_version=: ;;
1081
1082   -with-* | --with-*)
1083     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084     # Reject names that are not valid shell variable names.
1085     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086       as_fn_error "invalid package name: $ac_useropt"
1087     ac_useropt_orig=$ac_useropt
1088     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089     case $ac_user_opts in
1090       *"
1091 "with_$ac_useropt"
1092 "*) ;;
1093       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094          ac_unrecognized_sep=', ';;
1095     esac
1096     eval with_$ac_useropt=\$ac_optarg ;;
1097
1098   -without-* | --without-*)
1099     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100     # Reject names that are not valid shell variable names.
1101     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102       as_fn_error "invalid package name: $ac_useropt"
1103     ac_useropt_orig=$ac_useropt
1104     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105     case $ac_user_opts in
1106       *"
1107 "with_$ac_useropt"
1108 "*) ;;
1109       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110          ac_unrecognized_sep=', ';;
1111     esac
1112     eval with_$ac_useropt=no ;;
1113
1114   --x)
1115     # Obsolete; use --with-x.
1116     with_x=yes ;;
1117
1118   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119   | --x-incl | --x-inc | --x-in | --x-i)
1120     ac_prev=x_includes ;;
1121   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123     x_includes=$ac_optarg ;;
1124
1125   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127     ac_prev=x_libraries ;;
1128   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130     x_libraries=$ac_optarg ;;
1131
1132   -*) as_fn_error "unrecognized option: \`$ac_option'
1133 Try \`$0 --help' for more information."
1134     ;;
1135
1136   *=*)
1137     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138     # Reject names that are not valid shell variable names.
1139     case $ac_envvar in #(
1140       '' | [0-9]* | *[!_$as_cr_alnum]* )
1141       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1142     esac
1143     eval $ac_envvar=\$ac_optarg
1144     export $ac_envvar ;;
1145
1146   *)
1147     # FIXME: should be removed in autoconf 3.0.
1148     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1152     ;;
1153
1154   esac
1155 done
1156
1157 if test -n "$ac_prev"; then
1158   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159   as_fn_error "missing argument to $ac_option"
1160 fi
1161
1162 if test -n "$ac_unrecognized_opts"; then
1163   case $enable_option_checking in
1164     no) ;;
1165     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1166     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167   esac
1168 fi
1169
1170 # Check all directory arguments for consistency.
1171 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172                 datadir sysconfdir sharedstatedir localstatedir includedir \
1173                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174                 libdir localedir mandir
1175 do
1176   eval ac_val=\$$ac_var
1177   # Remove trailing slashes.
1178   case $ac_val in
1179     */ )
1180       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181       eval $ac_var=\$ac_val;;
1182   esac
1183   # Be sure to have absolute directory names.
1184   case $ac_val in
1185     [\\/$]* | ?:[\\/]* )  continue;;
1186     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187   esac
1188   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1189 done
1190
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1194 build=$build_alias
1195 host=$host_alias
1196 target=$target_alias
1197
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x; then
1200   if test "x$build_alias" = x; then
1201     cross_compiling=maybe
1202     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1203     If a cross compiler is detected then cross compile mode will be used." >&2
1204   elif test "x$build_alias" != "x$host_alias"; then
1205     cross_compiling=yes
1206   fi
1207 fi
1208
1209 ac_tool_prefix=
1210 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211
1212 test "$silent" = yes && exec 6>/dev/null
1213
1214
1215 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216 ac_ls_di=`ls -di .` &&
1217 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218   as_fn_error "working directory cannot be determined"
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220   as_fn_error "pwd does not report name of working directory"
1221
1222
1223 # Find the source files, if location was not specified.
1224 if test -z "$srcdir"; then
1225   ac_srcdir_defaulted=yes
1226   # Try the directory containing this script, then the parent directory.
1227   ac_confdir=`$as_dirname -- "$as_myself" ||
1228 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229          X"$as_myself" : 'X\(//\)[^/]' \| \
1230          X"$as_myself" : 'X\(//\)$' \| \
1231          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1232 $as_echo X"$as_myself" |
1233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234             s//\1/
1235             q
1236           }
1237           /^X\(\/\/\)[^/].*/{
1238             s//\1/
1239             q
1240           }
1241           /^X\(\/\/\)$/{
1242             s//\1/
1243             q
1244           }
1245           /^X\(\/\).*/{
1246             s//\1/
1247             q
1248           }
1249           s/.*/./; q'`
1250   srcdir=$ac_confdir
1251   if test ! -r "$srcdir/$ac_unique_file"; then
1252     srcdir=..
1253   fi
1254 else
1255   ac_srcdir_defaulted=no
1256 fi
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1260 fi
1261 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 ac_abs_confdir=`(
1263         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1264         pwd)`
1265 # When building in place, set srcdir=.
1266 if test "$ac_abs_confdir" = "$ac_pwd"; then
1267   srcdir=.
1268 fi
1269 # Remove unnecessary trailing slashes from srcdir.
1270 # Double slashes in file names in object file debugging info
1271 # mess up M-x gdb in Emacs.
1272 case $srcdir in
1273 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274 esac
1275 for ac_var in $ac_precious_vars; do
1276   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277   eval ac_env_${ac_var}_value=\$${ac_var}
1278   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280 done
1281
1282 #
1283 # Report the --help message.
1284 #
1285 if test "$ac_init_help" = "long"; then
1286   # Omit some internal or obsolete options to make the list less imposing.
1287   # This message is too long to be a string in the A/UX 3.1 sh.
1288   cat <<_ACEOF
1289 \`configure' configures this package to adapt to many kinds of systems.
1290
1291 Usage: $0 [OPTION]... [VAR=VALUE]...
1292
1293 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294 VAR=VALUE.  See below for descriptions of some of the useful variables.
1295
1296 Defaults for the options are specified in brackets.
1297
1298 Configuration:
1299   -h, --help              display this help and exit
1300       --help=short        display options specific to this package
1301       --help=recursive    display the short help of all the included packages
1302   -V, --version           display version information and exit
1303   -q, --quiet, --silent   do not print \`checking...' messages
1304       --cache-file=FILE   cache test results in FILE [disabled]
1305   -C, --config-cache      alias for \`--cache-file=config.cache'
1306   -n, --no-create         do not create output files
1307       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1308
1309 Installation directories:
1310   --prefix=PREFIX         install architecture-independent files in PREFIX
1311                           [$ac_default_prefix]
1312   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1313                           [PREFIX]
1314
1315 By default, \`make install' will install all the files in
1316 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1317 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318 for instance \`--prefix=\$HOME'.
1319
1320 For better control, use the options below.
1321
1322 Fine tuning of the installation directories:
1323   --bindir=DIR            user executables [EPREFIX/bin]
1324   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1325   --libexecdir=DIR        program executables [EPREFIX/libexec]
1326   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1327   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1328   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1329   --libdir=DIR            object code libraries [EPREFIX/lib]
1330   --includedir=DIR        C header files [PREFIX/include]
1331   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1332   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1333   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1334   --infodir=DIR           info documentation [DATAROOTDIR/info]
1335   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1336   --mandir=DIR            man documentation [DATAROOTDIR/man]
1337   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1338   --htmldir=DIR           html documentation [DOCDIR]
1339   --dvidir=DIR            dvi documentation [DOCDIR]
1340   --pdfdir=DIR            pdf documentation [DOCDIR]
1341   --psdir=DIR             ps documentation [DOCDIR]
1342 _ACEOF
1343
1344   cat <<\_ACEOF
1345
1346 Program names:
1347   --program-prefix=PREFIX            prepend PREFIX to installed program names
1348   --program-suffix=SUFFIX            append SUFFIX to installed program names
1349   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1350
1351 System types:
1352   --build=BUILD     configure for building on BUILD [guessed]
1353   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1354   --target=TARGET   configure for building compilers for TARGET [HOST]
1355 _ACEOF
1356 fi
1357
1358 if test -n "$ac_init_help"; then
1359
1360   cat <<\_ACEOF
1361
1362 Optional Features:
1363   --disable-option-checking  ignore unrecognized --enable/--with options
1364   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1365   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1366   --enable-multilib       build many library versions (default)
1367   --enable-maintainer-mode  enable make rules and dependencies not useful
1368                           (and sometimes confusing) to the casual installer
1369   --disable-dependency-tracking  speeds up one-time build
1370   --enable-dependency-tracking   do not reject slow dependency extractors
1371   --enable-shared[=PKGS]  build shared libraries [default=yes]
1372   --enable-static[=PKGS]  build static libraries [default=yes]
1373   --enable-fast-install[=PKGS]
1374                           optimize for fast installation [default=yes]
1375   --disable-libtool-lock  avoid locking (might break parallel builds)
1376   --enable-host-shared    build host code as shared libraries
1377
1378 Optional Packages:
1379   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1380   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1381   --with-target-subdir=SUBDIR
1382                           configuring in a subdirectory
1383   --with-cross-host=HOST  configuring with a cross compiler
1384   --with-system-zlib      use installed libz
1385   --with-pic              try to use only PIC/non-PIC objects [default=use
1386                           both]
1387   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1388
1389 Some influential environment variables:
1390   CC          C compiler command
1391   CFLAGS      C compiler flags
1392   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1393               nonstandard directory <lib dir>
1394   LIBS        libraries to pass to the linker, e.g. -l<library>
1395   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1396               you have headers in a nonstandard directory <include dir>
1397   CPP         C preprocessor
1398
1399 Use these variables to override the choices made by `configure' or to help
1400 it to find libraries and programs with nonstandard names/locations.
1401
1402 Report bugs to the package provider.
1403 _ACEOF
1404 ac_status=$?
1405 fi
1406
1407 if test "$ac_init_help" = "recursive"; then
1408   # If there are subdirs, report their specific --help.
1409   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1410     test -d "$ac_dir" ||
1411       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1412       continue
1413     ac_builddir=.
1414
1415 case "$ac_dir" in
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 *)
1418   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1419   # A ".." for each directory in $ac_dir_suffix.
1420   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1421   case $ac_top_builddir_sub in
1422   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424   esac ;;
1425 esac
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1430
1431 case $srcdir in
1432   .)  # We are building in place.
1433     ac_srcdir=.
1434     ac_top_srcdir=$ac_top_builddir_sub
1435     ac_abs_top_srcdir=$ac_pwd ;;
1436   [\\/]* | ?:[\\/]* )  # Absolute name.
1437     ac_srcdir=$srcdir$ac_dir_suffix;
1438     ac_top_srcdir=$srcdir
1439     ac_abs_top_srcdir=$srcdir ;;
1440   *) # Relative name.
1441     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442     ac_top_srcdir=$ac_top_build_prefix$srcdir
1443     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444 esac
1445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446
1447     cd "$ac_dir" || { ac_status=$?; continue; }
1448     # Check for guested configure.
1449     if test -f "$ac_srcdir/configure.gnu"; then
1450       echo &&
1451       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452     elif test -f "$ac_srcdir/configure"; then
1453       echo &&
1454       $SHELL "$ac_srcdir/configure" --help=recursive
1455     else
1456       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457     fi || ac_status=$?
1458     cd "$ac_pwd" || { ac_status=$?; break; }
1459   done
1460 fi
1461
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1464   cat <<\_ACEOF
1465 configure
1466 generated by GNU Autoconf 2.64
1467
1468 Copyright (C) 2009 Free Software Foundation, Inc.
1469 This configure script is free software; the Free Software Foundation
1470 gives unlimited permission to copy, distribute and modify it.
1471 _ACEOF
1472   exit
1473 fi
1474
1475 ## ------------------------ ##
1476 ## Autoconf initialization. ##
1477 ## ------------------------ ##
1478
1479 # ac_fn_c_try_compile LINENO
1480 # --------------------------
1481 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1482 ac_fn_c_try_compile ()
1483 {
1484   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485   rm -f conftest.$ac_objext
1486   if { { ac_try="$ac_compile"
1487 case "(($ac_try" in
1488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489   *) ac_try_echo=$ac_try;;
1490 esac
1491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492 $as_echo "$ac_try_echo"; } >&5
1493   (eval "$ac_compile") 2>conftest.err
1494   ac_status=$?
1495   if test -s conftest.err; then
1496     grep -v '^ *+' conftest.err >conftest.er1
1497     cat conftest.er1 >&5
1498     mv -f conftest.er1 conftest.err
1499   fi
1500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501   test $ac_status = 0; } && {
1502          test -z "$ac_c_werror_flag" ||
1503          test ! -s conftest.err
1504        } && test -s conftest.$ac_objext; then :
1505   ac_retval=0
1506 else
1507   $as_echo "$as_me: failed program was:" >&5
1508 sed 's/^/| /' conftest.$ac_ext >&5
1509
1510         ac_retval=1
1511 fi
1512   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1513   return $ac_retval
1514
1515 } # ac_fn_c_try_compile
1516
1517 # ac_fn_c_try_link LINENO
1518 # -----------------------
1519 # Try to link conftest.$ac_ext, and return whether this succeeded.
1520 ac_fn_c_try_link ()
1521 {
1522   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523   rm -f conftest.$ac_objext conftest$ac_exeext
1524   if { { ac_try="$ac_link"
1525 case "(($ac_try" in
1526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527   *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531   (eval "$ac_link") 2>conftest.err
1532   ac_status=$?
1533   if test -s conftest.err; then
1534     grep -v '^ *+' conftest.err >conftest.er1
1535     cat conftest.er1 >&5
1536     mv -f conftest.er1 conftest.err
1537   fi
1538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539   test $ac_status = 0; } && {
1540          test -z "$ac_c_werror_flag" ||
1541          test ! -s conftest.err
1542        } && test -s conftest$ac_exeext && {
1543          test "$cross_compiling" = yes ||
1544          $as_test_x conftest$ac_exeext
1545        }; then :
1546   ac_retval=0
1547 else
1548   $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1550
1551         ac_retval=1
1552 fi
1553   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1554   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1555   # interfere with the next link command; also delete a directory that is
1556   # left behind by Apple's compiler.  We do this before executing the actions.
1557   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1558   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1559   return $ac_retval
1560
1561 } # ac_fn_c_try_link
1562
1563 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1564 # -------------------------------------------------------
1565 # Tests whether HEADER exists and can be compiled using the include files in
1566 # INCLUDES, setting the cache variable VAR accordingly.
1567 ac_fn_c_check_header_compile ()
1568 {
1569   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1571 $as_echo_n "checking for $2... " >&6; }
1572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1573   $as_echo_n "(cached) " >&6
1574 else
1575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576 /* end confdefs.h.  */
1577 $4
1578 #include <$2>
1579 _ACEOF
1580 if ac_fn_c_try_compile "$LINENO"; then :
1581   eval "$3=yes"
1582 else
1583   eval "$3=no"
1584 fi
1585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1586 fi
1587 eval ac_res=\$$3
1588                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589 $as_echo "$ac_res" >&6; }
1590   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591
1592 } # ac_fn_c_check_header_compile
1593
1594 # ac_fn_c_try_cpp LINENO
1595 # ----------------------
1596 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_cpp ()
1598 {
1599   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600   if { { ac_try="$ac_cpp conftest.$ac_ext"
1601 case "(($ac_try" in
1602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603   *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608   ac_status=$?
1609   if test -s conftest.err; then
1610     grep -v '^ *+' conftest.err >conftest.er1
1611     cat conftest.er1 >&5
1612     mv -f conftest.er1 conftest.err
1613   fi
1614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615   test $ac_status = 0; } >/dev/null && {
1616          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617          test ! -s conftest.err
1618        }; then :
1619   ac_retval=0
1620 else
1621   $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624     ac_retval=1
1625 fi
1626   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1627   return $ac_retval
1628
1629 } # ac_fn_c_try_cpp
1630
1631 # ac_fn_c_try_run LINENO
1632 # ----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1634 # that executables *can* be run.
1635 ac_fn_c_try_run ()
1636 {
1637   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638   if { { ac_try="$ac_link"
1639 case "(($ac_try" in
1640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641   *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645   (eval "$ac_link") 2>&5
1646   ac_status=$?
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1649   { { case "(($ac_try" in
1650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651   *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655   (eval "$ac_try") 2>&5
1656   ac_status=$?
1657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658   test $ac_status = 0; }; }; then :
1659   ac_retval=0
1660 else
1661   $as_echo "$as_me: program exited with status $ac_status" >&5
1662        $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1664
1665        ac_retval=$ac_status
1666 fi
1667   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669   return $ac_retval
1670
1671 } # ac_fn_c_try_run
1672
1673 # ac_fn_c_check_func LINENO FUNC VAR
1674 # ----------------------------------
1675 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1676 ac_fn_c_check_func ()
1677 {
1678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682   $as_echo_n "(cached) " >&6
1683 else
1684   if test x$gcc_no_link = xyes; then
1685   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1686 fi
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h.  */
1689 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1691 #define $2 innocuous_$2
1692
1693 /* System header to define __stub macros and hopefully few prototypes,
1694     which can conflict with char $2 (); below.
1695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1696     <limits.h> exists even on freestanding compilers.  */
1697
1698 #ifdef __STDC__
1699 # include <limits.h>
1700 #else
1701 # include <assert.h>
1702 #endif
1703
1704 #undef $2
1705
1706 /* Override any GCC internal prototype to avoid an error.
1707    Use char because int might match the return type of a GCC
1708    builtin and then its argument prototype would still apply.  */
1709 #ifdef __cplusplus
1710 extern "C"
1711 #endif
1712 char $2 ();
1713 /* The GNU C library defines this for functions which it implements
1714     to always fail with ENOSYS.  Some functions are actually named
1715     something starting with __ and the normal name is an alias.  */
1716 #if defined __stub_$2 || defined __stub___$2
1717 choke me
1718 #endif
1719
1720 int
1721 main ()
1722 {
1723 return $2 ();
1724   ;
1725   return 0;
1726 }
1727 _ACEOF
1728 if ac_fn_c_try_link "$LINENO"; then :
1729   eval "$3=yes"
1730 else
1731   eval "$3=no"
1732 fi
1733 rm -f core conftest.err conftest.$ac_objext \
1734     conftest$ac_exeext conftest.$ac_ext
1735 fi
1736 eval ac_res=\$$3
1737                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740
1741 } # ac_fn_c_check_func
1742
1743 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1744 # -------------------------------------------------------
1745 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1746 # the include files in INCLUDES and setting the cache variable VAR
1747 # accordingly.
1748 ac_fn_c_check_header_mongrel ()
1749 {
1750   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755   $as_echo_n "(cached) " >&6
1756 fi
1757 eval ac_res=\$$3
1758                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 else
1761   # Is the header compilable?
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1763 $as_echo_n "checking $2 usability... " >&6; }
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h.  */
1766 $4
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_compile "$LINENO"; then :
1770   ac_header_compiler=yes
1771 else
1772   ac_header_compiler=no
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1776 $as_echo "$ac_header_compiler" >&6; }
1777
1778 # Is the header present?
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1780 $as_echo_n "checking $2 presence... " >&6; }
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h.  */
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_cpp "$LINENO"; then :
1786   ac_header_preproc=yes
1787 else
1788   ac_header_preproc=no
1789 fi
1790 rm -f conftest.err conftest.$ac_ext
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1792 $as_echo "$ac_header_preproc" >&6; }
1793
1794 # So?  What about this header?
1795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1796   yes:no: )
1797     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1798 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1799     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1800 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801     ;;
1802   no:yes:* )
1803     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1804 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1805     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1806 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1807     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1808 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1809     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1810 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1811     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1812 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813     ;;
1814 esac
1815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818   $as_echo_n "(cached) " >&6
1819 else
1820   eval "$3=\$ac_header_compiler"
1821 fi
1822 eval ac_res=\$$3
1823                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825 fi
1826   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
1828 } # ac_fn_c_check_header_mongrel
1829 cat >config.log <<_ACEOF
1830 This file contains any messages produced by compilers while
1831 running configure, to aid debugging if configure makes a mistake.
1832
1833 It was created by $as_me, which was
1834 generated by GNU Autoconf 2.64.  Invocation command line was
1835
1836   $ $0 $@
1837
1838 _ACEOF
1839 exec 5>>config.log
1840 {
1841 cat <<_ASUNAME
1842 ## --------- ##
1843 ## Platform. ##
1844 ## --------- ##
1845
1846 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1847 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1848 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1849 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1850 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1851
1852 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1853 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1854
1855 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1856 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1857 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1858 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1859 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1860 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1861 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1862
1863 _ASUNAME
1864
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 for as_dir in $PATH
1867 do
1868   IFS=$as_save_IFS
1869   test -z "$as_dir" && as_dir=.
1870     $as_echo "PATH: $as_dir"
1871   done
1872 IFS=$as_save_IFS
1873
1874 } >&5
1875
1876 cat >&5 <<_ACEOF
1877
1878
1879 ## ----------- ##
1880 ## Core tests. ##
1881 ## ----------- ##
1882
1883 _ACEOF
1884
1885
1886 # Keep a trace of the command line.
1887 # Strip out --no-create and --no-recursion so they do not pile up.
1888 # Strip out --silent because we don't want to record it for future runs.
1889 # Also quote any args containing shell meta-characters.
1890 # Make two passes to allow for proper duplicate-argument suppression.
1891 ac_configure_args=
1892 ac_configure_args0=
1893 ac_configure_args1=
1894 ac_must_keep_next=false
1895 for ac_pass in 1 2
1896 do
1897   for ac_arg
1898   do
1899     case $ac_arg in
1900     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1901     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1902     | -silent | --silent | --silen | --sile | --sil)
1903       continue ;;
1904     *\'*)
1905       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1906     esac
1907     case $ac_pass in
1908     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1909     2)
1910       as_fn_append ac_configure_args1 " '$ac_arg'"
1911       if test $ac_must_keep_next = true; then
1912         ac_must_keep_next=false # Got value, back to normal.
1913       else
1914         case $ac_arg in
1915           *=* | --config-cache | -C | -disable-* | --disable-* \
1916           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1917           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1918           | -with-* | --with-* | -without-* | --without-* | --x)
1919             case "$ac_configure_args0 " in
1920               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1921             esac
1922             ;;
1923           -* ) ac_must_keep_next=true ;;
1924         esac
1925       fi
1926       as_fn_append ac_configure_args " '$ac_arg'"
1927       ;;
1928     esac
1929   done
1930 done
1931 { ac_configure_args0=; unset ac_configure_args0;}
1932 { ac_configure_args1=; unset ac_configure_args1;}
1933
1934 # When interrupted or exit'd, cleanup temporary files, and complete
1935 # config.log.  We remove comments because anyway the quotes in there
1936 # would cause problems or look ugly.
1937 # WARNING: Use '\'' to represent an apostrophe within the trap.
1938 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1939 trap 'exit_status=$?
1940   # Save into config.log some information that might help in debugging.
1941   {
1942     echo
1943
1944     cat <<\_ASBOX
1945 ## ---------------- ##
1946 ## Cache variables. ##
1947 ## ---------------- ##
1948 _ASBOX
1949     echo
1950     # The following way of writing the cache mishandles newlines in values,
1951 (
1952   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1953     eval ac_val=\$$ac_var
1954     case $ac_val in #(
1955     *${as_nl}*)
1956       case $ac_var in #(
1957       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1959       esac
1960       case $ac_var in #(
1961       _ | IFS | as_nl) ;; #(
1962       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1963       *) { eval $ac_var=; unset $ac_var;} ;;
1964       esac ;;
1965     esac
1966   done
1967   (set) 2>&1 |
1968     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1969     *${as_nl}ac_space=\ *)
1970       sed -n \
1971         "s/'\''/'\''\\\\'\'''\''/g;
1972           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1973       ;; #(
1974     *)
1975       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1976       ;;
1977     esac |
1978     sort
1979 )
1980     echo
1981
1982     cat <<\_ASBOX
1983 ## ----------------- ##
1984 ## Output variables. ##
1985 ## ----------------- ##
1986 _ASBOX
1987     echo
1988     for ac_var in $ac_subst_vars
1989     do
1990       eval ac_val=\$$ac_var
1991       case $ac_val in
1992       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1993       esac
1994       $as_echo "$ac_var='\''$ac_val'\''"
1995     done | sort
1996     echo
1997
1998     if test -n "$ac_subst_files"; then
1999       cat <<\_ASBOX
2000 ## ------------------- ##
2001 ## File substitutions. ##
2002 ## ------------------- ##
2003 _ASBOX
2004       echo
2005       for ac_var in $ac_subst_files
2006       do
2007         eval ac_val=\$$ac_var
2008         case $ac_val in
2009         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010         esac
2011         $as_echo "$ac_var='\''$ac_val'\''"
2012       done | sort
2013       echo
2014     fi
2015
2016     if test -s confdefs.h; then
2017       cat <<\_ASBOX
2018 ## ----------- ##
2019 ## confdefs.h. ##
2020 ## ----------- ##
2021 _ASBOX
2022       echo
2023       cat confdefs.h
2024       echo
2025     fi
2026     test "$ac_signal" != 0 &&
2027       $as_echo "$as_me: caught signal $ac_signal"
2028     $as_echo "$as_me: exit $exit_status"
2029   } >&5
2030   rm -f core *.core core.conftest.* &&
2031     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2032     exit $exit_status
2033 ' 0
2034 for ac_signal in 1 2 13 15; do
2035   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2036 done
2037 ac_signal=0
2038
2039 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2040 rm -f -r conftest* confdefs.h
2041
2042 $as_echo "/* confdefs.h */" > confdefs.h
2043
2044 # Predefined preprocessor variables.
2045
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_NAME "$PACKAGE_NAME"
2048 _ACEOF
2049
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2052 _ACEOF
2053
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2056 _ACEOF
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_STRING "$PACKAGE_STRING"
2060 _ACEOF
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2064 _ACEOF
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_URL "$PACKAGE_URL"
2068 _ACEOF
2069
2070
2071 # Let the site file select an alternate cache file if it wants to.
2072 # Prefer an explicitly selected file to automatically selected ones.
2073 ac_site_file1=NONE
2074 ac_site_file2=NONE
2075 if test -n "$CONFIG_SITE"; then
2076   ac_site_file1=$CONFIG_SITE
2077 elif test "x$prefix" != xNONE; then
2078   ac_site_file1=$prefix/share/config.site
2079   ac_site_file2=$prefix/etc/config.site
2080 else
2081   ac_site_file1=$ac_default_prefix/share/config.site
2082   ac_site_file2=$ac_default_prefix/etc/config.site
2083 fi
2084 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2085 do
2086   test "x$ac_site_file" = xNONE && continue
2087   if test -r "$ac_site_file"; then
2088     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2089 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2090     sed 's/^/| /' "$ac_site_file" >&5
2091     . "$ac_site_file"
2092   fi
2093 done
2094
2095 if test -r "$cache_file"; then
2096   # Some versions of bash will fail to source /dev/null (special
2097   # files actually), so we avoid doing that.
2098   if test -f "$cache_file"; then
2099     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2100 $as_echo "$as_me: loading cache $cache_file" >&6;}
2101     case $cache_file in
2102       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2103       *)                      . "./$cache_file";;
2104     esac
2105   fi
2106 else
2107   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2108 $as_echo "$as_me: creating cache $cache_file" >&6;}
2109   >$cache_file
2110 fi
2111
2112 # Check that the precious variables saved in the cache have kept the same
2113 # value.
2114 ac_cache_corrupted=false
2115 for ac_var in $ac_precious_vars; do
2116   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2117   eval ac_new_set=\$ac_env_${ac_var}_set
2118   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2119   eval ac_new_val=\$ac_env_${ac_var}_value
2120   case $ac_old_set,$ac_new_set in
2121     set,)
2122       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2123 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2124       ac_cache_corrupted=: ;;
2125     ,set)
2126       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2127 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2128       ac_cache_corrupted=: ;;
2129     ,);;
2130     *)
2131       if test "x$ac_old_val" != "x$ac_new_val"; then
2132         # differences in whitespace do not lead to failure.
2133         ac_old_val_w=`echo x $ac_old_val`
2134         ac_new_val_w=`echo x $ac_new_val`
2135         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2136           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2137 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2138           ac_cache_corrupted=:
2139         else
2140           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2141 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2142           eval $ac_var=\$ac_old_val
2143         fi
2144         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2145 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2146         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2147 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2148       fi;;
2149   esac
2150   # Pass precious variables to config.status.
2151   if test "$ac_new_set" = set; then
2152     case $ac_new_val in
2153     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2154     *) ac_arg=$ac_var=$ac_new_val ;;
2155     esac
2156     case " $ac_configure_args " in
2157       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2158       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2159     esac
2160   fi
2161 done
2162 if $ac_cache_corrupted; then
2163   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2165   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2166 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2167   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2168 fi
2169 ## -------------------- ##
2170 ## Main body of script. ##
2171 ## -------------------- ##
2172
2173 ac_ext=c
2174 ac_cpp='$CPP $CPPFLAGS'
2175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178
2179
2180
2181
2182
2183
2184
2185 if test -n "${with_target_subdir}"; then
2186   # Default to --enable-multilib
2187 # Check whether --enable-multilib was given.
2188 if test "${enable_multilib+set}" = set; then :
2189   enableval=$enable_multilib; case "$enableval" in
2190   yes) multilib=yes ;;
2191   no)  multilib=no ;;
2192   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2193  esac
2194 else
2195   multilib=yes
2196 fi
2197
2198
2199 # We may get other options which we leave undocumented:
2200 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2201 # See config-ml.in if you want the gory details.
2202
2203 if test "$srcdir" = "."; then
2204   if test "$with_target_subdir" != "."; then
2205     multi_basedir="$srcdir/$with_multisrctop../.."
2206   else
2207     multi_basedir="$srcdir/$with_multisrctop.."
2208   fi
2209 else
2210   multi_basedir="$srcdir/.."
2211 fi
2212
2213
2214 # Even if the default multilib is not a cross compilation,
2215 # it may be that some of the other multilibs are.
2216 if test $cross_compiling = no && test $multilib = yes \
2217    && test "x${with_multisubdir}" != x ; then
2218    cross_compiling=maybe
2219 fi
2220
2221 ac_config_commands="$ac_config_commands default-1"
2222
2223 fi
2224
2225 ac_aux_dir=
2226 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2227   for ac_t in install-sh install.sh shtool; do
2228     if test -f "$ac_dir/$ac_t"; then
2229       ac_aux_dir=$ac_dir
2230       ac_install_sh="$ac_aux_dir/$ac_t -c"
2231       break 2
2232     fi
2233   done
2234 done
2235 if test -z "$ac_aux_dir"; then
2236   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2237 fi
2238
2239 # These three variables are undocumented and unsupported,
2240 # and are intended to be withdrawn in a future Autoconf release.
2241 # They can cause serious problems if a builder's source tree is in a directory
2242 # whose full name contains unusual characters.
2243 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2244 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2245 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2246
2247
2248 # Make sure we can run config.sub.
2249 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2250   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2251
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2253 $as_echo_n "checking build system type... " >&6; }
2254 if test "${ac_cv_build+set}" = set; then :
2255   $as_echo_n "(cached) " >&6
2256 else
2257   ac_build_alias=$build_alias
2258 test "x$ac_build_alias" = x &&
2259   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2260 test "x$ac_build_alias" = x &&
2261   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2262 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2263   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2264
2265 fi
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2267 $as_echo "$ac_cv_build" >&6; }
2268 case $ac_cv_build in
2269 *-*-*) ;;
2270 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2271 esac
2272 build=$ac_cv_build
2273 ac_save_IFS=$IFS; IFS='-'
2274 set x $ac_cv_build
2275 shift
2276 build_cpu=$1
2277 build_vendor=$2
2278 shift; shift
2279 # Remember, the first character of IFS is used to create $*,
2280 # except with old shells:
2281 build_os=$*
2282 IFS=$ac_save_IFS
2283 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2284
2285
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2287 $as_echo_n "checking host system type... " >&6; }
2288 if test "${ac_cv_host+set}" = set; then :
2289   $as_echo_n "(cached) " >&6
2290 else
2291   if test "x$host_alias" = x; then
2292   ac_cv_host=$ac_cv_build
2293 else
2294   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2295     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2296 fi
2297
2298 fi
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2300 $as_echo "$ac_cv_host" >&6; }
2301 case $ac_cv_host in
2302 *-*-*) ;;
2303 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2304 esac
2305 host=$ac_cv_host
2306 ac_save_IFS=$IFS; IFS='-'
2307 set x $ac_cv_host
2308 shift
2309 host_cpu=$1
2310 host_vendor=$2
2311 shift; shift
2312 # Remember, the first character of IFS is used to create $*,
2313 # except with old shells:
2314 host_os=$*
2315 IFS=$ac_save_IFS
2316 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2317
2318
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2320 $as_echo_n "checking target system type... " >&6; }
2321 if test "${ac_cv_target+set}" = set; then :
2322   $as_echo_n "(cached) " >&6
2323 else
2324   if test "x$target_alias" = x; then
2325   ac_cv_target=$ac_cv_host
2326 else
2327   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2328     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2329 fi
2330
2331 fi
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2333 $as_echo "$ac_cv_target" >&6; }
2334 case $ac_cv_target in
2335 *-*-*) ;;
2336 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2337 esac
2338 target=$ac_cv_target
2339 ac_save_IFS=$IFS; IFS='-'
2340 set x $ac_cv_target
2341 shift
2342 target_cpu=$1
2343 target_vendor=$2
2344 shift; shift
2345 # Remember, the first character of IFS is used to create $*,
2346 # except with old shells:
2347 target_os=$*
2348 IFS=$ac_save_IFS
2349 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2350
2351
2352 # The aliases save the names the user supplied, while $host etc.
2353 # will get canonicalized.
2354 test -n "$target_alias" &&
2355   test "$program_prefix$program_suffix$program_transform_name" = \
2356     NONENONEs,x,x, &&
2357   program_prefix=${target_alias}-
2358
2359
2360 # This works around an automake problem.
2361 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2362
2363
2364 am__api_version='1.11'
2365
2366 # Find a good install program.  We prefer a C program (faster),
2367 # so one script is as good as another.  But avoid the broken or
2368 # incompatible versions:
2369 # SysV /etc/install, /usr/sbin/install
2370 # SunOS /usr/etc/install
2371 # IRIX /sbin/install
2372 # AIX /bin/install
2373 # AmigaOS /C/install, which installs bootblocks on floppy discs
2374 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2375 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2376 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2377 # OS/2's system install, which has a completely different semantic
2378 # ./install, which can be erroneously created by make from ./install.sh.
2379 # Reject install programs that cannot install multiple files.
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2381 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2382 if test -z "$INSTALL"; then
2383 if test "${ac_cv_path_install+set}" = set; then :
2384   $as_echo_n "(cached) " >&6
2385 else
2386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389   IFS=$as_save_IFS
2390   test -z "$as_dir" && as_dir=.
2391     # Account for people who put trailing slashes in PATH elements.
2392 case $as_dir/ in #((
2393   ./ | .// | /[cC]/* | \
2394   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2395   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2396   /usr/ucb/* ) ;;
2397   *)
2398     # OSF1 and SCO ODT 3.0 have their own names for install.
2399     # Don't use installbsd from OSF since it installs stuff as root
2400     # by default.
2401     for ac_prog in ginstall scoinst install; do
2402       for ac_exec_ext in '' $ac_executable_extensions; do
2403         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2404           if test $ac_prog = install &&
2405             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2406             # AIX install.  It has an incompatible calling convention.
2407             :
2408           elif test $ac_prog = install &&
2409             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2410             # program-specific install script used by HP pwplus--don't use.
2411             :
2412           else
2413             rm -rf conftest.one conftest.two conftest.dir
2414             echo one > conftest.one
2415             echo two > conftest.two
2416             mkdir conftest.dir
2417             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2418               test -s conftest.one && test -s conftest.two &&
2419               test -s conftest.dir/conftest.one &&
2420               test -s conftest.dir/conftest.two
2421             then
2422               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2423               break 3
2424             fi
2425           fi
2426         fi
2427       done
2428     done
2429     ;;
2430 esac
2431
2432   done
2433 IFS=$as_save_IFS
2434
2435 rm -rf conftest.one conftest.two conftest.dir
2436
2437 fi
2438   if test "${ac_cv_path_install+set}" = set; then
2439     INSTALL=$ac_cv_path_install
2440   else
2441     # As a last resort, use the slow shell script.  Don't cache a
2442     # value for INSTALL within a source directory, because that will
2443     # break other packages using the cache if that directory is
2444     # removed, or if the value is a relative name.
2445     INSTALL=$ac_install_sh
2446   fi
2447 fi
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2449 $as_echo "$INSTALL" >&6; }
2450
2451 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2452 # It thinks the first close brace ends the variable substitution.
2453 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2454
2455 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2456
2457 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2458
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2460 $as_echo_n "checking whether build environment is sane... " >&6; }
2461 # Just in case
2462 sleep 1
2463 echo timestamp > conftest.file
2464 # Reject unsafe characters in $srcdir or the absolute working directory
2465 # name.  Accept space and tab only in the latter.
2466 am_lf='
2467 '
2468 case `pwd` in
2469   *[\\\"\#\$\&\'\`$am_lf]*)
2470     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2471 esac
2472 case $srcdir in
2473   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2474     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2475 esac
2476
2477 # Do `set' in a subshell so we don't clobber the current shell's
2478 # arguments.  Must try -L first in case configure is actually a
2479 # symlink; some systems play weird games with the mod time of symlinks
2480 # (eg FreeBSD returns the mod time of the symlink's containing
2481 # directory).
2482 if (
2483    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2484    if test "$*" = "X"; then
2485       # -L didn't work.
2486       set X `ls -t "$srcdir/configure" conftest.file`
2487    fi
2488    rm -f conftest.file
2489    if test "$*" != "X $srcdir/configure conftest.file" \
2490       && test "$*" != "X conftest.file $srcdir/configure"; then
2491
2492       # If neither matched, then we have a broken ls.  This can happen
2493       # if, for instance, CONFIG_SHELL is bash and it inherits a
2494       # broken ls alias from the environment.  This has actually
2495       # happened.  Such a system could not be considered "sane".
2496       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2497 alias in your environment" "$LINENO" 5
2498    fi
2499
2500    test "$2" = conftest.file
2501    )
2502 then
2503    # Ok.
2504    :
2505 else
2506    as_fn_error "newly created file is older than distributed files!
2507 Check your system clock" "$LINENO" 5
2508 fi
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2510 $as_echo "yes" >&6; }
2511 test "$program_prefix" != NONE &&
2512   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2513 # Use a double $ so make ignores it.
2514 test "$program_suffix" != NONE &&
2515   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2516 # Double any \ or $.
2517 # By default was `s,x,x', remove it if useless.
2518 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2519 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2520
2521 # expand $ac_aux_dir to an absolute path
2522 am_aux_dir=`cd $ac_aux_dir && pwd`
2523
2524 if test x"${MISSING+set}" != xset; then
2525   case $am_aux_dir in
2526   *\ * | *\     *)
2527     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2528   *)
2529     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2530   esac
2531 fi
2532 # Use eval to expand $SHELL
2533 if eval "$MISSING --run true"; then
2534   am_missing_run="$MISSING --run "
2535 else
2536   am_missing_run=
2537   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2538 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2539 fi
2540
2541 if test x"${install_sh}" != xset; then
2542   case $am_aux_dir in
2543   *\ * | *\     *)
2544     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2545   *)
2546     install_sh="\${SHELL} $am_aux_dir/install-sh"
2547   esac
2548 fi
2549
2550 # Installed binaries are usually stripped using `strip' when the user
2551 # run `make install-strip'.  However `strip' might not be the right
2552 # tool to use in cross-compilation environments, therefore Automake
2553 # will honor the `STRIP' environment variable to overrule this program.
2554 if test "$cross_compiling" != no; then
2555   if test -n "$ac_tool_prefix"; then
2556   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2557 set dummy ${ac_tool_prefix}strip; ac_word=$2
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if test "${ac_cv_prog_STRIP+set}" = set; then :
2561   $as_echo_n "(cached) " >&6
2562 else
2563   if test -n "$STRIP"; then
2564   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569   IFS=$as_save_IFS
2570   test -z "$as_dir" && as_dir=.
2571     for ac_exec_ext in '' $ac_executable_extensions; do
2572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575     break 2
2576   fi
2577 done
2578   done
2579 IFS=$as_save_IFS
2580
2581 fi
2582 fi
2583 STRIP=$ac_cv_prog_STRIP
2584 if test -n "$STRIP"; then
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2586 $as_echo "$STRIP" >&6; }
2587 else
2588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589 $as_echo "no" >&6; }
2590 fi
2591
2592
2593 fi
2594 if test -z "$ac_cv_prog_STRIP"; then
2595   ac_ct_STRIP=$STRIP
2596   # Extract the first word of "strip", so it can be a program name with args.
2597 set dummy strip; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2601   $as_echo_n "(cached) " >&6
2602 else
2603   if test -n "$ac_ct_STRIP"; then
2604   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609   IFS=$as_save_IFS
2610   test -z "$as_dir" && as_dir=.
2611     for ac_exec_ext in '' $ac_executable_extensions; do
2612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613     ac_cv_prog_ac_ct_STRIP="strip"
2614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615     break 2
2616   fi
2617 done
2618   done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2624 if test -n "$ac_ct_STRIP"; then
2625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2626 $as_echo "$ac_ct_STRIP" >&6; }
2627 else
2628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2630 fi
2631
2632   if test "x$ac_ct_STRIP" = x; then
2633     STRIP=":"
2634   else
2635     case $cross_compiling:$ac_tool_warned in
2636 yes:)
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2639 ac_tool_warned=yes ;;
2640 esac
2641     STRIP=$ac_ct_STRIP
2642   fi
2643 else
2644   STRIP="$ac_cv_prog_STRIP"
2645 fi
2646
2647 fi
2648 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2649
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2651 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2652 if test -z "$MKDIR_P"; then
2653   if test "${ac_cv_path_mkdir+set}" = set; then :
2654   $as_echo_n "(cached) " >&6
2655 else
2656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2658 do
2659   IFS=$as_save_IFS
2660   test -z "$as_dir" && as_dir=.
2661     for ac_prog in mkdir gmkdir; do
2662          for ac_exec_ext in '' $ac_executable_extensions; do
2663            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2664            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2665              'mkdir (GNU coreutils) '* | \
2666              'mkdir (coreutils) '* | \
2667              'mkdir (fileutils) '4.1*)
2668                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2669                break 3;;
2670            esac
2671          done
2672        done
2673   done
2674 IFS=$as_save_IFS
2675
2676 fi
2677
2678   if test "${ac_cv_path_mkdir+set}" = set; then
2679     MKDIR_P="$ac_cv_path_mkdir -p"
2680   else
2681     # As a last resort, use the slow shell script.  Don't cache a
2682     # value for MKDIR_P within a source directory, because that will
2683     # break other packages using the cache if that directory is
2684     # removed, or if the value is a relative name.
2685     test -d ./--version && rmdir ./--version
2686     MKDIR_P="$ac_install_sh -d"
2687   fi
2688 fi
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2690 $as_echo "$MKDIR_P" >&6; }
2691
2692 mkdir_p="$MKDIR_P"
2693 case $mkdir_p in
2694   [\\/$]* | ?:[\\/]*) ;;
2695   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2696 esac
2697
2698 for ac_prog in gawk mawk nawk awk
2699 do
2700   # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy $ac_prog; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if test "${ac_cv_prog_AWK+set}" = set; then :
2705   $as_echo_n "(cached) " >&6
2706 else
2707   if test -n "$AWK"; then
2708   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713   IFS=$as_save_IFS
2714   test -z "$as_dir" && as_dir=.
2715     for ac_exec_ext in '' $ac_executable_extensions; do
2716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717     ac_cv_prog_AWK="$ac_prog"
2718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719     break 2
2720   fi
2721 done
2722   done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 AWK=$ac_cv_prog_AWK
2728 if test -n "$AWK"; then
2729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2730 $as_echo "$AWK" >&6; }
2731 else
2732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2734 fi
2735
2736
2737   test -n "$AWK" && break
2738 done
2739
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2741 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2742 set x ${MAKE-make}
2743 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2744 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2745   $as_echo_n "(cached) " >&6
2746 else
2747   cat >conftest.make <<\_ACEOF
2748 SHELL = /bin/sh
2749 all:
2750         @echo '@@@%%%=$(MAKE)=@@@%%%'
2751 _ACEOF
2752 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2753 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2754   *@@@%%%=?*=@@@%%%*)
2755     eval ac_cv_prog_make_${ac_make}_set=yes;;
2756   *)
2757     eval ac_cv_prog_make_${ac_make}_set=no;;
2758 esac
2759 rm -f conftest.make
2760 fi
2761 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2763 $as_echo "yes" >&6; }
2764   SET_MAKE=
2765 else
2766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2768   SET_MAKE="MAKE=${MAKE-make}"
2769 fi
2770
2771 rm -rf .tst 2>/dev/null
2772 mkdir .tst 2>/dev/null
2773 if test -d .tst; then
2774   am__leading_dot=.
2775 else
2776   am__leading_dot=_
2777 fi
2778 rmdir .tst 2>/dev/null
2779
2780 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2781   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2782   # is not polluted with repeated "-I."
2783   am__isrc=' -I$(srcdir)'
2784   # test to see if srcdir already configured
2785   if test -f $srcdir/config.status; then
2786     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2787   fi
2788 fi
2789
2790 # test whether we have cygpath
2791 if test -z "$CYGPATH_W"; then
2792   if (cygpath --version) >/dev/null 2>/dev/null; then
2793     CYGPATH_W='cygpath -w'
2794   else
2795     CYGPATH_W=echo
2796   fi
2797 fi
2798
2799
2800 # Define the identity of the package.
2801  PACKAGE=zlib
2802  VERSION=1.1.4
2803
2804
2805 cat >>confdefs.h <<_ACEOF
2806 #define PACKAGE "$PACKAGE"
2807 _ACEOF
2808
2809
2810 cat >>confdefs.h <<_ACEOF
2811 #define VERSION "$VERSION"
2812 _ACEOF
2813
2814 # Some tools Automake needs.
2815
2816 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2817
2818
2819 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2820
2821
2822 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2823
2824
2825 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2826
2827
2828 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2829
2830 # We need awk for the "check" target.  The system "awk" is bad on
2831 # some platforms.
2832 # Always define AMTAR for backward compatibility.  Yes, it's still used
2833 # in the wild :-(  We should find a proper way to deprecate it ...
2834 AMTAR='$${TAR-tar}'
2835
2836 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2837
2838
2839
2840
2841
2842
2843
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2845 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2846     # Check whether --enable-maintainer-mode was given.
2847 if test "${enable_maintainer_mode+set}" = set; then :
2848   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2849 else
2850   USE_MAINTAINER_MODE=no
2851 fi
2852
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2854 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2855    if test $USE_MAINTAINER_MODE = yes; then
2856   MAINTAINER_MODE_TRUE=
2857   MAINTAINER_MODE_FALSE='#'
2858 else
2859   MAINTAINER_MODE_TRUE='#'
2860   MAINTAINER_MODE_FALSE=
2861 fi
2862
2863   MAINT=$MAINTAINER_MODE_TRUE
2864
2865
2866
2867
2868 # Check whether --with-target-subdir was given.
2869 if test "${with_target_subdir+set}" = set; then :
2870   withval=$with_target_subdir;
2871 fi
2872
2873
2874 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2875    COMPPATH=.
2876 else
2877    COMPPATH=..
2878 fi
2879
2880
2881
2882 # Check whether --with-cross-host was given.
2883 if test "${with_cross_host+set}" = set; then :
2884   withval=$with_cross_host;
2885 fi
2886
2887
2888 # Check whether --enable-multilib was given.
2889 if test "${enable_multilib+set}" = set; then :
2890   enableval=$enable_multilib; case "${enableval}" in
2891   yes) multilib=yes ;;
2892   no)  multilib=no ;;
2893   *)   as_fn_error "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
2894  esac
2895 else
2896   test -z "$with_target_subdir" && multilib=no || multilib=yes
2897 fi
2898
2899
2900 # Check whether --with-system-zlib was given.
2901 if test "${with_system_zlib+set}" = set; then :
2902   withval=$with_system_zlib;
2903 fi
2904
2905
2906 # Make sure we don't test executables when making cross-tools.
2907
2908
2909 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2910 # We must force CC to /not/ be precious variables; otherwise
2911 # the wrong, non-multilib-adjusted value will be used in multilibs.
2912 # As a side effect, we have to subst CFLAGS ourselves.
2913
2914
2915
2916 ac_ext=c
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 if test -n "$ac_tool_prefix"; then
2922   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2923 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_prog_CC+set}" = set; then :
2927   $as_echo_n "(cached) " >&6
2928 else
2929   if test -n "$CC"; then
2930   ac_cv_prog_CC="$CC" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935   IFS=$as_save_IFS
2936   test -z "$as_dir" && as_dir=.
2937     for ac_exec_ext in '' $ac_executable_extensions; do
2938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941     break 2
2942   fi
2943 done
2944   done
2945 IFS=$as_save_IFS
2946
2947 fi
2948 fi
2949 CC=$ac_cv_prog_CC
2950 if test -n "$CC"; then
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2952 $as_echo "$CC" >&6; }
2953 else
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 fi
2957
2958
2959 fi
2960 if test -z "$ac_cv_prog_CC"; then
2961   ac_ct_CC=$CC
2962   # Extract the first word of "gcc", so it can be a program name with args.
2963 set dummy gcc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2967   $as_echo_n "(cached) " >&6
2968 else
2969   if test -n "$ac_ct_CC"; then
2970   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975   IFS=$as_save_IFS
2976   test -z "$as_dir" && as_dir=.
2977     for ac_exec_ext in '' $ac_executable_extensions; do
2978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979     ac_cv_prog_ac_ct_CC="gcc"
2980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981     break 2
2982   fi
2983 done
2984   done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990 if test -n "$ac_ct_CC"; then
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2992 $as_echo "$ac_ct_CC" >&6; }
2993 else
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998   if test "x$ac_ct_CC" = x; then
2999     CC=""
3000   else
3001     case $cross_compiling:$ac_tool_warned in
3002 yes:)
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005 ac_tool_warned=yes ;;
3006 esac
3007     CC=$ac_ct_CC
3008   fi
3009 else
3010   CC="$ac_cv_prog_CC"
3011 fi
3012
3013 if test -z "$CC"; then
3014           if test -n "$ac_tool_prefix"; then
3015     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3016 set dummy ${ac_tool_prefix}cc; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if test "${ac_cv_prog_CC+set}" = set; then :
3020   $as_echo_n "(cached) " >&6
3021 else
3022   if test -n "$CC"; then
3023   ac_cv_prog_CC="$CC" # Let the user override the test.
3024 else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3027 do
3028   IFS=$as_save_IFS
3029   test -z "$as_dir" && as_dir=.
3030     for ac_exec_ext in '' $ac_executable_extensions; do
3031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032     ac_cv_prog_CC="${ac_tool_prefix}cc"
3033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034     break 2
3035   fi
3036 done
3037   done
3038 IFS=$as_save_IFS
3039
3040 fi
3041 fi
3042 CC=$ac_cv_prog_CC
3043 if test -n "$CC"; then
3044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3045 $as_echo "$CC" >&6; }
3046 else
3047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3049 fi
3050
3051
3052   fi
3053 fi
3054 if test -z "$CC"; then
3055   # Extract the first word of "cc", so it can be a program name with args.
3056 set dummy cc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if test "${ac_cv_prog_CC+set}" = set; then :
3060   $as_echo_n "(cached) " >&6
3061 else
3062   if test -n "$CC"; then
3063   ac_cv_prog_CC="$CC" # Let the user override the test.
3064 else
3065   ac_prog_rejected=no
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069   IFS=$as_save_IFS
3070   test -z "$as_dir" && as_dir=.
3071     for ac_exec_ext in '' $ac_executable_extensions; do
3072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3074        ac_prog_rejected=yes
3075        continue
3076      fi
3077     ac_cv_prog_CC="cc"
3078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079     break 2
3080   fi
3081 done
3082   done
3083 IFS=$as_save_IFS
3084
3085 if test $ac_prog_rejected = yes; then
3086   # We found a bogon in the path, so make sure we never use it.
3087   set dummy $ac_cv_prog_CC
3088   shift
3089   if test $# != 0; then
3090     # We chose a different compiler from the bogus one.
3091     # However, it has the same basename, so the bogon will be chosen
3092     # first if we set CC to just the basename; use the full file name.
3093     shift
3094     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3095   fi
3096 fi
3097 fi
3098 fi
3099 CC=$ac_cv_prog_CC
3100 if test -n "$CC"; then
3101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3103 else
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108
3109 fi
3110 if test -z "$CC"; then
3111   if test -n "$ac_tool_prefix"; then
3112   for ac_prog in cl.exe
3113   do
3114     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if test "${ac_cv_prog_CC+set}" = set; then :
3119   $as_echo_n "(cached) " >&6
3120 else
3121   if test -n "$CC"; then
3122   ac_cv_prog_CC="$CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127   IFS=$as_save_IFS
3128   test -z "$as_dir" && as_dir=.
3129     for ac_exec_ext in '' $ac_executable_extensions; do
3130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133     break 2
3134   fi
3135 done
3136   done
3137 IFS=$as_save_IFS
3138
3139 fi
3140 fi
3141 CC=$ac_cv_prog_CC
3142 if test -n "$CC"; then
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3145 else
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150
3151     test -n "$CC" && break
3152   done
3153 fi
3154 if test -z "$CC"; then
3155   ac_ct_CC=$CC
3156   for ac_prog in cl.exe
3157 do
3158   # Extract the first word of "$ac_prog", so it can be a program name with args.
3159 set dummy $ac_prog; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3163   $as_echo_n "(cached) " >&6
3164 else
3165   if test -n "$ac_ct_CC"; then
3166   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171   IFS=$as_save_IFS
3172   test -z "$as_dir" && as_dir=.
3173     for ac_exec_ext in '' $ac_executable_extensions; do
3174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175     ac_cv_prog_ac_ct_CC="$ac_prog"
3176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177     break 2
3178   fi
3179 done
3180   done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3186 if test -n "$ac_ct_CC"; then
3187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3188 $as_echo "$ac_ct_CC" >&6; }
3189 else
3190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194
3195   test -n "$ac_ct_CC" && break
3196 done
3197
3198   if test "x$ac_ct_CC" = x; then
3199     CC=""
3200   else
3201     case $cross_compiling:$ac_tool_warned in
3202 yes:)
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205 ac_tool_warned=yes ;;
3206 esac
3207     CC=$ac_ct_CC
3208   fi
3209 fi
3210
3211 fi
3212
3213
3214 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216 as_fn_error "no acceptable C compiler found in \$PATH
3217 See \`config.log' for more details." "$LINENO" 5; }
3218
3219 # Provide some information about the compiler.
3220 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3221 set X $ac_compile
3222 ac_compiler=$2
3223 for ac_option in --version -v -V -qversion; do
3224   { { ac_try="$ac_compiler $ac_option >&5"
3225 case "(($ac_try" in
3226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227   *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3232   ac_status=$?
3233   if test -s conftest.err; then
3234     sed '10a\
3235 ... rest of stderr output deleted ...
3236          10q' conftest.err >conftest.er1
3237     cat conftest.er1 >&5
3238     rm -f conftest.er1 conftest.err
3239   fi
3240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241   test $ac_status = 0; }
3242 done
3243
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h.  */
3246
3247 int
3248 main ()
3249 {
3250
3251   ;
3252   return 0;
3253 }
3254 _ACEOF
3255 # FIXME: Cleanup?
3256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3257   (eval $ac_link) 2>&5
3258   ac_status=$?
3259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260   test $ac_status = 0; }; then :
3261   gcc_no_link=no
3262 else
3263   gcc_no_link=yes
3264 fi
3265 if test x$gcc_no_link = xyes; then
3266   # Setting cross_compile will disable run tests; it will
3267   # also disable AC_CHECK_FILE but that's generally
3268   # correct if we can't link.
3269   cross_compiling=yes
3270   EXEEXT=
3271 else
3272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h.  */
3274
3275 int
3276 main ()
3277 {
3278
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 ac_clean_files_save=$ac_clean_files
3284 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3285 # Try to create an executable without -o first, disregard a.out.
3286 # It will help us diagnose broken compilers, and finding out an intuition
3287 # of exeext.
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3289 $as_echo_n "checking for C compiler default output file name... " >&6; }
3290 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3291
3292 # The possible output files:
3293 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3294
3295 ac_rmfiles=
3296 for ac_file in $ac_files
3297 do
3298   case $ac_file in
3299     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3300     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3301   esac
3302 done
3303 rm -f $ac_rmfiles
3304
3305 if { { ac_try="$ac_link_default"
3306 case "(($ac_try" in
3307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308   *) ac_try_echo=$ac_try;;
3309 esac
3310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311 $as_echo "$ac_try_echo"; } >&5
3312   (eval "$ac_link_default") 2>&5
3313   ac_status=$?
3314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315   test $ac_status = 0; }; then :
3316   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3317 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3318 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3319 # so that the user can short-circuit this test for compilers unknown to
3320 # Autoconf.
3321 for ac_file in $ac_files ''
3322 do
3323   test -f "$ac_file" || continue
3324   case $ac_file in
3325     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3326         ;;
3327     [ab].out )
3328         # We found the default executable, but exeext='' is most
3329         # certainly right.
3330         break;;
3331     *.* )
3332         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3333         then :; else
3334            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3335         fi
3336         # We set ac_cv_exeext here because the later test for it is not
3337         # safe: cross compilers may not add the suffix if given an `-o'
3338         # argument, so we may need to know it at that point already.
3339         # Even if this section looks crufty: it has the advantage of
3340         # actually working.
3341         break;;
3342     * )
3343         break;;
3344   esac
3345 done
3346 test "$ac_cv_exeext" = no && ac_cv_exeext=
3347
3348 else
3349   ac_file=''
3350 fi
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3352 $as_echo "$ac_file" >&6; }
3353 if test -z "$ac_file"; then :
3354   $as_echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3356
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 { as_fn_set_status 77
3360 as_fn_error "C compiler cannot create executables
3361 See \`config.log' for more details." "$LINENO" 5; }; }
3362 fi
3363 ac_exeext=$ac_cv_exeext
3364
3365 # Check that the compiler produces executables we can run.  If not, either
3366 # the compiler is broken, or we cross compile.
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3368 $as_echo_n "checking whether the C compiler works... " >&6; }
3369 # If not cross compiling, check that we can run a simple program.
3370 if test "$cross_compiling" != yes; then
3371   if { ac_try='./$ac_file'
3372   { { case "(($ac_try" in
3373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374   *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378   (eval "$ac_try") 2>&5
3379   ac_status=$?
3380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381   test $ac_status = 0; }; }; then
3382     cross_compiling=no
3383   else
3384     if test "$cross_compiling" = maybe; then
3385         cross_compiling=yes
3386     else
3387         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 as_fn_error "cannot run C compiled programs.
3390 If you meant to cross compile, use \`--host'.
3391 See \`config.log' for more details." "$LINENO" 5; }
3392     fi
3393   fi
3394 fi
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3396 $as_echo "yes" >&6; }
3397
3398 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3399 ac_clean_files=$ac_clean_files_save
3400 # Check that the compiler produces executables we can run.  If not, either
3401 # the compiler is broken, or we cross compile.
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3403 $as_echo_n "checking whether we are cross compiling... " >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3405 $as_echo "$cross_compiling" >&6; }
3406
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3408 $as_echo_n "checking for suffix of executables... " >&6; }
3409 if { { ac_try="$ac_link"
3410 case "(($ac_try" in
3411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412   *) ac_try_echo=$ac_try;;
3413 esac
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416   (eval "$ac_link") 2>&5
3417   ac_status=$?
3418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419   test $ac_status = 0; }; then :
3420   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3421 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3422 # work properly (i.e., refer to `conftest.exe'), while it won't with
3423 # `rm'.
3424 for ac_file in conftest.exe conftest conftest.*; do
3425   test -f "$ac_file" || continue
3426   case $ac_file in
3427     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3428     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3429           break;;
3430     * ) break;;
3431   esac
3432 done
3433 else
3434   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error "cannot compute suffix of executables: cannot compile and link
3437 See \`config.log' for more details." "$LINENO" 5; }
3438 fi
3439 rm -f conftest$ac_cv_exeext
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3441 $as_echo "$ac_cv_exeext" >&6; }
3442
3443 rm -f conftest.$ac_ext
3444 EXEEXT=$ac_cv_exeext
3445 ac_exeext=$EXEEXT
3446 fi
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3448 $as_echo_n "checking for suffix of object files... " >&6; }
3449 if test "${ac_cv_objext+set}" = set; then :
3450   $as_echo_n "(cached) " >&6
3451 else
3452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h.  */
3454
3455 int
3456 main ()
3457 {
3458
3459   ;
3460   return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.o conftest.obj
3464 if { { ac_try="$ac_compile"
3465 case "(($ac_try" in
3466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467   *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471   (eval "$ac_compile") 2>&5
3472   ac_status=$?
3473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474   test $ac_status = 0; }; then :
3475   for ac_file in conftest.o conftest.obj conftest.*; do
3476   test -f "$ac_file" || continue;
3477   case $ac_file in
3478     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3479     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3480        break;;
3481   esac
3482 done
3483 else
3484   $as_echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3486
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error "cannot compute suffix of object files: cannot compile
3490 See \`config.log' for more details." "$LINENO" 5; }
3491 fi
3492 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3493 fi
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3495 $as_echo "$ac_cv_objext" >&6; }
3496 OBJEXT=$ac_cv_objext
3497 ac_objext=$OBJEXT
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3499 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3500 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3501   $as_echo_n "(cached) " >&6
3502 else
3503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h.  */
3505
3506 int
3507 main ()
3508 {
3509 #ifndef __GNUC__
3510        choke me
3511 #endif
3512
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518   ac_compiler_gnu=yes
3519 else
3520   ac_compiler_gnu=no
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3524
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3527 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3528 if test $ac_compiler_gnu = yes; then
3529   GCC=yes
3530 else
3531   GCC=
3532 fi
3533 ac_test_CFLAGS=${CFLAGS+set}
3534 ac_save_CFLAGS=$CFLAGS
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3536 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3537 if test "${ac_cv_prog_cc_g+set}" = set; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   ac_save_c_werror_flag=$ac_c_werror_flag
3541    ac_c_werror_flag=yes
3542    ac_cv_prog_cc_g=no
3543    CFLAGS="-g"
3544    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h.  */
3546
3547 int
3548 main ()
3549 {
3550
3551   ;
3552   return 0;
3553 }
3554 _ACEOF
3555 if ac_fn_c_try_compile "$LINENO"; then :
3556   ac_cv_prog_cc_g=yes
3557 else
3558   CFLAGS=""
3559       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h.  */
3561
3562 int
3563 main ()
3564 {
3565
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 if ac_fn_c_try_compile "$LINENO"; then :
3571
3572 else
3573   ac_c_werror_flag=$ac_save_c_werror_flag
3574          CFLAGS="-g"
3575          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h.  */
3577
3578 int
3579 main ()
3580 {
3581
3582   ;
3583   return 0;
3584 }
3585 _ACEOF
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587   ac_cv_prog_cc_g=yes
3588 fi
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 fi
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594    ac_c_werror_flag=$ac_save_c_werror_flag
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3597 $as_echo "$ac_cv_prog_cc_g" >&6; }
3598 if test "$ac_test_CFLAGS" = set; then
3599   CFLAGS=$ac_save_CFLAGS
3600 elif test $ac_cv_prog_cc_g = yes; then
3601   if test "$GCC" = yes; then
3602     CFLAGS="-g -O2"
3603   else
3604     CFLAGS="-g"
3605   fi
3606 else
3607   if test "$GCC" = yes; then
3608     CFLAGS="-O2"
3609   else
3610     CFLAGS=
3611   fi
3612 fi
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3614 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3615 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3616   $as_echo_n "(cached) " >&6
3617 else
3618   ac_cv_prog_cc_c89=no
3619 ac_save_CC=$CC
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h.  */
3622 #include <stdarg.h>
3623 #include <stdio.h>
3624 #include <sys/types.h>
3625 #include <sys/stat.h>
3626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3627 struct buf { int x; };
3628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3629 static char *e (p, i)
3630      char **p;
3631      int i;
3632 {
3633   return p[i];
3634 }
3635 static char *f (char * (*g) (char **, int), char **p, ...)
3636 {
3637   char *s;
3638   va_list v;
3639   va_start (v,p);
3640   s = g (p, va_arg (v,int));
3641   va_end (v);
3642   return s;
3643 }
3644
3645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3646    function prototypes and stuff, but not '\xHH' hex character constants.
3647    These don't provoke an error unfortunately, instead are silently treated
3648    as 'x'.  The following induces an error, until -std is added to get
3649    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3650    array size at least.  It's necessary to write '\x00'==0 to get something
3651    that's true only with -std.  */
3652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3653
3654 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3655    inside strings and character constants.  */
3656 #define FOO(x) 'x'
3657 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3658
3659 int test (int i, double x);
3660 struct s1 {int (*f) (int a);};
3661 struct s2 {int (*f) (double a);};
3662 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663 int argc;
3664 char **argv;
3665 int
3666 main ()
3667 {
3668 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3669   ;
3670   return 0;
3671 }
3672 _ACEOF
3673 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3674         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3675 do
3676   CC="$ac_save_CC $ac_arg"
3677   if ac_fn_c_try_compile "$LINENO"; then :
3678   ac_cv_prog_cc_c89=$ac_arg
3679 fi
3680 rm -f core conftest.err conftest.$ac_objext
3681   test "x$ac_cv_prog_cc_c89" != "xno" && break
3682 done
3683 rm -f conftest.$ac_ext
3684 CC=$ac_save_CC
3685
3686 fi
3687 # AC_CACHE_VAL
3688 case "x$ac_cv_prog_cc_c89" in
3689   x)
3690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 $as_echo "none needed" >&6; } ;;
3692   xno)
3693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3694 $as_echo "unsupported" >&6; } ;;
3695   *)
3696     CC="$CC $ac_cv_prog_cc_c89"
3697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3698 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3699 esac
3700 if test "x$ac_cv_prog_cc_c89" != xno; then :
3701
3702 fi
3703
3704 ac_ext=c
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709 DEPDIR="${am__leading_dot}deps"
3710
3711 ac_config_commands="$ac_config_commands depfiles"
3712
3713
3714 am_make=${MAKE-make}
3715 cat > confinc << 'END'
3716 am__doit:
3717         @echo this is the am__doit target
3718 .PHONY: am__doit
3719 END
3720 # If we don't find an include directive, just comment out the code.
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3722 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3723 am__include="#"
3724 am__quote=
3725 _am_result=none
3726 # First try GNU make style include.
3727 echo "include confinc" > confmf
3728 # Ignore all kinds of additional output from `make'.
3729 case `$am_make -s -f confmf 2> /dev/null` in #(
3730 *the\ am__doit\ target*)
3731   am__include=include
3732   am__quote=
3733   _am_result=GNU
3734   ;;
3735 esac
3736 # Now try BSD make style include.
3737 if test "$am__include" = "#"; then
3738    echo '.include "confinc"' > confmf
3739    case `$am_make -s -f confmf 2> /dev/null` in #(
3740    *the\ am__doit\ target*)
3741      am__include=.include
3742      am__quote="\""
3743      _am_result=BSD
3744      ;;
3745    esac
3746 fi
3747
3748
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3750 $as_echo "$_am_result" >&6; }
3751 rm -f confinc confmf
3752
3753 # Check whether --enable-dependency-tracking was given.
3754 if test "${enable_dependency_tracking+set}" = set; then :
3755   enableval=$enable_dependency_tracking;
3756 fi
3757
3758 if test "x$enable_dependency_tracking" != xno; then
3759   am_depcomp="$ac_aux_dir/depcomp"
3760   AMDEPBACKSLASH='\'
3761   am__nodep='_no'
3762 fi
3763  if test "x$enable_dependency_tracking" != xno; then
3764   AMDEP_TRUE=
3765   AMDEP_FALSE='#'
3766 else
3767   AMDEP_TRUE='#'
3768   AMDEP_FALSE=
3769 fi
3770
3771
3772
3773 depcc="$CC"   am_compiler_list=
3774
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3776 $as_echo_n "checking dependency style of $depcc... " >&6; }
3777 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3778   $as_echo_n "(cached) " >&6
3779 else
3780   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3781   # We make a subdir and do the tests there.  Otherwise we can end up
3782   # making bogus files that we don't know about and never remove.  For
3783   # instance it was reported that on HP-UX the gcc test will end up
3784   # making a dummy file named `D' -- because `-MD' means `put the output
3785   # in D'.
3786   rm -rf conftest.dir
3787   mkdir conftest.dir
3788   # Copy depcomp to subdir because otherwise we won't find it if we're
3789   # using a relative directory.
3790   cp "$am_depcomp" conftest.dir
3791   cd conftest.dir
3792   # We will build objects and dependencies in a subdirectory because
3793   # it helps to detect inapplicable dependency modes.  For instance
3794   # both Tru64's cc and ICC support -MD to output dependencies as a
3795   # side effect of compilation, but ICC will put the dependencies in
3796   # the current directory while Tru64 will put them in the object
3797   # directory.
3798   mkdir sub
3799
3800   am_cv_CC_dependencies_compiler_type=none
3801   if test "$am_compiler_list" = ""; then
3802      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3803   fi
3804   am__universal=false
3805   case " $depcc " in #(
3806      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3807      esac
3808
3809   for depmode in $am_compiler_list; do
3810     # Setup a source with many dependencies, because some compilers
3811     # like to wrap large dependency lists on column 80 (with \), and
3812     # we should not choose a depcomp mode which is confused by this.
3813     #
3814     # We need to recreate these files for each test, as the compiler may
3815     # overwrite some of them when testing with obscure command lines.
3816     # This happens at least with the AIX C compiler.
3817     : > sub/conftest.c
3818     for i in 1 2 3 4 5 6; do
3819       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3820       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3821       # Solaris 8's {/usr,}/bin/sh.
3822       touch sub/conftst$i.h
3823     done
3824     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3825
3826     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3827     # mode.  It turns out that the SunPro C++ compiler does not properly
3828     # handle `-M -o', and we need to detect this.  Also, some Intel
3829     # versions had trouble with output in subdirs
3830     am__obj=sub/conftest.${OBJEXT-o}
3831     am__minus_obj="-o $am__obj"
3832     case $depmode in
3833     gcc)
3834       # This depmode causes a compiler race in universal mode.
3835       test "$am__universal" = false || continue
3836       ;;
3837     nosideeffect)
3838       # after this tag, mechanisms are not by side-effect, so they'll
3839       # only be used when explicitly requested
3840       if test "x$enable_dependency_tracking" = xyes; then
3841         continue
3842       else
3843         break
3844       fi
3845       ;;
3846     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3847       # This compiler won't grok `-c -o', but also, the minuso test has
3848       # not run yet.  These depmodes are late enough in the game, and
3849       # so weak that their functioning should not be impacted.
3850       am__obj=conftest.${OBJEXT-o}
3851       am__minus_obj=
3852       ;;
3853     none) break ;;
3854     esac
3855     if depmode=$depmode \
3856        source=sub/conftest.c object=$am__obj \
3857        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3858        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3859          >/dev/null 2>conftest.err &&
3860        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3861        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3862        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3863        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3864       # icc doesn't choke on unknown options, it will just issue warnings
3865       # or remarks (even with -Werror).  So we grep stderr for any message
3866       # that says an option was ignored or not supported.
3867       # When given -MP, icc 7.0 and 7.1 complain thusly:
3868       #   icc: Command line warning: ignoring option '-M'; no argument required
3869       # The diagnosis changed in icc 8.0:
3870       #   icc: Command line remark: option '-MP' not supported
3871       if (grep 'ignoring option' conftest.err ||
3872           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3873         am_cv_CC_dependencies_compiler_type=$depmode
3874         break
3875       fi
3876     fi
3877   done
3878
3879   cd ..
3880   rm -rf conftest.dir
3881 else
3882   am_cv_CC_dependencies_compiler_type=none
3883 fi
3884
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3887 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3888 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3889
3890  if
3891   test "x$enable_dependency_tracking" != xno \
3892   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3893   am__fastdepCC_TRUE=
3894   am__fastdepCC_FALSE='#'
3895 else
3896   am__fastdepCC_TRUE='#'
3897   am__fastdepCC_FALSE=
3898 fi
3899
3900
3901
3902
3903
3904
3905 case `pwd` in
3906   *\ * | *\     *)
3907     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3908 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3909 esac
3910
3911
3912
3913 macro_version='2.2.7a'
3914 macro_revision='1.3134'
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928 ltmain="$ac_aux_dir/ltmain.sh"
3929
3930 # Backslashify metacharacters that are still active within
3931 # double-quoted strings.
3932 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3933
3934 # Same as above, but do not quote variable references.
3935 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3936
3937 # Sed substitution to delay expansion of an escaped shell variable in a
3938 # double_quote_subst'ed string.
3939 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3940
3941 # Sed substitution to delay expansion of an escaped single quote.
3942 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3943
3944 # Sed substitution to avoid accidental globbing in evaled expressions
3945 no_glob_subst='s/\*/\\\*/g'
3946
3947 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3948 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3949 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3950
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3952 $as_echo_n "checking how to print strings... " >&6; }
3953 # Test print first, because it will be a builtin if present.
3954 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3955    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3956   ECHO='print -r --'
3957 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3958   ECHO='printf %s\n'
3959 else
3960   # Use this function as a fallback that always works.
3961   func_fallback_echo ()
3962   {
3963     eval 'cat <<_LTECHO_EOF
3964 $1
3965 _LTECHO_EOF'
3966   }
3967   ECHO='func_fallback_echo'
3968 fi
3969
3970 # func_echo_all arg...
3971 # Invoke $ECHO with all args, space-separated.
3972 func_echo_all ()
3973 {
3974     $ECHO ""
3975 }
3976
3977 case "$ECHO" in
3978   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3979 $as_echo "printf" >&6; } ;;
3980   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3981 $as_echo "print -r" >&6; } ;;
3982   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3983 $as_echo "cat" >&6; } ;;
3984 esac
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4000 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4001 if test "${ac_cv_path_SED+set}" = set; then :
4002   $as_echo_n "(cached) " >&6
4003 else
4004             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4005      for ac_i in 1 2 3 4 5 6 7; do
4006        ac_script="$ac_script$as_nl$ac_script"
4007      done
4008      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4009      { ac_script=; unset ac_script;}
4010      if test -z "$SED"; then
4011   ac_path_SED_found=false
4012   # Loop through the user's path and test for each of PROGNAME-LIST
4013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016   IFS=$as_save_IFS
4017   test -z "$as_dir" && as_dir=.
4018     for ac_prog in sed gsed; do
4019     for ac_exec_ext in '' $ac_executable_extensions; do
4020       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4021       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4022 # Check for GNU ac_path_SED and select it if it is found.
4023   # Check for GNU $ac_path_SED
4024 case `"$ac_path_SED" --version 2>&1` in
4025 *GNU*)
4026   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4027 *)
4028   ac_count=0
4029   $as_echo_n 0123456789 >"conftest.in"
4030   while :
4031   do
4032     cat "conftest.in" "conftest.in" >"conftest.tmp"
4033     mv "conftest.tmp" "conftest.in"
4034     cp "conftest.in" "conftest.nl"
4035     $as_echo '' >> "conftest.nl"
4036     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4037     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4038     as_fn_arith $ac_count + 1 && ac_count=$as_val
4039     if test $ac_count -gt ${ac_path_SED_max-0}; then
4040       # Best one so far, save it but keep looking for a better one
4041       ac_cv_path_SED="$ac_path_SED"
4042       ac_path_SED_max=$ac_count
4043     fi
4044     # 10*(2^10) chars as input seems more than enough
4045     test $ac_count -gt 10 && break
4046   done
4047   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4048 esac
4049
4050       $ac_path_SED_found && break 3
4051     done
4052   done
4053   done
4054 IFS=$as_save_IFS
4055   if test -z "$ac_cv_path_SED"; then
4056     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4057   fi
4058 else
4059   ac_cv_path_SED=$SED
4060 fi
4061
4062 fi
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4064 $as_echo "$ac_cv_path_SED" >&6; }
4065  SED="$ac_cv_path_SED"
4066   rm -f conftest.sed
4067
4068 test -z "$SED" && SED=sed
4069 Xsed="$SED -e 1s/^X//"
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4082 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4083 if test "${ac_cv_path_GREP+set}" = set; then :
4084   $as_echo_n "(cached) " >&6
4085 else
4086   if test -z "$GREP"; then
4087   ac_path_GREP_found=false
4088   # Loop through the user's path and test for each of PROGNAME-LIST
4089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4091 do
4092   IFS=$as_save_IFS
4093   test -z "$as_dir" && as_dir=.
4094     for ac_prog in grep ggrep; do
4095     for ac_exec_ext in '' $ac_executable_extensions; do
4096       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4097       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4098 # Check for GNU ac_path_GREP and select it if it is found.
4099   # Check for GNU $ac_path_GREP
4100 case `"$ac_path_GREP" --version 2>&1` in
4101 *GNU*)
4102   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4103 *)
4104   ac_count=0
4105   $as_echo_n 0123456789 >"conftest.in"
4106   while :
4107   do
4108     cat "conftest.in" "conftest.in" >"conftest.tmp"
4109     mv "conftest.tmp" "conftest.in"
4110     cp "conftest.in" "conftest.nl"
4111     $as_echo 'GREP' >> "conftest.nl"
4112     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4113     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4114     as_fn_arith $ac_count + 1 && ac_count=$as_val
4115     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4116       # Best one so far, save it but keep looking for a better one
4117       ac_cv_path_GREP="$ac_path_GREP"
4118       ac_path_GREP_max=$ac_count
4119     fi
4120     # 10*(2^10) chars as input seems more than enough
4121     test $ac_count -gt 10 && break
4122   done
4123   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4124 esac
4125
4126       $ac_path_GREP_found && break 3
4127     done
4128   done
4129   done
4130 IFS=$as_save_IFS
4131   if test -z "$ac_cv_path_GREP"; then
4132     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4133   fi
4134 else
4135   ac_cv_path_GREP=$GREP
4136 fi
4137
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4140 $as_echo "$ac_cv_path_GREP" >&6; }
4141  GREP="$ac_cv_path_GREP"
4142
4143
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4145 $as_echo_n "checking for egrep... " >&6; }
4146 if test "${ac_cv_path_EGREP+set}" = set; then :
4147   $as_echo_n "(cached) " >&6
4148 else
4149   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4150    then ac_cv_path_EGREP="$GREP -E"
4151    else
4152      if test -z "$EGREP"; then
4153   ac_path_EGREP_found=false
4154   # Loop through the user's path and test for each of PROGNAME-LIST
4155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4157 do
4158   IFS=$as_save_IFS
4159   test -z "$as_dir" && as_dir=.
4160     for ac_prog in egrep; do
4161     for ac_exec_ext in '' $ac_executable_extensions; do
4162       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4163       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4164 # Check for GNU ac_path_EGREP and select it if it is found.
4165   # Check for GNU $ac_path_EGREP
4166 case `"$ac_path_EGREP" --version 2>&1` in
4167 *GNU*)
4168   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4169 *)
4170   ac_count=0
4171   $as_echo_n 0123456789 >"conftest.in"
4172   while :
4173   do
4174     cat "conftest.in" "conftest.in" >"conftest.tmp"
4175     mv "conftest.tmp" "conftest.in"
4176     cp "conftest.in" "conftest.nl"
4177     $as_echo 'EGREP' >> "conftest.nl"
4178     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4179     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4180     as_fn_arith $ac_count + 1 && ac_count=$as_val
4181     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4182       # Best one so far, save it but keep looking for a better one
4183       ac_cv_path_EGREP="$ac_path_EGREP"
4184       ac_path_EGREP_max=$ac_count
4185     fi
4186     # 10*(2^10) chars as input seems more than enough
4187     test $ac_count -gt 10 && break
4188   done
4189   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4190 esac
4191
4192       $ac_path_EGREP_found && break 3
4193     done
4194   done
4195   done
4196 IFS=$as_save_IFS
4197   if test -z "$ac_cv_path_EGREP"; then
4198     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4199   fi
4200 else
4201   ac_cv_path_EGREP=$EGREP
4202 fi
4203
4204    fi
4205 fi
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4207 $as_echo "$ac_cv_path_EGREP" >&6; }
4208  EGREP="$ac_cv_path_EGREP"
4209
4210
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4212 $as_echo_n "checking for fgrep... " >&6; }
4213 if test "${ac_cv_path_FGREP+set}" = set; then :
4214   $as_echo_n "(cached) " >&6
4215 else
4216   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4217    then ac_cv_path_FGREP="$GREP -F"
4218    else
4219      if test -z "$FGREP"; then
4220   ac_path_FGREP_found=false
4221   # Loop through the user's path and test for each of PROGNAME-LIST
4222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4224 do
4225   IFS=$as_save_IFS
4226   test -z "$as_dir" && as_dir=.
4227     for ac_prog in fgrep; do
4228     for ac_exec_ext in '' $ac_executable_extensions; do
4229       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4230       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4231 # Check for GNU ac_path_FGREP and select it if it is found.
4232   # Check for GNU $ac_path_FGREP
4233 case `"$ac_path_FGREP" --version 2>&1` in
4234 *GNU*)
4235   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4236 *)
4237   ac_count=0
4238   $as_echo_n 0123456789 >"conftest.in"
4239   while :
4240   do
4241     cat "conftest.in" "conftest.in" >"conftest.tmp"
4242     mv "conftest.tmp" "conftest.in"
4243     cp "conftest.in" "conftest.nl"
4244     $as_echo 'FGREP' >> "conftest.nl"
4245     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4246     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4247     as_fn_arith $ac_count + 1 && ac_count=$as_val
4248     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4249       # Best one so far, save it but keep looking for a better one
4250       ac_cv_path_FGREP="$ac_path_FGREP"
4251       ac_path_FGREP_max=$ac_count
4252     fi
4253     # 10*(2^10) chars as input seems more than enough
4254     test $ac_count -gt 10 && break
4255   done
4256   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4257 esac
4258
4259       $ac_path_FGREP_found && break 3
4260     done
4261   done
4262   done
4263 IFS=$as_save_IFS
4264   if test -z "$ac_cv_path_FGREP"; then
4265     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4266   fi
4267 else
4268   ac_cv_path_FGREP=$FGREP
4269 fi
4270
4271    fi
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4274 $as_echo "$ac_cv_path_FGREP" >&6; }
4275  FGREP="$ac_cv_path_FGREP"
4276
4277
4278 test -z "$GREP" && GREP=grep
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298 # Check whether --with-gnu-ld was given.
4299 if test "${with_gnu_ld+set}" = set; then :
4300   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4301 else
4302   with_gnu_ld=no
4303 fi
4304
4305 ac_prog=ld
4306 if test "$GCC" = yes; then
4307   # Check if gcc -print-prog-name=ld gives a path.
4308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4309 $as_echo_n "checking for ld used by $CC... " >&6; }
4310   case $host in
4311   *-*-mingw*)
4312     # gcc leaves a trailing carriage return which upsets mingw
4313     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4314   *)
4315     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4316   esac
4317   case $ac_prog in
4318     # Accept absolute paths.
4319     [\\/]* | ?:[\\/]*)
4320       re_direlt='/[^/][^/]*/\.\./'
4321       # Canonicalize the pathname of ld
4322       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4323       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4324         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4325       done
4326       test -z "$LD" && LD="$ac_prog"
4327       ;;
4328   "")
4329     # If it fails, then pretend we aren't using GCC.
4330     ac_prog=ld
4331     ;;
4332   *)
4333     # If it is relative, then search for the first ld in PATH.
4334     with_gnu_ld=unknown
4335     ;;
4336   esac
4337 elif test "$with_gnu_ld" = yes; then
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4339 $as_echo_n "checking for GNU ld... " >&6; }
4340 else
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4342 $as_echo_n "checking for non-GNU ld... " >&6; }
4343 fi
4344 if test "${lt_cv_path_LD+set}" = set; then :
4345   $as_echo_n "(cached) " >&6
4346 else
4347   if test -z "$LD"; then
4348   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4349   for ac_dir in $PATH; do
4350     IFS="$lt_save_ifs"
4351     test -z "$ac_dir" && ac_dir=.
4352     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4353       lt_cv_path_LD="$ac_dir/$ac_prog"
4354       # Check to see if the program is GNU ld.  I'd rather use --version,
4355       # but apparently some variants of GNU ld only accept -v.
4356       # Break only if it was the GNU/non-GNU ld that we prefer.
4357       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4358       *GNU* | *'with BFD'*)
4359         test "$with_gnu_ld" != no && break
4360         ;;
4361       *)
4362         test "$with_gnu_ld" != yes && break
4363         ;;
4364       esac
4365     fi
4366   done
4367   IFS="$lt_save_ifs"
4368 else
4369   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4370 fi
4371 fi
4372
4373 LD="$lt_cv_path_LD"
4374 if test -n "$LD"; then
4375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4376 $as_echo "$LD" >&6; }
4377 else
4378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379 $as_echo "no" >&6; }
4380 fi
4381 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4383 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4384 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4385   $as_echo_n "(cached) " >&6
4386 else
4387   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4388 case `$LD -v 2>&1 </dev/null` in
4389 *GNU* | *'with BFD'*)
4390   lt_cv_prog_gnu_ld=yes
4391   ;;
4392 *)
4393   lt_cv_prog_gnu_ld=no
4394   ;;
4395 esac
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4398 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4399 with_gnu_ld=$lt_cv_prog_gnu_ld
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4410 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4411 if test "${lt_cv_path_NM+set}" = set; then :
4412   $as_echo_n "(cached) " >&6
4413 else
4414   if test -n "$NM"; then
4415   # Let the user override the test.
4416   lt_cv_path_NM="$NM"
4417 else
4418   lt_nm_to_check="${ac_tool_prefix}nm"
4419   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4420     lt_nm_to_check="$lt_nm_to_check nm"
4421   fi
4422   for lt_tmp_nm in $lt_nm_to_check; do
4423     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4424     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4425       IFS="$lt_save_ifs"
4426       test -z "$ac_dir" && ac_dir=.
4427       tmp_nm="$ac_dir/$lt_tmp_nm"
4428       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4429         # Check to see if the nm accepts a BSD-compat flag.
4430         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4431         #   nm: unknown option "B" ignored
4432         # Tru64's nm complains that /dev/null is an invalid object file
4433         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4434         */dev/null* | *'Invalid file or object type'*)
4435           lt_cv_path_NM="$tmp_nm -B"
4436           break
4437           ;;
4438         *)
4439           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4440           */dev/null*)
4441             lt_cv_path_NM="$tmp_nm -p"
4442             break
4443             ;;
4444           *)
4445             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4446             continue # so that we can try to find one that supports BSD flags
4447             ;;
4448           esac
4449           ;;
4450         esac
4451       fi
4452     done
4453     IFS="$lt_save_ifs"
4454   done
4455   : ${lt_cv_path_NM=no}
4456 fi
4457 fi
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4459 $as_echo "$lt_cv_path_NM" >&6; }
4460 if test "$lt_cv_path_NM" != "no"; then
4461   NM="$lt_cv_path_NM"
4462 else
4463   # Didn't find any BSD compatible name lister, look for dumpbin.
4464   if test -n "$DUMPBIN"; then :
4465     # Let the user override the test.
4466   else
4467     if test -n "$ac_tool_prefix"; then
4468   for ac_prog in dumpbin "link -dump"
4469   do
4470     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4475   $as_echo_n "(cached) " >&6
4476 else
4477   if test -n "$DUMPBIN"; then
4478   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485     for ac_exec_ext in '' $ac_executable_extensions; do
4486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492   done
4493 IFS=$as_save_IFS
4494
4495 fi
4496 fi
4497 DUMPBIN=$ac_cv_prog_DUMPBIN
4498 if test -n "$DUMPBIN"; then
4499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4500 $as_echo "$DUMPBIN" >&6; }
4501 else
4502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 $as_echo "no" >&6; }
4504 fi
4505
4506
4507     test -n "$DUMPBIN" && break
4508   done
4509 fi
4510 if test -z "$DUMPBIN"; then
4511   ac_ct_DUMPBIN=$DUMPBIN
4512   for ac_prog in dumpbin "link -dump"
4513 do
4514   # Extract the first word of "$ac_prog", so it can be a program name with args.
4515 set dummy $ac_prog; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4519   $as_echo_n "(cached) " >&6
4520 else
4521   if test -n "$ac_ct_DUMPBIN"; then
4522   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4526 do
4527   IFS=$as_save_IFS
4528   test -z "$as_dir" && as_dir=.
4529     for ac_exec_ext in '' $ac_executable_extensions; do
4530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533     break 2
4534   fi
4535 done
4536   done
4537 IFS=$as_save_IFS
4538
4539 fi
4540 fi
4541 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4542 if test -n "$ac_ct_DUMPBIN"; then
4543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4544 $as_echo "$ac_ct_DUMPBIN" >&6; }
4545 else
4546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4548 fi
4549
4550
4551   test -n "$ac_ct_DUMPBIN" && break
4552 done
4553
4554   if test "x$ac_ct_DUMPBIN" = x; then
4555     DUMPBIN=":"
4556   else
4557     case $cross_compiling:$ac_tool_warned in
4558 yes:)
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4561 ac_tool_warned=yes ;;
4562 esac
4563     DUMPBIN=$ac_ct_DUMPBIN
4564   fi
4565 fi
4566
4567     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4568     *COFF*)
4569       DUMPBIN="$DUMPBIN -symbols"
4570       ;;
4571     *)
4572       DUMPBIN=:
4573       ;;
4574     esac
4575   fi
4576
4577   if test "$DUMPBIN" != ":"; then
4578     NM="$DUMPBIN"
4579   fi
4580 fi
4581 test -z "$NM" && NM=nm
4582
4583
4584
4585
4586
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4589 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4590 if test "${lt_cv_nm_interface+set}" = set; then :
4591   $as_echo_n "(cached) " >&6
4592 else
4593   lt_cv_nm_interface="BSD nm"
4594   echo "int some_variable = 0;" > conftest.$ac_ext
4595   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4596   (eval "$ac_compile" 2>conftest.err)
4597   cat conftest.err >&5
4598   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4599   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4600   cat conftest.err >&5
4601   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4602   cat conftest.out >&5
4603   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4604     lt_cv_nm_interface="MS dumpbin"
4605   fi
4606   rm -f conftest*
4607 fi
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4609 $as_echo "$lt_cv_nm_interface" >&6; }
4610
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4612 $as_echo_n "checking whether ln -s works... " >&6; }
4613 LN_S=$as_ln_s
4614 if test "$LN_S" = "ln -s"; then
4615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4616 $as_echo "yes" >&6; }
4617 else
4618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4619 $as_echo "no, using $LN_S" >&6; }
4620 fi
4621
4622 # find the maximum length of command line arguments
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4624 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4625 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4626   $as_echo_n "(cached) " >&6
4627 else
4628     i=0
4629   teststring="ABCD"
4630
4631   case $build_os in
4632   msdosdjgpp*)
4633     # On DJGPP, this test can blow up pretty badly due to problems in libc
4634     # (any single argument exceeding 2000 bytes causes a buffer overrun
4635     # during glob expansion).  Even if it were fixed, the result of this
4636     # check would be larger than it should be.
4637     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4638     ;;
4639
4640   gnu*)
4641     # Under GNU Hurd, this test is not required because there is
4642     # no limit to the length of command line arguments.
4643     # Libtool will interpret -1 as no limit whatsoever
4644     lt_cv_sys_max_cmd_len=-1;
4645     ;;
4646
4647   cygwin* | mingw* | cegcc*)
4648     # On Win9x/ME, this test blows up -- it succeeds, but takes
4649     # about 5 minutes as the teststring grows exponentially.
4650     # Worse, since 9x/ME are not pre-emptively multitasking,
4651     # you end up with a "frozen" computer, even though with patience
4652     # the test eventually succeeds (with a max line length of 256k).
4653     # Instead, let's just punt: use the minimum linelength reported by
4654     # all of the supported platforms: 8192 (on NT/2K/XP).
4655     lt_cv_sys_max_cmd_len=8192;
4656     ;;
4657
4658   mint*)
4659     # On MiNT this can take a long time and run out of memory.
4660     lt_cv_sys_max_cmd_len=8192;
4661     ;;
4662
4663   amigaos*)
4664     # On AmigaOS with pdksh, this test takes hours, literally.
4665     # So we just punt and use a minimum line length of 8192.
4666     lt_cv_sys_max_cmd_len=8192;
4667     ;;
4668
4669   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4670     # This has been around since 386BSD, at least.  Likely further.
4671     if test -x /sbin/sysctl; then
4672       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4673     elif test -x /usr/sbin/sysctl; then
4674       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4675     else
4676       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4677     fi
4678     # And add a safety zone
4679     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4680     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4681     ;;
4682
4683   interix*)
4684     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4685     lt_cv_sys_max_cmd_len=196608
4686     ;;
4687
4688   osf*)
4689     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4690     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4691     # nice to cause kernel panics so lets avoid the loop below.
4692     # First set a reasonable default.
4693     lt_cv_sys_max_cmd_len=16384
4694     #
4695     if test -x /sbin/sysconfig; then
4696       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4697         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4698       esac
4699     fi
4700     ;;
4701   sco3.2v5*)
4702     lt_cv_sys_max_cmd_len=102400
4703     ;;
4704   sysv5* | sco5v6* | sysv4.2uw2*)
4705     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4706     if test -n "$kargmax"; then
4707       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4708     else
4709       lt_cv_sys_max_cmd_len=32768
4710     fi
4711     ;;
4712   *)
4713     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4714     if test -n "$lt_cv_sys_max_cmd_len"; then
4715       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4716       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4717     else
4718       # Make teststring a little bigger before we do anything with it.
4719       # a 1K string should be a reasonable start.
4720       for i in 1 2 3 4 5 6 7 8 ; do
4721         teststring=$teststring$teststring
4722       done
4723       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4724       # If test is not a shell built-in, we'll probably end up computing a
4725       # maximum length that is only half of the actual maximum length, but
4726       # we can't tell.
4727       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4728                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4729               test $i != 17 # 1/2 MB should be enough
4730       do
4731         i=`expr $i + 1`
4732         teststring=$teststring$teststring
4733       done
4734       # Only check the string length outside the loop.
4735       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4736       teststring=
4737       # Add a significant safety factor because C++ compilers can tack on
4738       # massive amounts of additional arguments before passing them to the
4739       # linker.  It appears as though 1/2 is a usable value.
4740       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4741     fi
4742     ;;
4743   esac
4744
4745 fi
4746
4747 if test -n $lt_cv_sys_max_cmd_len ; then
4748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4749 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4750 else
4751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4752 $as_echo "none" >&6; }
4753 fi
4754 max_cmd_len=$lt_cv_sys_max_cmd_len
4755
4756
4757
4758
4759
4760
4761 : ${CP="cp -f"}
4762 : ${MV="mv -f"}
4763 : ${RM="rm -f"}
4764
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4766 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4767 # Try some XSI features
4768 xsi_shell=no
4769 ( _lt_dummy="a/b/c"
4770   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4771       = c,a/b,, \
4772     && eval 'test $(( 1 + 1 )) -eq 2 \
4773     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4774   && xsi_shell=yes
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4776 $as_echo "$xsi_shell" >&6; }
4777
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4780 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4781 lt_shell_append=no
4782 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4783     >/dev/null 2>&1 \
4784   && lt_shell_append=yes
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4786 $as_echo "$lt_shell_append" >&6; }
4787
4788
4789 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4790   lt_unset=unset
4791 else
4792   lt_unset=false
4793 fi
4794
4795
4796
4797
4798
4799 # test EBCDIC or ASCII
4800 case `echo X|tr X '\101'` in
4801  A) # ASCII based system
4802     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4803   lt_SP2NL='tr \040 \012'
4804   lt_NL2SP='tr \015\012 \040\040'
4805   ;;
4806  *) # EBCDIC based system
4807   lt_SP2NL='tr \100 \n'
4808   lt_NL2SP='tr \r\n \100\100'
4809   ;;
4810 esac
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4821 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4822 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4823   $as_echo_n "(cached) " >&6
4824 else
4825   lt_cv_ld_reload_flag='-r'
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4828 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4829 reload_flag=$lt_cv_ld_reload_flag
4830 case $reload_flag in
4831 "" | " "*) ;;
4832 *) reload_flag=" $reload_flag" ;;
4833 esac
4834 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4835 case $host_os in
4836   darwin*)
4837     if test "$GCC" = yes; then
4838       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4839     else
4840       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4841     fi
4842     ;;
4843 esac
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853 if test -n "$ac_tool_prefix"; then
4854   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4855 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4859   $as_echo_n "(cached) " >&6
4860 else
4861   if test -n "$OBJDUMP"; then
4862   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867   IFS=$as_save_IFS
4868   test -z "$as_dir" && as_dir=.
4869     for ac_exec_ext in '' $ac_executable_extensions; do
4870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873     break 2
4874   fi
4875 done
4876   done
4877 IFS=$as_save_IFS
4878
4879 fi
4880 fi
4881 OBJDUMP=$ac_cv_prog_OBJDUMP
4882 if test -n "$OBJDUMP"; then
4883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4884 $as_echo "$OBJDUMP" >&6; }
4885 else
4886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 fi
4889
4890
4891 fi
4892 if test -z "$ac_cv_prog_OBJDUMP"; then
4893   ac_ct_OBJDUMP=$OBJDUMP
4894   # Extract the first word of "objdump", so it can be a program name with args.
4895 set dummy objdump; ac_word=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4899   $as_echo_n "(cached) " >&6
4900 else
4901   if test -n "$ac_ct_OBJDUMP"; then
4902   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4906 do
4907   IFS=$as_save_IFS
4908   test -z "$as_dir" && as_dir=.
4909     for ac_exec_ext in '' $ac_executable_extensions; do
4910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913     break 2
4914   fi
4915 done
4916   done
4917 IFS=$as_save_IFS
4918
4919 fi
4920 fi
4921 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4922 if test -n "$ac_ct_OBJDUMP"; then
4923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4924 $as_echo "$ac_ct_OBJDUMP" >&6; }
4925 else
4926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4928 fi
4929
4930   if test "x$ac_ct_OBJDUMP" = x; then
4931     OBJDUMP="false"
4932   else
4933     case $cross_compiling:$ac_tool_warned in
4934 yes:)
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4937 ac_tool_warned=yes ;;
4938 esac
4939     OBJDUMP=$ac_ct_OBJDUMP
4940   fi
4941 else
4942   OBJDUMP="$ac_cv_prog_OBJDUMP"
4943 fi
4944
4945 test -z "$OBJDUMP" && OBJDUMP=objdump
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4956 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4957 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4958   $as_echo_n "(cached) " >&6
4959 else
4960   lt_cv_file_magic_cmd='$MAGIC_CMD'
4961 lt_cv_file_magic_test_file=
4962 lt_cv_deplibs_check_method='unknown'
4963 # Need to set the preceding variable on all platforms that support
4964 # interlibrary dependencies.
4965 # 'none' -- dependencies not supported.
4966 # `unknown' -- same as none, but documents that we really don't know.
4967 # 'pass_all' -- all dependencies passed with no checks.
4968 # 'test_compile' -- check by making test program.
4969 # 'file_magic [[regex]]' -- check by looking for files in library path
4970 # which responds to the $file_magic_cmd with a given extended regex.
4971 # If you have `file' or equivalent on your system and you're not sure
4972 # whether `pass_all' will *always* work, you probably want this one.
4973
4974 case $host_os in
4975 aix[4-9]*)
4976   lt_cv_deplibs_check_method=pass_all
4977   ;;
4978
4979 beos*)
4980   lt_cv_deplibs_check_method=pass_all
4981   ;;
4982
4983 bsdi[45]*)
4984   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4985   lt_cv_file_magic_cmd='/usr/bin/file -L'
4986   lt_cv_file_magic_test_file=/shlib/libc.so
4987   ;;
4988
4989 cygwin*)
4990   # func_win32_libid is a shell function defined in ltmain.sh
4991   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4992   lt_cv_file_magic_cmd='func_win32_libid'
4993   ;;
4994
4995 mingw* | pw32*)
4996   # Base MSYS/MinGW do not provide the 'file' command needed by
4997   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4998   # unless we find 'file', for example because we are cross-compiling.
4999   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5000   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5001     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5002     lt_cv_file_magic_cmd='func_win32_libid'
5003   else
5004     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5005     lt_cv_file_magic_cmd='$OBJDUMP -f'
5006   fi
5007   ;;
5008
5009 cegcc*)
5010   # use the weaker test based on 'objdump'. See mingw*.
5011   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5012   lt_cv_file_magic_cmd='$OBJDUMP -f'
5013   ;;
5014
5015 darwin* | rhapsody*)
5016   lt_cv_deplibs_check_method=pass_all
5017   ;;
5018
5019 freebsd* | dragonfly*)
5020   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5021     case $host_cpu in
5022     i*86 )
5023       # Not sure whether the presence of OpenBSD here was a mistake.
5024       # Let's accept both of them until this is cleared up.
5025       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5026       lt_cv_file_magic_cmd=/usr/bin/file
5027       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5028       ;;
5029     esac
5030   else
5031     lt_cv_deplibs_check_method=pass_all
5032   fi
5033   ;;
5034
5035 gnu*)
5036   lt_cv_deplibs_check_method=pass_all
5037   ;;
5038
5039 haiku*)
5040   lt_cv_deplibs_check_method=pass_all
5041   ;;
5042
5043 hpux10.20* | hpux11*)
5044   lt_cv_file_magic_cmd=/usr/bin/file
5045   case $host_cpu in
5046   ia64*)
5047     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5048     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5049     ;;
5050   hppa*64*)
5051     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]'
5052     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5053     ;;
5054   *)
5055     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5056     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5057     ;;
5058   esac
5059   ;;
5060
5061 interix[3-9]*)
5062   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5063   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5064   ;;
5065
5066 irix5* | irix6* | nonstopux*)
5067   case $LD in
5068   *-32|*"-32 ") libmagic=32-bit;;
5069   *-n32|*"-n32 ") libmagic=N32;;
5070   *-64|*"-64 ") libmagic=64-bit;;
5071   *) libmagic=never-match;;
5072   esac
5073   lt_cv_deplibs_check_method=pass_all
5074   ;;
5075
5076 # This must be Linux ELF.
5077 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5078   lt_cv_deplibs_check_method=pass_all
5079   ;;
5080
5081 netbsd*)
5082   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5083     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5084   else
5085     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5086   fi
5087   ;;
5088
5089 newos6*)
5090   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5091   lt_cv_file_magic_cmd=/usr/bin/file
5092   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5093   ;;
5094
5095 *nto* | *qnx*)
5096   lt_cv_deplibs_check_method=pass_all
5097   ;;
5098
5099 openbsd*)
5100   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5101     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5102   else
5103     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5104   fi
5105   ;;
5106
5107 osf3* | osf4* | osf5*)
5108   lt_cv_deplibs_check_method=pass_all
5109   ;;
5110
5111 rdos*)
5112   lt_cv_deplibs_check_method=pass_all
5113   ;;
5114
5115 solaris*)
5116   lt_cv_deplibs_check_method=pass_all
5117   ;;
5118
5119 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5120   lt_cv_deplibs_check_method=pass_all
5121   ;;
5122
5123 sysv4 | sysv4.3*)
5124   case $host_vendor in
5125   motorola)
5126     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]'
5127     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5128     ;;
5129   ncr)
5130     lt_cv_deplibs_check_method=pass_all
5131     ;;
5132   sequent)
5133     lt_cv_file_magic_cmd='/bin/file'
5134     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5135     ;;
5136   sni)
5137     lt_cv_file_magic_cmd='/bin/file'
5138     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5139     lt_cv_file_magic_test_file=/lib/libc.so
5140     ;;
5141   siemens)
5142     lt_cv_deplibs_check_method=pass_all
5143     ;;
5144   pc)
5145     lt_cv_deplibs_check_method=pass_all
5146     ;;
5147   esac
5148   ;;
5149
5150 tpf*)
5151   lt_cv_deplibs_check_method=pass_all
5152   ;;
5153 esac
5154
5155 fi
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5157 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5158 file_magic_cmd=$lt_cv_file_magic_cmd
5159 deplibs_check_method=$lt_cv_deplibs_check_method
5160 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173 if test -n "$ac_tool_prefix"; then
5174   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5175 set dummy ${ac_tool_prefix}ar; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_prog_AR+set}" = set; then :
5179   $as_echo_n "(cached) " >&6
5180 else
5181   if test -n "$AR"; then
5182   ac_cv_prog_AR="$AR" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5186 do
5187   IFS=$as_save_IFS
5188   test -z "$as_dir" && as_dir=.
5189     for ac_exec_ext in '' $ac_executable_extensions; do
5190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191     ac_cv_prog_AR="${ac_tool_prefix}ar"
5192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193     break 2
5194   fi
5195 done
5196   done
5197 IFS=$as_save_IFS
5198
5199 fi
5200 fi
5201 AR=$ac_cv_prog_AR
5202 if test -n "$AR"; then
5203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5204 $as_echo "$AR" >&6; }
5205 else
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5208 fi
5209
5210
5211 fi
5212 if test -z "$ac_cv_prog_AR"; then
5213   ac_ct_AR=$AR
5214   # Extract the first word of "ar", so it can be a program name with args.
5215 set dummy ar; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5219   $as_echo_n "(cached) " >&6
5220 else
5221   if test -n "$ac_ct_AR"; then
5222   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227   IFS=$as_save_IFS
5228   test -z "$as_dir" && as_dir=.
5229     for ac_exec_ext in '' $ac_executable_extensions; do
5230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231     ac_cv_prog_ac_ct_AR="ar"
5232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233     break 2
5234   fi
5235 done
5236   done
5237 IFS=$as_save_IFS
5238
5239 fi
5240 fi
5241 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5242 if test -n "$ac_ct_AR"; then
5243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5244 $as_echo "$ac_ct_AR" >&6; }
5245 else
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5248 fi
5249
5250   if test "x$ac_ct_AR" = x; then
5251     AR="false"
5252   else
5253     case $cross_compiling:$ac_tool_warned in
5254 yes:)
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5257 ac_tool_warned=yes ;;
5258 esac
5259     AR=$ac_ct_AR
5260   fi
5261 else
5262   AR="$ac_cv_prog_AR"
5263 fi
5264
5265 test -z "$AR" && AR=ar
5266 test -z "$AR_FLAGS" && AR_FLAGS=cru
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278 if test -n "$ac_tool_prefix"; then
5279   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5280 set dummy ${ac_tool_prefix}strip; ac_word=$2
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5282 $as_echo_n "checking for $ac_word... " >&6; }
5283 if test "${ac_cv_prog_STRIP+set}" = set; then :
5284   $as_echo_n "(cached) " >&6
5285 else
5286   if test -n "$STRIP"; then
5287   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5288 else
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5291 do
5292   IFS=$as_save_IFS
5293   test -z "$as_dir" && as_dir=.
5294     for ac_exec_ext in '' $ac_executable_extensions; do
5295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298     break 2
5299   fi
5300 done
5301   done
5302 IFS=$as_save_IFS
5303
5304 fi
5305 fi
5306 STRIP=$ac_cv_prog_STRIP
5307 if test -n "$STRIP"; then
5308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5309 $as_echo "$STRIP" >&6; }
5310 else
5311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5313 fi
5314
5315
5316 fi
5317 if test -z "$ac_cv_prog_STRIP"; then
5318   ac_ct_STRIP=$STRIP
5319   # Extract the first word of "strip", so it can be a program name with args.
5320 set dummy strip; ac_word=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5324   $as_echo_n "(cached) " >&6
5325 else
5326   if test -n "$ac_ct_STRIP"; then
5327   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332   IFS=$as_save_IFS
5333   test -z "$as_dir" && as_dir=.
5334     for ac_exec_ext in '' $ac_executable_extensions; do
5335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5336     ac_cv_prog_ac_ct_STRIP="strip"
5337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338     break 2
5339   fi
5340 done
5341   done
5342 IFS=$as_save_IFS
5343
5344 fi
5345 fi
5346 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5347 if test -n "$ac_ct_STRIP"; then
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5349 $as_echo "$ac_ct_STRIP" >&6; }
5350 else
5351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5353 fi
5354
5355   if test "x$ac_ct_STRIP" = x; then
5356     STRIP=":"
5357   else
5358     case $cross_compiling:$ac_tool_warned in
5359 yes:)
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5362 ac_tool_warned=yes ;;
5363 esac
5364     STRIP=$ac_ct_STRIP
5365   fi
5366 else
5367   STRIP="$ac_cv_prog_STRIP"
5368 fi
5369
5370 test -z "$STRIP" && STRIP=:
5371
5372
5373
5374
5375
5376
5377 if test -n "$ac_tool_prefix"; then
5378   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5379 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5383   $as_echo_n "(cached) " >&6
5384 else
5385   if test -n "$RANLIB"; then
5386   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391   IFS=$as_save_IFS
5392   test -z "$as_dir" && as_dir=.
5393     for ac_exec_ext in '' $ac_executable_extensions; do
5394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397     break 2
5398   fi
5399 done
5400   done
5401 IFS=$as_save_IFS
5402
5403 fi
5404 fi
5405 RANLIB=$ac_cv_prog_RANLIB
5406 if test -n "$RANLIB"; then
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5408 $as_echo "$RANLIB" >&6; }
5409 else
5410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5412 fi
5413
5414
5415 fi
5416 if test -z "$ac_cv_prog_RANLIB"; then
5417   ac_ct_RANLIB=$RANLIB
5418   # Extract the first word of "ranlib", so it can be a program name with args.
5419 set dummy ranlib; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5423   $as_echo_n "(cached) " >&6
5424 else
5425   if test -n "$ac_ct_RANLIB"; then
5426   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5430 do
5431   IFS=$as_save_IFS
5432   test -z "$as_dir" && as_dir=.
5433     for ac_exec_ext in '' $ac_executable_extensions; do
5434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435     ac_cv_prog_ac_ct_RANLIB="ranlib"
5436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437     break 2
5438   fi
5439 done
5440   done
5441 IFS=$as_save_IFS
5442
5443 fi
5444 fi
5445 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5446 if test -n "$ac_ct_RANLIB"; then
5447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5448 $as_echo "$ac_ct_RANLIB" >&6; }
5449 else
5450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5452 fi
5453
5454   if test "x$ac_ct_RANLIB" = x; then
5455     RANLIB=":"
5456   else
5457     case $cross_compiling:$ac_tool_warned in
5458 yes:)
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5461 ac_tool_warned=yes ;;
5462 esac
5463     RANLIB=$ac_ct_RANLIB
5464   fi
5465 else
5466   RANLIB="$ac_cv_prog_RANLIB"
5467 fi
5468
5469 test -z "$RANLIB" && RANLIB=:
5470
5471
5472
5473
5474
5475
5476 # Determine commands to create old-style static archives.
5477 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5478 old_postinstall_cmds='chmod 644 $oldlib'
5479 old_postuninstall_cmds=
5480
5481 if test -n "$RANLIB"; then
5482   case $host_os in
5483   openbsd*)
5484     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5485     ;;
5486   *)
5487     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5488     ;;
5489   esac
5490   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5491 fi
5492
5493 case $host_os in
5494   darwin*)
5495     lock_old_archive_extraction=yes ;;
5496   *)
5497     lock_old_archive_extraction=no ;;
5498 esac
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538 # If no C compiler was specified, use CC.
5539 LTCC=${LTCC-"$CC"}
5540
5541 # If no C compiler flags were specified, use CFLAGS.
5542 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5543
5544 # Allow CC to be a program name with arguments.
5545 compiler=$CC
5546
5547
5548 # Check for command to grab the raw symbol name followed by C symbol from nm.
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5550 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5551 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5552   $as_echo_n "(cached) " >&6
5553 else
5554
5555 # These are sane defaults that work on at least a few old systems.
5556 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5557
5558 # Character class describing NM global symbol codes.
5559 symcode='[BCDEGRST]'
5560
5561 # Regexp to match symbols that can be accessed directly from C.
5562 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5563
5564 # Define system-specific variables.
5565 case $host_os in
5566 aix*)
5567   symcode='[BCDT]'
5568   ;;
5569 cygwin* | mingw* | pw32* | cegcc*)
5570   symcode='[ABCDGISTW]'
5571   ;;
5572 hpux*)
5573   if test "$host_cpu" = ia64; then
5574     symcode='[ABCDEGRST]'
5575   fi
5576   ;;
5577 irix* | nonstopux*)
5578   symcode='[BCDEGRST]'
5579   ;;
5580 osf*)
5581   symcode='[BCDEGQRST]'
5582   ;;
5583 solaris*)
5584   symcode='[BDRT]'
5585   ;;
5586 sco3.2v5*)
5587   symcode='[DT]'
5588   ;;
5589 sysv4.2uw2*)
5590   symcode='[DT]'
5591   ;;
5592 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5593   symcode='[ABDT]'
5594   ;;
5595 sysv4)
5596   symcode='[DFNSTU]'
5597   ;;
5598 esac
5599
5600 # If we're using GNU nm, then use its standard symbol codes.
5601 case `$NM -V 2>&1` in
5602 *GNU* | *'with BFD'*)
5603   symcode='[ABCDGIRSTW]' ;;
5604 esac
5605
5606 # Transform an extracted symbol line into a proper C declaration.
5607 # Some systems (esp. on ia64) link data and code symbols differently,
5608 # so use this general approach.
5609 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5610
5611 # Transform an extracted symbol line into symbol name and symbol address
5612 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5613 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'"
5614
5615 # Handle CRLF in mingw tool chain
5616 opt_cr=
5617 case $build_os in
5618 mingw*)
5619   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5620   ;;
5621 esac
5622
5623 # Try without a prefix underscore, then with it.
5624 for ac_symprfx in "" "_"; do
5625
5626   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5627   symxfrm="\\1 $ac_symprfx\\2 \\2"
5628
5629   # Write the raw and C identifiers.
5630   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5631     # Fake it for dumpbin and say T for any non-static function
5632     # and D for any global variable.
5633     # Also find C++ and __fastcall symbols from MSVC++,
5634     # which start with @ or ?.
5635     lt_cv_sys_global_symbol_pipe="$AWK '"\
5636 "     {last_section=section; section=\$ 3};"\
5637 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5638 "     \$ 0!~/External *\|/{next};"\
5639 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5640 "     {if(hide[section]) next};"\
5641 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5642 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5643 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5644 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5645 "     ' prfx=^$ac_symprfx"
5646   else
5647     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5648   fi
5649
5650   # Check to see that the pipe works correctly.
5651   pipe_works=no
5652
5653   rm -f conftest*
5654   cat > conftest.$ac_ext <<_LT_EOF
5655 #ifdef __cplusplus
5656 extern "C" {
5657 #endif
5658 char nm_test_var;
5659 void nm_test_func(void);
5660 void nm_test_func(void){}
5661 #ifdef __cplusplus
5662 }
5663 #endif
5664 int main(){nm_test_var='a';nm_test_func();return(0);}
5665 _LT_EOF
5666
5667   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5668   (eval $ac_compile) 2>&5
5669   ac_status=$?
5670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671   test $ac_status = 0; }; then
5672     # Now try to grab the symbols.
5673     nlist=conftest.nm
5674     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5675   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5676   ac_status=$?
5677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5678   test $ac_status = 0; } && test -s "$nlist"; then
5679       # Try sorting and uniquifying the output.
5680       if sort "$nlist" | uniq > "$nlist"T; then
5681         mv -f "$nlist"T "$nlist"
5682       else
5683         rm -f "$nlist"T
5684       fi
5685
5686       # Make sure that we snagged all the symbols we need.
5687       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5688         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5689           cat <<_LT_EOF > conftest.$ac_ext
5690 #ifdef __cplusplus
5691 extern "C" {
5692 #endif
5693
5694 _LT_EOF
5695           # Now generate the symbol file.
5696           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5697
5698           cat <<_LT_EOF >> conftest.$ac_ext
5699
5700 /* The mapping between symbol names and symbols.  */
5701 const struct {
5702   const char *name;
5703   void       *address;
5704 }
5705 lt__PROGRAM__LTX_preloaded_symbols[] =
5706 {
5707   { "@PROGRAM@", (void *) 0 },
5708 _LT_EOF
5709           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5710           cat <<\_LT_EOF >> conftest.$ac_ext
5711   {0, (void *) 0}
5712 };
5713
5714 /* This works around a problem in FreeBSD linker */
5715 #ifdef FREEBSD_WORKAROUND
5716 static const void *lt_preloaded_setup() {
5717   return lt__PROGRAM__LTX_preloaded_symbols;
5718 }
5719 #endif
5720
5721 #ifdef __cplusplus
5722 }
5723 #endif
5724 _LT_EOF
5725           # Now try linking the two files.
5726           mv conftest.$ac_objext conftstm.$ac_objext
5727           lt_save_LIBS="$LIBS"
5728           lt_save_CFLAGS="$CFLAGS"
5729           LIBS="conftstm.$ac_objext"
5730           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5731           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5732   (eval $ac_link) 2>&5
5733   ac_status=$?
5734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5735   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5736             pipe_works=yes
5737           fi
5738           LIBS="$lt_save_LIBS"
5739           CFLAGS="$lt_save_CFLAGS"
5740         else
5741           echo "cannot find nm_test_func in $nlist" >&5
5742         fi
5743       else
5744         echo "cannot find nm_test_var in $nlist" >&5
5745       fi
5746     else
5747       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5748     fi
5749   else
5750     echo "$progname: failed program was:" >&5
5751     cat conftest.$ac_ext >&5
5752   fi
5753   rm -rf conftest* conftst*
5754
5755   # Do not use the global_symbol_pipe unless it works.
5756   if test "$pipe_works" = yes; then
5757     break
5758   else
5759     lt_cv_sys_global_symbol_pipe=
5760   fi
5761 done
5762
5763 fi
5764
5765 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5766   lt_cv_sys_global_symbol_to_cdecl=
5767 fi
5768 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5770 $as_echo "failed" >&6; }
5771 else
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5773 $as_echo "ok" >&6; }
5774 fi
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798 # Check whether --enable-libtool-lock was given.
5799 if test "${enable_libtool_lock+set}" = set; then :
5800   enableval=$enable_libtool_lock;
5801 fi
5802
5803 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5804
5805 # Some flags need to be propagated to the compiler or linker for good
5806 # libtool support.
5807 case $host in
5808 ia64-*-hpux*)
5809   # Find out which ABI we are using.
5810   echo 'int i;' > conftest.$ac_ext
5811   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5812   (eval $ac_compile) 2>&5
5813   ac_status=$?
5814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5815   test $ac_status = 0; }; then
5816     case `/usr/bin/file conftest.$ac_objext` in
5817       *ELF-32*)
5818         HPUX_IA64_MODE="32"
5819         ;;
5820       *ELF-64*)
5821         HPUX_IA64_MODE="64"
5822         ;;
5823     esac
5824   fi
5825   rm -rf conftest*
5826   ;;
5827 *-*-irix6*)
5828   # Find out which ABI we are using.
5829   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5830   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5831   (eval $ac_compile) 2>&5
5832   ac_status=$?
5833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5834   test $ac_status = 0; }; then
5835     if test "$lt_cv_prog_gnu_ld" = yes; then
5836       case `/usr/bin/file conftest.$ac_objext` in
5837         *32-bit*)
5838           LD="${LD-ld} -melf32bsmip"
5839           ;;
5840         *N32*)
5841           LD="${LD-ld} -melf32bmipn32"
5842           ;;
5843         *64-bit*)
5844           LD="${LD-ld} -melf64bmip"
5845         ;;
5846       esac
5847     else
5848       case `/usr/bin/file conftest.$ac_objext` in
5849         *32-bit*)
5850           LD="${LD-ld} -32"
5851           ;;
5852         *N32*)
5853           LD="${LD-ld} -n32"
5854           ;;
5855         *64-bit*)
5856           LD="${LD-ld} -64"
5857           ;;
5858       esac
5859     fi
5860   fi
5861   rm -rf conftest*
5862   ;;
5863
5864 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5865 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5866   # Find out which ABI we are using.
5867   echo 'int i;' > conftest.$ac_ext
5868   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5869   (eval $ac_compile) 2>&5
5870   ac_status=$?
5871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5872   test $ac_status = 0; }; then
5873     case `/usr/bin/file conftest.o` in
5874       *32-bit*)
5875         case $host in
5876           x86_64-*kfreebsd*-gnu)
5877             LD="${LD-ld} -m elf_i386_fbsd"
5878             ;;
5879           x86_64-*linux*)
5880             case `/usr/bin/file conftest.o` in
5881               *x86-64*)
5882                 LD="${LD-ld} -m elf32_x86_64"
5883                 ;;
5884               *)
5885                 LD="${LD-ld} -m elf_i386"
5886                 ;;
5887             esac
5888             ;;
5889           powerpc64le-*linux*)
5890             LD="${LD-ld} -m elf32lppclinux"
5891             ;;
5892           powerpc64-*linux*)
5893             LD="${LD-ld} -m elf32ppclinux"
5894             ;;
5895           s390x-*linux*)
5896             LD="${LD-ld} -m elf_s390"
5897             ;;
5898           sparc64-*linux*)
5899             LD="${LD-ld} -m elf32_sparc"
5900             ;;
5901         esac
5902         ;;
5903       *64-bit*)
5904         case $host in
5905           x86_64-*kfreebsd*-gnu)
5906             LD="${LD-ld} -m elf_x86_64_fbsd"
5907             ;;
5908           x86_64-*linux*)
5909             LD="${LD-ld} -m elf_x86_64"
5910             ;;
5911           powerpcle-*linux*)
5912             LD="${LD-ld} -m elf64lppc"
5913             ;;
5914           powerpc-*linux*)
5915             LD="${LD-ld} -m elf64ppc"
5916             ;;
5917           s390*-*linux*|s390*-*tpf*)
5918             LD="${LD-ld} -m elf64_s390"
5919             ;;
5920           sparc*-*linux*)
5921             LD="${LD-ld} -m elf64_sparc"
5922             ;;
5923         esac
5924         ;;
5925     esac
5926   fi
5927   rm -rf conftest*
5928   ;;
5929
5930 *-*-sco3.2v5*)
5931   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5932   SAVE_CFLAGS="$CFLAGS"
5933   CFLAGS="$CFLAGS -belf"
5934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5935 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5936 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5937   $as_echo_n "(cached) " >&6
5938 else
5939   ac_ext=c
5940 ac_cpp='$CPP $CPPFLAGS'
5941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5944
5945      if test x$gcc_no_link = xyes; then
5946   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5947 fi
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h.  */
5950
5951 int
5952 main ()
5953 {
5954
5955   ;
5956   return 0;
5957 }
5958 _ACEOF
5959 if ac_fn_c_try_link "$LINENO"; then :
5960   lt_cv_cc_needs_belf=yes
5961 else
5962   lt_cv_cc_needs_belf=no
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext \
5965     conftest$ac_exeext conftest.$ac_ext
5966      ac_ext=c
5967 ac_cpp='$CPP $CPPFLAGS'
5968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5971
5972 fi
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5974 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5975   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5976     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5977     CFLAGS="$SAVE_CFLAGS"
5978   fi
5979   ;;
5980 sparc*-*solaris*)
5981   # Find out which ABI we are using.
5982   echo 'int i;' > conftest.$ac_ext
5983   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5984   (eval $ac_compile) 2>&5
5985   ac_status=$?
5986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5987   test $ac_status = 0; }; then
5988     case `/usr/bin/file conftest.o` in
5989     *64-bit*)
5990       case $lt_cv_prog_gnu_ld in
5991       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5992       *)
5993         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5994           LD="${LD-ld} -64"
5995         fi
5996         ;;
5997       esac
5998       ;;
5999     esac
6000   fi
6001   rm -rf conftest*
6002   ;;
6003 esac
6004
6005 need_locks="$enable_libtool_lock"
6006
6007
6008   case $host_os in
6009     rhapsody* | darwin*)
6010     if test -n "$ac_tool_prefix"; then
6011   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6012 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6016   $as_echo_n "(cached) " >&6
6017 else
6018   if test -n "$DSYMUTIL"; then
6019   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024   IFS=$as_save_IFS
6025   test -z "$as_dir" && as_dir=.
6026     for ac_exec_ext in '' $ac_executable_extensions; do
6027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030     break 2
6031   fi
6032 done
6033   done
6034 IFS=$as_save_IFS
6035
6036 fi
6037 fi
6038 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6039 if test -n "$DSYMUTIL"; then
6040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6041 $as_echo "$DSYMUTIL" >&6; }
6042 else
6043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6045 fi
6046
6047
6048 fi
6049 if test -z "$ac_cv_prog_DSYMUTIL"; then
6050   ac_ct_DSYMUTIL=$DSYMUTIL
6051   # Extract the first word of "dsymutil", so it can be a program name with args.
6052 set dummy dsymutil; ac_word=$2
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 $as_echo_n "checking for $ac_word... " >&6; }
6055 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6056   $as_echo_n "(cached) " >&6
6057 else
6058   if test -n "$ac_ct_DSYMUTIL"; then
6059   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064   IFS=$as_save_IFS
6065   test -z "$as_dir" && as_dir=.
6066     for ac_exec_ext in '' $ac_executable_extensions; do
6067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070     break 2
6071   fi
6072 done
6073   done
6074 IFS=$as_save_IFS
6075
6076 fi
6077 fi
6078 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6079 if test -n "$ac_ct_DSYMUTIL"; then
6080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6081 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6082 else
6083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084 $as_echo "no" >&6; }
6085 fi
6086
6087   if test "x$ac_ct_DSYMUTIL" = x; then
6088     DSYMUTIL=":"
6089   else
6090     case $cross_compiling:$ac_tool_warned in
6091 yes:)
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6094 ac_tool_warned=yes ;;
6095 esac
6096     DSYMUTIL=$ac_ct_DSYMUTIL
6097   fi
6098 else
6099   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6100 fi
6101
6102     if test -n "$ac_tool_prefix"; then
6103   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6104 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6108   $as_echo_n "(cached) " >&6
6109 else
6110   if test -n "$NMEDIT"; then
6111   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116   IFS=$as_save_IFS
6117   test -z "$as_dir" && as_dir=.
6118     for ac_exec_ext in '' $ac_executable_extensions; do
6119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122     break 2
6123   fi
6124 done
6125   done
6126 IFS=$as_save_IFS
6127
6128 fi
6129 fi
6130 NMEDIT=$ac_cv_prog_NMEDIT
6131 if test -n "$NMEDIT"; then
6132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6133 $as_echo "$NMEDIT" >&6; }
6134 else
6135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6137 fi
6138
6139
6140 fi
6141 if test -z "$ac_cv_prog_NMEDIT"; then
6142   ac_ct_NMEDIT=$NMEDIT
6143   # Extract the first word of "nmedit", so it can be a program name with args.
6144 set dummy nmedit; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6148   $as_echo_n "(cached) " >&6
6149 else
6150   if test -n "$ac_ct_NMEDIT"; then
6151   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6155 do
6156   IFS=$as_save_IFS
6157   test -z "$as_dir" && as_dir=.
6158     for ac_exec_ext in '' $ac_executable_extensions; do
6159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162     break 2
6163   fi
6164 done
6165   done
6166 IFS=$as_save_IFS
6167
6168 fi
6169 fi
6170 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6171 if test -n "$ac_ct_NMEDIT"; then
6172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6173 $as_echo "$ac_ct_NMEDIT" >&6; }
6174 else
6175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6177 fi
6178
6179   if test "x$ac_ct_NMEDIT" = x; then
6180     NMEDIT=":"
6181   else
6182     case $cross_compiling:$ac_tool_warned in
6183 yes:)
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6186 ac_tool_warned=yes ;;
6187 esac
6188     NMEDIT=$ac_ct_NMEDIT
6189   fi
6190 else
6191   NMEDIT="$ac_cv_prog_NMEDIT"
6192 fi
6193
6194     if test -n "$ac_tool_prefix"; then
6195   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if test "${ac_cv_prog_LIPO+set}" = set; then :
6200   $as_echo_n "(cached) " >&6
6201 else
6202   if test -n "$LIPO"; then
6203   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208   IFS=$as_save_IFS
6209   test -z "$as_dir" && as_dir=.
6210     for ac_exec_ext in '' $ac_executable_extensions; do
6211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214     break 2
6215   fi
6216 done
6217   done
6218 IFS=$as_save_IFS
6219
6220 fi
6221 fi
6222 LIPO=$ac_cv_prog_LIPO
6223 if test -n "$LIPO"; then
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6225 $as_echo "$LIPO" >&6; }
6226 else
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230
6231
6232 fi
6233 if test -z "$ac_cv_prog_LIPO"; then
6234   ac_ct_LIPO=$LIPO
6235   # Extract the first word of "lipo", so it can be a program name with args.
6236 set dummy lipo; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6240   $as_echo_n "(cached) " >&6
6241 else
6242   if test -n "$ac_ct_LIPO"; then
6243   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248   IFS=$as_save_IFS
6249   test -z "$as_dir" && as_dir=.
6250     for ac_exec_ext in '' $ac_executable_extensions; do
6251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252     ac_cv_prog_ac_ct_LIPO="lipo"
6253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254     break 2
6255   fi
6256 done
6257   done
6258 IFS=$as_save_IFS
6259
6260 fi
6261 fi
6262 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6263 if test -n "$ac_ct_LIPO"; then
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6265 $as_echo "$ac_ct_LIPO" >&6; }
6266 else
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6269 fi
6270
6271   if test "x$ac_ct_LIPO" = x; then
6272     LIPO=":"
6273   else
6274     case $cross_compiling:$ac_tool_warned in
6275 yes:)
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned=yes ;;
6279 esac
6280     LIPO=$ac_ct_LIPO
6281   fi
6282 else
6283   LIPO="$ac_cv_prog_LIPO"
6284 fi
6285
6286     if test -n "$ac_tool_prefix"; then
6287   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6288 set dummy ${ac_tool_prefix}otool; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6292   $as_echo_n "(cached) " >&6
6293 else
6294   if test -n "$OTOOL"; then
6295   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300   IFS=$as_save_IFS
6301   test -z "$as_dir" && as_dir=.
6302     for ac_exec_ext in '' $ac_executable_extensions; do
6303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306     break 2
6307   fi
6308 done
6309   done
6310 IFS=$as_save_IFS
6311
6312 fi
6313 fi
6314 OTOOL=$ac_cv_prog_OTOOL
6315 if test -n "$OTOOL"; then
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6317 $as_echo "$OTOOL" >&6; }
6318 else
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6321 fi
6322
6323
6324 fi
6325 if test -z "$ac_cv_prog_OTOOL"; then
6326   ac_ct_OTOOL=$OTOOL
6327   # Extract the first word of "otool", so it can be a program name with args.
6328 set dummy otool; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6332   $as_echo_n "(cached) " >&6
6333 else
6334   if test -n "$ac_ct_OTOOL"; then
6335   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6339 do
6340   IFS=$as_save_IFS
6341   test -z "$as_dir" && as_dir=.
6342     for ac_exec_ext in '' $ac_executable_extensions; do
6343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344     ac_cv_prog_ac_ct_OTOOL="otool"
6345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346     break 2
6347   fi
6348 done
6349   done
6350 IFS=$as_save_IFS
6351
6352 fi
6353 fi
6354 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6355 if test -n "$ac_ct_OTOOL"; then
6356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6357 $as_echo "$ac_ct_OTOOL" >&6; }
6358 else
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6361 fi
6362
6363   if test "x$ac_ct_OTOOL" = x; then
6364     OTOOL=":"
6365   else
6366     case $cross_compiling:$ac_tool_warned in
6367 yes:)
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372     OTOOL=$ac_ct_OTOOL
6373   fi
6374 else
6375   OTOOL="$ac_cv_prog_OTOOL"
6376 fi
6377
6378     if test -n "$ac_tool_prefix"; then
6379   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6384   $as_echo_n "(cached) " >&6
6385 else
6386   if test -n "$OTOOL64"; then
6387   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394     for ac_exec_ext in '' $ac_executable_extensions; do
6395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401   done
6402 IFS=$as_save_IFS
6403
6404 fi
6405 fi
6406 OTOOL64=$ac_cv_prog_OTOOL64
6407 if test -n "$OTOOL64"; then
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6409 $as_echo "$OTOOL64" >&6; }
6410 else
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6413 fi
6414
6415
6416 fi
6417 if test -z "$ac_cv_prog_OTOOL64"; then
6418   ac_ct_OTOOL64=$OTOOL64
6419   # Extract the first word of "otool64", so it can be a program name with args.
6420 set dummy otool64; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6424   $as_echo_n "(cached) " >&6
6425 else
6426   if test -n "$ac_ct_OTOOL64"; then
6427   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432   IFS=$as_save_IFS
6433   test -z "$as_dir" && as_dir=.
6434     for ac_exec_ext in '' $ac_executable_extensions; do
6435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436     ac_cv_prog_ac_ct_OTOOL64="otool64"
6437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438     break 2
6439   fi
6440 done
6441   done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6447 if test -n "$ac_ct_OTOOL64"; then
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6449 $as_echo "$ac_ct_OTOOL64" >&6; }
6450 else
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454
6455   if test "x$ac_ct_OTOOL64" = x; then
6456     OTOOL64=":"
6457   else
6458     case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464     OTOOL64=$ac_ct_OTOOL64
6465   fi
6466 else
6467   OTOOL64="$ac_cv_prog_OTOOL64"
6468 fi
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6497 $as_echo_n "checking for -single_module linker flag... " >&6; }
6498 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6499   $as_echo_n "(cached) " >&6
6500 else
6501   lt_cv_apple_cc_single_mod=no
6502       if test -z "${LT_MULTI_MODULE}"; then
6503         # By default we will add the -single_module flag. You can override
6504         # by either setting the environment variable LT_MULTI_MODULE
6505         # non-empty at configure time, or by adding -multi_module to the
6506         # link flags.
6507         rm -rf libconftest.dylib*
6508         echo "int foo(void){return 1;}" > conftest.c
6509         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6510 -dynamiclib -Wl,-single_module conftest.c" >&5
6511         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6512           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6513         _lt_result=$?
6514         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6515           lt_cv_apple_cc_single_mod=yes
6516         else
6517           cat conftest.err >&5
6518         fi
6519         rm -rf libconftest.dylib*
6520         rm -f conftest.*
6521       fi
6522 fi
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6524 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6525     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6526 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6527 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6528   $as_echo_n "(cached) " >&6
6529 else
6530   lt_cv_ld_exported_symbols_list=no
6531       save_LDFLAGS=$LDFLAGS
6532       echo "_main" > conftest.sym
6533       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6534       if test x$gcc_no_link = xyes; then
6535   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6536 fi
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h.  */
6539
6540 int
6541 main ()
6542 {
6543
6544   ;
6545   return 0;
6546 }
6547 _ACEOF
6548 if ac_fn_c_try_link "$LINENO"; then :
6549   lt_cv_ld_exported_symbols_list=yes
6550 else
6551   lt_cv_ld_exported_symbols_list=no
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext \
6554     conftest$ac_exeext conftest.$ac_ext
6555         LDFLAGS="$save_LDFLAGS"
6556
6557 fi
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6559 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6561 $as_echo_n "checking for -force_load linker flag... " >&6; }
6562 if test "${lt_cv_ld_force_load+set}" = set; then :
6563   $as_echo_n "(cached) " >&6
6564 else
6565   lt_cv_ld_force_load=no
6566       cat > conftest.c << _LT_EOF
6567 int forced_loaded() { return 2;}
6568 _LT_EOF
6569       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6570       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6571       echo "$AR cru libconftest.a conftest.o" >&5
6572       $AR cru libconftest.a conftest.o 2>&5
6573       cat > conftest.c << _LT_EOF
6574 int main() { return 0;}
6575 _LT_EOF
6576       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6577       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6578       _lt_result=$?
6579       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6580         lt_cv_ld_force_load=yes
6581       else
6582         cat conftest.err >&5
6583       fi
6584         rm -f conftest.err libconftest.a conftest conftest.c
6585         rm -rf conftest.dSYM
6586
6587 fi
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6589 $as_echo "$lt_cv_ld_force_load" >&6; }
6590     case $host_os in
6591     rhapsody* | darwin1.[012])
6592       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6593     darwin1.*)
6594       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6595     darwin*) # darwin 5.x on
6596       # if running on 10.5 or later, the deployment target defaults
6597       # to the OS version, if on x86, and 10.4, the deployment
6598       # target defaults to 10.4. Don't you love it?
6599       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6600         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6601           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6602         10.[012][,.]*)
6603           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6604         10.*)
6605           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6606       esac
6607     ;;
6608   esac
6609     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6610       _lt_dar_single_mod='$single_module'
6611     fi
6612     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6613       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6614     else
6615       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6616     fi
6617     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6618       _lt_dsymutil='~$DSYMUTIL $lib || :'
6619     else
6620       _lt_dsymutil=
6621     fi
6622     ;;
6623   esac
6624
6625 ac_ext=c
6626 ac_cpp='$CPP $CPPFLAGS'
6627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6631 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6632 # On Suns, sometimes $CPP names a directory.
6633 if test -n "$CPP" && test -d "$CPP"; then
6634   CPP=
6635 fi
6636 if test -z "$CPP"; then
6637   if test "${ac_cv_prog_CPP+set}" = set; then :
6638   $as_echo_n "(cached) " >&6
6639 else
6640       # Double quotes because CPP needs to be expanded
6641     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6642     do
6643       ac_preproc_ok=false
6644 for ac_c_preproc_warn_flag in '' yes
6645 do
6646   # Use a header file that comes with gcc, so configuring glibc
6647   # with a fresh cross-compiler works.
6648   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6649   # <limits.h> exists even on freestanding compilers.
6650   # On the NeXT, cc -E runs the code through the compiler's parser,
6651   # not just through cpp. "Syntax error" is here to catch this case.
6652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h.  */
6654 #ifdef __STDC__
6655 # include <limits.h>
6656 #else
6657 # include <assert.h>
6658 #endif
6659                      Syntax error
6660 _ACEOF
6661 if ac_fn_c_try_cpp "$LINENO"; then :
6662
6663 else
6664   # Broken: fails on valid input.
6665 continue
6666 fi
6667 rm -f conftest.err conftest.$ac_ext
6668
6669   # OK, works on sane cases.  Now check whether nonexistent headers
6670   # can be detected and how.
6671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h.  */
6673 #include <ac_nonexistent.h>
6674 _ACEOF
6675 if ac_fn_c_try_cpp "$LINENO"; then :
6676   # Broken: success on invalid input.
6677 continue
6678 else
6679   # Passes both tests.
6680 ac_preproc_ok=:
6681 break
6682 fi
6683 rm -f conftest.err conftest.$ac_ext
6684
6685 done
6686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6687 rm -f conftest.err conftest.$ac_ext
6688 if $ac_preproc_ok; then :
6689   break
6690 fi
6691
6692     done
6693     ac_cv_prog_CPP=$CPP
6694
6695 fi
6696   CPP=$ac_cv_prog_CPP
6697 else
6698   ac_cv_prog_CPP=$CPP
6699 fi
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6701 $as_echo "$CPP" >&6; }
6702 ac_preproc_ok=false
6703 for ac_c_preproc_warn_flag in '' yes
6704 do
6705   # Use a header file that comes with gcc, so configuring glibc
6706   # with a fresh cross-compiler works.
6707   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6708   # <limits.h> exists even on freestanding compilers.
6709   # On the NeXT, cc -E runs the code through the compiler's parser,
6710   # not just through cpp. "Syntax error" is here to catch this case.
6711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h.  */
6713 #ifdef __STDC__
6714 # include <limits.h>
6715 #else
6716 # include <assert.h>
6717 #endif
6718                      Syntax error
6719 _ACEOF
6720 if ac_fn_c_try_cpp "$LINENO"; then :
6721
6722 else
6723   # Broken: fails on valid input.
6724 continue
6725 fi
6726 rm -f conftest.err conftest.$ac_ext
6727
6728   # OK, works on sane cases.  Now check whether nonexistent headers
6729   # can be detected and how.
6730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h.  */
6732 #include <ac_nonexistent.h>
6733 _ACEOF
6734 if ac_fn_c_try_cpp "$LINENO"; then :
6735   # Broken: success on invalid input.
6736 continue
6737 else
6738   # Passes both tests.
6739 ac_preproc_ok=:
6740 break
6741 fi
6742 rm -f conftest.err conftest.$ac_ext
6743
6744 done
6745 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6746 rm -f conftest.err conftest.$ac_ext
6747 if $ac_preproc_ok; then :
6748
6749 else
6750   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6752 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6753 See \`config.log' for more details." "$LINENO" 5; }
6754 fi
6755
6756 ac_ext=c
6757 ac_cpp='$CPP $CPPFLAGS'
6758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6761
6762
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6764 $as_echo_n "checking for ANSI C header files... " >&6; }
6765 if test "${ac_cv_header_stdc+set}" = set; then :
6766   $as_echo_n "(cached) " >&6
6767 else
6768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h.  */
6770 #include <stdlib.h>
6771 #include <stdarg.h>
6772 #include <string.h>
6773 #include <float.h>
6774
6775 int
6776 main ()
6777 {
6778
6779   ;
6780   return 0;
6781 }
6782 _ACEOF
6783 if ac_fn_c_try_compile "$LINENO"; then :
6784   ac_cv_header_stdc=yes
6785 else
6786   ac_cv_header_stdc=no
6787 fi
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789
6790 if test $ac_cv_header_stdc = yes; then
6791   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h.  */
6794 #include <string.h>
6795
6796 _ACEOF
6797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6798   $EGREP "memchr" >/dev/null 2>&1; then :
6799
6800 else
6801   ac_cv_header_stdc=no
6802 fi
6803 rm -f conftest*
6804
6805 fi
6806
6807 if test $ac_cv_header_stdc = yes; then
6808   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h.  */
6811 #include <stdlib.h>
6812
6813 _ACEOF
6814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6815   $EGREP "free" >/dev/null 2>&1; then :
6816
6817 else
6818   ac_cv_header_stdc=no
6819 fi
6820 rm -f conftest*
6821
6822 fi
6823
6824 if test $ac_cv_header_stdc = yes; then
6825   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6826   if test "$cross_compiling" = yes; then :
6827   :
6828 else
6829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h.  */
6831 #include <ctype.h>
6832 #include <stdlib.h>
6833 #if ((' ' & 0x0FF) == 0x020)
6834 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6835 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6836 #else
6837 # define ISLOWER(c) \
6838                    (('a' <= (c) && (c) <= 'i') \
6839                      || ('j' <= (c) && (c) <= 'r') \
6840                      || ('s' <= (c) && (c) <= 'z'))
6841 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6842 #endif
6843
6844 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6845 int
6846 main ()
6847 {
6848   int i;
6849   for (i = 0; i < 256; i++)
6850     if (XOR (islower (i), ISLOWER (i))
6851         || toupper (i) != TOUPPER (i))
6852       return 2;
6853   return 0;
6854 }
6855 _ACEOF
6856 if ac_fn_c_try_run "$LINENO"; then :
6857
6858 else
6859   ac_cv_header_stdc=no
6860 fi
6861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6862   conftest.$ac_objext conftest.beam conftest.$ac_ext
6863 fi
6864
6865 fi
6866 fi
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6868 $as_echo "$ac_cv_header_stdc" >&6; }
6869 if test $ac_cv_header_stdc = yes; then
6870
6871 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6872
6873 fi
6874
6875 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6876 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6877                   inttypes.h stdint.h unistd.h
6878 do :
6879   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6880 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6881 "
6882 eval as_val=\$$as_ac_Header
6883    if test "x$as_val" = x""yes; then :
6884   cat >>confdefs.h <<_ACEOF
6885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6886 _ACEOF
6887
6888 fi
6889
6890 done
6891
6892
6893 for ac_header in dlfcn.h
6894 do :
6895   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6896 "
6897 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6898   cat >>confdefs.h <<_ACEOF
6899 #define HAVE_DLFCN_H 1
6900 _ACEOF
6901
6902 fi
6903
6904 done
6905
6906
6907
6908
6909
6910 # Set options
6911
6912
6913
6914         enable_dlopen=no
6915
6916
6917   enable_win32_dll=no
6918
6919
6920             # Check whether --enable-shared was given.
6921 if test "${enable_shared+set}" = set; then :
6922   enableval=$enable_shared; p=${PACKAGE-default}
6923     case $enableval in
6924     yes) enable_shared=yes ;;
6925     no) enable_shared=no ;;
6926     *)
6927       enable_shared=no
6928       # Look at the argument we got.  We use all the common list separators.
6929       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6930       for pkg in $enableval; do
6931         IFS="$lt_save_ifs"
6932         if test "X$pkg" = "X$p"; then
6933           enable_shared=yes
6934         fi
6935       done
6936       IFS="$lt_save_ifs"
6937       ;;
6938     esac
6939 else
6940   enable_shared=yes
6941 fi
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951   # Check whether --enable-static was given.
6952 if test "${enable_static+set}" = set; then :
6953   enableval=$enable_static; p=${PACKAGE-default}
6954     case $enableval in
6955     yes) enable_static=yes ;;
6956     no) enable_static=no ;;
6957     *)
6958      enable_static=no
6959       # Look at the argument we got.  We use all the common list separators.
6960       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6961       for pkg in $enableval; do
6962         IFS="$lt_save_ifs"
6963         if test "X$pkg" = "X$p"; then
6964           enable_static=yes
6965         fi
6966       done
6967       IFS="$lt_save_ifs"
6968       ;;
6969     esac
6970 else
6971   enable_static=yes
6972 fi
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983 # Check whether --with-pic was given.
6984 if test "${with_pic+set}" = set; then :
6985   withval=$with_pic; pic_mode="$withval"
6986 else
6987   pic_mode=default
6988 fi
6989
6990
6991 test -z "$pic_mode" && pic_mode=default
6992
6993
6994
6995
6996
6997
6998
6999   # Check whether --enable-fast-install was given.
7000 if test "${enable_fast_install+set}" = set; then :
7001   enableval=$enable_fast_install; p=${PACKAGE-default}
7002     case $enableval in
7003     yes) enable_fast_install=yes ;;
7004     no) enable_fast_install=no ;;
7005     *)
7006       enable_fast_install=no
7007       # Look at the argument we got.  We use all the common list separators.
7008       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7009       for pkg in $enableval; do
7010         IFS="$lt_save_ifs"
7011         if test "X$pkg" = "X$p"; then
7012           enable_fast_install=yes
7013         fi
7014       done
7015       IFS="$lt_save_ifs"
7016       ;;
7017     esac
7018 else
7019   enable_fast_install=yes
7020 fi
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032 # This can be used to rebuild libtool when needed
7033 LIBTOOL_DEPS="$ltmain"
7034
7035 # Always use our own libtool.
7036 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063 test -z "$LN_S" && LN_S="ln -s"
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078 if test -n "${ZSH_VERSION+set}" ; then
7079    setopt NO_GLOB_SUBST
7080 fi
7081
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7083 $as_echo_n "checking for objdir... " >&6; }
7084 if test "${lt_cv_objdir+set}" = set; then :
7085   $as_echo_n "(cached) " >&6
7086 else
7087   rm -f .libs 2>/dev/null
7088 mkdir .libs 2>/dev/null
7089 if test -d .libs; then
7090   lt_cv_objdir=.libs
7091 else
7092   # MS-DOS does not allow filenames that begin with a dot.
7093   lt_cv_objdir=_libs
7094 fi
7095 rmdir .libs 2>/dev/null
7096 fi
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7098 $as_echo "$lt_cv_objdir" >&6; }
7099 objdir=$lt_cv_objdir
7100
7101
7102
7103
7104
7105 cat >>confdefs.h <<_ACEOF
7106 #define LT_OBJDIR "$lt_cv_objdir/"
7107 _ACEOF
7108
7109
7110
7111
7112 case $host_os in
7113 aix3*)
7114   # AIX sometimes has problems with the GCC collect2 program.  For some
7115   # reason, if we set the COLLECT_NAMES environment variable, the problems
7116   # vanish in a puff of smoke.
7117   if test "X${COLLECT_NAMES+set}" != Xset; then
7118     COLLECT_NAMES=
7119     export COLLECT_NAMES
7120   fi
7121   ;;
7122 esac
7123
7124 # Global variables:
7125 ofile=libtool
7126 can_build_shared=yes
7127
7128 # All known linkers require a `.a' archive for static linking (except MSVC,
7129 # which needs '.lib').
7130 libext=a
7131
7132 with_gnu_ld="$lt_cv_prog_gnu_ld"
7133
7134 old_CC="$CC"
7135 old_CFLAGS="$CFLAGS"
7136
7137 # Set sane defaults for various variables
7138 test -z "$CC" && CC=cc
7139 test -z "$LTCC" && LTCC=$CC
7140 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7141 test -z "$LD" && LD=ld
7142 test -z "$ac_objext" && ac_objext=o
7143
7144 for cc_temp in $compiler""; do
7145   case $cc_temp in
7146     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7147     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7148     \-*) ;;
7149     *) break;;
7150   esac
7151 done
7152 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7153
7154
7155 # Only perform the check for file, if the check method requires it
7156 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7157 case $deplibs_check_method in
7158 file_magic*)
7159   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7161 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7162 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7163   $as_echo_n "(cached) " >&6
7164 else
7165   case $MAGIC_CMD in
7166 [\\/*] |  ?:[\\/]*)
7167   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7168   ;;
7169 *)
7170   lt_save_MAGIC_CMD="$MAGIC_CMD"
7171   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7172   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7173   for ac_dir in $ac_dummy; do
7174     IFS="$lt_save_ifs"
7175     test -z "$ac_dir" && ac_dir=.
7176     if test -f $ac_dir/${ac_tool_prefix}file; then
7177       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7178       if test -n "$file_magic_test_file"; then
7179         case $deplibs_check_method in
7180         "file_magic "*)
7181           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7182           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7183           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7184             $EGREP "$file_magic_regex" > /dev/null; then
7185             :
7186           else
7187             cat <<_LT_EOF 1>&2
7188
7189 *** Warning: the command libtool uses to detect shared libraries,
7190 *** $file_magic_cmd, produces output that libtool cannot recognize.
7191 *** The result is that libtool may fail to recognize shared libraries
7192 *** as such.  This will affect the creation of libtool libraries that
7193 *** depend on shared libraries, but programs linked with such libtool
7194 *** libraries will work regardless of this problem.  Nevertheless, you
7195 *** may want to report the problem to your system manager and/or to
7196 *** bug-libtool@gnu.org
7197
7198 _LT_EOF
7199           fi ;;
7200         esac
7201       fi
7202       break
7203     fi
7204   done
7205   IFS="$lt_save_ifs"
7206   MAGIC_CMD="$lt_save_MAGIC_CMD"
7207   ;;
7208 esac
7209 fi
7210
7211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7212 if test -n "$MAGIC_CMD"; then
7213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7214 $as_echo "$MAGIC_CMD" >&6; }
7215 else
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7218 fi
7219
7220
7221
7222
7223
7224 if test -z "$lt_cv_path_MAGIC_CMD"; then
7225   if test -n "$ac_tool_prefix"; then
7226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7227 $as_echo_n "checking for file... " >&6; }
7228 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7229   $as_echo_n "(cached) " >&6
7230 else
7231   case $MAGIC_CMD in
7232 [\\/*] |  ?:[\\/]*)
7233   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7234   ;;
7235 *)
7236   lt_save_MAGIC_CMD="$MAGIC_CMD"
7237   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7238   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7239   for ac_dir in $ac_dummy; do
7240     IFS="$lt_save_ifs"
7241     test -z "$ac_dir" && ac_dir=.
7242     if test -f $ac_dir/file; then
7243       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7244       if test -n "$file_magic_test_file"; then
7245         case $deplibs_check_method in
7246         "file_magic "*)
7247           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7248           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7249           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7250             $EGREP "$file_magic_regex" > /dev/null; then
7251             :
7252           else
7253             cat <<_LT_EOF 1>&2
7254
7255 *** Warning: the command libtool uses to detect shared libraries,
7256 *** $file_magic_cmd, produces output that libtool cannot recognize.
7257 *** The result is that libtool may fail to recognize shared libraries
7258 *** as such.  This will affect the creation of libtool libraries that
7259 *** depend on shared libraries, but programs linked with such libtool
7260 *** libraries will work regardless of this problem.  Nevertheless, you
7261 *** may want to report the problem to your system manager and/or to
7262 *** bug-libtool@gnu.org
7263
7264 _LT_EOF
7265           fi ;;
7266         esac
7267       fi
7268       break
7269     fi
7270   done
7271   IFS="$lt_save_ifs"
7272   MAGIC_CMD="$lt_save_MAGIC_CMD"
7273   ;;
7274 esac
7275 fi
7276
7277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7278 if test -n "$MAGIC_CMD"; then
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7280 $as_echo "$MAGIC_CMD" >&6; }
7281 else
7282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7284 fi
7285
7286
7287   else
7288     MAGIC_CMD=:
7289   fi
7290 fi
7291
7292   fi
7293   ;;
7294 esac
7295
7296 # Use C for the default configuration in the libtool script
7297
7298 lt_save_CC="$CC"
7299 ac_ext=c
7300 ac_cpp='$CPP $CPPFLAGS'
7301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7304
7305
7306 # Source file extension for C test sources.
7307 ac_ext=c
7308
7309 # Object file extension for compiled C test sources.
7310 objext=o
7311 objext=$objext
7312
7313 # Code to be used in simple compile tests
7314 lt_simple_compile_test_code="int some_variable = 0;"
7315
7316 # Code to be used in simple link tests
7317 lt_simple_link_test_code='int main(){return(0);}'
7318
7319
7320
7321
7322
7323
7324
7325 # If no C compiler was specified, use CC.
7326 LTCC=${LTCC-"$CC"}
7327
7328 # If no C compiler flags were specified, use CFLAGS.
7329 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7330
7331 # Allow CC to be a program name with arguments.
7332 compiler=$CC
7333
7334 # Save the default compiler, since it gets overwritten when the other
7335 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7336 compiler_DEFAULT=$CC
7337
7338 # save warnings/boilerplate of simple test code
7339 ac_outfile=conftest.$ac_objext
7340 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7341 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7342 _lt_compiler_boilerplate=`cat conftest.err`
7343 $RM conftest*
7344
7345 ac_outfile=conftest.$ac_objext
7346 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7347 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7348 _lt_linker_boilerplate=`cat conftest.err`
7349 $RM -r conftest*
7350
7351
7352 ## CAVEAT EMPTOR:
7353 ## There is no encapsulation within the following macros, do not change
7354 ## the running order or otherwise move them around unless you know exactly
7355 ## what you are doing...
7356 if test -n "$compiler"; then
7357
7358 lt_prog_compiler_no_builtin_flag=
7359
7360 if test "$GCC" = yes; then
7361   case $cc_basename in
7362   nvcc*)
7363     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7364   *)
7365     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7366   esac
7367
7368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7369 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7370 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7371   $as_echo_n "(cached) " >&6
7372 else
7373   lt_cv_prog_compiler_rtti_exceptions=no
7374    ac_outfile=conftest.$ac_objext
7375    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7376    lt_compiler_flag="-fno-rtti -fno-exceptions"
7377    # Insert the option either (1) after the last *FLAGS variable, or
7378    # (2) before a word containing "conftest.", or (3) at the end.
7379    # Note that $ac_compile itself does not contain backslashes and begins
7380    # with a dollar sign (not a hyphen), so the echo should work correctly.
7381    # The option is referenced via a variable to avoid confusing sed.
7382    lt_compile=`echo "$ac_compile" | $SED \
7383    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7384    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7385    -e 's:$: $lt_compiler_flag:'`
7386    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7387    (eval "$lt_compile" 2>conftest.err)
7388    ac_status=$?
7389    cat conftest.err >&5
7390    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391    if (exit $ac_status) && test -s "$ac_outfile"; then
7392      # The compiler can only warn and ignore the option if not recognized
7393      # So say no if there are warnings other than the usual output.
7394      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7395      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7396      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7397        lt_cv_prog_compiler_rtti_exceptions=yes
7398      fi
7399    fi
7400    $RM conftest*
7401
7402 fi
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7404 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7405
7406 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7407     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7408 else
7409     :
7410 fi
7411
7412 fi
7413
7414
7415
7416
7417
7418
7419   lt_prog_compiler_wl=
7420 lt_prog_compiler_pic=
7421 lt_prog_compiler_static=
7422
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7424 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7425
7426   if test "$GCC" = yes; then
7427     lt_prog_compiler_wl='-Wl,'
7428     lt_prog_compiler_static='-static'
7429
7430     case $host_os in
7431       aix*)
7432       # All AIX code is PIC.
7433       if test "$host_cpu" = ia64; then
7434         # AIX 5 now supports IA64 processor
7435         lt_prog_compiler_static='-Bstatic'
7436       fi
7437       lt_prog_compiler_pic='-fPIC'
7438       ;;
7439
7440     amigaos*)
7441       case $host_cpu in
7442       powerpc)
7443             # see comment about AmigaOS4 .so support
7444             lt_prog_compiler_pic='-fPIC'
7445         ;;
7446       m68k)
7447             # FIXME: we need at least 68020 code to build shared libraries, but
7448             # adding the `-m68020' flag to GCC prevents building anything better,
7449             # like `-m68040'.
7450             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7451         ;;
7452       esac
7453       ;;
7454
7455     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7456       # PIC is the default for these OSes.
7457       ;;
7458
7459     mingw* | cygwin* | pw32* | os2* | cegcc*)
7460       # This hack is so that the source file can tell whether it is being
7461       # built for inclusion in a dll (and should export symbols for example).
7462       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7463       # (--disable-auto-import) libraries
7464       lt_prog_compiler_pic='-DDLL_EXPORT'
7465       ;;
7466
7467     darwin* | rhapsody*)
7468       # PIC is the default on this platform
7469       # Common symbols not allowed in MH_DYLIB files
7470       lt_prog_compiler_pic='-fno-common'
7471       ;;
7472
7473     haiku*)
7474       # PIC is the default for Haiku.
7475       # The "-static" flag exists, but is broken.
7476       lt_prog_compiler_static=
7477       ;;
7478
7479     hpux*)
7480       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7481       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7482       # sets the default TLS model and affects inlining.
7483       case $host_cpu in
7484       hppa*64*)
7485         # +Z the default
7486         ;;
7487       *)
7488         lt_prog_compiler_pic='-fPIC'
7489         ;;
7490       esac
7491       ;;
7492
7493     interix[3-9]*)
7494       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7495       # Instead, we relocate shared libraries at runtime.
7496       ;;
7497
7498     msdosdjgpp*)
7499       # Just because we use GCC doesn't mean we suddenly get shared libraries
7500       # on systems that don't support them.
7501       lt_prog_compiler_can_build_shared=no
7502       enable_shared=no
7503       ;;
7504
7505     *nto* | *qnx*)
7506       # QNX uses GNU C++, but need to define -shared option too, otherwise
7507       # it will coredump.
7508       lt_prog_compiler_pic='-fPIC -shared'
7509       ;;
7510
7511     sysv4*MP*)
7512       if test -d /usr/nec; then
7513         lt_prog_compiler_pic=-Kconform_pic
7514       fi
7515       ;;
7516
7517     *)
7518       lt_prog_compiler_pic='-fPIC'
7519       ;;
7520     esac
7521
7522     case $cc_basename in
7523     nvcc*) # Cuda Compiler Driver 2.2
7524       lt_prog_compiler_wl='-Xlinker '
7525       lt_prog_compiler_pic='-Xcompiler -fPIC'
7526       ;;
7527     esac
7528   else
7529     # PORTME Check for flag to pass linker flags through the system compiler.
7530     case $host_os in
7531     aix*)
7532       lt_prog_compiler_wl='-Wl,'
7533       if test "$host_cpu" = ia64; then
7534         # AIX 5 now supports IA64 processor
7535         lt_prog_compiler_static='-Bstatic'
7536       else
7537         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7538       fi
7539       ;;
7540
7541     mingw* | cygwin* | pw32* | os2* | cegcc*)
7542       # This hack is so that the source file can tell whether it is being
7543       # built for inclusion in a dll (and should export symbols for example).
7544       lt_prog_compiler_pic='-DDLL_EXPORT'
7545       ;;
7546
7547     hpux9* | hpux10* | hpux11*)
7548       lt_prog_compiler_wl='-Wl,'
7549       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7550       # not for PA HP-UX.
7551       case $host_cpu in
7552       hppa*64*|ia64*)
7553         # +Z the default
7554         ;;
7555       *)
7556         lt_prog_compiler_pic='+Z'
7557         ;;
7558       esac
7559       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7560       lt_prog_compiler_static='${wl}-a ${wl}archive'
7561       ;;
7562
7563     irix5* | irix6* | nonstopux*)
7564       lt_prog_compiler_wl='-Wl,'
7565       # PIC (with -KPIC) is the default.
7566       lt_prog_compiler_static='-non_shared'
7567       ;;
7568
7569     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7570       case $cc_basename in
7571       # old Intel for x86_64 which still supported -KPIC.
7572       ecc*)
7573         lt_prog_compiler_wl='-Wl,'
7574         lt_prog_compiler_pic='-KPIC'
7575         lt_prog_compiler_static='-static'
7576         ;;
7577       # icc used to be incompatible with GCC.
7578       # ICC 10 doesn't accept -KPIC any more.
7579       icc* | ifort*)
7580         lt_prog_compiler_wl='-Wl,'
7581         lt_prog_compiler_pic='-fPIC'
7582         lt_prog_compiler_static='-static'
7583         ;;
7584       # Lahey Fortran 8.1.
7585       lf95*)
7586         lt_prog_compiler_wl='-Wl,'
7587         lt_prog_compiler_pic='--shared'
7588         lt_prog_compiler_static='--static'
7589         ;;
7590       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7591         # Portland Group compilers (*not* the Pentium gcc compiler,
7592         # which looks to be a dead project)
7593         lt_prog_compiler_wl='-Wl,'
7594         lt_prog_compiler_pic='-fpic'
7595         lt_prog_compiler_static='-Bstatic'
7596         ;;
7597       ccc*)
7598         lt_prog_compiler_wl='-Wl,'
7599         # All Alpha code is PIC.
7600         lt_prog_compiler_static='-non_shared'
7601         ;;
7602       xl* | bgxl* | bgf* | mpixl*)
7603         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7604         lt_prog_compiler_wl='-Wl,'
7605         lt_prog_compiler_pic='-qpic'
7606         lt_prog_compiler_static='-qstaticlink'
7607         ;;
7608       *)
7609         case `$CC -V 2>&1 | sed 5q` in
7610         *Sun\ F* | *Sun*Fortran*)
7611           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7612           lt_prog_compiler_pic='-KPIC'
7613           lt_prog_compiler_static='-Bstatic'
7614           lt_prog_compiler_wl=''
7615           ;;
7616         *Sun\ C*)
7617           # Sun C 5.9
7618           lt_prog_compiler_pic='-KPIC'
7619           lt_prog_compiler_static='-Bstatic'
7620           lt_prog_compiler_wl='-Wl,'
7621           ;;
7622         esac
7623         ;;
7624       esac
7625       ;;
7626
7627     newsos6)
7628       lt_prog_compiler_pic='-KPIC'
7629       lt_prog_compiler_static='-Bstatic'
7630       ;;
7631
7632     *nto* | *qnx*)
7633       # QNX uses GNU C++, but need to define -shared option too, otherwise
7634       # it will coredump.
7635       lt_prog_compiler_pic='-fPIC -shared'
7636       ;;
7637
7638     osf3* | osf4* | osf5*)
7639       lt_prog_compiler_wl='-Wl,'
7640       # All OSF/1 code is PIC.
7641       lt_prog_compiler_static='-non_shared'
7642       ;;
7643
7644     rdos*)
7645       lt_prog_compiler_static='-non_shared'
7646       ;;
7647
7648     solaris*)
7649       lt_prog_compiler_pic='-KPIC'
7650       lt_prog_compiler_static='-Bstatic'
7651       case $cc_basename in
7652       f77* | f90* | f95*)
7653         lt_prog_compiler_wl='-Qoption ld ';;
7654       *)
7655         lt_prog_compiler_wl='-Wl,';;
7656       esac
7657       ;;
7658
7659     sunos4*)
7660       lt_prog_compiler_wl='-Qoption ld '
7661       lt_prog_compiler_pic='-PIC'
7662       lt_prog_compiler_static='-Bstatic'
7663       ;;
7664
7665     sysv4 | sysv4.2uw2* | sysv4.3*)
7666       lt_prog_compiler_wl='-Wl,'
7667       lt_prog_compiler_pic='-KPIC'
7668       lt_prog_compiler_static='-Bstatic'
7669       ;;
7670
7671     sysv4*MP*)
7672       if test -d /usr/nec ;then
7673         lt_prog_compiler_pic='-Kconform_pic'
7674         lt_prog_compiler_static='-Bstatic'
7675       fi
7676       ;;
7677
7678     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7679       lt_prog_compiler_wl='-Wl,'
7680       lt_prog_compiler_pic='-KPIC'
7681       lt_prog_compiler_static='-Bstatic'
7682       ;;
7683
7684     unicos*)
7685       lt_prog_compiler_wl='-Wl,'
7686       lt_prog_compiler_can_build_shared=no
7687       ;;
7688
7689     uts4*)
7690       lt_prog_compiler_pic='-pic'
7691       lt_prog_compiler_static='-Bstatic'
7692       ;;
7693
7694     *)
7695       lt_prog_compiler_can_build_shared=no
7696       ;;
7697     esac
7698   fi
7699
7700 case $host_os in
7701   # For platforms which do not support PIC, -DPIC is meaningless:
7702   *djgpp*)
7703     lt_prog_compiler_pic=
7704     ;;
7705   *)
7706     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7707     ;;
7708 esac
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7710 $as_echo "$lt_prog_compiler_pic" >&6; }
7711
7712
7713
7714
7715
7716
7717 #
7718 # Check to make sure the PIC flag actually works.
7719 #
7720 if test -n "$lt_prog_compiler_pic"; then
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7722 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7723 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7724   $as_echo_n "(cached) " >&6
7725 else
7726   lt_cv_prog_compiler_pic_works=no
7727    ac_outfile=conftest.$ac_objext
7728    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7729    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7730    # Insert the option either (1) after the last *FLAGS variable, or
7731    # (2) before a word containing "conftest.", or (3) at the end.
7732    # Note that $ac_compile itself does not contain backslashes and begins
7733    # with a dollar sign (not a hyphen), so the echo should work correctly.
7734    # The option is referenced via a variable to avoid confusing sed.
7735    lt_compile=`echo "$ac_compile" | $SED \
7736    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7737    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7738    -e 's:$: $lt_compiler_flag:'`
7739    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7740    (eval "$lt_compile" 2>conftest.err)
7741    ac_status=$?
7742    cat conftest.err >&5
7743    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744    if (exit $ac_status) && test -s "$ac_outfile"; then
7745      # The compiler can only warn and ignore the option if not recognized
7746      # So say no if there are warnings other than the usual output.
7747      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7748      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7749      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7750        lt_cv_prog_compiler_pic_works=yes
7751      fi
7752    fi
7753    $RM conftest*
7754
7755 fi
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7757 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7758
7759 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7760     case $lt_prog_compiler_pic in
7761      "" | " "*) ;;
7762      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7763      esac
7764 else
7765     lt_prog_compiler_pic=
7766      lt_prog_compiler_can_build_shared=no
7767 fi
7768
7769 fi
7770
7771
7772
7773
7774
7775
7776 #
7777 # Check to make sure the static flag actually works.
7778 #
7779 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7781 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7782 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7783   $as_echo_n "(cached) " >&6
7784 else
7785   lt_cv_prog_compiler_static_works=no
7786    save_LDFLAGS="$LDFLAGS"
7787    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7788    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7789    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7790      # The linker can only warn and ignore the option if not recognized
7791      # So say no if there are warnings
7792      if test -s conftest.err; then
7793        # Append any errors to the config.log.
7794        cat conftest.err 1>&5
7795        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7796        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7797        if diff conftest.exp conftest.er2 >/dev/null; then
7798          lt_cv_prog_compiler_static_works=yes
7799        fi
7800      else
7801        lt_cv_prog_compiler_static_works=yes
7802      fi
7803    fi
7804    $RM -r conftest*
7805    LDFLAGS="$save_LDFLAGS"
7806
7807 fi
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7809 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7810
7811 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7812     :
7813 else
7814     lt_prog_compiler_static=
7815 fi
7816
7817
7818
7819
7820
7821
7822
7823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7824 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7825 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7826   $as_echo_n "(cached) " >&6
7827 else
7828   lt_cv_prog_compiler_c_o=no
7829    $RM -r conftest 2>/dev/null
7830    mkdir conftest
7831    cd conftest
7832    mkdir out
7833    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7834
7835    lt_compiler_flag="-o out/conftest2.$ac_objext"
7836    # Insert the option either (1) after the last *FLAGS variable, or
7837    # (2) before a word containing "conftest.", or (3) at the end.
7838    # Note that $ac_compile itself does not contain backslashes and begins
7839    # with a dollar sign (not a hyphen), so the echo should work correctly.
7840    lt_compile=`echo "$ac_compile" | $SED \
7841    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7842    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7843    -e 's:$: $lt_compiler_flag:'`
7844    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7845    (eval "$lt_compile" 2>out/conftest.err)
7846    ac_status=$?
7847    cat out/conftest.err >&5
7848    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7850    then
7851      # The compiler can only warn and ignore the option if not recognized
7852      # So say no if there are warnings
7853      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7854      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7855      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7856        lt_cv_prog_compiler_c_o=yes
7857      fi
7858    fi
7859    chmod u+w . 2>&5
7860    $RM conftest*
7861    # SGI C++ compiler will create directory out/ii_files/ for
7862    # template instantiation
7863    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7864    $RM out/* && rmdir out
7865    cd ..
7866    $RM -r conftest
7867    $RM conftest*
7868
7869 fi
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7871 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7872
7873
7874
7875
7876
7877
7878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7879 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7880 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7881   $as_echo_n "(cached) " >&6
7882 else
7883   lt_cv_prog_compiler_c_o=no
7884    $RM -r conftest 2>/dev/null
7885    mkdir conftest
7886    cd conftest
7887    mkdir out
7888    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7889
7890    lt_compiler_flag="-o out/conftest2.$ac_objext"
7891    # Insert the option either (1) after the last *FLAGS variable, or
7892    # (2) before a word containing "conftest.", or (3) at the end.
7893    # Note that $ac_compile itself does not contain backslashes and begins
7894    # with a dollar sign (not a hyphen), so the echo should work correctly.
7895    lt_compile=`echo "$ac_compile" | $SED \
7896    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7897    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7898    -e 's:$: $lt_compiler_flag:'`
7899    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7900    (eval "$lt_compile" 2>out/conftest.err)
7901    ac_status=$?
7902    cat out/conftest.err >&5
7903    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7905    then
7906      # The compiler can only warn and ignore the option if not recognized
7907      # So say no if there are warnings
7908      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7909      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7910      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7911        lt_cv_prog_compiler_c_o=yes
7912      fi
7913    fi
7914    chmod u+w . 2>&5
7915    $RM conftest*
7916    # SGI C++ compiler will create directory out/ii_files/ for
7917    # template instantiation
7918    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7919    $RM out/* && rmdir out
7920    cd ..
7921    $RM -r conftest
7922    $RM conftest*
7923
7924 fi
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7926 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7927
7928
7929
7930
7931 hard_links="nottested"
7932 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7933   # do not overwrite the value of need_locks provided by the user
7934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7935 $as_echo_n "checking if we can lock with hard links... " >&6; }
7936   hard_links=yes
7937   $RM conftest*
7938   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7939   touch conftest.a
7940   ln conftest.a conftest.b 2>&5 || hard_links=no
7941   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7943 $as_echo "$hard_links" >&6; }
7944   if test "$hard_links" = no; then
7945     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7946 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7947     need_locks=warn
7948   fi
7949 else
7950   need_locks=no
7951 fi
7952
7953
7954
7955
7956
7957
7958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7959 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7960
7961   runpath_var=
7962   allow_undefined_flag=
7963   always_export_symbols=no
7964   archive_cmds=
7965   archive_expsym_cmds=
7966   compiler_needs_object=no
7967   enable_shared_with_static_runtimes=no
7968   export_dynamic_flag_spec=
7969   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7970   hardcode_automatic=no
7971   hardcode_direct=no
7972   hardcode_direct_absolute=no
7973   hardcode_libdir_flag_spec=
7974   hardcode_libdir_flag_spec_ld=
7975   hardcode_libdir_separator=
7976   hardcode_minus_L=no
7977   hardcode_shlibpath_var=unsupported
7978   inherit_rpath=no
7979   link_all_deplibs=unknown
7980   module_cmds=
7981   module_expsym_cmds=
7982   old_archive_from_new_cmds=
7983   old_archive_from_expsyms_cmds=
7984   thread_safe_flag_spec=
7985   whole_archive_flag_spec=
7986   # include_expsyms should be a list of space-separated symbols to be *always*
7987   # included in the symbol list
7988   include_expsyms=
7989   # exclude_expsyms can be an extended regexp of symbols to exclude
7990   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7991   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7992   # as well as any symbol that contains `d'.
7993   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7994   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7995   # platforms (ab)use it in PIC code, but their linkers get confused if
7996   # the symbol is explicitly referenced.  Since portable code cannot
7997   # rely on this symbol name, it's probably fine to never include it in
7998   # preloaded symbol tables.
7999   # Exclude shared library initialization/finalization symbols.
8000   extract_expsyms_cmds=
8001
8002   case $host_os in
8003   cygwin* | mingw* | pw32* | cegcc*)
8004     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8005     # When not using gcc, we currently assume that we are using
8006     # Microsoft Visual C++.
8007     if test "$GCC" != yes; then
8008       with_gnu_ld=no
8009     fi
8010     ;;
8011   interix*)
8012     # we just hope/assume this is gcc and not c89 (= MSVC++)
8013     with_gnu_ld=yes
8014     ;;
8015   openbsd*)
8016     with_gnu_ld=no
8017     ;;
8018   esac
8019
8020   ld_shlibs=yes
8021
8022   # On some targets, GNU ld is compatible enough with the native linker
8023   # that we're better off using the native interface for both.
8024   lt_use_gnu_ld_interface=no
8025   if test "$with_gnu_ld" = yes; then
8026     case $host_os in
8027       aix*)
8028         # The AIX port of GNU ld has always aspired to compatibility
8029         # with the native linker.  However, as the warning in the GNU ld
8030         # block says, versions before 2.19.5* couldn't really create working
8031         # shared libraries, regardless of the interface used.
8032         case `$LD -v 2>&1` in
8033           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8034           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8035           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8036           *)
8037             lt_use_gnu_ld_interface=yes
8038             ;;
8039         esac
8040         ;;
8041       *)
8042         lt_use_gnu_ld_interface=yes
8043         ;;
8044     esac
8045   fi
8046
8047   if test "$lt_use_gnu_ld_interface" = yes; then
8048     # If archive_cmds runs LD, not CC, wlarc should be empty
8049     wlarc='${wl}'
8050
8051     # Set some defaults for GNU ld with shared library support. These
8052     # are reset later if shared libraries are not supported. Putting them
8053     # here allows them to be overridden if necessary.
8054     runpath_var=LD_RUN_PATH
8055     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8056     export_dynamic_flag_spec='${wl}--export-dynamic'
8057     # ancient GNU ld didn't support --whole-archive et. al.
8058     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8059       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8060     else
8061       whole_archive_flag_spec=
8062     fi
8063     supports_anon_versioning=no
8064     case `$LD -v 2>&1` in
8065       *GNU\ gold*) supports_anon_versioning=yes ;;
8066       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8067       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8068       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8069       *\ 2.11.*) ;; # other 2.11 versions
8070       *) supports_anon_versioning=yes ;;
8071     esac
8072
8073     # See if GNU ld supports shared libraries.
8074     case $host_os in
8075     aix[3-9]*)
8076       # On AIX/PPC, the GNU linker is very broken
8077       if test "$host_cpu" != ia64; then
8078         ld_shlibs=no
8079         cat <<_LT_EOF 1>&2
8080
8081 *** Warning: the GNU linker, at least up to release 2.19, is reported
8082 *** to be unable to reliably create shared libraries on AIX.
8083 *** Therefore, libtool is disabling shared libraries support.  If you
8084 *** really care for shared libraries, you may want to install binutils
8085 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8086 *** You will then need to restart the configuration process.
8087
8088 _LT_EOF
8089       fi
8090       ;;
8091
8092     amigaos*)
8093       case $host_cpu in
8094       powerpc)
8095             # see comment about AmigaOS4 .so support
8096             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8097             archive_expsym_cmds=''
8098         ;;
8099       m68k)
8100             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)'
8101             hardcode_libdir_flag_spec='-L$libdir'
8102             hardcode_minus_L=yes
8103         ;;
8104       esac
8105       ;;
8106
8107     beos*)
8108       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8109         allow_undefined_flag=unsupported
8110         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8111         # support --undefined.  This deserves some investigation.  FIXME
8112         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8113       else
8114         ld_shlibs=no
8115       fi
8116       ;;
8117
8118     cygwin* | mingw* | pw32* | cegcc*)
8119       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8120       # as there is no search path for DLLs.
8121       hardcode_libdir_flag_spec='-L$libdir'
8122       export_dynamic_flag_spec='${wl}--export-all-symbols'
8123       allow_undefined_flag=unsupported
8124       always_export_symbols=no
8125       enable_shared_with_static_runtimes=yes
8126       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8127
8128       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8129         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8130         # If the export-symbols file already is a .def file (1st line
8131         # is EXPORTS), use it as is; otherwise, prepend...
8132         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8133           cp $export_symbols $output_objdir/$soname.def;
8134         else
8135           echo EXPORTS > $output_objdir/$soname.def;
8136           cat $export_symbols >> $output_objdir/$soname.def;
8137         fi~
8138         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8139       else
8140         ld_shlibs=no
8141       fi
8142       ;;
8143
8144     haiku*)
8145       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8146       link_all_deplibs=yes
8147       ;;
8148
8149     interix[3-9]*)
8150       hardcode_direct=no
8151       hardcode_shlibpath_var=no
8152       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8153       export_dynamic_flag_spec='${wl}-E'
8154       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8155       # Instead, shared libraries are loaded at an image base (0x10000000 by
8156       # default) and relocated if they conflict, which is a slow very memory
8157       # consuming and fragmenting process.  To avoid this, we pick a random,
8158       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8159       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8160       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8161       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'
8162       ;;
8163
8164     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8165       tmp_diet=no
8166       if test "$host_os" = linux-dietlibc; then
8167         case $cc_basename in
8168           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8169         esac
8170       fi
8171       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8172          && test "$tmp_diet" = no
8173       then
8174         tmp_addflag=' $pic_flag'
8175         tmp_sharedflag='-shared'
8176         case $cc_basename,$host_cpu in
8177         pgcc*)                          # Portland Group C compiler
8178           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'
8179           tmp_addflag=' $pic_flag'
8180           ;;
8181         pgf77* | pgf90* | pgf95* | pgfortran*)
8182                                         # Portland Group f77 and f90 compilers
8183           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'
8184           tmp_addflag=' $pic_flag -Mnomain' ;;
8185         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8186           tmp_addflag=' -i_dynamic' ;;
8187         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8188           tmp_addflag=' -i_dynamic -nofor_main' ;;
8189         ifc* | ifort*)                  # Intel Fortran compiler
8190           tmp_addflag=' -nofor_main' ;;
8191         lf95*)                          # Lahey Fortran 8.1
8192           whole_archive_flag_spec=
8193           tmp_sharedflag='--shared' ;;
8194         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8195           tmp_sharedflag='-qmkshrobj'
8196           tmp_addflag= ;;
8197         nvcc*)  # Cuda Compiler Driver 2.2
8198           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'
8199           compiler_needs_object=yes
8200           ;;
8201         esac
8202         case `$CC -V 2>&1 | sed 5q` in
8203         *Sun\ C*)                       # Sun C 5.9
8204           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'
8205           compiler_needs_object=yes
8206           tmp_sharedflag='-G' ;;
8207         *Sun\ F*)                       # Sun Fortran 8.3
8208           tmp_sharedflag='-G' ;;
8209         esac
8210         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8211
8212         if test "x$supports_anon_versioning" = xyes; then
8213           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8214             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8215             echo "local: *; };" >> $output_objdir/$libname.ver~
8216             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8217         fi
8218
8219         case $cc_basename in
8220         xlf* | bgf* | bgxlf* | mpixlf*)
8221           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8222           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8223           hardcode_libdir_flag_spec=
8224           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8225           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8226           if test "x$supports_anon_versioning" = xyes; then
8227             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8228               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8229               echo "local: *; };" >> $output_objdir/$libname.ver~
8230               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8231           fi
8232           ;;
8233         esac
8234       else
8235         ld_shlibs=no
8236       fi
8237       ;;
8238
8239     netbsd*)
8240       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8241         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8242         wlarc=
8243       else
8244         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8245         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8246       fi
8247       ;;
8248
8249     solaris*)
8250       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8251         ld_shlibs=no
8252         cat <<_LT_EOF 1>&2
8253
8254 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8255 *** create shared libraries on Solaris systems.  Therefore, libtool
8256 *** is disabling shared libraries support.  We urge you to upgrade GNU
8257 *** binutils to release 2.9.1 or newer.  Another option is to modify
8258 *** your PATH or compiler configuration so that the native linker is
8259 *** used, and then restart.
8260
8261 _LT_EOF
8262       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8263         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8264         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8265       else
8266         ld_shlibs=no
8267       fi
8268       ;;
8269
8270     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8271       case `$LD -v 2>&1` in
8272         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8273         ld_shlibs=no
8274         cat <<_LT_EOF 1>&2
8275
8276 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8277 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8278 *** is disabling shared libraries support.  We urge you to upgrade GNU
8279 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8280 *** your PATH or compiler configuration so that the native linker is
8281 *** used, and then restart.
8282
8283 _LT_EOF
8284         ;;
8285         *)
8286           # For security reasons, it is highly recommended that you always
8287           # use absolute paths for naming shared libraries, and exclude the
8288           # DT_RUNPATH tag from executables and libraries.  But doing so
8289           # requires that you compile everything twice, which is a pain.
8290           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8291             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8292             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8293             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8294           else
8295             ld_shlibs=no
8296           fi
8297         ;;
8298       esac
8299       ;;
8300
8301     sunos4*)
8302       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8303       wlarc=
8304       hardcode_direct=yes
8305       hardcode_shlibpath_var=no
8306       ;;
8307
8308     *)
8309       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8310         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8311         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8312       else
8313         ld_shlibs=no
8314       fi
8315       ;;
8316     esac
8317
8318     if test "$ld_shlibs" = no; then
8319       runpath_var=
8320       hardcode_libdir_flag_spec=
8321       export_dynamic_flag_spec=
8322       whole_archive_flag_spec=
8323     fi
8324   else
8325     # PORTME fill in a description of your system's linker (not GNU ld)
8326     case $host_os in
8327     aix3*)
8328       allow_undefined_flag=unsupported
8329       always_export_symbols=yes
8330       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'
8331       # Note: this linker hardcodes the directories in LIBPATH if there
8332       # are no directories specified by -L.
8333       hardcode_minus_L=yes
8334       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8335         # Neither direct hardcoding nor static linking is supported with a
8336         # broken collect2.
8337         hardcode_direct=unsupported
8338       fi
8339       ;;
8340
8341     aix[4-9]*)
8342       if test "$host_cpu" = ia64; then
8343         # On IA64, the linker does run time linking by default, so we don't
8344         # have to do anything special.
8345         aix_use_runtimelinking=no
8346         exp_sym_flag='-Bexport'
8347         no_entry_flag=""
8348       else
8349         # If we're using GNU nm, then we don't want the "-C" option.
8350         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8351         # Also, AIX nm treats weak defined symbols like other global
8352         # defined symbols, whereas GNU nm marks them as "W".
8353         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8354           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'
8355         else
8356           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8357         fi
8358         aix_use_runtimelinking=no
8359
8360         # Test if we are trying to use run time linking or normal
8361         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8362         # need to do runtime linking.
8363         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8364           for ld_flag in $LDFLAGS; do
8365           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8366             aix_use_runtimelinking=yes
8367             break
8368           fi
8369           done
8370           ;;
8371         esac
8372
8373         exp_sym_flag='-bexport'
8374         no_entry_flag='-bnoentry'
8375       fi
8376
8377       # When large executables or shared objects are built, AIX ld can
8378       # have problems creating the table of contents.  If linking a library
8379       # or program results in "error TOC overflow" add -mminimal-toc to
8380       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8381       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8382
8383       archive_cmds=''
8384       hardcode_direct=yes
8385       hardcode_direct_absolute=yes
8386       hardcode_libdir_separator=':'
8387       link_all_deplibs=yes
8388       file_list_spec='${wl}-f,'
8389
8390       if test "$GCC" = yes; then
8391         case $host_os in aix4.[012]|aix4.[012].*)
8392         # We only want to do this on AIX 4.2 and lower, the check
8393         # below for broken collect2 doesn't work under 4.3+
8394           collect2name=`${CC} -print-prog-name=collect2`
8395           if test -f "$collect2name" &&
8396            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8397           then
8398           # We have reworked collect2
8399           :
8400           else
8401           # We have old collect2
8402           hardcode_direct=unsupported
8403           # It fails to find uninstalled libraries when the uninstalled
8404           # path is not listed in the libpath.  Setting hardcode_minus_L
8405           # to unsupported forces relinking
8406           hardcode_minus_L=yes
8407           hardcode_libdir_flag_spec='-L$libdir'
8408           hardcode_libdir_separator=
8409           fi
8410           ;;
8411         esac
8412         shared_flag='-shared'
8413         if test "$aix_use_runtimelinking" = yes; then
8414           shared_flag="$shared_flag "'${wl}-G'
8415         fi
8416       else
8417         # not using gcc
8418         if test "$host_cpu" = ia64; then
8419         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8420         # chokes on -Wl,-G. The following line is correct:
8421           shared_flag='-G'
8422         else
8423           if test "$aix_use_runtimelinking" = yes; then
8424             shared_flag='${wl}-G'
8425           else
8426             shared_flag='${wl}-bM:SRE'
8427           fi
8428         fi
8429       fi
8430
8431       export_dynamic_flag_spec='${wl}-bexpall'
8432       # It seems that -bexpall does not export symbols beginning with
8433       # underscore (_), so it is better to generate a list of symbols to export.
8434       always_export_symbols=yes
8435       if test "$aix_use_runtimelinking" = yes; then
8436         # Warning - without using the other runtime loading flags (-brtl),
8437         # -berok will link without error, but may produce a broken library.
8438         allow_undefined_flag='-berok'
8439         # Determine the default libpath from the value encoded in an
8440         # empty executable.
8441         if test x$gcc_no_link = xyes; then
8442   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8443 fi
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h.  */
8446
8447 int
8448 main ()
8449 {
8450
8451   ;
8452   return 0;
8453 }
8454 _ACEOF
8455 if ac_fn_c_try_link "$LINENO"; then :
8456
8457 lt_aix_libpath_sed='
8458     /Import File Strings/,/^$/ {
8459         /^0/ {
8460             s/^0  *\(.*\)$/\1/
8461             p
8462         }
8463     }'
8464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8465 # Check for a 64-bit object if we didn't find anything.
8466 if test -z "$aix_libpath"; then
8467   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8468 fi
8469 fi
8470 rm -f core conftest.err conftest.$ac_objext \
8471     conftest$ac_exeext conftest.$ac_ext
8472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8473
8474         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8475         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"
8476       else
8477         if test "$host_cpu" = ia64; then
8478           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8479           allow_undefined_flag="-z nodefs"
8480           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"
8481         else
8482          # Determine the default libpath from the value encoded in an
8483          # empty executable.
8484          if test x$gcc_no_link = xyes; then
8485   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8486 fi
8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h.  */
8489
8490 int
8491 main ()
8492 {
8493
8494   ;
8495   return 0;
8496 }
8497 _ACEOF
8498 if ac_fn_c_try_link "$LINENO"; then :
8499
8500 lt_aix_libpath_sed='
8501     /Import File Strings/,/^$/ {
8502         /^0/ {
8503             s/^0  *\(.*\)$/\1/
8504             p
8505         }
8506     }'
8507 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8508 # Check for a 64-bit object if we didn't find anything.
8509 if test -z "$aix_libpath"; then
8510   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8511 fi
8512 fi
8513 rm -f core conftest.err conftest.$ac_objext \
8514     conftest$ac_exeext conftest.$ac_ext
8515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8516
8517          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8518           # Warning - without using the other run time loading flags,
8519           # -berok will link without error, but may produce a broken library.
8520           no_undefined_flag=' ${wl}-bernotok'
8521           allow_undefined_flag=' ${wl}-berok'
8522           if test "$with_gnu_ld" = yes; then
8523             # We only use this code for GNU lds that support --whole-archive.
8524             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8525           else
8526             # Exported symbols can be pulled into shared objects from archives
8527             whole_archive_flag_spec='$convenience'
8528           fi
8529           archive_cmds_need_lc=yes
8530           # This is similar to how AIX traditionally builds its shared libraries.
8531           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'
8532         fi
8533       fi
8534       ;;
8535
8536     amigaos*)
8537       case $host_cpu in
8538       powerpc)
8539             # see comment about AmigaOS4 .so support
8540             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8541             archive_expsym_cmds=''
8542         ;;
8543       m68k)
8544             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)'
8545             hardcode_libdir_flag_spec='-L$libdir'
8546             hardcode_minus_L=yes
8547         ;;
8548       esac
8549       ;;
8550
8551     bsdi[45]*)
8552       export_dynamic_flag_spec=-rdynamic
8553       ;;
8554
8555     cygwin* | mingw* | pw32* | cegcc*)
8556       # When not using gcc, we currently assume that we are using
8557       # Microsoft Visual C++.
8558       # hardcode_libdir_flag_spec is actually meaningless, as there is
8559       # no search path for DLLs.
8560       hardcode_libdir_flag_spec=' '
8561       allow_undefined_flag=unsupported
8562       # Tell ltmain to make .lib files, not .a files.
8563       libext=lib
8564       # Tell ltmain to make .dll files, not .so files.
8565       shrext_cmds=".dll"
8566       # FIXME: Setting linknames here is a bad hack.
8567       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8568       # The linker will automatically build a .lib file if we build a DLL.
8569       old_archive_from_new_cmds='true'
8570       # FIXME: Should let the user specify the lib program.
8571       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8572       fix_srcfile_path='`cygpath -w "$srcfile"`'
8573       enable_shared_with_static_runtimes=yes
8574       ;;
8575
8576     darwin* | rhapsody*)
8577
8578
8579   archive_cmds_need_lc=no
8580   hardcode_direct=no
8581   hardcode_automatic=yes
8582   hardcode_shlibpath_var=unsupported
8583   if test "$lt_cv_ld_force_load" = "yes"; then
8584     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\"`'
8585   else
8586     whole_archive_flag_spec=''
8587   fi
8588   link_all_deplibs=yes
8589   allow_undefined_flag="$_lt_dar_allow_undefined"
8590   case $cc_basename in
8591      ifort*) _lt_dar_can_shared=yes ;;
8592      *) _lt_dar_can_shared=$GCC ;;
8593   esac
8594   if test "$_lt_dar_can_shared" = "yes"; then
8595     output_verbose_link_cmd=func_echo_all
8596     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8597     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8598     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}"
8599     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}"
8600
8601   else
8602   ld_shlibs=no
8603   fi
8604
8605       ;;
8606
8607     dgux*)
8608       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8609       hardcode_libdir_flag_spec='-L$libdir'
8610       hardcode_shlibpath_var=no
8611       ;;
8612
8613     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8614     # support.  Future versions do this automatically, but an explicit c++rt0.o
8615     # does not break anything, and helps significantly (at the cost of a little
8616     # extra space).
8617     freebsd2.2*)
8618       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8619       hardcode_libdir_flag_spec='-R$libdir'
8620       hardcode_direct=yes
8621       hardcode_shlibpath_var=no
8622       ;;
8623
8624     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8625     freebsd2.*)
8626       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8627       hardcode_direct=yes
8628       hardcode_minus_L=yes
8629       hardcode_shlibpath_var=no
8630       ;;
8631
8632     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8633     freebsd* | dragonfly*)
8634       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8635       hardcode_libdir_flag_spec='-R$libdir'
8636       hardcode_direct=yes
8637       hardcode_shlibpath_var=no
8638       ;;
8639
8640     hpux9*)
8641       if test "$GCC" = yes; then
8642         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8643       else
8644         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'
8645       fi
8646       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8647       hardcode_libdir_separator=:
8648       hardcode_direct=yes
8649
8650       # hardcode_minus_L: Not really in the search PATH,
8651       # but as the default location of the library.
8652       hardcode_minus_L=yes
8653       export_dynamic_flag_spec='${wl}-E'
8654       ;;
8655
8656     hpux10*)
8657       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8658         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8659       else
8660         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8661       fi
8662       if test "$with_gnu_ld" = no; then
8663         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8664         hardcode_libdir_flag_spec_ld='+b $libdir'
8665         hardcode_libdir_separator=:
8666         hardcode_direct=yes
8667         hardcode_direct_absolute=yes
8668         export_dynamic_flag_spec='${wl}-E'
8669         # hardcode_minus_L: Not really in the search PATH,
8670         # but as the default location of the library.
8671         hardcode_minus_L=yes
8672       fi
8673       ;;
8674
8675     hpux11*)
8676       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8677         case $host_cpu in
8678         hppa*64*)
8679           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8680           ;;
8681         ia64*)
8682           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8683           ;;
8684         *)
8685           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8686           ;;
8687         esac
8688       else
8689         case $host_cpu in
8690         hppa*64*)
8691           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8692           ;;
8693         ia64*)
8694           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8695           ;;
8696         *)
8697
8698           # Older versions of the 11.00 compiler do not understand -b yet
8699           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8700           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8701 $as_echo_n "checking if $CC understands -b... " >&6; }
8702 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8703   $as_echo_n "(cached) " >&6
8704 else
8705   lt_cv_prog_compiler__b=no
8706    save_LDFLAGS="$LDFLAGS"
8707    LDFLAGS="$LDFLAGS -b"
8708    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8709    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8710      # The linker can only warn and ignore the option if not recognized
8711      # So say no if there are warnings
8712      if test -s conftest.err; then
8713        # Append any errors to the config.log.
8714        cat conftest.err 1>&5
8715        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8716        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8717        if diff conftest.exp conftest.er2 >/dev/null; then
8718          lt_cv_prog_compiler__b=yes
8719        fi
8720      else
8721        lt_cv_prog_compiler__b=yes
8722      fi
8723    fi
8724    $RM -r conftest*
8725    LDFLAGS="$save_LDFLAGS"
8726
8727 fi
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8729 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8730
8731 if test x"$lt_cv_prog_compiler__b" = xyes; then
8732     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8733 else
8734     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8735 fi
8736
8737           ;;
8738         esac
8739       fi
8740       if test "$with_gnu_ld" = no; then
8741         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8742         hardcode_libdir_separator=:
8743
8744         case $host_cpu in
8745         hppa*64*|ia64*)
8746           hardcode_direct=no
8747           hardcode_shlibpath_var=no
8748           ;;
8749         *)
8750           hardcode_direct=yes
8751           hardcode_direct_absolute=yes
8752           export_dynamic_flag_spec='${wl}-E'
8753
8754           # hardcode_minus_L: Not really in the search PATH,
8755           # but as the default location of the library.
8756           hardcode_minus_L=yes
8757           ;;
8758         esac
8759       fi
8760       ;;
8761
8762     irix5* | irix6* | nonstopux*)
8763       if test "$GCC" = yes; then
8764         archive_cmds='$CC -shared $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'
8765         # Try to use the -exported_symbol ld option, if it does not
8766         # work, assume that -exports_file does not work either and
8767         # implicitly export all symbols.
8768         save_LDFLAGS="$LDFLAGS"
8769         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8770         if test x$gcc_no_link = xyes; then
8771   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8772 fi
8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h.  */
8775 int foo(void) {}
8776 _ACEOF
8777 if ac_fn_c_try_link "$LINENO"; then :
8778   archive_expsym_cmds='$CC -shared $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'
8779
8780 fi
8781 rm -f core conftest.err conftest.$ac_objext \
8782     conftest$ac_exeext conftest.$ac_ext
8783         LDFLAGS="$save_LDFLAGS"
8784       else
8785         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'
8786         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'
8787       fi
8788       archive_cmds_need_lc='no'
8789       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8790       hardcode_libdir_separator=:
8791       inherit_rpath=yes
8792       link_all_deplibs=yes
8793       ;;
8794
8795     netbsd*)
8796       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8797         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8798       else
8799         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8800       fi
8801       hardcode_libdir_flag_spec='-R$libdir'
8802       hardcode_direct=yes
8803       hardcode_shlibpath_var=no
8804       ;;
8805
8806     newsos6)
8807       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808       hardcode_direct=yes
8809       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8810       hardcode_libdir_separator=:
8811       hardcode_shlibpath_var=no
8812       ;;
8813
8814     *nto* | *qnx*)
8815       ;;
8816
8817     openbsd*)
8818       if test -f /usr/libexec/ld.so; then
8819         hardcode_direct=yes
8820         hardcode_shlibpath_var=no
8821         hardcode_direct_absolute=yes
8822         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8823           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8824           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8825           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8826           export_dynamic_flag_spec='${wl}-E'
8827         else
8828           case $host_os in
8829            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8830              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8831              hardcode_libdir_flag_spec='-R$libdir'
8832              ;;
8833            *)
8834              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8835              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8836              ;;
8837           esac
8838         fi
8839       else
8840         ld_shlibs=no
8841       fi
8842       ;;
8843
8844     os2*)
8845       hardcode_libdir_flag_spec='-L$libdir'
8846       hardcode_minus_L=yes
8847       allow_undefined_flag=unsupported
8848       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'
8849       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8850       ;;
8851
8852     osf3*)
8853       if test "$GCC" = yes; then
8854         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8855         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'
8856       else
8857         allow_undefined_flag=' -expect_unresolved \*'
8858         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'
8859       fi
8860       archive_cmds_need_lc='no'
8861       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8862       hardcode_libdir_separator=:
8863       ;;
8864
8865     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8866       if test "$GCC" = yes; then
8867         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8868         archive_cmds='$CC -shared${allow_undefined_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'
8869         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8870       else
8871         allow_undefined_flag=' -expect_unresolved \*'
8872         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'
8873         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~
8874         $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'
8875
8876         # Both c and cxx compiler support -rpath directly
8877         hardcode_libdir_flag_spec='-rpath $libdir'
8878       fi
8879       archive_cmds_need_lc='no'
8880       hardcode_libdir_separator=:
8881       ;;
8882
8883     solaris*)
8884       no_undefined_flag=' -z defs'
8885       if test "$GCC" = yes; then
8886         wlarc='${wl}'
8887         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8888         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8889           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8890       else
8891         case `$CC -V 2>&1` in
8892         *"Compilers 5.0"*)
8893           wlarc=''
8894           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8895           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8896           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8897           ;;
8898         *)
8899           wlarc='${wl}'
8900           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8901           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8902           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8903           ;;
8904         esac
8905       fi
8906       hardcode_libdir_flag_spec='-R$libdir'
8907       hardcode_shlibpath_var=no
8908       case $host_os in
8909       solaris2.[0-5] | solaris2.[0-5].*) ;;
8910       *)
8911         # The compiler driver will combine and reorder linker options,
8912         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8913         # but is careful enough not to reorder.
8914         # Supported since Solaris 2.6 (maybe 2.5.1?)
8915         if test "$GCC" = yes; then
8916           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8917         else
8918           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8919         fi
8920         ;;
8921       esac
8922       link_all_deplibs=yes
8923       ;;
8924
8925     sunos4*)
8926       if test "x$host_vendor" = xsequent; then
8927         # Use $CC to link under sequent, because it throws in some extra .o
8928         # files that make .init and .fini sections work.
8929         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8930       else
8931         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8932       fi
8933       hardcode_libdir_flag_spec='-L$libdir'
8934       hardcode_direct=yes
8935       hardcode_minus_L=yes
8936       hardcode_shlibpath_var=no
8937       ;;
8938
8939     sysv4)
8940       case $host_vendor in
8941         sni)
8942           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8943           hardcode_direct=yes # is this really true???
8944         ;;
8945         siemens)
8946           ## LD is ld it makes a PLAMLIB
8947           ## CC just makes a GrossModule.
8948           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8949           reload_cmds='$CC -r -o $output$reload_objs'
8950           hardcode_direct=no
8951         ;;
8952         motorola)
8953           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8954           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8955         ;;
8956       esac
8957       runpath_var='LD_RUN_PATH'
8958       hardcode_shlibpath_var=no
8959       ;;
8960
8961     sysv4.3*)
8962       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8963       hardcode_shlibpath_var=no
8964       export_dynamic_flag_spec='-Bexport'
8965       ;;
8966
8967     sysv4*MP*)
8968       if test -d /usr/nec; then
8969         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8970         hardcode_shlibpath_var=no
8971         runpath_var=LD_RUN_PATH
8972         hardcode_runpath_var=yes
8973         ld_shlibs=yes
8974       fi
8975       ;;
8976
8977     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8978       no_undefined_flag='${wl}-z,text'
8979       archive_cmds_need_lc=no
8980       hardcode_shlibpath_var=no
8981       runpath_var='LD_RUN_PATH'
8982
8983       if test "$GCC" = yes; then
8984         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8985         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8986       else
8987         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8988         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8989       fi
8990       ;;
8991
8992     sysv5* | sco3.2v5* | sco5v6*)
8993       # Note: We can NOT use -z defs as we might desire, because we do not
8994       # link with -lc, and that would cause any symbols used from libc to
8995       # always be unresolved, which means just about no library would
8996       # ever link correctly.  If we're not using GNU ld we use -z text
8997       # though, which does catch some bad symbols but isn't as heavy-handed
8998       # as -z defs.
8999       no_undefined_flag='${wl}-z,text'
9000       allow_undefined_flag='${wl}-z,nodefs'
9001       archive_cmds_need_lc=no
9002       hardcode_shlibpath_var=no
9003       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9004       hardcode_libdir_separator=':'
9005       link_all_deplibs=yes
9006       export_dynamic_flag_spec='${wl}-Bexport'
9007       runpath_var='LD_RUN_PATH'
9008
9009       if test "$GCC" = yes; then
9010         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9011         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9012       else
9013         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9014         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9015       fi
9016       ;;
9017
9018     uts4*)
9019       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9020       hardcode_libdir_flag_spec='-L$libdir'
9021       hardcode_shlibpath_var=no
9022       ;;
9023
9024     *)
9025       ld_shlibs=no
9026       ;;
9027     esac
9028
9029     if test x$host_vendor = xsni; then
9030       case $host in
9031       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9032         export_dynamic_flag_spec='${wl}-Blargedynsym'
9033         ;;
9034       esac
9035     fi
9036   fi
9037
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9039 $as_echo "$ld_shlibs" >&6; }
9040 test "$ld_shlibs" = no && can_build_shared=no
9041
9042 with_gnu_ld=$with_gnu_ld
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058 #
9059 # Do we need to explicitly link libc?
9060 #
9061 case "x$archive_cmds_need_lc" in
9062 x|xyes)
9063   # Assume -lc should be added
9064   archive_cmds_need_lc=yes
9065
9066   if test "$enable_shared" = yes && test "$GCC" = yes; then
9067     case $archive_cmds in
9068     *'~'*)
9069       # FIXME: we may have to deal with multi-command sequences.
9070       ;;
9071     '$CC '*)
9072       # Test whether the compiler implicitly links with -lc since on some
9073       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9074       # to ld, don't add -lc before -lgcc.
9075       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9076 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9077 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9078   $as_echo_n "(cached) " >&6
9079 else
9080   $RM conftest*
9081         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9082
9083         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9084   (eval $ac_compile) 2>&5
9085   ac_status=$?
9086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9087   test $ac_status = 0; } 2>conftest.err; then
9088           soname=conftest
9089           lib=conftest
9090           libobjs=conftest.$ac_objext
9091           deplibs=
9092           wl=$lt_prog_compiler_wl
9093           pic_flag=$lt_prog_compiler_pic
9094           compiler_flags=-v
9095           linker_flags=-v
9096           verstring=
9097           output_objdir=.
9098           libname=conftest
9099           lt_save_allow_undefined_flag=$allow_undefined_flag
9100           allow_undefined_flag=
9101           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9102   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9103   ac_status=$?
9104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9105   test $ac_status = 0; }
9106           then
9107             lt_cv_archive_cmds_need_lc=no
9108           else
9109             lt_cv_archive_cmds_need_lc=yes
9110           fi
9111           allow_undefined_flag=$lt_save_allow_undefined_flag
9112         else
9113           cat conftest.err 1>&5
9114         fi
9115         $RM conftest*
9116
9117 fi
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9119 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9120       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9121       ;;
9122     esac
9123   fi
9124   ;;
9125 esac
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9284 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9285
9286 if test "$GCC" = yes; then
9287   case $host_os in
9288     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9289     *) lt_awk_arg="/^libraries:/" ;;
9290   esac
9291   case $host_os in
9292     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9293     *) lt_sed_strip_eq="s,=/,/,g" ;;
9294   esac
9295   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9296   case $lt_search_path_spec in
9297   *\;*)
9298     # if the path contains ";" then we assume it to be the separator
9299     # otherwise default to the standard path separator (i.e. ":") - it is
9300     # assumed that no part of a normal pathname contains ";" but that should
9301     # okay in the real world where ";" in dirpaths is itself problematic.
9302     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9303     ;;
9304   *)
9305     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9306     ;;
9307   esac
9308   # Ok, now we have the path, separated by spaces, we can step through it
9309   # and add multilib dir if necessary.
9310   lt_tmp_lt_search_path_spec=
9311   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9312   for lt_sys_path in $lt_search_path_spec; do
9313     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9314       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9315     else
9316       test -d "$lt_sys_path" && \
9317         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9318     fi
9319   done
9320   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9321 BEGIN {RS=" "; FS="/|\n";} {
9322   lt_foo="";
9323   lt_count=0;
9324   for (lt_i = NF; lt_i > 0; lt_i--) {
9325     if ($lt_i != "" && $lt_i != ".") {
9326       if ($lt_i == "..") {
9327         lt_count++;
9328       } else {
9329         if (lt_count == 0) {
9330           lt_foo="/" $lt_i lt_foo;
9331         } else {
9332           lt_count--;
9333         }
9334       }
9335     }
9336   }
9337   if (lt_foo != "") { lt_freq[lt_foo]++; }
9338   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9339 }'`
9340   # AWK program above erroneously prepends '/' to C:/dos/paths
9341   # for these hosts.
9342   case $host_os in
9343     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9344       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9345   esac
9346   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9347 else
9348   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9349 fi
9350 library_names_spec=
9351 libname_spec='lib$name'
9352 soname_spec=
9353 shrext_cmds=".so"
9354 postinstall_cmds=
9355 postuninstall_cmds=
9356 finish_cmds=
9357 finish_eval=
9358 shlibpath_var=
9359 shlibpath_overrides_runpath=unknown
9360 version_type=none
9361 dynamic_linker="$host_os ld.so"
9362 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9363 need_lib_prefix=unknown
9364 hardcode_into_libs=no
9365
9366 # when you set need_version to no, make sure it does not cause -set_version
9367 # flags to be left without arguments
9368 need_version=unknown
9369
9370 case $host_os in
9371 aix3*)
9372   version_type=linux
9373   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9374   shlibpath_var=LIBPATH
9375
9376   # AIX 3 has no versioning support, so we append a major version to the name.
9377   soname_spec='${libname}${release}${shared_ext}$major'
9378   ;;
9379
9380 aix[4-9]*)
9381   version_type=linux
9382   need_lib_prefix=no
9383   need_version=no
9384   hardcode_into_libs=yes
9385   if test "$host_cpu" = ia64; then
9386     # AIX 5 supports IA64
9387     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9388     shlibpath_var=LD_LIBRARY_PATH
9389   else
9390     # With GCC up to 2.95.x, collect2 would create an import file
9391     # for dependence libraries.  The import file would start with
9392     # the line `#! .'.  This would cause the generated library to
9393     # depend on `.', always an invalid library.  This was fixed in
9394     # development snapshots of GCC prior to 3.0.
9395     case $host_os in
9396       aix4 | aix4.[01] | aix4.[01].*)
9397       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9398            echo ' yes '
9399            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9400         :
9401       else
9402         can_build_shared=no
9403       fi
9404       ;;
9405     esac
9406     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9407     # soname into executable. Probably we can add versioning support to
9408     # collect2, so additional links can be useful in future.
9409     if test "$aix_use_runtimelinking" = yes; then
9410       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9411       # instead of lib<name>.a to let people know that these are not
9412       # typical AIX shared libraries.
9413       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9414     else
9415       # We preserve .a as extension for shared libraries through AIX4.2
9416       # and later when we are not doing run time linking.
9417       library_names_spec='${libname}${release}.a $libname.a'
9418       soname_spec='${libname}${release}${shared_ext}$major'
9419     fi
9420     shlibpath_var=LIBPATH
9421   fi
9422   ;;
9423
9424 amigaos*)
9425   case $host_cpu in
9426   powerpc)
9427     # Since July 2007 AmigaOS4 officially supports .so libraries.
9428     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430     ;;
9431   m68k)
9432     library_names_spec='$libname.ixlibrary $libname.a'
9433     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9434     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'
9435     ;;
9436   esac
9437   ;;
9438
9439 beos*)
9440   library_names_spec='${libname}${shared_ext}'
9441   dynamic_linker="$host_os ld.so"
9442   shlibpath_var=LIBRARY_PATH
9443   ;;
9444
9445 bsdi[45]*)
9446   version_type=linux
9447   need_version=no
9448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449   soname_spec='${libname}${release}${shared_ext}$major'
9450   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9451   shlibpath_var=LD_LIBRARY_PATH
9452   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9453   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9454   # the default ld.so.conf also contains /usr/contrib/lib and
9455   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9456   # libtool to hard-code these into programs
9457   ;;
9458
9459 cygwin* | mingw* | pw32* | cegcc*)
9460   version_type=windows
9461   shrext_cmds=".dll"
9462   need_version=no
9463   need_lib_prefix=no
9464
9465   case $GCC,$host_os in
9466   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9467     library_names_spec='$libname.dll.a'
9468     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9469     postinstall_cmds='base_file=`basename \${file}`~
9470       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9471       dldir=$destdir/`dirname \$dlpath`~
9472       test -d \$dldir || mkdir -p \$dldir~
9473       $install_prog $dir/$dlname \$dldir/$dlname~
9474       chmod a+x \$dldir/$dlname~
9475       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9476         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9477       fi'
9478     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9479       dlpath=$dir/\$dldll~
9480        $RM \$dlpath'
9481     shlibpath_overrides_runpath=yes
9482
9483     case $host_os in
9484     cygwin*)
9485       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9486       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9487
9488       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9489       ;;
9490     mingw* | cegcc*)
9491       # MinGW DLLs use traditional 'lib' prefix
9492       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9493       ;;
9494     pw32*)
9495       # pw32 DLLs use 'pw' prefix rather than 'lib'
9496       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9497       ;;
9498     esac
9499     ;;
9500
9501   *)
9502     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9503     ;;
9504   esac
9505   dynamic_linker='Win32 ld.exe'
9506   # FIXME: first we should search . and the directory the executable is in
9507   shlibpath_var=PATH
9508   ;;
9509
9510 darwin* | rhapsody*)
9511   dynamic_linker="$host_os dyld"
9512   version_type=darwin
9513   need_lib_prefix=no
9514   need_version=no
9515   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9516   soname_spec='${libname}${release}${major}$shared_ext'
9517   shlibpath_overrides_runpath=yes
9518   shlibpath_var=DYLD_LIBRARY_PATH
9519   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9520
9521   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9522   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9523   ;;
9524
9525 dgux*)
9526   version_type=linux
9527   need_lib_prefix=no
9528   need_version=no
9529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9530   soname_spec='${libname}${release}${shared_ext}$major'
9531   shlibpath_var=LD_LIBRARY_PATH
9532   ;;
9533
9534 freebsd* | dragonfly*)
9535   # DragonFly does not have aout.  When/if they implement a new
9536   # versioning mechanism, adjust this.
9537   if test -x /usr/bin/objformat; then
9538     objformat=`/usr/bin/objformat`
9539   else
9540     case $host_os in
9541     freebsd[23].*) objformat=aout ;;
9542     *) objformat=elf ;;
9543     esac
9544   fi
9545   version_type=freebsd-$objformat
9546   case $version_type in
9547     freebsd-elf*)
9548       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9549       need_version=no
9550       need_lib_prefix=no
9551       ;;
9552     freebsd-*)
9553       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9554       need_version=yes
9555       ;;
9556   esac
9557   shlibpath_var=LD_LIBRARY_PATH
9558   case $host_os in
9559   freebsd2.*)
9560     shlibpath_overrides_runpath=yes
9561     ;;
9562   freebsd3.[01]* | freebsdelf3.[01]*)
9563     shlibpath_overrides_runpath=yes
9564     hardcode_into_libs=yes
9565     ;;
9566   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9567   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9568     shlibpath_overrides_runpath=no
9569     hardcode_into_libs=yes
9570     ;;
9571   *) # from 4.6 on, and DragonFly
9572     shlibpath_overrides_runpath=yes
9573     hardcode_into_libs=yes
9574     ;;
9575   esac
9576   ;;
9577
9578 gnu*)
9579   version_type=linux
9580   need_lib_prefix=no
9581   need_version=no
9582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9583   soname_spec='${libname}${release}${shared_ext}$major'
9584   shlibpath_var=LD_LIBRARY_PATH
9585   hardcode_into_libs=yes
9586   ;;
9587
9588 haiku*)
9589   version_type=linux
9590   need_lib_prefix=no
9591   need_version=no
9592   dynamic_linker="$host_os runtime_loader"
9593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9594   soname_spec='${libname}${release}${shared_ext}$major'
9595   shlibpath_var=LIBRARY_PATH
9596   shlibpath_overrides_runpath=yes
9597   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9598   hardcode_into_libs=yes
9599   ;;
9600
9601 hpux9* | hpux10* | hpux11*)
9602   # Give a soname corresponding to the major version so that dld.sl refuses to
9603   # link against other versions.
9604   version_type=sunos
9605   need_lib_prefix=no
9606   need_version=no
9607   case $host_cpu in
9608   ia64*)
9609     shrext_cmds='.so'
9610     hardcode_into_libs=yes
9611     dynamic_linker="$host_os dld.so"
9612     shlibpath_var=LD_LIBRARY_PATH
9613     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9615     soname_spec='${libname}${release}${shared_ext}$major'
9616     if test "X$HPUX_IA64_MODE" = X32; then
9617       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9618     else
9619       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9620     fi
9621     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9622     ;;
9623   hppa*64*)
9624     shrext_cmds='.sl'
9625     hardcode_into_libs=yes
9626     dynamic_linker="$host_os dld.sl"
9627     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9628     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630     soname_spec='${libname}${release}${shared_ext}$major'
9631     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9632     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9633     ;;
9634   *)
9635     shrext_cmds='.sl'
9636     dynamic_linker="$host_os dld.sl"
9637     shlibpath_var=SHLIB_PATH
9638     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9639     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640     soname_spec='${libname}${release}${shared_ext}$major'
9641     ;;
9642   esac
9643   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9644   postinstall_cmds='chmod 555 $lib'
9645   # or fails outright, so override atomically:
9646   install_override_mode=555
9647   ;;
9648
9649 interix[3-9]*)
9650   version_type=linux
9651   need_lib_prefix=no
9652   need_version=no
9653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9654   soname_spec='${libname}${release}${shared_ext}$major'
9655   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9656   shlibpath_var=LD_LIBRARY_PATH
9657   shlibpath_overrides_runpath=no
9658   hardcode_into_libs=yes
9659   ;;
9660
9661 irix5* | irix6* | nonstopux*)
9662   case $host_os in
9663     nonstopux*) version_type=nonstopux ;;
9664     *)
9665         if test "$lt_cv_prog_gnu_ld" = yes; then
9666                 version_type=linux
9667         else
9668                 version_type=irix
9669         fi ;;
9670   esac
9671   need_lib_prefix=no
9672   need_version=no
9673   soname_spec='${libname}${release}${shared_ext}$major'
9674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9675   case $host_os in
9676   irix5* | nonstopux*)
9677     libsuff= shlibsuff=
9678     ;;
9679   *)
9680     case $LD in # libtool.m4 will add one of these switches to LD
9681     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9682       libsuff= shlibsuff= libmagic=32-bit;;
9683     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9684       libsuff=32 shlibsuff=N32 libmagic=N32;;
9685     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9686       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9687     *) libsuff= shlibsuff= libmagic=never-match;;
9688     esac
9689     ;;
9690   esac
9691   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9692   shlibpath_overrides_runpath=no
9693   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9694   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9695   hardcode_into_libs=yes
9696   ;;
9697
9698 # No shared lib support for Linux oldld, aout, or coff.
9699 linux*oldld* | linux*aout* | linux*coff*)
9700   dynamic_linker=no
9701   ;;
9702
9703 # This must be Linux ELF.
9704 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9705   version_type=linux
9706   need_lib_prefix=no
9707   need_version=no
9708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709   soname_spec='${libname}${release}${shared_ext}$major'
9710   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9711   shlibpath_var=LD_LIBRARY_PATH
9712   shlibpath_overrides_runpath=no
9713
9714   # Some binutils ld are patched to set DT_RUNPATH
9715   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9716   $as_echo_n "(cached) " >&6
9717 else
9718   lt_cv_shlibpath_overrides_runpath=no
9719     save_LDFLAGS=$LDFLAGS
9720     save_libdir=$libdir
9721     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9722          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9723     if test x$gcc_no_link = xyes; then
9724   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9725 fi
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h.  */
9728
9729 int
9730 main ()
9731 {
9732
9733   ;
9734   return 0;
9735 }
9736 _ACEOF
9737 if ac_fn_c_try_link "$LINENO"; then :
9738   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9739   lt_cv_shlibpath_overrides_runpath=yes
9740 fi
9741 fi
9742 rm -f core conftest.err conftest.$ac_objext \
9743     conftest$ac_exeext conftest.$ac_ext
9744     LDFLAGS=$save_LDFLAGS
9745     libdir=$save_libdir
9746
9747 fi
9748
9749   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9750
9751   # This implies no fast_install, which is unacceptable.
9752   # Some rework will be needed to allow for fast_install
9753   # before this can be enabled.
9754   hardcode_into_libs=yes
9755
9756   # Append ld.so.conf contents to the search path
9757   if test -f /etc/ld.so.conf; then
9758     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' ' '`
9759     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9760   fi
9761
9762   # We used to test for /lib/ld.so.1 and disable shared libraries on
9763   # powerpc, because MkLinux only supported shared libraries with the
9764   # GNU dynamic linker.  Since this was broken with cross compilers,
9765   # most powerpc-linux boxes support dynamic linking these days and
9766   # people can always --disable-shared, the test was removed, and we
9767   # assume the GNU/Linux dynamic linker is in use.
9768   dynamic_linker='GNU/Linux ld.so'
9769   ;;
9770
9771 netbsd*)
9772   version_type=sunos
9773   need_lib_prefix=no
9774   need_version=no
9775   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9776     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9777     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9778     dynamic_linker='NetBSD (a.out) ld.so'
9779   else
9780     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9781     soname_spec='${libname}${release}${shared_ext}$major'
9782     dynamic_linker='NetBSD ld.elf_so'
9783   fi
9784   shlibpath_var=LD_LIBRARY_PATH
9785   shlibpath_overrides_runpath=yes
9786   hardcode_into_libs=yes
9787   ;;
9788
9789 newsos6)
9790   version_type=linux
9791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9792   shlibpath_var=LD_LIBRARY_PATH
9793   shlibpath_overrides_runpath=yes
9794   ;;
9795
9796 *nto* | *qnx*)
9797   version_type=qnx
9798   need_lib_prefix=no
9799   need_version=no
9800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801   soname_spec='${libname}${release}${shared_ext}$major'
9802   shlibpath_var=LD_LIBRARY_PATH
9803   shlibpath_overrides_runpath=no
9804   hardcode_into_libs=yes
9805   dynamic_linker='ldqnx.so'
9806   ;;
9807
9808 openbsd*)
9809   version_type=sunos
9810   sys_lib_dlsearch_path_spec="/usr/lib"
9811   need_lib_prefix=no
9812   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9813   case $host_os in
9814     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9815     *)                          need_version=no  ;;
9816   esac
9817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9818   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9819   shlibpath_var=LD_LIBRARY_PATH
9820   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9821     case $host_os in
9822       openbsd2.[89] | openbsd2.[89].*)
9823         shlibpath_overrides_runpath=no
9824         ;;
9825       *)
9826         shlibpath_overrides_runpath=yes
9827         ;;
9828       esac
9829   else
9830     shlibpath_overrides_runpath=yes
9831   fi
9832   ;;
9833
9834 os2*)
9835   libname_spec='$name'
9836   shrext_cmds=".dll"
9837   need_lib_prefix=no
9838   library_names_spec='$libname${shared_ext} $libname.a'
9839   dynamic_linker='OS/2 ld.exe'
9840   shlibpath_var=LIBPATH
9841   ;;
9842
9843 osf3* | osf4* | osf5*)
9844   version_type=osf
9845   need_lib_prefix=no
9846   need_version=no
9847   soname_spec='${libname}${release}${shared_ext}$major'
9848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849   shlibpath_var=LD_LIBRARY_PATH
9850   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9851   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9852   ;;
9853
9854 rdos*)
9855   dynamic_linker=no
9856   ;;
9857
9858 solaris*)
9859   version_type=linux
9860   need_lib_prefix=no
9861   need_version=no
9862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863   soname_spec='${libname}${release}${shared_ext}$major'
9864   shlibpath_var=LD_LIBRARY_PATH
9865   shlibpath_overrides_runpath=yes
9866   hardcode_into_libs=yes
9867   # ldd complains unless libraries are executable
9868   postinstall_cmds='chmod +x $lib'
9869   ;;
9870
9871 sunos4*)
9872   version_type=sunos
9873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9874   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9875   shlibpath_var=LD_LIBRARY_PATH
9876   shlibpath_overrides_runpath=yes
9877   if test "$with_gnu_ld" = yes; then
9878     need_lib_prefix=no
9879   fi
9880   need_version=yes
9881   ;;
9882
9883 sysv4 | sysv4.3*)
9884   version_type=linux
9885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886   soname_spec='${libname}${release}${shared_ext}$major'
9887   shlibpath_var=LD_LIBRARY_PATH
9888   case $host_vendor in
9889     sni)
9890       shlibpath_overrides_runpath=no
9891       need_lib_prefix=no
9892       runpath_var=LD_RUN_PATH
9893       ;;
9894     siemens)
9895       need_lib_prefix=no
9896       ;;
9897     motorola)
9898       need_lib_prefix=no
9899       need_version=no
9900       shlibpath_overrides_runpath=no
9901       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9902       ;;
9903   esac
9904   ;;
9905
9906 sysv4*MP*)
9907   if test -d /usr/nec ;then
9908     version_type=linux
9909     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9910     soname_spec='$libname${shared_ext}.$major'
9911     shlibpath_var=LD_LIBRARY_PATH
9912   fi
9913   ;;
9914
9915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9916   version_type=freebsd-elf
9917   need_lib_prefix=no
9918   need_version=no
9919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9920   soname_spec='${libname}${release}${shared_ext}$major'
9921   shlibpath_var=LD_LIBRARY_PATH
9922   shlibpath_overrides_runpath=yes
9923   hardcode_into_libs=yes
9924   if test "$with_gnu_ld" = yes; then
9925     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9926   else
9927     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9928     case $host_os in
9929       sco3.2v5*)
9930         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9931         ;;
9932     esac
9933   fi
9934   sys_lib_dlsearch_path_spec='/usr/lib'
9935   ;;
9936
9937 tpf*)
9938   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9939   version_type=linux
9940   need_lib_prefix=no
9941   need_version=no
9942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943   shlibpath_var=LD_LIBRARY_PATH
9944   shlibpath_overrides_runpath=no
9945   hardcode_into_libs=yes
9946   ;;
9947
9948 uts4*)
9949   version_type=linux
9950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9951   soname_spec='${libname}${release}${shared_ext}$major'
9952   shlibpath_var=LD_LIBRARY_PATH
9953   ;;
9954
9955 *)
9956   dynamic_linker=no
9957   ;;
9958 esac
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9960 $as_echo "$dynamic_linker" >&6; }
9961 test "$dynamic_linker" = no && can_build_shared=no
9962
9963 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9964 if test "$GCC" = yes; then
9965   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9966 fi
9967
9968 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9969   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9970 fi
9971 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9972   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9973 fi
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
10063
10064
10065
10066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10067 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10068 hardcode_action=
10069 if test -n "$hardcode_libdir_flag_spec" ||
10070    test -n "$runpath_var" ||
10071    test "X$hardcode_automatic" = "Xyes" ; then
10072
10073   # We can hardcode non-existent directories.
10074   if test "$hardcode_direct" != no &&
10075      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10076      # have to relink, otherwise we might link with an installed library
10077      # when we should be linking with a yet-to-be-installed one
10078      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10079      test "$hardcode_minus_L" != no; then
10080     # Linking always hardcodes the temporary library directory.
10081     hardcode_action=relink
10082   else
10083     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10084     hardcode_action=immediate
10085   fi
10086 else
10087   # We cannot hardcode anything, or else we can only hardcode existing
10088   # directories.
10089   hardcode_action=unsupported
10090 fi
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10092 $as_echo "$hardcode_action" >&6; }
10093
10094 if test "$hardcode_action" = relink ||
10095    test "$inherit_rpath" = yes; then
10096   # Fast installation is not supported
10097   enable_fast_install=no
10098 elif test "$shlibpath_overrides_runpath" = yes ||
10099      test "$enable_shared" = no; then
10100   # Fast installation is not necessary
10101   enable_fast_install=needless
10102 fi
10103
10104
10105
10106
10107
10108
10109   if test "x$enable_dlopen" != xyes; then
10110   enable_dlopen=unknown
10111   enable_dlopen_self=unknown
10112   enable_dlopen_self_static=unknown
10113 else
10114   lt_cv_dlopen=no
10115   lt_cv_dlopen_libs=
10116
10117   case $host_os in
10118   beos*)
10119     lt_cv_dlopen="load_add_on"
10120     lt_cv_dlopen_libs=
10121     lt_cv_dlopen_self=yes
10122     ;;
10123
10124   mingw* | pw32* | cegcc*)
10125     lt_cv_dlopen="LoadLibrary"
10126     lt_cv_dlopen_libs=
10127     ;;
10128
10129   cygwin*)
10130     lt_cv_dlopen="dlopen"
10131     lt_cv_dlopen_libs=
10132     ;;
10133
10134   darwin*)
10135   # if libdl is installed we need to link against it
10136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10138 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10139   $as_echo_n "(cached) " >&6
10140 else
10141   ac_check_lib_save_LIBS=$LIBS
10142 LIBS="-ldl  $LIBS"
10143 if test x$gcc_no_link = xyes; then
10144   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10145 fi
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h.  */
10148
10149 /* Override any GCC internal prototype to avoid an error.
10150    Use char because int might match the return type of a GCC
10151    builtin and then its argument prototype would still apply.  */
10152 #ifdef __cplusplus
10153 extern "C"
10154 #endif
10155 char dlopen ();
10156 int
10157 main ()
10158 {
10159 return dlopen ();
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 if ac_fn_c_try_link "$LINENO"; then :
10165   ac_cv_lib_dl_dlopen=yes
10166 else
10167   ac_cv_lib_dl_dlopen=no
10168 fi
10169 rm -f core conftest.err conftest.$ac_objext \
10170     conftest$ac_exeext conftest.$ac_ext
10171 LIBS=$ac_check_lib_save_LIBS
10172 fi
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10174 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10175 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10176   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10177 else
10178
10179     lt_cv_dlopen="dyld"
10180     lt_cv_dlopen_libs=
10181     lt_cv_dlopen_self=yes
10182
10183 fi
10184
10185     ;;
10186
10187   *)
10188     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10189 if test "x$ac_cv_func_shl_load" = x""yes; then :
10190   lt_cv_dlopen="shl_load"
10191 else
10192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10193 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10194 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10195   $as_echo_n "(cached) " >&6
10196 else
10197   ac_check_lib_save_LIBS=$LIBS
10198 LIBS="-ldld  $LIBS"
10199 if test x$gcc_no_link = xyes; then
10200   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10201 fi
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h.  */
10204
10205 /* Override any GCC internal prototype to avoid an error.
10206    Use char because int might match the return type of a GCC
10207    builtin and then its argument prototype would still apply.  */
10208 #ifdef __cplusplus
10209 extern "C"
10210 #endif
10211 char shl_load ();
10212 int
10213 main ()
10214 {
10215 return shl_load ();
10216   ;
10217   return 0;
10218 }
10219 _ACEOF
10220 if ac_fn_c_try_link "$LINENO"; then :
10221   ac_cv_lib_dld_shl_load=yes
10222 else
10223   ac_cv_lib_dld_shl_load=no
10224 fi
10225 rm -f core conftest.err conftest.$ac_objext \
10226     conftest$ac_exeext conftest.$ac_ext
10227 LIBS=$ac_check_lib_save_LIBS
10228 fi
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10230 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10231 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10232   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10233 else
10234   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10235 if test "x$ac_cv_func_dlopen" = x""yes; then :
10236   lt_cv_dlopen="dlopen"
10237 else
10238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10239 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10240 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10241   $as_echo_n "(cached) " >&6
10242 else
10243   ac_check_lib_save_LIBS=$LIBS
10244 LIBS="-ldl  $LIBS"
10245 if test x$gcc_no_link = xyes; then
10246   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10247 fi
10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h.  */
10250
10251 /* Override any GCC internal prototype to avoid an error.
10252    Use char because int might match the return type of a GCC
10253    builtin and then its argument prototype would still apply.  */
10254 #ifdef __cplusplus
10255 extern "C"
10256 #endif
10257 char dlopen ();
10258 int
10259 main ()
10260 {
10261 return dlopen ();
10262   ;
10263   return 0;
10264 }
10265 _ACEOF
10266 if ac_fn_c_try_link "$LINENO"; then :
10267   ac_cv_lib_dl_dlopen=yes
10268 else
10269   ac_cv_lib_dl_dlopen=no
10270 fi
10271 rm -f core conftest.err conftest.$ac_objext \
10272     conftest$ac_exeext conftest.$ac_ext
10273 LIBS=$ac_check_lib_save_LIBS
10274 fi
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10276 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10277 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10278   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10279 else
10280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10281 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10282 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10283   $as_echo_n "(cached) " >&6
10284 else
10285   ac_check_lib_save_LIBS=$LIBS
10286 LIBS="-lsvld  $LIBS"
10287 if test x$gcc_no_link = xyes; then
10288   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10289 fi
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h.  */
10292
10293 /* Override any GCC internal prototype to avoid an error.
10294    Use char because int might match the return type of a GCC
10295    builtin and then its argument prototype would still apply.  */
10296 #ifdef __cplusplus
10297 extern "C"
10298 #endif
10299 char dlopen ();
10300 int
10301 main ()
10302 {
10303 return dlopen ();
10304   ;
10305   return 0;
10306 }
10307 _ACEOF
10308 if ac_fn_c_try_link "$LINENO"; then :
10309   ac_cv_lib_svld_dlopen=yes
10310 else
10311   ac_cv_lib_svld_dlopen=no
10312 fi
10313 rm -f core conftest.err conftest.$ac_objext \
10314     conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10316 fi
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10318 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10319 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10320   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10321 else
10322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10323 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10324 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10325   $as_echo_n "(cached) " >&6
10326 else
10327   ac_check_lib_save_LIBS=$LIBS
10328 LIBS="-ldld  $LIBS"
10329 if test x$gcc_no_link = xyes; then
10330   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10331 fi
10332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h.  */
10334
10335 /* Override any GCC internal prototype to avoid an error.
10336    Use char because int might match the return type of a GCC
10337    builtin and then its argument prototype would still apply.  */
10338 #ifdef __cplusplus
10339 extern "C"
10340 #endif
10341 char dld_link ();
10342 int
10343 main ()
10344 {
10345 return dld_link ();
10346   ;
10347   return 0;
10348 }
10349 _ACEOF
10350 if ac_fn_c_try_link "$LINENO"; then :
10351   ac_cv_lib_dld_dld_link=yes
10352 else
10353   ac_cv_lib_dld_dld_link=no
10354 fi
10355 rm -f core conftest.err conftest.$ac_objext \
10356     conftest$ac_exeext conftest.$ac_ext
10357 LIBS=$ac_check_lib_save_LIBS
10358 fi
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10360 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10361 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10362   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10363 fi
10364
10365
10366 fi
10367
10368
10369 fi
10370
10371
10372 fi
10373
10374
10375 fi
10376
10377
10378 fi
10379
10380     ;;
10381   esac
10382
10383   if test "x$lt_cv_dlopen" != xno; then
10384     enable_dlopen=yes
10385   else
10386     enable_dlopen=no
10387   fi
10388
10389   case $lt_cv_dlopen in
10390   dlopen)
10391     save_CPPFLAGS="$CPPFLAGS"
10392     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10393
10394     save_LDFLAGS="$LDFLAGS"
10395     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10396
10397     save_LIBS="$LIBS"
10398     LIBS="$lt_cv_dlopen_libs $LIBS"
10399
10400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10401 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10402 if test "${lt_cv_dlopen_self+set}" = set; then :
10403   $as_echo_n "(cached) " >&6
10404 else
10405           if test "$cross_compiling" = yes; then :
10406   lt_cv_dlopen_self=cross
10407 else
10408   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10409   lt_status=$lt_dlunknown
10410   cat > conftest.$ac_ext <<_LT_EOF
10411 #line 10409 "configure"
10412 #include "confdefs.h"
10413
10414 #if HAVE_DLFCN_H
10415 #include <dlfcn.h>
10416 #endif
10417
10418 #include <stdio.h>
10419
10420 #ifdef RTLD_GLOBAL
10421 #  define LT_DLGLOBAL           RTLD_GLOBAL
10422 #else
10423 #  ifdef DL_GLOBAL
10424 #    define LT_DLGLOBAL         DL_GLOBAL
10425 #  else
10426 #    define LT_DLGLOBAL         0
10427 #  endif
10428 #endif
10429
10430 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10431    find out it does not work in some platform. */
10432 #ifndef LT_DLLAZY_OR_NOW
10433 #  ifdef RTLD_LAZY
10434 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10435 #  else
10436 #    ifdef DL_LAZY
10437 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10438 #    else
10439 #      ifdef RTLD_NOW
10440 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10441 #      else
10442 #        ifdef DL_NOW
10443 #          define LT_DLLAZY_OR_NOW      DL_NOW
10444 #        else
10445 #          define LT_DLLAZY_OR_NOW      0
10446 #        endif
10447 #      endif
10448 #    endif
10449 #  endif
10450 #endif
10451
10452 /* When -fvisbility=hidden is used, assume the code has been annotated
10453    correspondingly for the symbols needed.  */
10454 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10455 void fnord () __attribute__((visibility("default")));
10456 #endif
10457
10458 void fnord () { int i=42; }
10459 int main ()
10460 {
10461   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10462   int status = $lt_dlunknown;
10463
10464   if (self)
10465     {
10466       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10467       else
10468         {
10469           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10470           else puts (dlerror ());
10471         }
10472       /* dlclose (self); */
10473     }
10474   else
10475     puts (dlerror ());
10476
10477   return status;
10478 }
10479 _LT_EOF
10480   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10481   (eval $ac_link) 2>&5
10482   ac_status=$?
10483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10484   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10485     (./conftest; exit; ) >&5 2>/dev/null
10486     lt_status=$?
10487     case x$lt_status in
10488       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10489       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10490       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10491     esac
10492   else :
10493     # compilation failed
10494     lt_cv_dlopen_self=no
10495   fi
10496 fi
10497 rm -fr conftest*
10498
10499
10500 fi
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10502 $as_echo "$lt_cv_dlopen_self" >&6; }
10503
10504     if test "x$lt_cv_dlopen_self" = xyes; then
10505       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10506       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10507 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10508 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10509   $as_echo_n "(cached) " >&6
10510 else
10511           if test "$cross_compiling" = yes; then :
10512   lt_cv_dlopen_self_static=cross
10513 else
10514   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10515   lt_status=$lt_dlunknown
10516   cat > conftest.$ac_ext <<_LT_EOF
10517 #line 10515 "configure"
10518 #include "confdefs.h"
10519
10520 #if HAVE_DLFCN_H
10521 #include <dlfcn.h>
10522 #endif
10523
10524 #include <stdio.h>
10525
10526 #ifdef RTLD_GLOBAL
10527 #  define LT_DLGLOBAL           RTLD_GLOBAL
10528 #else
10529 #  ifdef DL_GLOBAL
10530 #    define LT_DLGLOBAL         DL_GLOBAL
10531 #  else
10532 #    define LT_DLGLOBAL         0
10533 #  endif
10534 #endif
10535
10536 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10537    find out it does not work in some platform. */
10538 #ifndef LT_DLLAZY_OR_NOW
10539 #  ifdef RTLD_LAZY
10540 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10541 #  else
10542 #    ifdef DL_LAZY
10543 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10544 #    else
10545 #      ifdef RTLD_NOW
10546 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10547 #      else
10548 #        ifdef DL_NOW
10549 #          define LT_DLLAZY_OR_NOW      DL_NOW
10550 #        else
10551 #          define LT_DLLAZY_OR_NOW      0
10552 #        endif
10553 #      endif
10554 #    endif
10555 #  endif
10556 #endif
10557
10558 /* When -fvisbility=hidden is used, assume the code has been annotated
10559    correspondingly for the symbols needed.  */
10560 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10561 void fnord () __attribute__((visibility("default")));
10562 #endif
10563
10564 void fnord () { int i=42; }
10565 int main ()
10566 {
10567   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10568   int status = $lt_dlunknown;
10569
10570   if (self)
10571     {
10572       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10573       else
10574         {
10575           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10576           else puts (dlerror ());
10577         }
10578       /* dlclose (self); */
10579     }
10580   else
10581     puts (dlerror ());
10582
10583   return status;
10584 }
10585 _LT_EOF
10586   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10587   (eval $ac_link) 2>&5
10588   ac_status=$?
10589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10590   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10591     (./conftest; exit; ) >&5 2>/dev/null
10592     lt_status=$?
10593     case x$lt_status in
10594       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10595       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10596       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10597     esac
10598   else :
10599     # compilation failed
10600     lt_cv_dlopen_self_static=no
10601   fi
10602 fi
10603 rm -fr conftest*
10604
10605
10606 fi
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10608 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10609     fi
10610
10611     CPPFLAGS="$save_CPPFLAGS"
10612     LDFLAGS="$save_LDFLAGS"
10613     LIBS="$save_LIBS"
10614     ;;
10615   esac
10616
10617   case $lt_cv_dlopen_self in
10618   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10619   *) enable_dlopen_self=unknown ;;
10620   esac
10621
10622   case $lt_cv_dlopen_self_static in
10623   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10624   *) enable_dlopen_self_static=unknown ;;
10625   esac
10626 fi
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644 striplib=
10645 old_striplib=
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10647 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10648 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10649   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10650   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10652 $as_echo "yes" >&6; }
10653 else
10654 # FIXME - insert some real tests, host_os isn't really good enough
10655   case $host_os in
10656   darwin*)
10657     if test -n "$STRIP" ; then
10658       striplib="$STRIP -x"
10659       old_striplib="$STRIP -S"
10660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10661 $as_echo "yes" >&6; }
10662     else
10663       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; }
10665     fi
10666     ;;
10667   *)
10668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10669 $as_echo "no" >&6; }
10670     ;;
10671   esac
10672 fi
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685   # Report which library types will actually be built
10686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10687 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10689 $as_echo "$can_build_shared" >&6; }
10690
10691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10692 $as_echo_n "checking whether to build shared libraries... " >&6; }
10693   test "$can_build_shared" = "no" && enable_shared=no
10694
10695   # On AIX, shared libraries and static libraries use the same namespace, and
10696   # are all built from PIC.
10697   case $host_os in
10698   aix3*)
10699     test "$enable_shared" = yes && enable_static=no
10700     if test -n "$RANLIB"; then
10701       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10702       postinstall_cmds='$RANLIB $lib'
10703     fi
10704     ;;
10705
10706   aix[4-9]*)
10707     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10708       test "$enable_shared" = yes && enable_static=no
10709     fi
10710     ;;
10711   esac
10712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10713 $as_echo "$enable_shared" >&6; }
10714
10715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10716 $as_echo_n "checking whether to build static libraries... " >&6; }
10717   # Make sure either enable_shared or enable_static is yes.
10718   test "$enable_shared" = yes || enable_static=yes
10719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10720 $as_echo "$enable_static" >&6; }
10721
10722
10723
10724
10725 fi
10726 ac_ext=c
10727 ac_cpp='$CPP $CPPFLAGS'
10728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10731
10732 CC="$lt_save_CC"
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746         ac_config_commands="$ac_config_commands libtool"
10747
10748
10749
10750
10751 # Only expand once:
10752
10753
10754
10755 # Find CPP now so that any conditional tests below won't do it and
10756 # thereby make the resulting definitions conditional.
10757 ac_ext=c
10758 ac_cpp='$CPP $CPPFLAGS'
10759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10763 $as_echo_n "checking how to run the C preprocessor... " >&6; }
10764 # On Suns, sometimes $CPP names a directory.
10765 if test -n "$CPP" && test -d "$CPP"; then
10766   CPP=
10767 fi
10768 if test -z "$CPP"; then
10769   if test "${ac_cv_prog_CPP+set}" = set; then :
10770   $as_echo_n "(cached) " >&6
10771 else
10772       # Double quotes because CPP needs to be expanded
10773     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10774     do
10775       ac_preproc_ok=false
10776 for ac_c_preproc_warn_flag in '' yes
10777 do
10778   # Use a header file that comes with gcc, so configuring glibc
10779   # with a fresh cross-compiler works.
10780   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10781   # <limits.h> exists even on freestanding compilers.
10782   # On the NeXT, cc -E runs the code through the compiler's parser,
10783   # not just through cpp. "Syntax error" is here to catch this case.
10784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h.  */
10786 #ifdef __STDC__
10787 # include <limits.h>
10788 #else
10789 # include <assert.h>
10790 #endif
10791                      Syntax error
10792 _ACEOF
10793 if ac_fn_c_try_cpp "$LINENO"; then :
10794
10795 else
10796   # Broken: fails on valid input.
10797 continue
10798 fi
10799 rm -f conftest.err conftest.$ac_ext
10800
10801   # OK, works on sane cases.  Now check whether nonexistent headers
10802   # can be detected and how.
10803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804 /* end confdefs.h.  */
10805 #include <ac_nonexistent.h>
10806 _ACEOF
10807 if ac_fn_c_try_cpp "$LINENO"; then :
10808   # Broken: success on invalid input.
10809 continue
10810 else
10811   # Passes both tests.
10812 ac_preproc_ok=:
10813 break
10814 fi
10815 rm -f conftest.err conftest.$ac_ext
10816
10817 done
10818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10819 rm -f conftest.err conftest.$ac_ext
10820 if $ac_preproc_ok; then :
10821   break
10822 fi
10823
10824     done
10825     ac_cv_prog_CPP=$CPP
10826
10827 fi
10828   CPP=$ac_cv_prog_CPP
10829 else
10830   ac_cv_prog_CPP=$CPP
10831 fi
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
10833 $as_echo "$CPP" >&6; }
10834 ac_preproc_ok=false
10835 for ac_c_preproc_warn_flag in '' yes
10836 do
10837   # Use a header file that comes with gcc, so configuring glibc
10838   # with a fresh cross-compiler works.
10839   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10840   # <limits.h> exists even on freestanding compilers.
10841   # On the NeXT, cc -E runs the code through the compiler's parser,
10842   # not just through cpp. "Syntax error" is here to catch this case.
10843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h.  */
10845 #ifdef __STDC__
10846 # include <limits.h>
10847 #else
10848 # include <assert.h>
10849 #endif
10850                      Syntax error
10851 _ACEOF
10852 if ac_fn_c_try_cpp "$LINENO"; then :
10853
10854 else
10855   # Broken: fails on valid input.
10856 continue
10857 fi
10858 rm -f conftest.err conftest.$ac_ext
10859
10860   # OK, works on sane cases.  Now check whether nonexistent headers
10861   # can be detected and how.
10862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h.  */
10864 #include <ac_nonexistent.h>
10865 _ACEOF
10866 if ac_fn_c_try_cpp "$LINENO"; then :
10867   # Broken: success on invalid input.
10868 continue
10869 else
10870   # Passes both tests.
10871 ac_preproc_ok=:
10872 break
10873 fi
10874 rm -f conftest.err conftest.$ac_ext
10875
10876 done
10877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10878 rm -f conftest.err conftest.$ac_ext
10879 if $ac_preproc_ok; then :
10880
10881 else
10882   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10884 as_fn_error "C preprocessor \"$CPP\" fails sanity check
10885 See \`config.log' for more details." "$LINENO" 5; }
10886 fi
10887
10888 ac_ext=c
10889 ac_cpp='$CPP $CPPFLAGS'
10890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10893
10894
10895 if test -n "$with_cross_host"; then
10896    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
10897    # may not work correctly, because the compiler may not be able to
10898    # link executables.
10899
10900    # We assume newlib.  This lets us hard-code the functions we know
10901    # we'll have.
10902    $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
10903
10904    $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
10905
10906
10907    # We ignore --with-system-zlib in this case.
10908    target_all=libzgcj.la
10909 else
10910    if test x$gcc_no_link = xyes; then
10911   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
10912     ac_cv_func_mmap_fixed_mapped=no
10913   fi
10914 fi
10915 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
10916   for ac_header in stdlib.h unistd.h
10917 do :
10918   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10919 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10920 eval as_val=\$$as_ac_Header
10921    if test "x$as_val" = x""yes; then :
10922   cat >>confdefs.h <<_ACEOF
10923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10924 _ACEOF
10925
10926 fi
10927
10928 done
10929
10930 for ac_func in getpagesize
10931 do :
10932   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10933 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10934   cat >>confdefs.h <<_ACEOF
10935 #define HAVE_GETPAGESIZE 1
10936 _ACEOF
10937
10938 fi
10939 done
10940
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10942 $as_echo_n "checking for working mmap... " >&6; }
10943 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10944   $as_echo_n "(cached) " >&6
10945 else
10946   if test "$cross_compiling" = yes; then :
10947   ac_cv_func_mmap_fixed_mapped=no
10948 else
10949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h.  */
10951 $ac_includes_default
10952 /* malloc might have been renamed as rpl_malloc. */
10953 #undef malloc
10954
10955 /* Thanks to Mike Haertel and Jim Avera for this test.
10956    Here is a matrix of mmap possibilities:
10957         mmap private not fixed
10958         mmap private fixed at somewhere currently unmapped
10959         mmap private fixed at somewhere already mapped
10960         mmap shared not fixed
10961         mmap shared fixed at somewhere currently unmapped
10962         mmap shared fixed at somewhere already mapped
10963    For private mappings, we should verify that changes cannot be read()
10964    back from the file, nor mmap's back from the file at a different
10965    address.  (There have been systems where private was not correctly
10966    implemented like the infamous i386 svr4.0, and systems where the
10967    VM page cache was not coherent with the file system buffer cache
10968    like early versions of FreeBSD and possibly contemporary NetBSD.)
10969    For shared mappings, we should conversely verify that changes get
10970    propagated back to all the places they're supposed to be.
10971
10972    Grep wants private fixed already mapped.
10973    The main things grep needs to know about mmap are:
10974    * does it exist and is it safe to write into the mmap'd area
10975    * how to use it (BSD variants)  */
10976
10977 #include <fcntl.h>
10978 #include <sys/mman.h>
10979
10980 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10981 char *malloc ();
10982 #endif
10983
10984 /* This mess was copied from the GNU getpagesize.h.  */
10985 #ifndef HAVE_GETPAGESIZE
10986 /* Assume that all systems that can run configure have sys/param.h.  */
10987 # ifndef HAVE_SYS_PARAM_H
10988 #  define HAVE_SYS_PARAM_H 1
10989 # endif
10990
10991 # ifdef _SC_PAGESIZE
10992 #  define getpagesize() sysconf(_SC_PAGESIZE)
10993 # else /* no _SC_PAGESIZE */
10994 #  ifdef HAVE_SYS_PARAM_H
10995 #   include <sys/param.h>
10996 #   ifdef EXEC_PAGESIZE
10997 #    define getpagesize() EXEC_PAGESIZE
10998 #   else /* no EXEC_PAGESIZE */
10999 #    ifdef NBPG
11000 #     define getpagesize() NBPG * CLSIZE
11001 #     ifndef CLSIZE
11002 #      define CLSIZE 1
11003 #     endif /* no CLSIZE */
11004 #    else /* no NBPG */
11005 #     ifdef NBPC
11006 #      define getpagesize() NBPC
11007 #     else /* no NBPC */
11008 #      ifdef PAGESIZE
11009 #       define getpagesize() PAGESIZE
11010 #      endif /* PAGESIZE */
11011 #     endif /* no NBPC */
11012 #    endif /* no NBPG */
11013 #   endif /* no EXEC_PAGESIZE */
11014 #  else /* no HAVE_SYS_PARAM_H */
11015 #   define getpagesize() 8192   /* punt totally */
11016 #  endif /* no HAVE_SYS_PARAM_H */
11017 # endif /* no _SC_PAGESIZE */
11018
11019 #endif /* no HAVE_GETPAGESIZE */
11020
11021 int
11022 main ()
11023 {
11024   char *data, *data2, *data3;
11025   int i, pagesize;
11026   int fd;
11027
11028   pagesize = getpagesize ();
11029
11030   /* First, make a file with some known garbage in it. */
11031   data = (char *) malloc (pagesize);
11032   if (!data)
11033     return 1;
11034   for (i = 0; i < pagesize; ++i)
11035     *(data + i) = rand ();
11036   umask (0);
11037   fd = creat ("conftest.mmap", 0600);
11038   if (fd < 0)
11039     return 1;
11040   if (write (fd, data, pagesize) != pagesize)
11041     return 1;
11042   close (fd);
11043
11044   /* Next, try to mmap the file at a fixed address which already has
11045      something else allocated at it.  If we can, also make sure that
11046      we see the same garbage.  */
11047   fd = open ("conftest.mmap", O_RDWR);
11048   if (fd < 0)
11049     return 1;
11050   data2 = (char *) malloc (2 * pagesize);
11051   if (!data2)
11052     return 1;
11053   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11054   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11055                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
11056     return 1;
11057   for (i = 0; i < pagesize; ++i)
11058     if (*(data + i) != *(data2 + i))
11059       return 1;
11060
11061   /* Finally, make sure that changes to the mapped area do not
11062      percolate back to the file as seen by read().  (This is a bug on
11063      some variants of i386 svr4.0.)  */
11064   for (i = 0; i < pagesize; ++i)
11065     *(data2 + i) = *(data2 + i) + 1;
11066   data3 = (char *) malloc (pagesize);
11067   if (!data3)
11068     return 1;
11069   if (read (fd, data3, pagesize) != pagesize)
11070     return 1;
11071   for (i = 0; i < pagesize; ++i)
11072     if (*(data + i) != *(data3 + i))
11073       return 1;
11074   close (fd);
11075   return 0;
11076 }
11077 _ACEOF
11078 if ac_fn_c_try_run "$LINENO"; then :
11079   ac_cv_func_mmap_fixed_mapped=yes
11080 else
11081   ac_cv_func_mmap_fixed_mapped=no
11082 fi
11083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11084   conftest.$ac_objext conftest.beam conftest.$ac_ext
11085 fi
11086
11087 fi
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11089 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11090 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11091
11092 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11093
11094 fi
11095 rm -f conftest.mmap
11096
11097 fi
11098    for ac_func in memcpy strerror
11099 do :
11100   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11101 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11102 eval as_val=\$$as_ac_var
11103    if test "x$as_val" = x""yes; then :
11104   cat >>confdefs.h <<_ACEOF
11105 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11106 _ACEOF
11107
11108 fi
11109 done
11110
11111
11112    if test "$with_system_zlib" = yes; then
11113       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
11114 $as_echo_n "checking for deflate in -lz... " >&6; }
11115 if test "${ac_cv_lib_z_deflate+set}" = set; then :
11116   $as_echo_n "(cached) " >&6
11117 else
11118   ac_check_lib_save_LIBS=$LIBS
11119 LIBS="-lz  $LIBS"
11120 if test x$gcc_no_link = xyes; then
11121   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11122 fi
11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h.  */
11125
11126 /* Override any GCC internal prototype to avoid an error.
11127    Use char because int might match the return type of a GCC
11128    builtin and then its argument prototype would still apply.  */
11129 #ifdef __cplusplus
11130 extern "C"
11131 #endif
11132 char deflate ();
11133 int
11134 main ()
11135 {
11136 return deflate ();
11137   ;
11138   return 0;
11139 }
11140 _ACEOF
11141 if ac_fn_c_try_link "$LINENO"; then :
11142   ac_cv_lib_z_deflate=yes
11143 else
11144   ac_cv_lib_z_deflate=no
11145 fi
11146 rm -f core conftest.err conftest.$ac_objext \
11147     conftest$ac_exeext conftest.$ac_ext
11148 LIBS=$ac_check_lib_save_LIBS
11149 fi
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
11151 $as_echo "$ac_cv_lib_z_deflate" >&6; }
11152 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
11153   target_all=
11154 else
11155   target_all=libzgcj.la
11156 fi
11157
11158    else
11159       target_all=libzgcj.la
11160    fi
11161 fi
11162
11163
11164
11165 for ac_header in unistd.h
11166 do :
11167   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11168 if test "x$ac_cv_header_unistd_h" = x""yes; then :
11169   cat >>confdefs.h <<_ACEOF
11170 #define HAVE_UNISTD_H 1
11171 _ACEOF
11172
11173 fi
11174
11175 done
11176
11177
11178 if test -n "$with_cross_host" &&
11179    test x"$with_cross_host" != x"no"; then
11180   toolexecdir='$(exec_prefix)/$(target_alias)'
11181   toolexeclibdir='$(toolexecdir)/lib'
11182 else
11183   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11184   toolexeclibdir='$(libdir)'
11185 fi
11186 if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
11187   multiosdir=/`$CC -print-multi-os-directory`
11188   case $multiosdir in
11189     /.) multiosdir= ;; # Avoid trailing /.
11190   esac
11191 else
11192   multiosdir=
11193 fi
11194 toolexeclibdir=${toolexeclibdir}${multiosdir}
11195
11196
11197
11198  if test -n "$with_target_subdir"; then
11199   TARGET_LIBRARY_TRUE=
11200   TARGET_LIBRARY_FALSE='#'
11201 else
11202   TARGET_LIBRARY_TRUE='#'
11203   TARGET_LIBRARY_FALSE=
11204 fi
11205
11206
11207 if test "${multilib}" = "yes"; then
11208   multilib_arg="--enable-multilib"
11209 else
11210   multilib_arg=
11211 fi
11212
11213 # Check whether --enable-host-shared was given.
11214 if test "${enable_host_shared+set}" = set; then :
11215   enableval=$enable_host_shared; PICFLAG=-fPIC
11216 else
11217   PICFLAG=
11218 fi
11219
11220
11221
11222 ac_config_files="$ac_config_files Makefile"
11223
11224 cat >confcache <<\_ACEOF
11225 # This file is a shell script that caches the results of configure
11226 # tests run on this system so they can be shared between configure
11227 # scripts and configure runs, see configure's option --config-cache.
11228 # It is not useful on other systems.  If it contains results you don't
11229 # want to keep, you may remove or edit it.
11230 #
11231 # config.status only pays attention to the cache file if you give it
11232 # the --recheck option to rerun configure.
11233 #
11234 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11235 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11236 # following values.
11237
11238 _ACEOF
11239
11240 # The following way of writing the cache mishandles newlines in values,
11241 # but we know of no workaround that is simple, portable, and efficient.
11242 # So, we kill variables containing newlines.
11243 # Ultrix sh set writes to stderr and can't be redirected directly,
11244 # and sets the high bit in the cache file unless we assign to the vars.
11245 (
11246   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11247     eval ac_val=\$$ac_var
11248     case $ac_val in #(
11249     *${as_nl}*)
11250       case $ac_var in #(
11251       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11252 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11253       esac
11254       case $ac_var in #(
11255       _ | IFS | as_nl) ;; #(
11256       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11257       *) { eval $ac_var=; unset $ac_var;} ;;
11258       esac ;;
11259     esac
11260   done
11261
11262   (set) 2>&1 |
11263     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11264     *${as_nl}ac_space=\ *)
11265       # `set' does not quote correctly, so add quotes: double-quote
11266       # substitution turns \\\\ into \\, and sed turns \\ into \.
11267       sed -n \
11268         "s/'/'\\\\''/g;
11269           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11270       ;; #(
11271     *)
11272       # `set' quotes correctly as required by POSIX, so do not add quotes.
11273       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11274       ;;
11275     esac |
11276     sort
11277 ) |
11278   sed '
11279      /^ac_cv_env_/b end
11280      t clear
11281      :clear
11282      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11283      t end
11284      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11285      :end' >>confcache
11286 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11287   if test -w "$cache_file"; then
11288     test "x$cache_file" != "x/dev/null" &&
11289       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11290 $as_echo "$as_me: updating cache $cache_file" >&6;}
11291     cat confcache >$cache_file
11292   else
11293     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11294 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11295   fi
11296 fi
11297 rm -f confcache
11298
11299 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11300 # Let make expand exec_prefix.
11301 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11302
11303 # Transform confdefs.h into DEFS.
11304 # Protect against shell expansion while executing Makefile rules.
11305 # Protect against Makefile macro expansion.
11306 #
11307 # If the first sed substitution is executed (which looks for macros that
11308 # take arguments), then branch to the quote section.  Otherwise,
11309 # look for a macro that doesn't take arguments.
11310 ac_script='
11311 :mline
11312 /\\$/{
11313  N
11314  s,\\\n,,
11315  b mline
11316 }
11317 t clear
11318 :clear
11319 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
11320 t quote
11321 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
11322 t quote
11323 b any
11324 :quote
11325 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11326 s/\[/\\&/g
11327 s/\]/\\&/g
11328 s/\$/$$/g
11329 H
11330 :any
11331 ${
11332         g
11333         s/^\n//
11334         s/\n/ /g
11335         p
11336 }
11337 '
11338 DEFS=`sed -n "$ac_script" confdefs.h`
11339
11340
11341 ac_libobjs=
11342 ac_ltlibobjs=
11343 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11344   # 1. Remove the extension, and $U if already installed.
11345   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11346   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11347   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11348   #    will be set to the directory where LIBOBJS objects are built.
11349   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11350   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11351 done
11352 LIBOBJS=$ac_libobjs
11353
11354 LTLIBOBJS=$ac_ltlibobjs
11355
11356
11357  if test -n "$EXEEXT"; then
11358   am__EXEEXT_TRUE=
11359   am__EXEEXT_FALSE='#'
11360 else
11361   am__EXEEXT_TRUE='#'
11362   am__EXEEXT_FALSE=
11363 fi
11364
11365 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11366   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11368 fi
11369 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11370   as_fn_error "conditional \"AMDEP\" was never defined.
11371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11372 fi
11373 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11374   as_fn_error "conditional \"am__fastdepCC\" was never defined.
11375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11376 fi
11377 if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
11378   as_fn_error "conditional \"TARGET_LIBRARY\" was never defined.
11379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11380 fi
11381
11382 : ${CONFIG_STATUS=./config.status}
11383 ac_write_fail=0
11384 ac_clean_files_save=$ac_clean_files
11385 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11387 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11388 as_write_fail=0
11389 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11390 #! $SHELL
11391 # Generated by $as_me.
11392 # Run this file to recreate the current configuration.
11393 # Compiler output produced by configure, useful for debugging
11394 # configure, is in config.log if it exists.
11395
11396 debug=false
11397 ac_cs_recheck=false
11398 ac_cs_silent=false
11399
11400 SHELL=\${CONFIG_SHELL-$SHELL}
11401 export SHELL
11402 _ASEOF
11403 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11404 ## -------------------- ##
11405 ## M4sh Initialization. ##
11406 ## -------------------- ##
11407
11408 # Be more Bourne compatible
11409 DUALCASE=1; export DUALCASE # for MKS sh
11410 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11411   emulate sh
11412   NULLCMD=:
11413   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11414   # is contrary to our usage.  Disable this feature.
11415   alias -g '${1+"$@"}'='"$@"'
11416   setopt NO_GLOB_SUBST
11417 else
11418   case `(set -o) 2>/dev/null` in #(
11419   *posix*) :
11420     set -o posix ;; #(
11421   *) :
11422      ;;
11423 esac
11424 fi
11425
11426
11427 as_nl='
11428 '
11429 export as_nl
11430 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11431 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11432 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11433 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11434 # Prefer a ksh shell builtin over an external printf program on Solaris,
11435 # but without wasting forks for bash or zsh.
11436 if test -z "$BASH_VERSION$ZSH_VERSION" \
11437     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11438   as_echo='print -r --'
11439   as_echo_n='print -rn --'
11440 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11441   as_echo='printf %s\n'
11442   as_echo_n='printf %s'
11443 else
11444   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11445     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11446     as_echo_n='/usr/ucb/echo -n'
11447   else
11448     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11449     as_echo_n_body='eval
11450       arg=$1;
11451       case $arg in #(
11452       *"$as_nl"*)
11453         expr "X$arg" : "X\\(.*\\)$as_nl";
11454         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11455       esac;
11456       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11457     '
11458     export as_echo_n_body
11459     as_echo_n='sh -c $as_echo_n_body as_echo'
11460   fi
11461   export as_echo_body
11462   as_echo='sh -c $as_echo_body as_echo'
11463 fi
11464
11465 # The user is always right.
11466 if test "${PATH_SEPARATOR+set}" != set; then
11467   PATH_SEPARATOR=:
11468   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11469     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11470       PATH_SEPARATOR=';'
11471   }
11472 fi
11473
11474
11475 # IFS
11476 # We need space, tab and new line, in precisely that order.  Quoting is
11477 # there to prevent editors from complaining about space-tab.
11478 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11479 # splitting by setting IFS to empty value.)
11480 IFS=" ""        $as_nl"
11481
11482 # Find who we are.  Look in the path if we contain no directory separator.
11483 case $0 in #((
11484   *[\\/]* ) as_myself=$0 ;;
11485   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486 for as_dir in $PATH
11487 do
11488   IFS=$as_save_IFS
11489   test -z "$as_dir" && as_dir=.
11490     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11491   done
11492 IFS=$as_save_IFS
11493
11494      ;;
11495 esac
11496 # We did not find ourselves, most probably we were run as `sh COMMAND'
11497 # in which case we are not to be found in the path.
11498 if test "x$as_myself" = x; then
11499   as_myself=$0
11500 fi
11501 if test ! -f "$as_myself"; then
11502   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11503   exit 1
11504 fi
11505
11506 # Unset variables that we do not need and which cause bugs (e.g. in
11507 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11508 # suppresses any "Segmentation fault" message there.  '((' could
11509 # trigger a bug in pdksh 5.2.14.
11510 for as_var in BASH_ENV ENV MAIL MAILPATH
11511 do eval test x\${$as_var+set} = xset \
11512   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11513 done
11514 PS1='$ '
11515 PS2='> '
11516 PS4='+ '
11517
11518 # NLS nuisances.
11519 LC_ALL=C
11520 export LC_ALL
11521 LANGUAGE=C
11522 export LANGUAGE
11523
11524 # CDPATH.
11525 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11526
11527
11528 # as_fn_error ERROR [LINENO LOG_FD]
11529 # ---------------------------------
11530 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11531 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11532 # script with status $?, using 1 if that was 0.
11533 as_fn_error ()
11534 {
11535   as_status=$?; test $as_status -eq 0 && as_status=1
11536   if test "$3"; then
11537     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11538     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11539   fi
11540   $as_echo "$as_me: error: $1" >&2
11541   as_fn_exit $as_status
11542 } # as_fn_error
11543
11544
11545 # as_fn_set_status STATUS
11546 # -----------------------
11547 # Set $? to STATUS, without forking.
11548 as_fn_set_status ()
11549 {
11550   return $1
11551 } # as_fn_set_status
11552
11553 # as_fn_exit STATUS
11554 # -----------------
11555 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11556 as_fn_exit ()
11557 {
11558   set +e
11559   as_fn_set_status $1
11560   exit $1
11561 } # as_fn_exit
11562
11563 # as_fn_unset VAR
11564 # ---------------
11565 # Portably unset VAR.
11566 as_fn_unset ()
11567 {
11568   { eval $1=; unset $1;}
11569 }
11570 as_unset=as_fn_unset
11571 # as_fn_append VAR VALUE
11572 # ----------------------
11573 # Append the text in VALUE to the end of the definition contained in VAR. Take
11574 # advantage of any shell optimizations that allow amortized linear growth over
11575 # repeated appends, instead of the typical quadratic growth present in naive
11576 # implementations.
11577 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11578   eval 'as_fn_append ()
11579   {
11580     eval $1+=\$2
11581   }'
11582 else
11583   as_fn_append ()
11584   {
11585     eval $1=\$$1\$2
11586   }
11587 fi # as_fn_append
11588
11589 # as_fn_arith ARG...
11590 # ------------------
11591 # Perform arithmetic evaluation on the ARGs, and store the result in the
11592 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11593 # must be portable across $(()) and expr.
11594 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11595   eval 'as_fn_arith ()
11596   {
11597     as_val=$(( $* ))
11598   }'
11599 else
11600   as_fn_arith ()
11601   {
11602     as_val=`expr "$@" || test $? -eq 1`
11603   }
11604 fi # as_fn_arith
11605
11606
11607 if expr a : '\(a\)' >/dev/null 2>&1 &&
11608    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11609   as_expr=expr
11610 else
11611   as_expr=false
11612 fi
11613
11614 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11615   as_basename=basename
11616 else
11617   as_basename=false
11618 fi
11619
11620 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11621   as_dirname=dirname
11622 else
11623   as_dirname=false
11624 fi
11625
11626 as_me=`$as_basename -- "$0" ||
11627 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11628          X"$0" : 'X\(//\)$' \| \
11629          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11630 $as_echo X/"$0" |
11631     sed '/^.*\/\([^/][^/]*\)\/*$/{
11632             s//\1/
11633             q
11634           }
11635           /^X\/\(\/\/\)$/{
11636             s//\1/
11637             q
11638           }
11639           /^X\/\(\/\).*/{
11640             s//\1/
11641             q
11642           }
11643           s/.*/./; q'`
11644
11645 # Avoid depending upon Character Ranges.
11646 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11647 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11648 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11649 as_cr_digits='0123456789'
11650 as_cr_alnum=$as_cr_Letters$as_cr_digits
11651
11652 ECHO_C= ECHO_N= ECHO_T=
11653 case `echo -n x` in #(((((
11654 -n*)
11655   case `echo 'xy\c'` in
11656   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11657   xy)  ECHO_C='\c';;
11658   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11659        ECHO_T=' ';;
11660   esac;;
11661 *)
11662   ECHO_N='-n';;
11663 esac
11664
11665 rm -f conf$$ conf$$.exe conf$$.file
11666 if test -d conf$$.dir; then
11667   rm -f conf$$.dir/conf$$.file
11668 else
11669   rm -f conf$$.dir
11670   mkdir conf$$.dir 2>/dev/null
11671 fi
11672 if (echo >conf$$.file) 2>/dev/null; then
11673   if ln -s conf$$.file conf$$ 2>/dev/null; then
11674     as_ln_s='ln -s'
11675     # ... but there are two gotchas:
11676     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11677     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11678     # In both cases, we have to default to `cp -p'.
11679     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11680       as_ln_s='cp -p'
11681   elif ln conf$$.file conf$$ 2>/dev/null; then
11682     as_ln_s=ln
11683   else
11684     as_ln_s='cp -p'
11685   fi
11686 else
11687   as_ln_s='cp -p'
11688 fi
11689 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11690 rmdir conf$$.dir 2>/dev/null
11691
11692
11693 # as_fn_mkdir_p
11694 # -------------
11695 # Create "$as_dir" as a directory, including parents if necessary.
11696 as_fn_mkdir_p ()
11697 {
11698
11699   case $as_dir in #(
11700   -*) as_dir=./$as_dir;;
11701   esac
11702   test -d "$as_dir" || eval $as_mkdir_p || {
11703     as_dirs=
11704     while :; do
11705       case $as_dir in #(
11706       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11707       *) as_qdir=$as_dir;;
11708       esac
11709       as_dirs="'$as_qdir' $as_dirs"
11710       as_dir=`$as_dirname -- "$as_dir" ||
11711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11712          X"$as_dir" : 'X\(//\)[^/]' \| \
11713          X"$as_dir" : 'X\(//\)$' \| \
11714          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11715 $as_echo X"$as_dir" |
11716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11717             s//\1/
11718             q
11719           }
11720           /^X\(\/\/\)[^/].*/{
11721             s//\1/
11722             q
11723           }
11724           /^X\(\/\/\)$/{
11725             s//\1/
11726             q
11727           }
11728           /^X\(\/\).*/{
11729             s//\1/
11730             q
11731           }
11732           s/.*/./; q'`
11733       test -d "$as_dir" && break
11734     done
11735     test -z "$as_dirs" || eval "mkdir $as_dirs"
11736   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11737
11738
11739 } # as_fn_mkdir_p
11740 if mkdir -p . 2>/dev/null; then
11741   as_mkdir_p='mkdir -p "$as_dir"'
11742 else
11743   test -d ./-p && rmdir ./-p
11744   as_mkdir_p=false
11745 fi
11746
11747 if test -x / >/dev/null 2>&1; then
11748   as_test_x='test -x'
11749 else
11750   if ls -dL / >/dev/null 2>&1; then
11751     as_ls_L_option=L
11752   else
11753     as_ls_L_option=
11754   fi
11755   as_test_x='
11756     eval sh -c '\''
11757       if test -d "$1"; then
11758         test -d "$1/.";
11759       else
11760         case $1 in #(
11761         -*)set "./$1";;
11762         esac;
11763         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11764         ???[sx]*):;;*)false;;esac;fi
11765     '\'' sh
11766   '
11767 fi
11768 as_executable_p=$as_test_x
11769
11770 # Sed expression to map a string onto a valid CPP name.
11771 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11772
11773 # Sed expression to map a string onto a valid variable name.
11774 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11775
11776
11777 exec 6>&1
11778 ## ----------------------------------- ##
11779 ## Main body of $CONFIG_STATUS script. ##
11780 ## ----------------------------------- ##
11781 _ASEOF
11782 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11783
11784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11785 # Save the log message, to keep $0 and so on meaningful, and to
11786 # report actual input values of CONFIG_FILES etc. instead of their
11787 # values after options handling.
11788 ac_log="
11789 This file was extended by $as_me, which was
11790 generated by GNU Autoconf 2.64.  Invocation command line was
11791
11792   CONFIG_FILES    = $CONFIG_FILES
11793   CONFIG_HEADERS  = $CONFIG_HEADERS
11794   CONFIG_LINKS    = $CONFIG_LINKS
11795   CONFIG_COMMANDS = $CONFIG_COMMANDS
11796   $ $0 $@
11797
11798 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11799 "
11800
11801 _ACEOF
11802
11803 case $ac_config_files in *"
11804 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11805 esac
11806
11807
11808
11809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11810 # Files that config.status was made for.
11811 config_files="$ac_config_files"
11812 config_commands="$ac_config_commands"
11813
11814 _ACEOF
11815
11816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11817 ac_cs_usage="\
11818 \`$as_me' instantiates files and other configuration actions
11819 from templates according to the current configuration.  Unless the files
11820 and actions are specified as TAGs, all are instantiated by default.
11821
11822 Usage: $0 [OPTION]... [TAG]...
11823
11824   -h, --help       print this help, then exit
11825   -V, --version    print version number and configuration settings, then exit
11826   -q, --quiet, --silent
11827                    do not print progress messages
11828   -d, --debug      don't remove temporary files
11829       --recheck    update $as_me by reconfiguring in the same conditions
11830       --file=FILE[:TEMPLATE]
11831                    instantiate the configuration file FILE
11832
11833 Configuration files:
11834 $config_files
11835
11836 Configuration commands:
11837 $config_commands
11838
11839 Report bugs to the package provider."
11840
11841 _ACEOF
11842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11843 ac_cs_version="\\
11844 config.status
11845 configured by $0, generated by GNU Autoconf 2.64,
11846   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11847
11848 Copyright (C) 2009 Free Software Foundation, Inc.
11849 This config.status script is free software; the Free Software Foundation
11850 gives unlimited permission to copy, distribute and modify it."
11851
11852 ac_pwd='$ac_pwd'
11853 srcdir='$srcdir'
11854 INSTALL='$INSTALL'
11855 MKDIR_P='$MKDIR_P'
11856 AWK='$AWK'
11857 test -n "\$AWK" || AWK=awk
11858 _ACEOF
11859
11860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11861 # The default lists apply if the user does not specify any file.
11862 ac_need_defaults=:
11863 while test $# != 0
11864 do
11865   case $1 in
11866   --*=*)
11867     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11868     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11869     ac_shift=:
11870     ;;
11871   *)
11872     ac_option=$1
11873     ac_optarg=$2
11874     ac_shift=shift
11875     ;;
11876   esac
11877
11878   case $ac_option in
11879   # Handling of the options.
11880   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11881     ac_cs_recheck=: ;;
11882   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11883     $as_echo "$ac_cs_version"; exit ;;
11884   --debug | --debu | --deb | --de | --d | -d )
11885     debug=: ;;
11886   --file | --fil | --fi | --f )
11887     $ac_shift
11888     case $ac_optarg in
11889     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11890     esac
11891     as_fn_append CONFIG_FILES " '$ac_optarg'"
11892     ac_need_defaults=false;;
11893   --he | --h |  --help | --hel | -h )
11894     $as_echo "$ac_cs_usage"; exit ;;
11895   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11896   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11897     ac_cs_silent=: ;;
11898
11899   # This is an error.
11900   -*) as_fn_error "unrecognized option: \`$1'
11901 Try \`$0 --help' for more information." ;;
11902
11903   *) as_fn_append ac_config_targets " $1"
11904      ac_need_defaults=false ;;
11905
11906   esac
11907   shift
11908 done
11909
11910 ac_configure_extra_args=
11911
11912 if $ac_cs_silent; then
11913   exec 6>/dev/null
11914   ac_configure_extra_args="$ac_configure_extra_args --silent"
11915 fi
11916
11917 _ACEOF
11918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11919 if \$ac_cs_recheck; then
11920   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11921   shift
11922   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11923   CONFIG_SHELL='$SHELL'
11924   export CONFIG_SHELL
11925   exec "\$@"
11926 fi
11927
11928 _ACEOF
11929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11930 exec 5>>config.log
11931 {
11932   echo
11933   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11934 ## Running $as_me. ##
11935 _ASBOX
11936   $as_echo "$ac_log"
11937 } >&5
11938
11939 _ACEOF
11940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11941 #
11942 # INIT-COMMANDS
11943 #
11944
11945 srcdir="$srcdir"
11946 host="$host"
11947 target="$target"
11948 with_multisubdir="$with_multisubdir"
11949 with_multisrctop="$with_multisrctop"
11950 with_target_subdir="$with_target_subdir"
11951 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11952 multi_basedir="$multi_basedir"
11953 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11954 CC="$CC"
11955 CXX="$CXX"
11956 GFORTRAN="$GFORTRAN"
11957 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11958
11959
11960 # The HP-UX ksh and POSIX shell print the target directory to stdout
11961 # if CDPATH is set.
11962 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11963
11964 sed_quote_subst='$sed_quote_subst'
11965 double_quote_subst='$double_quote_subst'
11966 delay_variable_subst='$delay_variable_subst'
11967 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11968 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11969 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11970 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11971 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11972 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11973 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11974 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11975 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11976 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11977 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11978 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11979 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11980 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11981 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11982 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11983 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11984 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11985 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11986 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11987 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11988 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11989 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11990 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11991 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11992 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11993 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11994 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11995 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11996 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11997 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11998 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11999 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12000 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12001 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12002 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12003 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12004 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12005 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12006 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12007 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12008 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12009 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12010 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12011 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12012 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12013 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12014 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12015 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"`'
12016 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12017 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12018 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12019 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12020 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12021 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12022 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12023 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12024 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12025 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12026 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12027 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12028 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12029 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12030 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12031 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12032 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12033 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12034 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12035 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12036 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12037 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12038 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12039 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12040 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12041 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12042 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12043 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12044 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12045 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12046 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12047 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12048 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12049 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12050 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12051 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12052 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12053 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12054 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12055 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12056 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12057 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12058 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12059 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12060 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12061 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12062 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12063 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12064 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12065 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12066 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12067 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12068 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12069 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12070 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12071 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12072 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12073 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12074 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12075 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12076 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12077 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12078 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12079 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12080 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12081 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12082 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12083 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12084 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12085 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12086 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12087
12088 LTCC='$LTCC'
12089 LTCFLAGS='$LTCFLAGS'
12090 compiler='$compiler_DEFAULT'
12091
12092 # A function that is used when there is no print builtin or printf.
12093 func_fallback_echo ()
12094 {
12095   eval 'cat <<_LTECHO_EOF
12096 \$1
12097 _LTECHO_EOF'
12098 }
12099
12100 # Quote evaled strings.
12101 for var in SHELL \
12102 ECHO \
12103 SED \
12104 GREP \
12105 EGREP \
12106 FGREP \
12107 LD \
12108 NM \
12109 LN_S \
12110 lt_SP2NL \
12111 lt_NL2SP \
12112 reload_flag \
12113 OBJDUMP \
12114 deplibs_check_method \
12115 file_magic_cmd \
12116 AR \
12117 AR_FLAGS \
12118 STRIP \
12119 RANLIB \
12120 CC \
12121 CFLAGS \
12122 compiler \
12123 lt_cv_sys_global_symbol_pipe \
12124 lt_cv_sys_global_symbol_to_cdecl \
12125 lt_cv_sys_global_symbol_to_c_name_address \
12126 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12127 lt_prog_compiler_no_builtin_flag \
12128 lt_prog_compiler_wl \
12129 lt_prog_compiler_pic \
12130 lt_prog_compiler_static \
12131 lt_cv_prog_compiler_c_o \
12132 need_locks \
12133 DSYMUTIL \
12134 NMEDIT \
12135 LIPO \
12136 OTOOL \
12137 OTOOL64 \
12138 shrext_cmds \
12139 export_dynamic_flag_spec \
12140 whole_archive_flag_spec \
12141 compiler_needs_object \
12142 with_gnu_ld \
12143 allow_undefined_flag \
12144 no_undefined_flag \
12145 hardcode_libdir_flag_spec \
12146 hardcode_libdir_flag_spec_ld \
12147 hardcode_libdir_separator \
12148 fix_srcfile_path \
12149 exclude_expsyms \
12150 include_expsyms \
12151 file_list_spec \
12152 variables_saved_for_relink \
12153 libname_spec \
12154 library_names_spec \
12155 soname_spec \
12156 install_override_mode \
12157 finish_eval \
12158 old_striplib \
12159 striplib; do
12160     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12161     *[\\\\\\\`\\"\\\$]*)
12162       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12163       ;;
12164     *)
12165       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12166       ;;
12167     esac
12168 done
12169
12170 # Double-quote double-evaled strings.
12171 for var in reload_cmds \
12172 old_postinstall_cmds \
12173 old_postuninstall_cmds \
12174 old_archive_cmds \
12175 extract_expsyms_cmds \
12176 old_archive_from_new_cmds \
12177 old_archive_from_expsyms_cmds \
12178 archive_cmds \
12179 archive_expsym_cmds \
12180 module_cmds \
12181 module_expsym_cmds \
12182 export_symbols_cmds \
12183 prelink_cmds \
12184 postinstall_cmds \
12185 postuninstall_cmds \
12186 finish_cmds \
12187 sys_lib_search_path_spec \
12188 sys_lib_dlsearch_path_spec; do
12189     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12190     *[\\\\\\\`\\"\\\$]*)
12191       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12192       ;;
12193     *)
12194       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12195       ;;
12196     esac
12197 done
12198
12199 ac_aux_dir='$ac_aux_dir'
12200 xsi_shell='$xsi_shell'
12201 lt_shell_append='$lt_shell_append'
12202
12203 # See if we are running on zsh, and set the options which allow our
12204 # commands through without removal of \ escapes INIT.
12205 if test -n "\${ZSH_VERSION+set}" ; then
12206    setopt NO_GLOB_SUBST
12207 fi
12208
12209
12210     PACKAGE='$PACKAGE'
12211     VERSION='$VERSION'
12212     TIMESTAMP='$TIMESTAMP'
12213     RM='$RM'
12214     ofile='$ofile'
12215
12216
12217
12218
12219 _ACEOF
12220
12221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12222
12223 # Handling of arguments.
12224 for ac_config_target in $ac_config_targets
12225 do
12226   case $ac_config_target in
12227     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12228     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12229     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12230     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12231
12232   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12233   esac
12234 done
12235
12236
12237 # If the user did not use the arguments to specify the items to instantiate,
12238 # then the envvar interface is used.  Set only those that are not.
12239 # We use the long form for the default assignment because of an extremely
12240 # bizarre bug on SunOS 4.1.3.
12241 if $ac_need_defaults; then
12242   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12243   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12244 fi
12245
12246 # Have a temporary directory for convenience.  Make it in the build tree
12247 # simply because there is no reason against having it here, and in addition,
12248 # creating and moving files from /tmp can sometimes cause problems.
12249 # Hook for its removal unless debugging.
12250 # Note that there is a small window in which the directory will not be cleaned:
12251 # after its creation but before its name has been assigned to `$tmp'.
12252 $debug ||
12253 {
12254   tmp=
12255   trap 'exit_status=$?
12256   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12257 ' 0
12258   trap 'as_fn_exit 1' 1 2 13 15
12259 }
12260 # Create a (secure) tmp directory for tmp files.
12261
12262 {
12263   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12264   test -n "$tmp" && test -d "$tmp"
12265 }  ||
12266 {
12267   tmp=./conf$$-$RANDOM
12268   (umask 077 && mkdir "$tmp")
12269 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12270
12271 # Set up the scripts for CONFIG_FILES section.
12272 # No need to generate them if there are no CONFIG_FILES.
12273 # This happens for instance with `./config.status config.h'.
12274 if test -n "$CONFIG_FILES"; then
12275
12276
12277 ac_cr=`echo X | tr X '\015'`
12278 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12279 # But we know of no other shell where ac_cr would be empty at this
12280 # point, so we can use a bashism as a fallback.
12281 if test "x$ac_cr" = x; then
12282   eval ac_cr=\$\'\\r\'
12283 fi
12284 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12285 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12286   ac_cs_awk_cr='\r'
12287 else
12288   ac_cs_awk_cr=$ac_cr
12289 fi
12290
12291 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12292 _ACEOF
12293
12294
12295 {
12296   echo "cat >conf$$subs.awk <<_ACEOF" &&
12297   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12298   echo "_ACEOF"
12299 } >conf$$subs.sh ||
12300   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12301 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12302 ac_delim='%!_!# '
12303 for ac_last_try in false false false false false :; do
12304   . ./conf$$subs.sh ||
12305     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12306
12307   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12308   if test $ac_delim_n = $ac_delim_num; then
12309     break
12310   elif $ac_last_try; then
12311     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12312   else
12313     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12314   fi
12315 done
12316 rm -f conf$$subs.sh
12317
12318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12319 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12320 _ACEOF
12321 sed -n '
12322 h
12323 s/^/S["/; s/!.*/"]=/
12324 p
12325 g
12326 s/^[^!]*!//
12327 :repl
12328 t repl
12329 s/'"$ac_delim"'$//
12330 t delim
12331 :nl
12332 h
12333 s/\(.\{148\}\).*/\1/
12334 t more1
12335 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12336 p
12337 n
12338 b repl
12339 :more1
12340 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12341 p
12342 g
12343 s/.\{148\}//
12344 t nl
12345 :delim
12346 h
12347 s/\(.\{148\}\).*/\1/
12348 t more2
12349 s/["\\]/\\&/g; s/^/"/; s/$/"/
12350 p
12351 b
12352 :more2
12353 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12354 p
12355 g
12356 s/.\{148\}//
12357 t delim
12358 ' <conf$$subs.awk | sed '
12359 /^[^""]/{
12360   N
12361   s/\n//
12362 }
12363 ' >>$CONFIG_STATUS || ac_write_fail=1
12364 rm -f conf$$subs.awk
12365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12366 _ACAWK
12367 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12368   for (key in S) S_is_set[key] = 1
12369   FS = "\a"
12370
12371 }
12372 {
12373   line = $ 0
12374   nfields = split(line, field, "@")
12375   substed = 0
12376   len = length(field[1])
12377   for (i = 2; i < nfields; i++) {
12378     key = field[i]
12379     keylen = length(key)
12380     if (S_is_set[key]) {
12381       value = S[key]
12382       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12383       len += length(value) + length(field[++i])
12384       substed = 1
12385     } else
12386       len += 1 + keylen
12387   }
12388
12389   print line
12390 }
12391
12392 _ACAWK
12393 _ACEOF
12394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12395 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12396   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12397 else
12398   cat
12399 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12400   || as_fn_error "could not setup config files machinery" "$LINENO" 5
12401 _ACEOF
12402
12403 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12404 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12405 # trailing colons and then remove the whole line if VPATH becomes empty
12406 # (actually we leave an empty line to preserve line numbers).
12407 if test "x$srcdir" = x.; then
12408   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12409 s/:*\$(srcdir):*/:/
12410 s/:*\${srcdir}:*/:/
12411 s/:*@srcdir@:*/:/
12412 s/^\([^=]*=[     ]*\):*/\1/
12413 s/:*$//
12414 s/^[^=]*=[       ]*$//
12415 }'
12416 fi
12417
12418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12419 fi # test -n "$CONFIG_FILES"
12420
12421
12422 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12423 shift
12424 for ac_tag
12425 do
12426   case $ac_tag in
12427   :[FHLC]) ac_mode=$ac_tag; continue;;
12428   esac
12429   case $ac_mode$ac_tag in
12430   :[FHL]*:*);;
12431   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12432   :[FH]-) ac_tag=-:-;;
12433   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12434   esac
12435   ac_save_IFS=$IFS
12436   IFS=:
12437   set x $ac_tag
12438   IFS=$ac_save_IFS
12439   shift
12440   ac_file=$1
12441   shift
12442
12443   case $ac_mode in
12444   :L) ac_source=$1;;
12445   :[FH])
12446     ac_file_inputs=
12447     for ac_f
12448     do
12449       case $ac_f in
12450       -) ac_f="$tmp/stdin";;
12451       *) # Look for the file first in the build tree, then in the source tree
12452          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12453          # because $ac_f cannot contain `:'.
12454          test -f "$ac_f" ||
12455            case $ac_f in
12456            [\\/$]*) false;;
12457            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12458            esac ||
12459            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12460       esac
12461       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12462       as_fn_append ac_file_inputs " '$ac_f'"
12463     done
12464
12465     # Let's still pretend it is `configure' which instantiates (i.e., don't
12466     # use $as_me), people would be surprised to read:
12467     #    /* config.h.  Generated by config.status.  */
12468     configure_input='Generated from '`
12469           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12470         `' by configure.'
12471     if test x"$ac_file" != x-; then
12472       configure_input="$ac_file.  $configure_input"
12473       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12474 $as_echo "$as_me: creating $ac_file" >&6;}
12475     fi
12476     # Neutralize special characters interpreted by sed in replacement strings.
12477     case $configure_input in #(
12478     *\&* | *\|* | *\\* )
12479        ac_sed_conf_input=`$as_echo "$configure_input" |
12480        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12481     *) ac_sed_conf_input=$configure_input;;
12482     esac
12483
12484     case $ac_tag in
12485     *:-:* | *:-) cat >"$tmp/stdin" \
12486       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12487     esac
12488     ;;
12489   esac
12490
12491   ac_dir=`$as_dirname -- "$ac_file" ||
12492 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12493          X"$ac_file" : 'X\(//\)[^/]' \| \
12494          X"$ac_file" : 'X\(//\)$' \| \
12495          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12496 $as_echo X"$ac_file" |
12497     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12498             s//\1/
12499             q
12500           }
12501           /^X\(\/\/\)[^/].*/{
12502             s//\1/
12503             q
12504           }
12505           /^X\(\/\/\)$/{
12506             s//\1/
12507             q
12508           }
12509           /^X\(\/\).*/{
12510             s//\1/
12511             q
12512           }
12513           s/.*/./; q'`
12514   as_dir="$ac_dir"; as_fn_mkdir_p
12515   ac_builddir=.
12516
12517 case "$ac_dir" in
12518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12519 *)
12520   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12521   # A ".." for each directory in $ac_dir_suffix.
12522   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12523   case $ac_top_builddir_sub in
12524   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12525   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12526   esac ;;
12527 esac
12528 ac_abs_top_builddir=$ac_pwd
12529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12530 # for backward compatibility:
12531 ac_top_builddir=$ac_top_build_prefix
12532
12533 case $srcdir in
12534   .)  # We are building in place.
12535     ac_srcdir=.
12536     ac_top_srcdir=$ac_top_builddir_sub
12537     ac_abs_top_srcdir=$ac_pwd ;;
12538   [\\/]* | ?:[\\/]* )  # Absolute name.
12539     ac_srcdir=$srcdir$ac_dir_suffix;
12540     ac_top_srcdir=$srcdir
12541     ac_abs_top_srcdir=$srcdir ;;
12542   *) # Relative name.
12543     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12544     ac_top_srcdir=$ac_top_build_prefix$srcdir
12545     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12546 esac
12547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12548
12549
12550   case $ac_mode in
12551   :F)
12552   #
12553   # CONFIG_FILE
12554   #
12555
12556   case $INSTALL in
12557   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12558   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12559   esac
12560   ac_MKDIR_P=$MKDIR_P
12561   case $MKDIR_P in
12562   [\\/$]* | ?:[\\/]* ) ;;
12563   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12564   esac
12565 _ACEOF
12566
12567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12568 # If the template does not know about datarootdir, expand it.
12569 # FIXME: This hack should be removed a few years after 2.60.
12570 ac_datarootdir_hack=; ac_datarootdir_seen=
12571 ac_sed_dataroot='
12572 /datarootdir/ {
12573   p
12574   q
12575 }
12576 /@datadir@/p
12577 /@docdir@/p
12578 /@infodir@/p
12579 /@localedir@/p
12580 /@mandir@/p'
12581 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12582 *datarootdir*) ac_datarootdir_seen=yes;;
12583 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12584   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12585 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12586 _ACEOF
12587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12588   ac_datarootdir_hack='
12589   s&@datadir@&$datadir&g
12590   s&@docdir@&$docdir&g
12591   s&@infodir@&$infodir&g
12592   s&@localedir@&$localedir&g
12593   s&@mandir@&$mandir&g
12594   s&\\\${datarootdir}&$datarootdir&g' ;;
12595 esac
12596 _ACEOF
12597
12598 # Neutralize VPATH when `$srcdir' = `.'.
12599 # Shell code in configure.ac might set extrasub.
12600 # FIXME: do we really want to maintain this feature?
12601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12602 ac_sed_extra="$ac_vpsub
12603 $extrasub
12604 _ACEOF
12605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12606 :t
12607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12608 s|@configure_input@|$ac_sed_conf_input|;t t
12609 s&@top_builddir@&$ac_top_builddir_sub&;t t
12610 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12611 s&@srcdir@&$ac_srcdir&;t t
12612 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12613 s&@top_srcdir@&$ac_top_srcdir&;t t
12614 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12615 s&@builddir@&$ac_builddir&;t t
12616 s&@abs_builddir@&$ac_abs_builddir&;t t
12617 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12618 s&@INSTALL@&$ac_INSTALL&;t t
12619 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12620 $ac_datarootdir_hack
12621 "
12622 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12623   || as_fn_error "could not create $ac_file" "$LINENO" 5
12624
12625 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12626   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12627   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12628   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12629 which seems to be undefined.  Please make sure it is defined." >&5
12630 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12631 which seems to be undefined.  Please make sure it is defined." >&2;}
12632
12633   rm -f "$tmp/stdin"
12634   case $ac_file in
12635   -) cat "$tmp/out" && rm -f "$tmp/out";;
12636   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12637   esac \
12638   || as_fn_error "could not create $ac_file" "$LINENO" 5
12639  ;;
12640
12641
12642   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12643 $as_echo "$as_me: executing $ac_file commands" >&6;}
12644  ;;
12645   esac
12646
12647
12648   case $ac_file$ac_mode in
12649     "default-1":C)
12650 # Only add multilib support code if we just rebuilt the top-level
12651 # Makefile.
12652 case " $CONFIG_FILES " in
12653  *" Makefile "*)
12654    ac_file=Makefile . ${multi_basedir}/config-ml.in
12655    ;;
12656 esac ;;
12657     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12658   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12659   # are listed without --file.  Let's play safe and only enable the eval
12660   # if we detect the quoting.
12661   case $CONFIG_FILES in
12662   *\'*) eval set x "$CONFIG_FILES" ;;
12663   *)   set x $CONFIG_FILES ;;
12664   esac
12665   shift
12666   for mf
12667   do
12668     # Strip MF so we end up with the name of the file.
12669     mf=`echo "$mf" | sed -e 's/:.*$//'`
12670     # Check whether this is an Automake generated Makefile or not.
12671     # We used to match only the files named `Makefile.in', but
12672     # some people rename them; so instead we look at the file content.
12673     # Grep'ing the first line is not enough: some people post-process
12674     # each Makefile.in and add a new line on top of each file to say so.
12675     # Grep'ing the whole file is not good either: AIX grep has a line
12676     # limit of 2048, but all sed's we know have understand at least 4000.
12677     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12678       dirpart=`$as_dirname -- "$mf" ||
12679 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12680          X"$mf" : 'X\(//\)[^/]' \| \
12681          X"$mf" : 'X\(//\)$' \| \
12682          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12683 $as_echo X"$mf" |
12684     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12685             s//\1/
12686             q
12687           }
12688           /^X\(\/\/\)[^/].*/{
12689             s//\1/
12690             q
12691           }
12692           /^X\(\/\/\)$/{
12693             s//\1/
12694             q
12695           }
12696           /^X\(\/\).*/{
12697             s//\1/
12698             q
12699           }
12700           s/.*/./; q'`
12701     else
12702       continue
12703     fi
12704     # Extract the definition of DEPDIR, am__include, and am__quote
12705     # from the Makefile without running `make'.
12706     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12707     test -z "$DEPDIR" && continue
12708     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12709     test -z "am__include" && continue
12710     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12711     # When using ansi2knr, U may be empty or an underscore; expand it
12712     U=`sed -n 's/^U = //p' < "$mf"`
12713     # Find all dependency output files, they are included files with
12714     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12715     # simplest approach to changing $(DEPDIR) to its actual value in the
12716     # expansion.
12717     for file in `sed -n "
12718       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12719          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12720       # Make sure the directory exists.
12721       test -f "$dirpart/$file" && continue
12722       fdir=`$as_dirname -- "$file" ||
12723 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12724          X"$file" : 'X\(//\)[^/]' \| \
12725          X"$file" : 'X\(//\)$' \| \
12726          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12727 $as_echo X"$file" |
12728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12729             s//\1/
12730             q
12731           }
12732           /^X\(\/\/\)[^/].*/{
12733             s//\1/
12734             q
12735           }
12736           /^X\(\/\/\)$/{
12737             s//\1/
12738             q
12739           }
12740           /^X\(\/\).*/{
12741             s//\1/
12742             q
12743           }
12744           s/.*/./; q'`
12745       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12746       # echo "creating $dirpart/$file"
12747       echo '# dummy' > "$dirpart/$file"
12748     done
12749   done
12750 }
12751  ;;
12752     "libtool":C)
12753
12754     # See if we are running on zsh, and set the options which allow our
12755     # commands through without removal of \ escapes.
12756     if test -n "${ZSH_VERSION+set}" ; then
12757       setopt NO_GLOB_SUBST
12758     fi
12759
12760     cfgfile="${ofile}T"
12761     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12762     $RM "$cfgfile"
12763
12764     cat <<_LT_EOF >> "$cfgfile"
12765 #! $SHELL
12766
12767 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12768 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12769 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12770 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12771 #
12772 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12773 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12774 #   Written by Gordon Matzigkeit, 1996
12775 #
12776 #   This file is part of GNU Libtool.
12777 #
12778 # GNU Libtool is free software; you can redistribute it and/or
12779 # modify it under the terms of the GNU General Public License as
12780 # published by the Free Software Foundation; either version 2 of
12781 # the License, or (at your option) any later version.
12782 #
12783 # As a special exception to the GNU General Public License,
12784 # if you distribute this file as part of a program or library that
12785 # is built using GNU Libtool, you may include this file under the
12786 # same distribution terms that you use for the rest of that program.
12787 #
12788 # GNU Libtool is distributed in the hope that it will be useful,
12789 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12790 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12791 # GNU General Public License for more details.
12792 #
12793 # You should have received a copy of the GNU General Public License
12794 # along with GNU Libtool; see the file COPYING.  If not, a copy
12795 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12796 # obtained by writing to the Free Software Foundation, Inc.,
12797 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12798
12799
12800 # The names of the tagged configurations supported by this script.
12801 available_tags=""
12802
12803 # ### BEGIN LIBTOOL CONFIG
12804
12805 # Which release of libtool.m4 was used?
12806 macro_version=$macro_version
12807 macro_revision=$macro_revision
12808
12809 # Whether or not to build shared libraries.
12810 build_libtool_libs=$enable_shared
12811
12812 # Whether or not to build static libraries.
12813 build_old_libs=$enable_static
12814
12815 # What type of objects to build.
12816 pic_mode=$pic_mode
12817
12818 # Whether or not to optimize for fast installation.
12819 fast_install=$enable_fast_install
12820
12821 # Shell to use when invoking shell scripts.
12822 SHELL=$lt_SHELL
12823
12824 # An echo program that protects backslashes.
12825 ECHO=$lt_ECHO
12826
12827 # The host system.
12828 host_alias=$host_alias
12829 host=$host
12830 host_os=$host_os
12831
12832 # The build system.
12833 build_alias=$build_alias
12834 build=$build
12835 build_os=$build_os
12836
12837 # A sed program that does not truncate output.
12838 SED=$lt_SED
12839
12840 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12841 Xsed="\$SED -e 1s/^X//"
12842
12843 # A grep program that handles long lines.
12844 GREP=$lt_GREP
12845
12846 # An ERE matcher.
12847 EGREP=$lt_EGREP
12848
12849 # A literal string matcher.
12850 FGREP=$lt_FGREP
12851
12852 # A BSD- or MS-compatible name lister.
12853 NM=$lt_NM
12854
12855 # Whether we need soft or hard links.
12856 LN_S=$lt_LN_S
12857
12858 # What is the maximum length of a command?
12859 max_cmd_len=$max_cmd_len
12860
12861 # Object file suffix (normally "o").
12862 objext=$ac_objext
12863
12864 # Executable file suffix (normally "").
12865 exeext=$exeext
12866
12867 # whether the shell understands "unset".
12868 lt_unset=$lt_unset
12869
12870 # turn spaces into newlines.
12871 SP2NL=$lt_lt_SP2NL
12872
12873 # turn newlines into spaces.
12874 NL2SP=$lt_lt_NL2SP
12875
12876 # An object symbol dumper.
12877 OBJDUMP=$lt_OBJDUMP
12878
12879 # Method to check whether dependent libraries are shared objects.
12880 deplibs_check_method=$lt_deplibs_check_method
12881
12882 # Command to use when deplibs_check_method == "file_magic".
12883 file_magic_cmd=$lt_file_magic_cmd
12884
12885 # The archiver.
12886 AR=$lt_AR
12887 AR_FLAGS=$lt_AR_FLAGS
12888
12889 # A symbol stripping program.
12890 STRIP=$lt_STRIP
12891
12892 # Commands used to install an old-style archive.
12893 RANLIB=$lt_RANLIB
12894 old_postinstall_cmds=$lt_old_postinstall_cmds
12895 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12896
12897 # Whether to use a lock for old archive extraction.
12898 lock_old_archive_extraction=$lock_old_archive_extraction
12899
12900 # A C compiler.
12901 LTCC=$lt_CC
12902
12903 # LTCC compiler flags.
12904 LTCFLAGS=$lt_CFLAGS
12905
12906 # Take the output of nm and produce a listing of raw symbols and C names.
12907 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12908
12909 # Transform the output of nm in a proper C declaration.
12910 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12911
12912 # Transform the output of nm in a C name address pair.
12913 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12914
12915 # Transform the output of nm in a C name address pair when lib prefix is needed.
12916 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12917
12918 # The name of the directory that contains temporary libtool files.
12919 objdir=$objdir
12920
12921 # Used to examine libraries when file_magic_cmd begins with "file".
12922 MAGIC_CMD=$MAGIC_CMD
12923
12924 # Must we lock files when doing compilation?
12925 need_locks=$lt_need_locks
12926
12927 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12928 DSYMUTIL=$lt_DSYMUTIL
12929
12930 # Tool to change global to local symbols on Mac OS X.
12931 NMEDIT=$lt_NMEDIT
12932
12933 # Tool to manipulate fat objects and archives on Mac OS X.
12934 LIPO=$lt_LIPO
12935
12936 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12937 OTOOL=$lt_OTOOL
12938
12939 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12940 OTOOL64=$lt_OTOOL64
12941
12942 # Old archive suffix (normally "a").
12943 libext=$libext
12944
12945 # Shared library suffix (normally ".so").
12946 shrext_cmds=$lt_shrext_cmds
12947
12948 # The commands to extract the exported symbol list from a shared archive.
12949 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12950
12951 # Variables whose values should be saved in libtool wrapper scripts and
12952 # restored at link time.
12953 variables_saved_for_relink=$lt_variables_saved_for_relink
12954
12955 # Do we need the "lib" prefix for modules?
12956 need_lib_prefix=$need_lib_prefix
12957
12958 # Do we need a version for libraries?
12959 need_version=$need_version
12960
12961 # Library versioning type.
12962 version_type=$version_type
12963
12964 # Shared library runtime path variable.
12965 runpath_var=$runpath_var
12966
12967 # Shared library path variable.
12968 shlibpath_var=$shlibpath_var
12969
12970 # Is shlibpath searched before the hard-coded library search path?
12971 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12972
12973 # Format of library name prefix.
12974 libname_spec=$lt_libname_spec
12975
12976 # List of archive names.  First name is the real one, the rest are links.
12977 # The last name is the one that the linker finds with -lNAME
12978 library_names_spec=$lt_library_names_spec
12979
12980 # The coded name of the library, if different from the real name.
12981 soname_spec=$lt_soname_spec
12982
12983 # Permission mode override for installation of shared libraries.
12984 install_override_mode=$lt_install_override_mode
12985
12986 # Command to use after installation of a shared archive.
12987 postinstall_cmds=$lt_postinstall_cmds
12988
12989 # Command to use after uninstallation of a shared archive.
12990 postuninstall_cmds=$lt_postuninstall_cmds
12991
12992 # Commands used to finish a libtool library installation in a directory.
12993 finish_cmds=$lt_finish_cmds
12994
12995 # As "finish_cmds", except a single script fragment to be evaled but
12996 # not shown.
12997 finish_eval=$lt_finish_eval
12998
12999 # Whether we should hardcode library paths into libraries.
13000 hardcode_into_libs=$hardcode_into_libs
13001
13002 # Compile-time system search path for libraries.
13003 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13004
13005 # Run-time system search path for libraries.
13006 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13007
13008 # Whether dlopen is supported.
13009 dlopen_support=$enable_dlopen
13010
13011 # Whether dlopen of programs is supported.
13012 dlopen_self=$enable_dlopen_self
13013
13014 # Whether dlopen of statically linked programs is supported.
13015 dlopen_self_static=$enable_dlopen_self_static
13016
13017 # Commands to strip libraries.
13018 old_striplib=$lt_old_striplib
13019 striplib=$lt_striplib
13020
13021
13022 # The linker used to build libraries.
13023 LD=$lt_LD
13024
13025 # How to create reloadable object files.
13026 reload_flag=$lt_reload_flag
13027 reload_cmds=$lt_reload_cmds
13028
13029 # Commands used to build an old-style archive.
13030 old_archive_cmds=$lt_old_archive_cmds
13031
13032 # A language specific compiler.
13033 CC=$lt_compiler
13034
13035 # Is the compiler the GNU compiler?
13036 with_gcc=$GCC
13037
13038 # Compiler flag to turn off builtin functions.
13039 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13040
13041 # How to pass a linker flag through the compiler.
13042 wl=$lt_lt_prog_compiler_wl
13043
13044 # Additional compiler flags for building library objects.
13045 pic_flag=$lt_lt_prog_compiler_pic
13046
13047 # Compiler flag to prevent dynamic linking.
13048 link_static_flag=$lt_lt_prog_compiler_static
13049
13050 # Does compiler simultaneously support -c and -o options?
13051 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13052
13053 # Whether or not to add -lc for building shared libraries.
13054 build_libtool_need_lc=$archive_cmds_need_lc
13055
13056 # Whether or not to disallow shared libs when runtime libs are static.
13057 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13058
13059 # Compiler flag to allow reflexive dlopens.
13060 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13061
13062 # Compiler flag to generate shared objects directly from archives.
13063 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13064
13065 # Whether the compiler copes with passing no objects directly.
13066 compiler_needs_object=$lt_compiler_needs_object
13067
13068 # Create an old-style archive from a shared archive.
13069 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13070
13071 # Create a temporary old-style archive to link instead of a shared archive.
13072 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13073
13074 # Commands used to build a shared archive.
13075 archive_cmds=$lt_archive_cmds
13076 archive_expsym_cmds=$lt_archive_expsym_cmds
13077
13078 # Commands used to build a loadable module if different from building
13079 # a shared archive.
13080 module_cmds=$lt_module_cmds
13081 module_expsym_cmds=$lt_module_expsym_cmds
13082
13083 # Whether we are building with GNU ld or not.
13084 with_gnu_ld=$lt_with_gnu_ld
13085
13086 # Flag that allows shared libraries with undefined symbols to be built.
13087 allow_undefined_flag=$lt_allow_undefined_flag
13088
13089 # Flag that enforces no undefined symbols.
13090 no_undefined_flag=$lt_no_undefined_flag
13091
13092 # Flag to hardcode \$libdir into a binary during linking.
13093 # This must work even if \$libdir does not exist
13094 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13095
13096 # If ld is used when linking, flag to hardcode \$libdir into a binary
13097 # during linking.  This must work even if \$libdir does not exist.
13098 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13099
13100 # Whether we need a single "-rpath" flag with a separated argument.
13101 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13102
13103 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13104 # DIR into the resulting binary.
13105 hardcode_direct=$hardcode_direct
13106
13107 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13108 # DIR into the resulting binary and the resulting library dependency is
13109 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13110 # library is relocated.
13111 hardcode_direct_absolute=$hardcode_direct_absolute
13112
13113 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13114 # into the resulting binary.
13115 hardcode_minus_L=$hardcode_minus_L
13116
13117 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13118 # into the resulting binary.
13119 hardcode_shlibpath_var=$hardcode_shlibpath_var
13120
13121 # Set to "yes" if building a shared library automatically hardcodes DIR
13122 # into the library and all subsequent libraries and executables linked
13123 # against it.
13124 hardcode_automatic=$hardcode_automatic
13125
13126 # Set to yes if linker adds runtime paths of dependent libraries
13127 # to runtime path list.
13128 inherit_rpath=$inherit_rpath
13129
13130 # Whether libtool must link a program against all its dependency libraries.
13131 link_all_deplibs=$link_all_deplibs
13132
13133 # Fix the shell variable \$srcfile for the compiler.
13134 fix_srcfile_path=$lt_fix_srcfile_path
13135
13136 # Set to "yes" if exported symbols are required.
13137 always_export_symbols=$always_export_symbols
13138
13139 # The commands to list exported symbols.
13140 export_symbols_cmds=$lt_export_symbols_cmds
13141
13142 # Symbols that should not be listed in the preloaded symbols.
13143 exclude_expsyms=$lt_exclude_expsyms
13144
13145 # Symbols that must always be exported.
13146 include_expsyms=$lt_include_expsyms
13147
13148 # Commands necessary for linking programs (against libraries) with templates.
13149 prelink_cmds=$lt_prelink_cmds
13150
13151 # Specify filename containing input files.
13152 file_list_spec=$lt_file_list_spec
13153
13154 # How to hardcode a shared library path into an executable.
13155 hardcode_action=$hardcode_action
13156
13157 # ### END LIBTOOL CONFIG
13158
13159 _LT_EOF
13160
13161   case $host_os in
13162   aix3*)
13163     cat <<\_LT_EOF >> "$cfgfile"
13164 # AIX sometimes has problems with the GCC collect2 program.  For some
13165 # reason, if we set the COLLECT_NAMES environment variable, the problems
13166 # vanish in a puff of smoke.
13167 if test "X${COLLECT_NAMES+set}" != Xset; then
13168   COLLECT_NAMES=
13169   export COLLECT_NAMES
13170 fi
13171 _LT_EOF
13172     ;;
13173   esac
13174
13175
13176 ltmain="$ac_aux_dir/ltmain.sh"
13177
13178
13179   # We use sed instead of cat because bash on DJGPP gets confused if
13180   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13181   # text mode, it properly converts lines to CR/LF.  This bash problem
13182   # is reportedly fixed, but why not run on old versions too?
13183   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13184     || (rm -f "$cfgfile"; exit 1)
13185
13186   case $xsi_shell in
13187   yes)
13188     cat << \_LT_EOF >> "$cfgfile"
13189
13190 # func_dirname file append nondir_replacement
13191 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13192 # otherwise set result to NONDIR_REPLACEMENT.
13193 func_dirname ()
13194 {
13195   case ${1} in
13196     */*) func_dirname_result="${1%/*}${2}" ;;
13197     *  ) func_dirname_result="${3}" ;;
13198   esac
13199 }
13200
13201 # func_basename file
13202 func_basename ()
13203 {
13204   func_basename_result="${1##*/}"
13205 }
13206
13207 # func_dirname_and_basename file append nondir_replacement
13208 # perform func_basename and func_dirname in a single function
13209 # call:
13210 #   dirname:  Compute the dirname of FILE.  If nonempty,
13211 #             add APPEND to the result, otherwise set result
13212 #             to NONDIR_REPLACEMENT.
13213 #             value returned in "$func_dirname_result"
13214 #   basename: Compute filename of FILE.
13215 #             value retuned in "$func_basename_result"
13216 # Implementation must be kept synchronized with func_dirname
13217 # and func_basename. For efficiency, we do not delegate to
13218 # those functions but instead duplicate the functionality here.
13219 func_dirname_and_basename ()
13220 {
13221   case ${1} in
13222     */*) func_dirname_result="${1%/*}${2}" ;;
13223     *  ) func_dirname_result="${3}" ;;
13224   esac
13225   func_basename_result="${1##*/}"
13226 }
13227
13228 # func_stripname prefix suffix name
13229 # strip PREFIX and SUFFIX off of NAME.
13230 # PREFIX and SUFFIX must not contain globbing or regex special
13231 # characters, hashes, percent signs, but SUFFIX may contain a leading
13232 # dot (in which case that matches only a dot).
13233 func_stripname ()
13234 {
13235   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13236   # positional parameters, so assign one to ordinary parameter first.
13237   func_stripname_result=${3}
13238   func_stripname_result=${func_stripname_result#"${1}"}
13239   func_stripname_result=${func_stripname_result%"${2}"}
13240 }
13241
13242 # func_opt_split
13243 func_opt_split ()
13244 {
13245   func_opt_split_opt=${1%%=*}
13246   func_opt_split_arg=${1#*=}
13247 }
13248
13249 # func_lo2o object
13250 func_lo2o ()
13251 {
13252   case ${1} in
13253     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13254     *)    func_lo2o_result=${1} ;;
13255   esac
13256 }
13257
13258 # func_xform libobj-or-source
13259 func_xform ()
13260 {
13261   func_xform_result=${1%.*}.lo
13262 }
13263
13264 # func_arith arithmetic-term...
13265 func_arith ()
13266 {
13267   func_arith_result=$(( $* ))
13268 }
13269
13270 # func_len string
13271 # STRING may not start with a hyphen.
13272 func_len ()
13273 {
13274   func_len_result=${#1}
13275 }
13276
13277 _LT_EOF
13278     ;;
13279   *) # Bourne compatible functions.
13280     cat << \_LT_EOF >> "$cfgfile"
13281
13282 # func_dirname file append nondir_replacement
13283 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13284 # otherwise set result to NONDIR_REPLACEMENT.
13285 func_dirname ()
13286 {
13287   # Extract subdirectory from the argument.
13288   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13289   if test "X$func_dirname_result" = "X${1}"; then
13290     func_dirname_result="${3}"
13291   else
13292     func_dirname_result="$func_dirname_result${2}"
13293   fi
13294 }
13295
13296 # func_basename file
13297 func_basename ()
13298 {
13299   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13300 }
13301
13302
13303 # func_stripname prefix suffix name
13304 # strip PREFIX and SUFFIX off of NAME.
13305 # PREFIX and SUFFIX must not contain globbing or regex special
13306 # characters, hashes, percent signs, but SUFFIX may contain a leading
13307 # dot (in which case that matches only a dot).
13308 # func_strip_suffix prefix name
13309 func_stripname ()
13310 {
13311   case ${2} in
13312     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13313     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13314   esac
13315 }
13316
13317 # sed scripts:
13318 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13319 my_sed_long_arg='1s/^-[^=]*=//'
13320
13321 # func_opt_split
13322 func_opt_split ()
13323 {
13324   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13325   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13326 }
13327
13328 # func_lo2o object
13329 func_lo2o ()
13330 {
13331   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13332 }
13333
13334 # func_xform libobj-or-source
13335 func_xform ()
13336 {
13337   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13338 }
13339
13340 # func_arith arithmetic-term...
13341 func_arith ()
13342 {
13343   func_arith_result=`expr "$@"`
13344 }
13345
13346 # func_len string
13347 # STRING may not start with a hyphen.
13348 func_len ()
13349 {
13350   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13351 }
13352
13353 _LT_EOF
13354 esac
13355
13356 case $lt_shell_append in
13357   yes)
13358     cat << \_LT_EOF >> "$cfgfile"
13359
13360 # func_append var value
13361 # Append VALUE to the end of shell variable VAR.
13362 func_append ()
13363 {
13364   eval "$1+=\$2"
13365 }
13366 _LT_EOF
13367     ;;
13368   *)
13369     cat << \_LT_EOF >> "$cfgfile"
13370
13371 # func_append var value
13372 # Append VALUE to the end of shell variable VAR.
13373 func_append ()
13374 {
13375   eval "$1=\$$1\$2"
13376 }
13377
13378 _LT_EOF
13379     ;;
13380   esac
13381
13382
13383   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13384     || (rm -f "$cfgfile"; exit 1)
13385
13386   mv -f "$cfgfile" "$ofile" ||
13387     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13388   chmod +x "$ofile"
13389
13390  ;;
13391
13392   esac
13393 done # for ac_tag
13394
13395
13396 as_fn_exit 0
13397 _ACEOF
13398 ac_clean_files=$ac_clean_files_save
13399
13400 test $ac_write_fail = 0 ||
13401   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13402
13403
13404 # configure is writing to config.log, and then calls config.status.
13405 # config.status does its own redirection, appending to config.log.
13406 # Unfortunately, on DOS this fails, as config.log is still kept open
13407 # by configure, so config.status won't be able to write to it; its
13408 # output is simply discarded.  So we exec the FD to /dev/null,
13409 # effectively closing config.log, so it can be properly (re)opened and
13410 # appended to by config.status.  When coming back to configure, we
13411 # need to make the FD available again.
13412 if test "$no_create" != yes; then
13413   ac_cs_success=:
13414   ac_config_status_args=
13415   test "$silent" = yes &&
13416     ac_config_status_args="$ac_config_status_args --quiet"
13417   exec 5>/dev/null
13418   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13419   exec 5>>config.log
13420   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13421   # would make configure fail if this is the last instruction.
13422   $ac_cs_success || as_fn_exit $?
13423 fi
13424 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13425   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13426 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13427 fi
13428