OSDN Git Service

2010-10-05 Robert Dewar <dewar@adacore.com>
[pf3gnuchains/gcc-fork.git] / libobjc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
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='package-unused'
558 PACKAGE_TARNAME='libobjc'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="objc/objc.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='LTLIBOBJS
602 LIBOBJS
603 SET_MAKE
604 CPP
605 OTOOL64
606 OTOOL
607 LIPO
608 NMEDIT
609 DSYMUTIL
610 AWK
611 STRIP
612 LN_S
613 NM
614 ac_ct_DUMPBIN
615 DUMPBIN
616 LD
617 FGREP
618 EGREP
619 GREP
620 SED
621 LIBTOOL
622 OBJDUMP
623 DLLTOOL
624 MAINT
625 MAINTAINER_MODE_FALSE
626 MAINTAINER_MODE_TRUE
627 INSTALL_DATA
628 INSTALL_SCRIPT
629 INSTALL_PROGRAM
630 RANLIB
631 AR
632 AS
633 extra_ldflags_libobjc
634 OBJEXT
635 EXEEXT
636 ac_ct_CC
637 CPPFLAGS
638 LDFLAGS
639 CFLAGS
640 CC
641 libsuffix
642 includedirname
643 toolexeclibdir
644 toolexecdir
645 glibcpp_srcdir
646 target_noncanonical
647 target_os
648 target_vendor
649 target_cpu
650 target
651 host_os
652 host_vendor
653 host_cpu
654 host
655 multi_basedir
656 OBJC_BOEHM_GC_INCLUDES
657 OBJC_BOEHM_GC
658 VERSION
659 target_subdir
660 host_subdir
661 build_subdir
662 build_libsubdir
663 build_os
664 build_vendor
665 build_cpu
666 build
667 target_alias
668 host_alias
669 build_alias
670 LIBS
671 ECHO_T
672 ECHO_N
673 ECHO_C
674 DEFS
675 mandir
676 localedir
677 libdir
678 psdir
679 pdfdir
680 dvidir
681 htmldir
682 infodir
683 docdir
684 oldincludedir
685 includedir
686 localstatedir
687 sharedstatedir
688 sysconfdir
689 datadir
690 datarootdir
691 libexecdir
692 sbindir
693 bindir
694 program_transform_name
695 prefix
696 exec_prefix
697 PACKAGE_URL
698 PACKAGE_BUGREPORT
699 PACKAGE_STRING
700 PACKAGE_VERSION
701 PACKAGE_TARNAME
702 PACKAGE_NAME
703 PATH_SEPARATOR
704 SHELL'
705 ac_subst_files=''
706 ac_user_opts='
707 enable_option_checking
708 with_build_libsubdir
709 with_target_subdir
710 with_cross_host
711 enable_version_specific_runtime_libs
712 enable_objc_gc
713 enable_multilib
714 enable_maintainer_mode
715 enable_shared
716 enable_static
717 with_pic
718 enable_fast_install
719 with_gnu_ld
720 enable_libtool_lock
721 enable_tls
722 enable_sjlj_exceptions
723 '
724       ac_precious_vars='build_alias
725 host_alias
726 target_alias
727 CPP
728 CPPFLAGS'
729
730
731 # Initialize some variables set by options.
732 ac_init_help=
733 ac_init_version=false
734 ac_unrecognized_opts=
735 ac_unrecognized_sep=
736 # The variables have the same names as the options, with
737 # dashes changed to underlines.
738 cache_file=/dev/null
739 exec_prefix=NONE
740 no_create=
741 no_recursion=
742 prefix=NONE
743 program_prefix=NONE
744 program_suffix=NONE
745 program_transform_name=s,x,x,
746 silent=
747 site=
748 srcdir=
749 verbose=
750 x_includes=NONE
751 x_libraries=NONE
752
753 # Installation directory options.
754 # These are left unexpanded so users can "make install exec_prefix=/foo"
755 # and all the variables that are supposed to be based on exec_prefix
756 # by default will actually change.
757 # Use braces instead of parens because sh, perl, etc. also accept them.
758 # (The list follows the same order as the GNU Coding Standards.)
759 bindir='${exec_prefix}/bin'
760 sbindir='${exec_prefix}/sbin'
761 libexecdir='${exec_prefix}/libexec'
762 datarootdir='${prefix}/share'
763 datadir='${datarootdir}'
764 sysconfdir='${prefix}/etc'
765 sharedstatedir='${prefix}/com'
766 localstatedir='${prefix}/var'
767 includedir='${prefix}/include'
768 oldincludedir='/usr/include'
769 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
770 infodir='${datarootdir}/info'
771 htmldir='${docdir}'
772 dvidir='${docdir}'
773 pdfdir='${docdir}'
774 psdir='${docdir}'
775 libdir='${exec_prefix}/lib'
776 localedir='${datarootdir}/locale'
777 mandir='${datarootdir}/man'
778
779 ac_prev=
780 ac_dashdash=
781 for ac_option
782 do
783   # If the previous option needs an argument, assign it.
784   if test -n "$ac_prev"; then
785     eval $ac_prev=\$ac_option
786     ac_prev=
787     continue
788   fi
789
790   case $ac_option in
791   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
792   *)    ac_optarg=yes ;;
793   esac
794
795   # Accept the important Cygnus configure options, so we can diagnose typos.
796
797   case $ac_dashdash$ac_option in
798   --)
799     ac_dashdash=yes ;;
800
801   -bindir | --bindir | --bindi | --bind | --bin | --bi)
802     ac_prev=bindir ;;
803   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804     bindir=$ac_optarg ;;
805
806   -build | --build | --buil | --bui | --bu)
807     ac_prev=build_alias ;;
808   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
809     build_alias=$ac_optarg ;;
810
811   -cache-file | --cache-file | --cache-fil | --cache-fi \
812   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
813     ac_prev=cache_file ;;
814   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
815   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
816     cache_file=$ac_optarg ;;
817
818   --config-cache | -C)
819     cache_file=config.cache ;;
820
821   -datadir | --datadir | --datadi | --datad)
822     ac_prev=datadir ;;
823   -datadir=* | --datadir=* | --datadi=* | --datad=*)
824     datadir=$ac_optarg ;;
825
826   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
827   | --dataroo | --dataro | --datar)
828     ac_prev=datarootdir ;;
829   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
830   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
831     datarootdir=$ac_optarg ;;
832
833   -disable-* | --disable-*)
834     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
835     # Reject names that are not valid shell variable names.
836     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
837       as_fn_error "invalid feature name: $ac_useropt"
838     ac_useropt_orig=$ac_useropt
839     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
840     case $ac_user_opts in
841       *"
842 "enable_$ac_useropt"
843 "*) ;;
844       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
845          ac_unrecognized_sep=', ';;
846     esac
847     eval enable_$ac_useropt=no ;;
848
849   -docdir | --docdir | --docdi | --doc | --do)
850     ac_prev=docdir ;;
851   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
852     docdir=$ac_optarg ;;
853
854   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
855     ac_prev=dvidir ;;
856   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
857     dvidir=$ac_optarg ;;
858
859   -enable-* | --enable-*)
860     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
861     # Reject names that are not valid shell variable names.
862     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863       as_fn_error "invalid feature name: $ac_useropt"
864     ac_useropt_orig=$ac_useropt
865     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866     case $ac_user_opts in
867       *"
868 "enable_$ac_useropt"
869 "*) ;;
870       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
871          ac_unrecognized_sep=', ';;
872     esac
873     eval enable_$ac_useropt=\$ac_optarg ;;
874
875   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877   | --exec | --exe | --ex)
878     ac_prev=exec_prefix ;;
879   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881   | --exec=* | --exe=* | --ex=*)
882     exec_prefix=$ac_optarg ;;
883
884   -gas | --gas | --ga | --g)
885     # Obsolete; use --with-gas.
886     with_gas=yes ;;
887
888   -help | --help | --hel | --he | -h)
889     ac_init_help=long ;;
890   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891     ac_init_help=recursive ;;
892   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893     ac_init_help=short ;;
894
895   -host | --host | --hos | --ho)
896     ac_prev=host_alias ;;
897   -host=* | --host=* | --hos=* | --ho=*)
898     host_alias=$ac_optarg ;;
899
900   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901     ac_prev=htmldir ;;
902   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903   | --ht=*)
904     htmldir=$ac_optarg ;;
905
906   -includedir | --includedir | --includedi | --included | --include \
907   | --includ | --inclu | --incl | --inc)
908     ac_prev=includedir ;;
909   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910   | --includ=* | --inclu=* | --incl=* | --inc=*)
911     includedir=$ac_optarg ;;
912
913   -infodir | --infodir | --infodi | --infod | --info | --inf)
914     ac_prev=infodir ;;
915   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916     infodir=$ac_optarg ;;
917
918   -libdir | --libdir | --libdi | --libd)
919     ac_prev=libdir ;;
920   -libdir=* | --libdir=* | --libdi=* | --libd=*)
921     libdir=$ac_optarg ;;
922
923   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924   | --libexe | --libex | --libe)
925     ac_prev=libexecdir ;;
926   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927   | --libexe=* | --libex=* | --libe=*)
928     libexecdir=$ac_optarg ;;
929
930   -localedir | --localedir | --localedi | --localed | --locale)
931     ac_prev=localedir ;;
932   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933     localedir=$ac_optarg ;;
934
935   -localstatedir | --localstatedir | --localstatedi | --localstated \
936   | --localstate | --localstat | --localsta | --localst | --locals)
937     ac_prev=localstatedir ;;
938   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
939   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
940     localstatedir=$ac_optarg ;;
941
942   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943     ac_prev=mandir ;;
944   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945     mandir=$ac_optarg ;;
946
947   -nfp | --nfp | --nf)
948     # Obsolete; use --without-fp.
949     with_fp=no ;;
950
951   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952   | --no-cr | --no-c | -n)
953     no_create=yes ;;
954
955   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957     no_recursion=yes ;;
958
959   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961   | --oldin | --oldi | --old | --ol | --o)
962     ac_prev=oldincludedir ;;
963   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966     oldincludedir=$ac_optarg ;;
967
968   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969     ac_prev=prefix ;;
970   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971     prefix=$ac_optarg ;;
972
973   -program-prefix | --program-prefix | --program-prefi | --program-pref \
974   | --program-pre | --program-pr | --program-p)
975     ac_prev=program_prefix ;;
976   -program-prefix=* | --program-prefix=* | --program-prefi=* \
977   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978     program_prefix=$ac_optarg ;;
979
980   -program-suffix | --program-suffix | --program-suffi | --program-suff \
981   | --program-suf | --program-su | --program-s)
982     ac_prev=program_suffix ;;
983   -program-suffix=* | --program-suffix=* | --program-suffi=* \
984   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985     program_suffix=$ac_optarg ;;
986
987   -program-transform-name | --program-transform-name \
988   | --program-transform-nam | --program-transform-na \
989   | --program-transform-n | --program-transform- \
990   | --program-transform | --program-transfor \
991   | --program-transfo | --program-transf \
992   | --program-trans | --program-tran \
993   | --progr-tra | --program-tr | --program-t)
994     ac_prev=program_transform_name ;;
995   -program-transform-name=* | --program-transform-name=* \
996   | --program-transform-nam=* | --program-transform-na=* \
997   | --program-transform-n=* | --program-transform-=* \
998   | --program-transform=* | --program-transfor=* \
999   | --program-transfo=* | --program-transf=* \
1000   | --program-trans=* | --program-tran=* \
1001   | --progr-tra=* | --program-tr=* | --program-t=*)
1002     program_transform_name=$ac_optarg ;;
1003
1004   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005     ac_prev=pdfdir ;;
1006   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007     pdfdir=$ac_optarg ;;
1008
1009   -psdir | --psdir | --psdi | --psd | --ps)
1010     ac_prev=psdir ;;
1011   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012     psdir=$ac_optarg ;;
1013
1014   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015   | -silent | --silent | --silen | --sile | --sil)
1016     silent=yes ;;
1017
1018   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019     ac_prev=sbindir ;;
1020   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021   | --sbi=* | --sb=*)
1022     sbindir=$ac_optarg ;;
1023
1024   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026   | --sharedst | --shareds | --shared | --share | --shar \
1027   | --sha | --sh)
1028     ac_prev=sharedstatedir ;;
1029   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032   | --sha=* | --sh=*)
1033     sharedstatedir=$ac_optarg ;;
1034
1035   -site | --site | --sit)
1036     ac_prev=site ;;
1037   -site=* | --site=* | --sit=*)
1038     site=$ac_optarg ;;
1039
1040   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041     ac_prev=srcdir ;;
1042   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043     srcdir=$ac_optarg ;;
1044
1045   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046   | --syscon | --sysco | --sysc | --sys | --sy)
1047     ac_prev=sysconfdir ;;
1048   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050     sysconfdir=$ac_optarg ;;
1051
1052   -target | --target | --targe | --targ | --tar | --ta | --t)
1053     ac_prev=target_alias ;;
1054   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055     target_alias=$ac_optarg ;;
1056
1057   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058     verbose=yes ;;
1059
1060   -version | --version | --versio | --versi | --vers | -V)
1061     ac_init_version=: ;;
1062
1063   -with-* | --with-*)
1064     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065     # Reject names that are not valid shell variable names.
1066     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067       as_fn_error "invalid package name: $ac_useropt"
1068     ac_useropt_orig=$ac_useropt
1069     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070     case $ac_user_opts in
1071       *"
1072 "with_$ac_useropt"
1073 "*) ;;
1074       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1075          ac_unrecognized_sep=', ';;
1076     esac
1077     eval with_$ac_useropt=\$ac_optarg ;;
1078
1079   -without-* | --without-*)
1080     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1081     # Reject names that are not valid shell variable names.
1082     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083       as_fn_error "invalid package name: $ac_useropt"
1084     ac_useropt_orig=$ac_useropt
1085     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086     case $ac_user_opts in
1087       *"
1088 "with_$ac_useropt"
1089 "*) ;;
1090       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1091          ac_unrecognized_sep=', ';;
1092     esac
1093     eval with_$ac_useropt=no ;;
1094
1095   --x)
1096     # Obsolete; use --with-x.
1097     with_x=yes ;;
1098
1099   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1100   | --x-incl | --x-inc | --x-in | --x-i)
1101     ac_prev=x_includes ;;
1102   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1103   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1104     x_includes=$ac_optarg ;;
1105
1106   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1107   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1108     ac_prev=x_libraries ;;
1109   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1110   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1111     x_libraries=$ac_optarg ;;
1112
1113   -*) as_fn_error "unrecognized option: \`$ac_option'
1114 Try \`$0 --help' for more information."
1115     ;;
1116
1117   *=*)
1118     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1119     # Reject names that are not valid shell variable names.
1120     case $ac_envvar in #(
1121       '' | [0-9]* | *[!_$as_cr_alnum]* )
1122       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1123     esac
1124     eval $ac_envvar=\$ac_optarg
1125     export $ac_envvar ;;
1126
1127   *)
1128     # FIXME: should be removed in autoconf 3.0.
1129     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1130     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1131       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1132     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1133     ;;
1134
1135   esac
1136 done
1137
1138 if test -n "$ac_prev"; then
1139   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1140   as_fn_error "missing argument to $ac_option"
1141 fi
1142
1143 if test -n "$ac_unrecognized_opts"; then
1144   case $enable_option_checking in
1145     no) ;;
1146     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1147     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1148   esac
1149 fi
1150
1151 # Check all directory arguments for consistency.
1152 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1153                 datadir sysconfdir sharedstatedir localstatedir includedir \
1154                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1155                 libdir localedir mandir
1156 do
1157   eval ac_val=\$$ac_var
1158   # Remove trailing slashes.
1159   case $ac_val in
1160     */ )
1161       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1162       eval $ac_var=\$ac_val;;
1163   esac
1164   # Be sure to have absolute directory names.
1165   case $ac_val in
1166     [\\/$]* | ?:[\\/]* )  continue;;
1167     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1168   esac
1169   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1170 done
1171
1172 # There might be people who depend on the old broken behavior: `$host'
1173 # used to hold the argument of --host etc.
1174 # FIXME: To remove some day.
1175 build=$build_alias
1176 host=$host_alias
1177 target=$target_alias
1178
1179 # FIXME: To remove some day.
1180 if test "x$host_alias" != x; then
1181   if test "x$build_alias" = x; then
1182     cross_compiling=maybe
1183     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1184     If a cross compiler is detected then cross compile mode will be used." >&2
1185   elif test "x$build_alias" != "x$host_alias"; then
1186     cross_compiling=yes
1187   fi
1188 fi
1189
1190 ac_tool_prefix=
1191 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1192
1193 test "$silent" = yes && exec 6>/dev/null
1194
1195
1196 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1197 ac_ls_di=`ls -di .` &&
1198 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1199   as_fn_error "working directory cannot be determined"
1200 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1201   as_fn_error "pwd does not report name of working directory"
1202
1203
1204 # Find the source files, if location was not specified.
1205 if test -z "$srcdir"; then
1206   ac_srcdir_defaulted=yes
1207   # Try the directory containing this script, then the parent directory.
1208   ac_confdir=`$as_dirname -- "$as_myself" ||
1209 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1210          X"$as_myself" : 'X\(//\)[^/]' \| \
1211          X"$as_myself" : 'X\(//\)$' \| \
1212          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1213 $as_echo X"$as_myself" |
1214     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1215             s//\1/
1216             q
1217           }
1218           /^X\(\/\/\)[^/].*/{
1219             s//\1/
1220             q
1221           }
1222           /^X\(\/\/\)$/{
1223             s//\1/
1224             q
1225           }
1226           /^X\(\/\).*/{
1227             s//\1/
1228             q
1229           }
1230           s/.*/./; q'`
1231   srcdir=$ac_confdir
1232   if test ! -r "$srcdir/$ac_unique_file"; then
1233     srcdir=..
1234   fi
1235 else
1236   ac_srcdir_defaulted=no
1237 fi
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1239   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1240   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1241 fi
1242 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1243 ac_abs_confdir=`(
1244         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1245         pwd)`
1246 # When building in place, set srcdir=.
1247 if test "$ac_abs_confdir" = "$ac_pwd"; then
1248   srcdir=.
1249 fi
1250 # Remove unnecessary trailing slashes from srcdir.
1251 # Double slashes in file names in object file debugging info
1252 # mess up M-x gdb in Emacs.
1253 case $srcdir in
1254 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1255 esac
1256 for ac_var in $ac_precious_vars; do
1257   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1258   eval ac_env_${ac_var}_value=\$${ac_var}
1259   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1260   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1261 done
1262
1263 #
1264 # Report the --help message.
1265 #
1266 if test "$ac_init_help" = "long"; then
1267   # Omit some internal or obsolete options to make the list less imposing.
1268   # This message is too long to be a string in the A/UX 3.1 sh.
1269   cat <<_ACEOF
1270 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1271
1272 Usage: $0 [OPTION]... [VAR=VALUE]...
1273
1274 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1275 VAR=VALUE.  See below for descriptions of some of the useful variables.
1276
1277 Defaults for the options are specified in brackets.
1278
1279 Configuration:
1280   -h, --help              display this help and exit
1281       --help=short        display options specific to this package
1282       --help=recursive    display the short help of all the included packages
1283   -V, --version           display version information and exit
1284   -q, --quiet, --silent   do not print \`checking...' messages
1285       --cache-file=FILE   cache test results in FILE [disabled]
1286   -C, --config-cache      alias for \`--cache-file=config.cache'
1287   -n, --no-create         do not create output files
1288       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1289
1290 Installation directories:
1291   --prefix=PREFIX         install architecture-independent files in PREFIX
1292                           [$ac_default_prefix]
1293   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1294                           [PREFIX]
1295
1296 By default, \`make install' will install all the files in
1297 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1298 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1299 for instance \`--prefix=\$HOME'.
1300
1301 For better control, use the options below.
1302
1303 Fine tuning of the installation directories:
1304   --bindir=DIR            user executables [EPREFIX/bin]
1305   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1306   --libexecdir=DIR        program executables [EPREFIX/libexec]
1307   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1308   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1309   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1310   --libdir=DIR            object code libraries [EPREFIX/lib]
1311   --includedir=DIR        C header files [PREFIX/include]
1312   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1313   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1314   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1315   --infodir=DIR           info documentation [DATAROOTDIR/info]
1316   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1317   --mandir=DIR            man documentation [DATAROOTDIR/man]
1318   --docdir=DIR            documentation root [DATAROOTDIR/doc/libobjc]
1319   --htmldir=DIR           html documentation [DOCDIR]
1320   --dvidir=DIR            dvi documentation [DOCDIR]
1321   --pdfdir=DIR            pdf documentation [DOCDIR]
1322   --psdir=DIR             ps documentation [DOCDIR]
1323 _ACEOF
1324
1325   cat <<\_ACEOF
1326
1327 System types:
1328   --build=BUILD     configure for building on BUILD [guessed]
1329   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1330   --target=TARGET   configure for building compilers for TARGET [HOST]
1331 _ACEOF
1332 fi
1333
1334 if test -n "$ac_init_help"; then
1335   case $ac_init_help in
1336      short | recursive ) echo "Configuration of package-unused version-unused:";;
1337    esac
1338   cat <<\_ACEOF
1339
1340 Optional Features:
1341   --disable-option-checking  ignore unrecognized --enable/--with options
1342   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1343   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1344   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
1345   --enable-objc-gc       enable the use of Boehm's garbage collector with
1346                           the GNU Objective-C runtime.
1347   --enable-multilib       build many library versions (default)
1348   --enable-maintainer-mode  enable make rules and dependencies not useful
1349                           (and sometimes confusing) to the casual installer
1350   --enable-shared[=PKGS]  build shared libraries [default=yes]
1351   --enable-static[=PKGS]  build static libraries [default=yes]
1352   --enable-fast-install[=PKGS]
1353                           optimize for fast installation [default=yes]
1354   --disable-libtool-lock  avoid locking (might break parallel builds)
1355   --enable-tls            Use thread-local storage [default=yes]
1356   --enable-sjlj-exceptions
1357                           force use of builtin_setjmp for exceptions
1358
1359 Optional Packages:
1360   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1361   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1362   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1363   --with-target-subdir=SUBDIR
1364                            configuring in a subdirectory
1365   --with-cross-host=HOST  configuring with a cross compiler
1366   --with-pic              try to use only PIC/non-PIC objects [default=use
1367                           both]
1368   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1369
1370 Some influential environment variables:
1371   CC          C compiler command
1372   CFLAGS      C compiler flags
1373   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1374               nonstandard directory <lib dir>
1375   LIBS        libraries to pass to the linker, e.g. -l<library>
1376   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1377               you have headers in a nonstandard directory <include dir>
1378   CPP         C preprocessor
1379
1380 Use these variables to override the choices made by `configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1382
1383 Report bugs to the package provider.
1384 _ACEOF
1385 ac_status=$?
1386 fi
1387
1388 if test "$ac_init_help" = "recursive"; then
1389   # If there are subdirs, report their specific --help.
1390   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1391     test -d "$ac_dir" ||
1392       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1393       continue
1394     ac_builddir=.
1395
1396 case "$ac_dir" in
1397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *)
1399   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1400   # A ".." for each directory in $ac_dir_suffix.
1401   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1402   case $ac_top_builddir_sub in
1403   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1405   esac ;;
1406 esac
1407 ac_abs_top_builddir=$ac_pwd
1408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1409 # for backward compatibility:
1410 ac_top_builddir=$ac_top_build_prefix
1411
1412 case $srcdir in
1413   .)  # We are building in place.
1414     ac_srcdir=.
1415     ac_top_srcdir=$ac_top_builddir_sub
1416     ac_abs_top_srcdir=$ac_pwd ;;
1417   [\\/]* | ?:[\\/]* )  # Absolute name.
1418     ac_srcdir=$srcdir$ac_dir_suffix;
1419     ac_top_srcdir=$srcdir
1420     ac_abs_top_srcdir=$srcdir ;;
1421   *) # Relative name.
1422     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1423     ac_top_srcdir=$ac_top_build_prefix$srcdir
1424     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1425 esac
1426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1427
1428     cd "$ac_dir" || { ac_status=$?; continue; }
1429     # Check for guested configure.
1430     if test -f "$ac_srcdir/configure.gnu"; then
1431       echo &&
1432       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1433     elif test -f "$ac_srcdir/configure"; then
1434       echo &&
1435       $SHELL "$ac_srcdir/configure" --help=recursive
1436     else
1437       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1438     fi || ac_status=$?
1439     cd "$ac_pwd" || { ac_status=$?; break; }
1440   done
1441 fi
1442
1443 test -n "$ac_init_help" && exit $ac_status
1444 if $ac_init_version; then
1445   cat <<\_ACEOF
1446 package-unused configure version-unused
1447 generated by GNU Autoconf 2.64
1448
1449 Copyright (C) 2009 Free Software Foundation, Inc.
1450 This configure script is free software; the Free Software Foundation
1451 gives unlimited permission to copy, distribute and modify it.
1452 _ACEOF
1453   exit
1454 fi
1455
1456 ## ------------------------ ##
1457 ## Autoconf initialization. ##
1458 ## ------------------------ ##
1459
1460 # ac_fn_c_try_compile LINENO
1461 # --------------------------
1462 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1463 ac_fn_c_try_compile ()
1464 {
1465   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1466   rm -f conftest.$ac_objext
1467   if { { ac_try="$ac_compile"
1468 case "(($ac_try" in
1469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1470   *) ac_try_echo=$ac_try;;
1471 esac
1472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1473 $as_echo "$ac_try_echo"; } >&5
1474   (eval "$ac_compile") 2>conftest.err
1475   ac_status=$?
1476   if test -s conftest.err; then
1477     grep -v '^ *+' conftest.err >conftest.er1
1478     cat conftest.er1 >&5
1479     mv -f conftest.er1 conftest.err
1480   fi
1481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1482   test $ac_status = 0; } && {
1483          test -z "$ac_c_werror_flag" ||
1484          test ! -s conftest.err
1485        } && test -s conftest.$ac_objext; then :
1486   ac_retval=0
1487 else
1488   $as_echo "$as_me: failed program was:" >&5
1489 sed 's/^/| /' conftest.$ac_ext >&5
1490
1491         ac_retval=1
1492 fi
1493   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1494   return $ac_retval
1495
1496 } # ac_fn_c_try_compile
1497
1498 # ac_fn_c_try_link LINENO
1499 # -----------------------
1500 # Try to link conftest.$ac_ext, and return whether this succeeded.
1501 ac_fn_c_try_link ()
1502 {
1503   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504   rm -f conftest.$ac_objext conftest$ac_exeext
1505   if { { ac_try="$ac_link"
1506 case "(($ac_try" in
1507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508   *) ac_try_echo=$ac_try;;
1509 esac
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512   (eval "$ac_link") 2>conftest.err
1513   ac_status=$?
1514   if test -s conftest.err; then
1515     grep -v '^ *+' conftest.err >conftest.er1
1516     cat conftest.er1 >&5
1517     mv -f conftest.er1 conftest.err
1518   fi
1519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520   test $ac_status = 0; } && {
1521          test -z "$ac_c_werror_flag" ||
1522          test ! -s conftest.err
1523        } && test -s conftest$ac_exeext && {
1524          test "$cross_compiling" = yes ||
1525          $as_test_x conftest$ac_exeext
1526        }; then :
1527   ac_retval=0
1528 else
1529   $as_echo "$as_me: failed program was:" >&5
1530 sed 's/^/| /' conftest.$ac_ext >&5
1531
1532         ac_retval=1
1533 fi
1534   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1535   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1536   # interfere with the next link command; also delete a directory that is
1537   # left behind by Apple's compiler.  We do this before executing the actions.
1538   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1539   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1540   return $ac_retval
1541
1542 } # ac_fn_c_try_link
1543
1544 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1545 # -------------------------------------------------------
1546 # Tests whether HEADER exists and can be compiled using the include files in
1547 # INCLUDES, setting the cache variable VAR accordingly.
1548 ac_fn_c_check_header_compile ()
1549 {
1550   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1552 $as_echo_n "checking for $2... " >&6; }
1553 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1554   $as_echo_n "(cached) " >&6
1555 else
1556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1557 /* end confdefs.h.  */
1558 $4
1559 #include <$2>
1560 _ACEOF
1561 if ac_fn_c_try_compile "$LINENO"; then :
1562   eval "$3=yes"
1563 else
1564   eval "$3=no"
1565 fi
1566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1567 fi
1568 eval ac_res=\$$3
1569                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1570 $as_echo "$ac_res" >&6; }
1571   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1572
1573 } # ac_fn_c_check_header_compile
1574
1575 # ac_fn_c_try_cpp LINENO
1576 # ----------------------
1577 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_cpp ()
1579 {
1580   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581   if { { ac_try="$ac_cpp conftest.$ac_ext"
1582 case "(($ac_try" in
1583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584   *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1589   ac_status=$?
1590   if test -s conftest.err; then
1591     grep -v '^ *+' conftest.err >conftest.er1
1592     cat conftest.er1 >&5
1593     mv -f conftest.er1 conftest.err
1594   fi
1595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596   test $ac_status = 0; } >/dev/null && {
1597          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1598          test ! -s conftest.err
1599        }; then :
1600   ac_retval=0
1601 else
1602   $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605     ac_retval=1
1606 fi
1607   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608   return $ac_retval
1609
1610 } # ac_fn_c_try_cpp
1611
1612 # ac_fn_c_try_run LINENO
1613 # ----------------------
1614 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1615 # that executables *can* be run.
1616 ac_fn_c_try_run ()
1617 {
1618   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619   if { { ac_try="$ac_link"
1620 case "(($ac_try" in
1621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622   *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626   (eval "$ac_link") 2>&5
1627   ac_status=$?
1628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1630   { { case "(($ac_try" in
1631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632   *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636   (eval "$ac_try") 2>&5
1637   ac_status=$?
1638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639   test $ac_status = 0; }; }; then :
1640   ac_retval=0
1641 else
1642   $as_echo "$as_me: program exited with status $ac_status" >&5
1643        $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646        ac_retval=$ac_status
1647 fi
1648   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650   return $ac_retval
1651
1652 } # ac_fn_c_try_run
1653
1654 # ac_fn_c_check_func LINENO FUNC VAR
1655 # ----------------------------------
1656 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1657 ac_fn_c_check_func ()
1658 {
1659   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663   $as_echo_n "(cached) " >&6
1664 else
1665   if test x$gcc_no_link = xyes; then
1666   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1667 fi
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h.  */
1670 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1672 #define $2 innocuous_$2
1673
1674 /* System header to define __stub macros and hopefully few prototypes,
1675     which can conflict with char $2 (); below.
1676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1677     <limits.h> exists even on freestanding compilers.  */
1678
1679 #ifdef __STDC__
1680 # include <limits.h>
1681 #else
1682 # include <assert.h>
1683 #endif
1684
1685 #undef $2
1686
1687 /* Override any GCC internal prototype to avoid an error.
1688    Use char because int might match the return type of a GCC
1689    builtin and then its argument prototype would still apply.  */
1690 #ifdef __cplusplus
1691 extern "C"
1692 #endif
1693 char $2 ();
1694 /* The GNU C library defines this for functions which it implements
1695     to always fail with ENOSYS.  Some functions are actually named
1696     something starting with __ and the normal name is an alias.  */
1697 #if defined __stub_$2 || defined __stub___$2
1698 choke me
1699 #endif
1700
1701 int
1702 main ()
1703 {
1704 return $2 ();
1705   ;
1706   return 0;
1707 }
1708 _ACEOF
1709 if ac_fn_c_try_link "$LINENO"; then :
1710   eval "$3=yes"
1711 else
1712   eval "$3=no"
1713 fi
1714 rm -f core conftest.err conftest.$ac_objext \
1715     conftest$ac_exeext conftest.$ac_ext
1716 fi
1717 eval ac_res=\$$3
1718                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721
1722 } # ac_fn_c_check_func
1723
1724 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1725 # -------------------------------------------------------
1726 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1727 # the include files in INCLUDES and setting the cache variable VAR
1728 # accordingly.
1729 ac_fn_c_check_header_mongrel ()
1730 {
1731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1736   $as_echo_n "(cached) " >&6
1737 fi
1738 eval ac_res=\$$3
1739                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741 else
1742   # Is the header compilable?
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1744 $as_echo_n "checking $2 usability... " >&6; }
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h.  */
1747 $4
1748 #include <$2>
1749 _ACEOF
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751   ac_header_compiler=yes
1752 else
1753   ac_header_compiler=no
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1757 $as_echo "$ac_header_compiler" >&6; }
1758
1759 # Is the header present?
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1761 $as_echo_n "checking $2 presence... " >&6; }
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h.  */
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_cpp "$LINENO"; then :
1767   ac_header_preproc=yes
1768 else
1769   ac_header_preproc=no
1770 fi
1771 rm -f conftest.err conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1773 $as_echo "$ac_header_preproc" >&6; }
1774
1775 # So?  What about this header?
1776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1777   yes:no: )
1778     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1779 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1780     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1781 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1782     ;;
1783   no:yes:* )
1784     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1785 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1786     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1787 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1788     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1789 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1790     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1791 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1792     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1794     ;;
1795 esac
1796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1799   $as_echo_n "(cached) " >&6
1800 else
1801   eval "$3=\$ac_header_compiler"
1802 fi
1803 eval ac_res=\$$3
1804                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 fi
1807   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808
1809 } # ac_fn_c_check_header_mongrel
1810 cat >config.log <<_ACEOF
1811 This file contains any messages produced by compilers while
1812 running configure, to aid debugging if configure makes a mistake.
1813
1814 It was created by package-unused $as_me version-unused, which was
1815 generated by GNU Autoconf 2.64.  Invocation command line was
1816
1817   $ $0 $@
1818
1819 _ACEOF
1820 exec 5>>config.log
1821 {
1822 cat <<_ASUNAME
1823 ## --------- ##
1824 ## Platform. ##
1825 ## --------- ##
1826
1827 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1828 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1829 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1830 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1831 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1832
1833 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1834 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1835
1836 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1837 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1838 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1839 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1840 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1841 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1842 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1843
1844 _ASUNAME
1845
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1848 do
1849   IFS=$as_save_IFS
1850   test -z "$as_dir" && as_dir=.
1851     $as_echo "PATH: $as_dir"
1852   done
1853 IFS=$as_save_IFS
1854
1855 } >&5
1856
1857 cat >&5 <<_ACEOF
1858
1859
1860 ## ----------- ##
1861 ## Core tests. ##
1862 ## ----------- ##
1863
1864 _ACEOF
1865
1866
1867 # Keep a trace of the command line.
1868 # Strip out --no-create and --no-recursion so they do not pile up.
1869 # Strip out --silent because we don't want to record it for future runs.
1870 # Also quote any args containing shell meta-characters.
1871 # Make two passes to allow for proper duplicate-argument suppression.
1872 ac_configure_args=
1873 ac_configure_args0=
1874 ac_configure_args1=
1875 ac_must_keep_next=false
1876 for ac_pass in 1 2
1877 do
1878   for ac_arg
1879   do
1880     case $ac_arg in
1881     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1882     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1883     | -silent | --silent | --silen | --sile | --sil)
1884       continue ;;
1885     *\'*)
1886       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1887     esac
1888     case $ac_pass in
1889     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1890     2)
1891       as_fn_append ac_configure_args1 " '$ac_arg'"
1892       if test $ac_must_keep_next = true; then
1893         ac_must_keep_next=false # Got value, back to normal.
1894       else
1895         case $ac_arg in
1896           *=* | --config-cache | -C | -disable-* | --disable-* \
1897           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1898           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1899           | -with-* | --with-* | -without-* | --without-* | --x)
1900             case "$ac_configure_args0 " in
1901               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1902             esac
1903             ;;
1904           -* ) ac_must_keep_next=true ;;
1905         esac
1906       fi
1907       as_fn_append ac_configure_args " '$ac_arg'"
1908       ;;
1909     esac
1910   done
1911 done
1912 { ac_configure_args0=; unset ac_configure_args0;}
1913 { ac_configure_args1=; unset ac_configure_args1;}
1914
1915 # When interrupted or exit'd, cleanup temporary files, and complete
1916 # config.log.  We remove comments because anyway the quotes in there
1917 # would cause problems or look ugly.
1918 # WARNING: Use '\'' to represent an apostrophe within the trap.
1919 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1920 trap 'exit_status=$?
1921   # Save into config.log some information that might help in debugging.
1922   {
1923     echo
1924
1925     cat <<\_ASBOX
1926 ## ---------------- ##
1927 ## Cache variables. ##
1928 ## ---------------- ##
1929 _ASBOX
1930     echo
1931     # The following way of writing the cache mishandles newlines in values,
1932 (
1933   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1934     eval ac_val=\$$ac_var
1935     case $ac_val in #(
1936     *${as_nl}*)
1937       case $ac_var in #(
1938       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1939 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1940       esac
1941       case $ac_var in #(
1942       _ | IFS | as_nl) ;; #(
1943       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1944       *) { eval $ac_var=; unset $ac_var;} ;;
1945       esac ;;
1946     esac
1947   done
1948   (set) 2>&1 |
1949     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1950     *${as_nl}ac_space=\ *)
1951       sed -n \
1952         "s/'\''/'\''\\\\'\'''\''/g;
1953           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1954       ;; #(
1955     *)
1956       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1957       ;;
1958     esac |
1959     sort
1960 )
1961     echo
1962
1963     cat <<\_ASBOX
1964 ## ----------------- ##
1965 ## Output variables. ##
1966 ## ----------------- ##
1967 _ASBOX
1968     echo
1969     for ac_var in $ac_subst_vars
1970     do
1971       eval ac_val=\$$ac_var
1972       case $ac_val in
1973       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1974       esac
1975       $as_echo "$ac_var='\''$ac_val'\''"
1976     done | sort
1977     echo
1978
1979     if test -n "$ac_subst_files"; then
1980       cat <<\_ASBOX
1981 ## ------------------- ##
1982 ## File substitutions. ##
1983 ## ------------------- ##
1984 _ASBOX
1985       echo
1986       for ac_var in $ac_subst_files
1987       do
1988         eval ac_val=\$$ac_var
1989         case $ac_val in
1990         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1991         esac
1992         $as_echo "$ac_var='\''$ac_val'\''"
1993       done | sort
1994       echo
1995     fi
1996
1997     if test -s confdefs.h; then
1998       cat <<\_ASBOX
1999 ## ----------- ##
2000 ## confdefs.h. ##
2001 ## ----------- ##
2002 _ASBOX
2003       echo
2004       cat confdefs.h
2005       echo
2006     fi
2007     test "$ac_signal" != 0 &&
2008       $as_echo "$as_me: caught signal $ac_signal"
2009     $as_echo "$as_me: exit $exit_status"
2010   } >&5
2011   rm -f core *.core core.conftest.* &&
2012     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2013     exit $exit_status
2014 ' 0
2015 for ac_signal in 1 2 13 15; do
2016   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2017 done
2018 ac_signal=0
2019
2020 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2021 rm -f -r conftest* confdefs.h
2022
2023 $as_echo "/* confdefs.h */" > confdefs.h
2024
2025 # Predefined preprocessor variables.
2026
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_NAME "$PACKAGE_NAME"
2029 _ACEOF
2030
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2033 _ACEOF
2034
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2037 _ACEOF
2038
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_STRING "$PACKAGE_STRING"
2041 _ACEOF
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2045 _ACEOF
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_URL "$PACKAGE_URL"
2049 _ACEOF
2050
2051
2052 # Let the site file select an alternate cache file if it wants to.
2053 # Prefer an explicitly selected file to automatically selected ones.
2054 ac_site_file1=NONE
2055 ac_site_file2=NONE
2056 if test -n "$CONFIG_SITE"; then
2057   ac_site_file1=$CONFIG_SITE
2058 elif test "x$prefix" != xNONE; then
2059   ac_site_file1=$prefix/share/config.site
2060   ac_site_file2=$prefix/etc/config.site
2061 else
2062   ac_site_file1=$ac_default_prefix/share/config.site
2063   ac_site_file2=$ac_default_prefix/etc/config.site
2064 fi
2065 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2066 do
2067   test "x$ac_site_file" = xNONE && continue
2068   if test -r "$ac_site_file"; then
2069     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2070 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2071     sed 's/^/| /' "$ac_site_file" >&5
2072     . "$ac_site_file"
2073   fi
2074 done
2075
2076 if test -r "$cache_file"; then
2077   # Some versions of bash will fail to source /dev/null (special
2078   # files actually), so we avoid doing that.
2079   if test -f "$cache_file"; then
2080     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2081 $as_echo "$as_me: loading cache $cache_file" >&6;}
2082     case $cache_file in
2083       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2084       *)                      . "./$cache_file";;
2085     esac
2086   fi
2087 else
2088   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2089 $as_echo "$as_me: creating cache $cache_file" >&6;}
2090   >$cache_file
2091 fi
2092
2093 # Check that the precious variables saved in the cache have kept the same
2094 # value.
2095 ac_cache_corrupted=false
2096 for ac_var in $ac_precious_vars; do
2097   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2098   eval ac_new_set=\$ac_env_${ac_var}_set
2099   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2100   eval ac_new_val=\$ac_env_${ac_var}_value
2101   case $ac_old_set,$ac_new_set in
2102     set,)
2103       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2104 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2105       ac_cache_corrupted=: ;;
2106     ,set)
2107       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2108 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2109       ac_cache_corrupted=: ;;
2110     ,);;
2111     *)
2112       if test "x$ac_old_val" != "x$ac_new_val"; then
2113         # differences in whitespace do not lead to failure.
2114         ac_old_val_w=`echo x $ac_old_val`
2115         ac_new_val_w=`echo x $ac_new_val`
2116         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2117           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2118 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2119           ac_cache_corrupted=:
2120         else
2121           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2122 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2123           eval $ac_var=\$ac_old_val
2124         fi
2125         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2126 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2127         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2128 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2129       fi;;
2130   esac
2131   # Pass precious variables to config.status.
2132   if test "$ac_new_set" = set; then
2133     case $ac_new_val in
2134     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2135     *) ac_arg=$ac_var=$ac_new_val ;;
2136     esac
2137     case " $ac_configure_args " in
2138       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2139       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2140     esac
2141   fi
2142 done
2143 if $ac_cache_corrupted; then
2144   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2146   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2147 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2148   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2149 fi
2150 ## -------------------- ##
2151 ## Main body of script. ##
2152 ## -------------------- ##
2153
2154 ac_ext=c
2155 ac_cpp='$CPP $CPPFLAGS'
2156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2159
2160
2161
2162
2163
2164
2165 ac_aux_dir=
2166 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2167   for ac_t in install-sh install.sh shtool; do
2168     if test -f "$ac_dir/$ac_t"; then
2169       ac_aux_dir=$ac_dir
2170       ac_install_sh="$ac_aux_dir/$ac_t -c"
2171       break 2
2172     fi
2173   done
2174 done
2175 if test -z "$ac_aux_dir"; then
2176   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2177 fi
2178
2179 # These three variables are undocumented and unsupported,
2180 # and are intended to be withdrawn in a future Autoconf release.
2181 # They can cause serious problems if a builder's source tree is in a directory
2182 # whose full name contains unusual characters.
2183 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2184 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2185 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2186
2187
2188 # Make sure we can run config.sub.
2189 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2190   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2191
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2193 $as_echo_n "checking build system type... " >&6; }
2194 if test "${ac_cv_build+set}" = set; then :
2195   $as_echo_n "(cached) " >&6
2196 else
2197   ac_build_alias=$build_alias
2198 test "x$ac_build_alias" = x &&
2199   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2200 test "x$ac_build_alias" = x &&
2201   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2202 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2203   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2204
2205 fi
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2207 $as_echo "$ac_cv_build" >&6; }
2208 case $ac_cv_build in
2209 *-*-*) ;;
2210 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2211 esac
2212 build=$ac_cv_build
2213 ac_save_IFS=$IFS; IFS='-'
2214 set x $ac_cv_build
2215 shift
2216 build_cpu=$1
2217 build_vendor=$2
2218 shift; shift
2219 # Remember, the first character of IFS is used to create $*,
2220 # except with old shells:
2221 build_os=$*
2222 IFS=$ac_save_IFS
2223 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2224
2225
2226  case ${build_alias} in
2227   "") build_noncanonical=${build} ;;
2228   *) build_noncanonical=${build_alias} ;;
2229 esac
2230
2231  case ${host_alias} in
2232   "") host_noncanonical=${build_noncanonical} ;;
2233   *) host_noncanonical=${host_alias} ;;
2234 esac
2235
2236  case ${target_alias} in
2237   "") target_noncanonical=${host_noncanonical} ;;
2238   *) target_noncanonical=${target_alias} ;;
2239 esac
2240
2241
2242 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2243 # have matching libraries, they should use host libraries: Makefile.tpl
2244 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2245 # However, they still use the build modules, because the corresponding
2246 # host modules (e.g. bison) are only built for the host when bootstrap
2247 # finishes. So:
2248 # - build_subdir is where we find build modules, and never changes.
2249 # - build_libsubdir is where we find build libraries, and can be overridden.
2250
2251 # Prefix 'build-' so this never conflicts with target_subdir.
2252 build_subdir="build-${build_noncanonical}"
2253
2254 # Check whether --with-build-libsubdir was given.
2255 if test "${with_build_libsubdir+set}" = set; then :
2256   withval=$with_build_libsubdir; build_libsubdir="$withval"
2257 else
2258   build_libsubdir="$build_subdir"
2259 fi
2260
2261 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2262 if ( test $srcdir = . && test -d gcc ) \
2263    || test -d $srcdir/../host-${host_noncanonical}; then
2264   host_subdir="host-${host_noncanonical}"
2265 else
2266   host_subdir=.
2267 fi
2268 # No prefix.
2269 target_subdir=${target_noncanonical}
2270
2271
2272 # We need the following definitions because AC_PROG_LIBTOOL relies on them
2273 PACKAGE=libobjc
2274 # Version is pulled out to make it a bit easier to change using sed.
2275 VERSION=2:0:0
2276
2277
2278 # This works around the fact that libtool configuration may change LD
2279 # for this particular configuration, but some shells, instead of
2280 # keeping the changes in LD private, export them just because LD is
2281 # exported.
2282 ORIGINAL_LD_FOR_MULTILIBS=$LD
2283
2284 # -------
2285 # Options
2286 # -------
2287
2288 # We use these options to decide which functions to include.
2289
2290 # Check whether --with-target-subdir was given.
2291 if test "${with_target_subdir+set}" = set; then :
2292   withval=$with_target_subdir;
2293 fi
2294
2295
2296 # Check whether --with-cross-host was given.
2297 if test "${with_cross_host+set}" = set; then :
2298   withval=$with_cross_host;
2299 fi
2300
2301
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2303 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2304 # Check whether --enable-version-specific-runtime-libs was given.
2305 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2306   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2307  yes) version_specific_libs=yes ;;
2308  no)  version_specific_libs=no ;;
2309  *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2310  esac
2311 else
2312   version_specific_libs=no
2313 fi
2314
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2316 $as_echo "$version_specific_libs" >&6; }
2317
2318 # Check whether --enable-objc-gc was given.
2319 if test "${enable_objc_gc+set}" = set; then :
2320   enableval=$enable_objc_gc; case $enable_objc_gc in
2321   no)
2322     OBJC_BOEHM_GC=''
2323     OBJC_BOEHM_GC_INCLUDES=''
2324     ;;
2325   *)
2326     OBJC_BOEHM_GC=libobjc_gc.la
2327     OBJC_BOEHM_GC_INCLUDES='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
2328     ;;
2329 esac
2330 else
2331   OBJC_BOEHM_GC=''; OBJC_BOEHM_GC_INCLUDES=''
2332 fi
2333
2334
2335
2336
2337 # -----------
2338 # Directories
2339 # -----------
2340
2341 # Find the rest of the source tree framework.
2342 # Default to --enable-multilib
2343 # Check whether --enable-multilib was given.
2344 if test "${enable_multilib+set}" = set; then :
2345   enableval=$enable_multilib; case "$enableval" in
2346   yes) multilib=yes ;;
2347   no)  multilib=no ;;
2348   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2349  esac
2350 else
2351   multilib=yes
2352 fi
2353
2354
2355 # We may get other options which we leave undocumented:
2356 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2357 # See config-ml.in if you want the gory details.
2358
2359 if test "$srcdir" = "."; then
2360   if test "$with_target_subdir" != "."; then
2361     multi_basedir="$srcdir/$with_multisrctop../.."
2362   else
2363     multi_basedir="$srcdir/$with_multisrctop.."
2364   fi
2365 else
2366   multi_basedir="$srcdir/.."
2367 fi
2368
2369
2370 # Even if the default multilib is not a cross compilation,
2371 # it may be that some of the other multilibs are.
2372 if test $cross_compiling = no && test $multilib = yes \
2373    && test "x${with_multisubdir}" != x ; then
2374    cross_compiling=maybe
2375 fi
2376
2377 ac_config_commands="$ac_config_commands default-1"
2378
2379
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2381 $as_echo_n "checking host system type... " >&6; }
2382 if test "${ac_cv_host+set}" = set; then :
2383   $as_echo_n "(cached) " >&6
2384 else
2385   if test "x$host_alias" = x; then
2386   ac_cv_host=$ac_cv_build
2387 else
2388   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2389     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2390 fi
2391
2392 fi
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2394 $as_echo "$ac_cv_host" >&6; }
2395 case $ac_cv_host in
2396 *-*-*) ;;
2397 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2398 esac
2399 host=$ac_cv_host
2400 ac_save_IFS=$IFS; IFS='-'
2401 set x $ac_cv_host
2402 shift
2403 host_cpu=$1
2404 host_vendor=$2
2405 shift; shift
2406 # Remember, the first character of IFS is used to create $*,
2407 # except with old shells:
2408 host_os=$*
2409 IFS=$ac_save_IFS
2410 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2411
2412
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2414 $as_echo_n "checking target system type... " >&6; }
2415 if test "${ac_cv_target+set}" = set; then :
2416   $as_echo_n "(cached) " >&6
2417 else
2418   if test "x$target_alias" = x; then
2419   ac_cv_target=$ac_cv_host
2420 else
2421   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2422     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2423 fi
2424
2425 fi
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2427 $as_echo "$ac_cv_target" >&6; }
2428 case $ac_cv_target in
2429 *-*-*) ;;
2430 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2431 esac
2432 target=$ac_cv_target
2433 ac_save_IFS=$IFS; IFS='-'
2434 set x $ac_cv_target
2435 shift
2436 target_cpu=$1
2437 target_vendor=$2
2438 shift; shift
2439 # Remember, the first character of IFS is used to create $*,
2440 # except with old shells:
2441 target_os=$*
2442 IFS=$ac_save_IFS
2443 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2444
2445
2446 # The aliases save the names the user supplied, while $host etc.
2447 # will get canonicalized.
2448 test -n "$target_alias" &&
2449   test "$program_prefix$program_suffix$program_transform_name" = \
2450     NONENONEs,x,x, &&
2451   program_prefix=${target_alias}-
2452
2453
2454
2455
2456 # Export source directory.
2457 # These need to be absolute paths, yet at the same time need to
2458 # canonicalize only relative paths, because then amd will not unmount
2459 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2460 case $srcdir in
2461   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
2462   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2463 esac
2464
2465
2466 # Calculate toolexeclibdir
2467 # Also toolexecdir, though it's only used in toolexeclibdir
2468 case ${version_specific_libs} in
2469   yes)
2470     # Need the gcc compiler version to know where to install libraries
2471     # and header files if --enable-version-specific-runtime-libs option
2472     # is selected.
2473     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2474     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2475     ;;
2476   no)
2477     if test -n "$with_cross_host" &&
2478        test x"$with_cross_host" != x"no"; then
2479       # Install a library built with a cross compiler in tooldir, not libdir.
2480       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2481       toolexeclibdir='$(toolexecdir)/lib'
2482     else
2483       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2484       toolexeclibdir='$(libdir)'
2485     fi
2486     multi_os_directory=`$CC -print-multi-os-directory`
2487     case $multi_os_directory in
2488       .) ;; # Avoid trailing /.
2489       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2490     esac
2491     ;;
2492 esac
2493
2494
2495
2496 # Figure out if we want to name the include directory and the
2497 #  library name changes differently.
2498 includedirname=include
2499 libsuffix=
2500 case "${host}" in
2501   *-darwin*)
2502     # Darwin is the only target so far that needs a different include directory.
2503     includedirname=include-gnu-runtime
2504     libsuffix=-gnu
2505     ;;
2506 esac
2507
2508
2509
2510 ac_config_headers="$ac_config_headers config.h"
2511
2512
2513 # --------
2514 # Programs
2515 # --------
2516
2517
2518
2519 # We must force CC to /not/ be a precious variable; otherwise
2520 # the wrong, non-multilib-adjusted value will be used in multilibs.
2521 # As a side effect, we have to subst CFLAGS ourselves.
2522
2523
2524 ac_ext=c
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529 if test -n "$ac_tool_prefix"; then
2530   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then :
2535   $as_echo_n "(cached) " >&6
2536 else
2537   if test -n "$CC"; then
2538   ac_cv_prog_CC="$CC" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543   IFS=$as_save_IFS
2544   test -z "$as_dir" && as_dir=.
2545     for ac_exec_ext in '' $ac_executable_extensions; do
2546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549     break 2
2550   fi
2551 done
2552   done
2553 IFS=$as_save_IFS
2554
2555 fi
2556 fi
2557 CC=$ac_cv_prog_CC
2558 if test -n "$CC"; then
2559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2560 $as_echo "$CC" >&6; }
2561 else
2562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563 $as_echo "no" >&6; }
2564 fi
2565
2566
2567 fi
2568 if test -z "$ac_cv_prog_CC"; then
2569   ac_ct_CC=$CC
2570   # Extract the first word of "gcc", so it can be a program name with args.
2571 set dummy gcc; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2575   $as_echo_n "(cached) " >&6
2576 else
2577   if test -n "$ac_ct_CC"; then
2578   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585     for ac_exec_ext in '' $ac_executable_extensions; do
2586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587     ac_cv_prog_ac_ct_CC="gcc"
2588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592   done
2593 IFS=$as_save_IFS
2594
2595 fi
2596 fi
2597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2598 if test -n "$ac_ct_CC"; then
2599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2600 $as_echo "$ac_ct_CC" >&6; }
2601 else
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2604 fi
2605
2606   if test "x$ac_ct_CC" = x; then
2607     CC=""
2608   else
2609     case $cross_compiling:$ac_tool_warned in
2610 yes:)
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2613 ac_tool_warned=yes ;;
2614 esac
2615     CC=$ac_ct_CC
2616   fi
2617 else
2618   CC="$ac_cv_prog_CC"
2619 fi
2620
2621 if test -z "$CC"; then
2622           if test -n "$ac_tool_prefix"; then
2623     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2624 set dummy ${ac_tool_prefix}cc; ac_word=$2
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if test "${ac_cv_prog_CC+set}" = set; then :
2628   $as_echo_n "(cached) " >&6
2629 else
2630   if test -n "$CC"; then
2631   ac_cv_prog_CC="$CC" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638     for ac_exec_ext in '' $ac_executable_extensions; do
2639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640     ac_cv_prog_CC="${ac_tool_prefix}cc"
2641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642     break 2
2643   fi
2644 done
2645   done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 CC=$ac_cv_prog_CC
2651 if test -n "$CC"; then
2652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2653 $as_echo "$CC" >&6; }
2654 else
2655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2657 fi
2658
2659
2660   fi
2661 fi
2662 if test -z "$CC"; then
2663   # Extract the first word of "cc", so it can be a program name with args.
2664 set dummy cc; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if test "${ac_cv_prog_CC+set}" = set; then :
2668   $as_echo_n "(cached) " >&6
2669 else
2670   if test -n "$CC"; then
2671   ac_cv_prog_CC="$CC" # Let the user override the test.
2672 else
2673   ac_prog_rejected=no
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2676 do
2677   IFS=$as_save_IFS
2678   test -z "$as_dir" && as_dir=.
2679     for ac_exec_ext in '' $ac_executable_extensions; do
2680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2681     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2682        ac_prog_rejected=yes
2683        continue
2684      fi
2685     ac_cv_prog_CC="cc"
2686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687     break 2
2688   fi
2689 done
2690   done
2691 IFS=$as_save_IFS
2692
2693 if test $ac_prog_rejected = yes; then
2694   # We found a bogon in the path, so make sure we never use it.
2695   set dummy $ac_cv_prog_CC
2696   shift
2697   if test $# != 0; then
2698     # We chose a different compiler from the bogus one.
2699     # However, it has the same basename, so the bogon will be chosen
2700     # first if we set CC to just the basename; use the full file name.
2701     shift
2702     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2703   fi
2704 fi
2705 fi
2706 fi
2707 CC=$ac_cv_prog_CC
2708 if test -n "$CC"; then
2709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2710 $as_echo "$CC" >&6; }
2711 else
2712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2714 fi
2715
2716
2717 fi
2718 if test -z "$CC"; then
2719   if test -n "$ac_tool_prefix"; then
2720   for ac_prog in cl.exe
2721   do
2722     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2723 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if test "${ac_cv_prog_CC+set}" = set; then :
2727   $as_echo_n "(cached) " >&6
2728 else
2729   if test -n "$CC"; then
2730   ac_cv_prog_CC="$CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737     for ac_exec_ext in '' $ac_executable_extensions; do
2738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741     break 2
2742   fi
2743 done
2744   done
2745 IFS=$as_save_IFS
2746
2747 fi
2748 fi
2749 CC=$ac_cv_prog_CC
2750 if test -n "$CC"; then
2751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2752 $as_echo "$CC" >&6; }
2753 else
2754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2756 fi
2757
2758
2759     test -n "$CC" && break
2760   done
2761 fi
2762 if test -z "$CC"; then
2763   ac_ct_CC=$CC
2764   for ac_prog in cl.exe
2765 do
2766   # Extract the first word of "$ac_prog", so it can be a program name with args.
2767 set dummy $ac_prog; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2771   $as_echo_n "(cached) " >&6
2772 else
2773   if test -n "$ac_ct_CC"; then
2774   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781     for ac_exec_ext in '' $ac_executable_extensions; do
2782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783     ac_cv_prog_ac_ct_CC="$ac_prog"
2784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785     break 2
2786   fi
2787 done
2788   done
2789 IFS=$as_save_IFS
2790
2791 fi
2792 fi
2793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2794 if test -n "$ac_ct_CC"; then
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2796 $as_echo "$ac_ct_CC" >&6; }
2797 else
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 fi
2801
2802
2803   test -n "$ac_ct_CC" && break
2804 done
2805
2806   if test "x$ac_ct_CC" = x; then
2807     CC=""
2808   else
2809     case $cross_compiling:$ac_tool_warned in
2810 yes:)
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2813 ac_tool_warned=yes ;;
2814 esac
2815     CC=$ac_ct_CC
2816   fi
2817 fi
2818
2819 fi
2820
2821
2822 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2824 as_fn_error "no acceptable C compiler found in \$PATH
2825 See \`config.log' for more details." "$LINENO" 5; }
2826
2827 # Provide some information about the compiler.
2828 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2829 set X $ac_compile
2830 ac_compiler=$2
2831 for ac_option in --version -v -V -qversion; do
2832   { { ac_try="$ac_compiler $ac_option >&5"
2833 case "(($ac_try" in
2834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835   *) ac_try_echo=$ac_try;;
2836 esac
2837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2838 $as_echo "$ac_try_echo"; } >&5
2839   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2840   ac_status=$?
2841   if test -s conftest.err; then
2842     sed '10a\
2843 ... rest of stderr output deleted ...
2844          10q' conftest.err >conftest.er1
2845     cat conftest.er1 >&5
2846     rm -f conftest.er1 conftest.err
2847   fi
2848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2849   test $ac_status = 0; }
2850 done
2851
2852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2853 /* end confdefs.h.  */
2854
2855 int
2856 main ()
2857 {
2858
2859   ;
2860   return 0;
2861 }
2862 _ACEOF
2863 # FIXME: Cleanup?
2864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
2865   (eval $ac_link) 2>&5
2866   ac_status=$?
2867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2868   test $ac_status = 0; }; then :
2869   gcc_no_link=no
2870 else
2871   gcc_no_link=yes
2872 fi
2873 if test x$gcc_no_link = xyes; then
2874   # Setting cross_compile will disable run tests; it will
2875   # also disable AC_CHECK_FILE but that's generally
2876   # correct if we can't link.
2877   cross_compiling=yes
2878   EXEEXT=
2879 else
2880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h.  */
2882
2883 int
2884 main ()
2885 {
2886
2887   ;
2888   return 0;
2889 }
2890 _ACEOF
2891 ac_clean_files_save=$ac_clean_files
2892 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2893 # Try to create an executable without -o first, disregard a.out.
2894 # It will help us diagnose broken compilers, and finding out an intuition
2895 # of exeext.
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2897 $as_echo_n "checking for C compiler default output file name... " >&6; }
2898 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2899
2900 # The possible output files:
2901 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2902
2903 ac_rmfiles=
2904 for ac_file in $ac_files
2905 do
2906   case $ac_file in
2907     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2908     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2909   esac
2910 done
2911 rm -f $ac_rmfiles
2912
2913 if { { ac_try="$ac_link_default"
2914 case "(($ac_try" in
2915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916   *) ac_try_echo=$ac_try;;
2917 esac
2918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2919 $as_echo "$ac_try_echo"; } >&5
2920   (eval "$ac_link_default") 2>&5
2921   ac_status=$?
2922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923   test $ac_status = 0; }; then :
2924   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2925 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2926 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2927 # so that the user can short-circuit this test for compilers unknown to
2928 # Autoconf.
2929 for ac_file in $ac_files ''
2930 do
2931   test -f "$ac_file" || continue
2932   case $ac_file in
2933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2934         ;;
2935     [ab].out )
2936         # We found the default executable, but exeext='' is most
2937         # certainly right.
2938         break;;
2939     *.* )
2940         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2941         then :; else
2942            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943         fi
2944         # We set ac_cv_exeext here because the later test for it is not
2945         # safe: cross compilers may not add the suffix if given an `-o'
2946         # argument, so we may need to know it at that point already.
2947         # Even if this section looks crufty: it has the advantage of
2948         # actually working.
2949         break;;
2950     * )
2951         break;;
2952   esac
2953 done
2954 test "$ac_cv_exeext" = no && ac_cv_exeext=
2955
2956 else
2957   ac_file=''
2958 fi
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2960 $as_echo "$ac_file" >&6; }
2961 if test -z "$ac_file"; then :
2962   $as_echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967 { as_fn_set_status 77
2968 as_fn_error "C compiler cannot create executables
2969 See \`config.log' for more details." "$LINENO" 5; }; }
2970 fi
2971 ac_exeext=$ac_cv_exeext
2972
2973 # Check that the compiler produces executables we can run.  If not, either
2974 # the compiler is broken, or we cross compile.
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2976 $as_echo_n "checking whether the C compiler works... " >&6; }
2977 # If not cross compiling, check that we can run a simple program.
2978 if test "$cross_compiling" != yes; then
2979   if { ac_try='./$ac_file'
2980   { { case "(($ac_try" in
2981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982   *) ac_try_echo=$ac_try;;
2983 esac
2984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985 $as_echo "$ac_try_echo"; } >&5
2986   (eval "$ac_try") 2>&5
2987   ac_status=$?
2988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989   test $ac_status = 0; }; }; then
2990     cross_compiling=no
2991   else
2992     if test "$cross_compiling" = maybe; then
2993         cross_compiling=yes
2994     else
2995         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997 as_fn_error "cannot run C compiled programs.
2998 If you meant to cross compile, use \`--host'.
2999 See \`config.log' for more details." "$LINENO" 5; }
3000     fi
3001   fi
3002 fi
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3004 $as_echo "yes" >&6; }
3005
3006 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3007 ac_clean_files=$ac_clean_files_save
3008 # Check that the compiler produces executables we can run.  If not, either
3009 # the compiler is broken, or we cross compile.
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3011 $as_echo_n "checking whether we are cross compiling... " >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3013 $as_echo "$cross_compiling" >&6; }
3014
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3016 $as_echo_n "checking for suffix of executables... " >&6; }
3017 if { { ac_try="$ac_link"
3018 case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024   (eval "$ac_link") 2>&5
3025   ac_status=$?
3026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027   test $ac_status = 0; }; then :
3028   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3029 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3030 # work properly (i.e., refer to `conftest.exe'), while it won't with
3031 # `rm'.
3032 for ac_file in conftest.exe conftest conftest.*; do
3033   test -f "$ac_file" || continue
3034   case $ac_file in
3035     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3036     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3037           break;;
3038     * ) break;;
3039   esac
3040 done
3041 else
3042   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error "cannot compute suffix of executables: cannot compile and link
3045 See \`config.log' for more details." "$LINENO" 5; }
3046 fi
3047 rm -f conftest$ac_cv_exeext
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3049 $as_echo "$ac_cv_exeext" >&6; }
3050
3051 rm -f conftest.$ac_ext
3052 EXEEXT=$ac_cv_exeext
3053 ac_exeext=$EXEEXT
3054 fi
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3056 $as_echo_n "checking for suffix of object files... " >&6; }
3057 if test "${ac_cv_objext+set}" = set; then :
3058   $as_echo_n "(cached) " >&6
3059 else
3060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h.  */
3062
3063 int
3064 main ()
3065 {
3066
3067   ;
3068   return 0;
3069 }
3070 _ACEOF
3071 rm -f conftest.o conftest.obj
3072 if { { ac_try="$ac_compile"
3073 case "(($ac_try" in
3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075   *) ac_try_echo=$ac_try;;
3076 esac
3077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3078 $as_echo "$ac_try_echo"; } >&5
3079   (eval "$ac_compile") 2>&5
3080   ac_status=$?
3081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082   test $ac_status = 0; }; then :
3083   for ac_file in conftest.o conftest.obj conftest.*; do
3084   test -f "$ac_file" || continue;
3085   case $ac_file in
3086     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3087     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3088        break;;
3089   esac
3090 done
3091 else
3092   $as_echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 as_fn_error "cannot compute suffix of object files: cannot compile
3098 See \`config.log' for more details." "$LINENO" 5; }
3099 fi
3100 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3101 fi
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3103 $as_echo "$ac_cv_objext" >&6; }
3104 OBJEXT=$ac_cv_objext
3105 ac_objext=$OBJEXT
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3107 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3108 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3109   $as_echo_n "(cached) " >&6
3110 else
3111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h.  */
3113
3114 int
3115 main ()
3116 {
3117 #ifndef __GNUC__
3118        choke me
3119 #endif
3120
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 if ac_fn_c_try_compile "$LINENO"; then :
3126   ac_compiler_gnu=yes
3127 else
3128   ac_compiler_gnu=no
3129 fi
3130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3131 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3132
3133 fi
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3135 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3136 if test $ac_compiler_gnu = yes; then
3137   GCC=yes
3138 else
3139   GCC=
3140 fi
3141 ac_test_CFLAGS=${CFLAGS+set}
3142 ac_save_CFLAGS=$CFLAGS
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3144 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3145 if test "${ac_cv_prog_cc_g+set}" = set; then :
3146   $as_echo_n "(cached) " >&6
3147 else
3148   ac_save_c_werror_flag=$ac_c_werror_flag
3149    ac_c_werror_flag=yes
3150    ac_cv_prog_cc_g=no
3151    CFLAGS="-g"
3152    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h.  */
3154
3155 int
3156 main ()
3157 {
3158
3159   ;
3160   return 0;
3161 }
3162 _ACEOF
3163 if ac_fn_c_try_compile "$LINENO"; then :
3164   ac_cv_prog_cc_g=yes
3165 else
3166   CFLAGS=""
3167       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h.  */
3169
3170 int
3171 main ()
3172 {
3173
3174   ;
3175   return 0;
3176 }
3177 _ACEOF
3178 if ac_fn_c_try_compile "$LINENO"; then :
3179
3180 else
3181   ac_c_werror_flag=$ac_save_c_werror_flag
3182          CFLAGS="-g"
3183          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h.  */
3185
3186 int
3187 main ()
3188 {
3189
3190   ;
3191   return 0;
3192 }
3193 _ACEOF
3194 if ac_fn_c_try_compile "$LINENO"; then :
3195   ac_cv_prog_cc_g=yes
3196 fi
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202    ac_c_werror_flag=$ac_save_c_werror_flag
3203 fi
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3205 $as_echo "$ac_cv_prog_cc_g" >&6; }
3206 if test "$ac_test_CFLAGS" = set; then
3207   CFLAGS=$ac_save_CFLAGS
3208 elif test $ac_cv_prog_cc_g = yes; then
3209   if test "$GCC" = yes; then
3210     CFLAGS="-g -O2"
3211   else
3212     CFLAGS="-g"
3213   fi
3214 else
3215   if test "$GCC" = yes; then
3216     CFLAGS="-O2"
3217   else
3218     CFLAGS=
3219   fi
3220 fi
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3222 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3223 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3224   $as_echo_n "(cached) " >&6
3225 else
3226   ac_cv_prog_cc_c89=no
3227 ac_save_CC=$CC
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h.  */
3230 #include <stdarg.h>
3231 #include <stdio.h>
3232 #include <sys/types.h>
3233 #include <sys/stat.h>
3234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3235 struct buf { int x; };
3236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3237 static char *e (p, i)
3238      char **p;
3239      int i;
3240 {
3241   return p[i];
3242 }
3243 static char *f (char * (*g) (char **, int), char **p, ...)
3244 {
3245   char *s;
3246   va_list v;
3247   va_start (v,p);
3248   s = g (p, va_arg (v,int));
3249   va_end (v);
3250   return s;
3251 }
3252
3253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3254    function prototypes and stuff, but not '\xHH' hex character constants.
3255    These don't provoke an error unfortunately, instead are silently treated
3256    as 'x'.  The following induces an error, until -std is added to get
3257    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3258    array size at least.  It's necessary to write '\x00'==0 to get something
3259    that's true only with -std.  */
3260 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3261
3262 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3263    inside strings and character constants.  */
3264 #define FOO(x) 'x'
3265 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3266
3267 int test (int i, double x);
3268 struct s1 {int (*f) (int a);};
3269 struct s2 {int (*f) (double a);};
3270 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3271 int argc;
3272 char **argv;
3273 int
3274 main ()
3275 {
3276 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3277   ;
3278   return 0;
3279 }
3280 _ACEOF
3281 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3282         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3283 do
3284   CC="$ac_save_CC $ac_arg"
3285   if ac_fn_c_try_compile "$LINENO"; then :
3286   ac_cv_prog_cc_c89=$ac_arg
3287 fi
3288 rm -f core conftest.err conftest.$ac_objext
3289   test "x$ac_cv_prog_cc_c89" != "xno" && break
3290 done
3291 rm -f conftest.$ac_ext
3292 CC=$ac_save_CC
3293
3294 fi
3295 # AC_CACHE_VAL
3296 case "x$ac_cv_prog_cc_c89" in
3297   x)
3298     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3299 $as_echo "none needed" >&6; } ;;
3300   xno)
3301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3302 $as_echo "unsupported" >&6; } ;;
3303   *)
3304     CC="$CC $ac_cv_prog_cc_c89"
3305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3306 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3307 esac
3308 if test "x$ac_cv_prog_cc_c89" != xno; then :
3309
3310 fi
3311
3312 ac_ext=c
3313 ac_cpp='$CPP $CPPFLAGS'
3314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317
3318
3319
3320 # extra LD Flags which are required for targets
3321 case "${host}" in
3322   *-darwin*)
3323     # Darwin needs -single_module when linking libobjc
3324     extra_ldflags_libobjc=-Wl,-single_module
3325     ;;
3326   *-cygwin*|*-mingw*)
3327     # Tell libtool to build DLLs on Windows
3328     extra_ldflags_libobjc='-no-undefined -bindir $(bindir)'
3329     ;;
3330 esac
3331
3332
3333
3334
3335 if test -n "$ac_tool_prefix"; then
3336   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3337 set dummy ${ac_tool_prefix}as; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if test "${ac_cv_prog_AS+set}" = set; then :
3341   $as_echo_n "(cached) " >&6
3342 else
3343   if test -n "$AS"; then
3344   ac_cv_prog_AS="$AS" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351     for ac_exec_ext in '' $ac_executable_extensions; do
3352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353     ac_cv_prog_AS="${ac_tool_prefix}as"
3354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358   done
3359 IFS=$as_save_IFS
3360
3361 fi
3362 fi
3363 AS=$ac_cv_prog_AS
3364 if test -n "$AS"; then
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3366 $as_echo "$AS" >&6; }
3367 else
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 fi
3371
3372
3373 fi
3374 if test -z "$ac_cv_prog_AS"; then
3375   ac_ct_AS=$AS
3376   # Extract the first word of "as", so it can be a program name with args.
3377 set dummy as; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3381   $as_echo_n "(cached) " >&6
3382 else
3383   if test -n "$ac_ct_AS"; then
3384   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391     for ac_exec_ext in '' $ac_executable_extensions; do
3392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393     ac_cv_prog_ac_ct_AS="as"
3394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398   done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3404 if test -n "$ac_ct_AS"; then
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3406 $as_echo "$ac_ct_AS" >&6; }
3407 else
3408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3410 fi
3411
3412   if test "x$ac_ct_AS" = x; then
3413     AS=""
3414   else
3415     case $cross_compiling:$ac_tool_warned in
3416 yes:)
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3419 ac_tool_warned=yes ;;
3420 esac
3421     AS=$ac_ct_AS
3422   fi
3423 else
3424   AS="$ac_cv_prog_AS"
3425 fi
3426
3427 if test -n "$ac_tool_prefix"; then
3428   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3429 set dummy ${ac_tool_prefix}ar; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if test "${ac_cv_prog_AR+set}" = set; then :
3433   $as_echo_n "(cached) " >&6
3434 else
3435   if test -n "$AR"; then
3436   ac_cv_prog_AR="$AR" # Let the user override the test.
3437 else
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3440 do
3441   IFS=$as_save_IFS
3442   test -z "$as_dir" && as_dir=.
3443     for ac_exec_ext in '' $ac_executable_extensions; do
3444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445     ac_cv_prog_AR="${ac_tool_prefix}ar"
3446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447     break 2
3448   fi
3449 done
3450   done
3451 IFS=$as_save_IFS
3452
3453 fi
3454 fi
3455 AR=$ac_cv_prog_AR
3456 if test -n "$AR"; then
3457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3458 $as_echo "$AR" >&6; }
3459 else
3460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3462 fi
3463
3464
3465 fi
3466 if test -z "$ac_cv_prog_AR"; then
3467   ac_ct_AR=$AR
3468   # Extract the first word of "ar", so it can be a program name with args.
3469 set dummy ar; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3473   $as_echo_n "(cached) " >&6
3474 else
3475   if test -n "$ac_ct_AR"; then
3476   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481   IFS=$as_save_IFS
3482   test -z "$as_dir" && as_dir=.
3483     for ac_exec_ext in '' $ac_executable_extensions; do
3484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485     ac_cv_prog_ac_ct_AR="ar"
3486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487     break 2
3488   fi
3489 done
3490   done
3491 IFS=$as_save_IFS
3492
3493 fi
3494 fi
3495 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3496 if test -n "$ac_ct_AR"; then
3497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3498 $as_echo "$ac_ct_AR" >&6; }
3499 else
3500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3502 fi
3503
3504   if test "x$ac_ct_AR" = x; then
3505     AR=""
3506   else
3507     case $cross_compiling:$ac_tool_warned in
3508 yes:)
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3511 ac_tool_warned=yes ;;
3512 esac
3513     AR=$ac_ct_AR
3514   fi
3515 else
3516   AR="$ac_cv_prog_AR"
3517 fi
3518
3519 if test -n "$ac_tool_prefix"; then
3520   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3521 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3525   $as_echo_n "(cached) " >&6
3526 else
3527   if test -n "$RANLIB"; then
3528   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3529 else
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3532 do
3533   IFS=$as_save_IFS
3534   test -z "$as_dir" && as_dir=.
3535     for ac_exec_ext in '' $ac_executable_extensions; do
3536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3537     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539     break 2
3540   fi
3541 done
3542   done
3543 IFS=$as_save_IFS
3544
3545 fi
3546 fi
3547 RANLIB=$ac_cv_prog_RANLIB
3548 if test -n "$RANLIB"; then
3549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3550 $as_echo "$RANLIB" >&6; }
3551 else
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3554 fi
3555
3556
3557 fi
3558 if test -z "$ac_cv_prog_RANLIB"; then
3559   ac_ct_RANLIB=$RANLIB
3560   # Extract the first word of "ranlib", so it can be a program name with args.
3561 set dummy ranlib; ac_word=$2
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563 $as_echo_n "checking for $ac_word... " >&6; }
3564 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3565   $as_echo_n "(cached) " >&6
3566 else
3567   if test -n "$ac_ct_RANLIB"; then
3568   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3569 else
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 for as_dir in $PATH
3572 do
3573   IFS=$as_save_IFS
3574   test -z "$as_dir" && as_dir=.
3575     for ac_exec_ext in '' $ac_executable_extensions; do
3576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3577     ac_cv_prog_ac_ct_RANLIB="ranlib"
3578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579     break 2
3580   fi
3581 done
3582   done
3583 IFS=$as_save_IFS
3584
3585 fi
3586 fi
3587 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3588 if test -n "$ac_ct_RANLIB"; then
3589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3590 $as_echo "$ac_ct_RANLIB" >&6; }
3591 else
3592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594 fi
3595
3596   if test "x$ac_ct_RANLIB" = x; then
3597     RANLIB=":"
3598   else
3599     case $cross_compiling:$ac_tool_warned in
3600 yes:)
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603 ac_tool_warned=yes ;;
3604 esac
3605     RANLIB=$ac_ct_RANLIB
3606   fi
3607 else
3608   RANLIB="$ac_cv_prog_RANLIB"
3609 fi
3610
3611 # Find a good install program.  We prefer a C program (faster),
3612 # so one script is as good as another.  But avoid the broken or
3613 # incompatible versions:
3614 # SysV /etc/install, /usr/sbin/install
3615 # SunOS /usr/etc/install
3616 # IRIX /sbin/install
3617 # AIX /bin/install
3618 # AmigaOS /C/install, which installs bootblocks on floppy discs
3619 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3620 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3621 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3622 # OS/2's system install, which has a completely different semantic
3623 # ./install, which can be erroneously created by make from ./install.sh.
3624 # Reject install programs that cannot install multiple files.
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3626 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3627 if test -z "$INSTALL"; then
3628 if test "${ac_cv_path_install+set}" = set; then :
3629   $as_echo_n "(cached) " >&6
3630 else
3631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3633 do
3634   IFS=$as_save_IFS
3635   test -z "$as_dir" && as_dir=.
3636     # Account for people who put trailing slashes in PATH elements.
3637 case $as_dir/ in #((
3638   ./ | .// | /[cC]/* | \
3639   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3640   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3641   /usr/ucb/* ) ;;
3642   *)
3643     # OSF1 and SCO ODT 3.0 have their own names for install.
3644     # Don't use installbsd from OSF since it installs stuff as root
3645     # by default.
3646     for ac_prog in ginstall scoinst install; do
3647       for ac_exec_ext in '' $ac_executable_extensions; do
3648         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3649           if test $ac_prog = install &&
3650             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3651             # AIX install.  It has an incompatible calling convention.
3652             :
3653           elif test $ac_prog = install &&
3654             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3655             # program-specific install script used by HP pwplus--don't use.
3656             :
3657           else
3658             rm -rf conftest.one conftest.two conftest.dir
3659             echo one > conftest.one
3660             echo two > conftest.two
3661             mkdir conftest.dir
3662             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3663               test -s conftest.one && test -s conftest.two &&
3664               test -s conftest.dir/conftest.one &&
3665               test -s conftest.dir/conftest.two
3666             then
3667               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3668               break 3
3669             fi
3670           fi
3671         fi
3672       done
3673     done
3674     ;;
3675 esac
3676
3677   done
3678 IFS=$as_save_IFS
3679
3680 rm -rf conftest.one conftest.two conftest.dir
3681
3682 fi
3683   if test "${ac_cv_path_install+set}" = set; then
3684     INSTALL=$ac_cv_path_install
3685   else
3686     # As a last resort, use the slow shell script.  Don't cache a
3687     # value for INSTALL within a source directory, because that will
3688     # break other packages using the cache if that directory is
3689     # removed, or if the value is a relative name.
3690     INSTALL=$ac_install_sh
3691   fi
3692 fi
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3694 $as_echo "$INSTALL" >&6; }
3695
3696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3697 # It thinks the first close brace ends the variable substitution.
3698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3699
3700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3701
3702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3703
3704
3705
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3707 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3708     # Check whether --enable-maintainer-mode was given.
3709 if test "${enable_maintainer_mode+set}" = set; then :
3710   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3711 else
3712   USE_MAINTAINER_MODE=no
3713 fi
3714
3715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3716 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3717    if test $USE_MAINTAINER_MODE = yes; then
3718   MAINTAINER_MODE_TRUE=
3719   MAINTAINER_MODE_FALSE='#'
3720 else
3721   MAINTAINER_MODE_TRUE='#'
3722   MAINTAINER_MODE_FALSE=
3723 fi
3724
3725   MAINT=$MAINTAINER_MODE_TRUE
3726
3727
3728
3729 # Enable Win32 DLL on MS Windows - FIXME
3730 enable_win32_dll=yes
3731
3732 case $host in
3733 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3734   if test -n "$ac_tool_prefix"; then
3735   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3736 set dummy ${ac_tool_prefix}as; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if test "${ac_cv_prog_AS+set}" = set; then :
3740   $as_echo_n "(cached) " >&6
3741 else
3742   if test -n "$AS"; then
3743   ac_cv_prog_AS="$AS" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748   IFS=$as_save_IFS
3749   test -z "$as_dir" && as_dir=.
3750     for ac_exec_ext in '' $ac_executable_extensions; do
3751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3752     ac_cv_prog_AS="${ac_tool_prefix}as"
3753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754     break 2
3755   fi
3756 done
3757   done
3758 IFS=$as_save_IFS
3759
3760 fi
3761 fi
3762 AS=$ac_cv_prog_AS
3763 if test -n "$AS"; then
3764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3765 $as_echo "$AS" >&6; }
3766 else
3767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3769 fi
3770
3771
3772 fi
3773 if test -z "$ac_cv_prog_AS"; then
3774   ac_ct_AS=$AS
3775   # Extract the first word of "as", so it can be a program name with args.
3776 set dummy as; ac_word=$2
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3778 $as_echo_n "checking for $ac_word... " >&6; }
3779 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3780   $as_echo_n "(cached) " >&6
3781 else
3782   if test -n "$ac_ct_AS"; then
3783   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3784 else
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH
3787 do
3788   IFS=$as_save_IFS
3789   test -z "$as_dir" && as_dir=.
3790     for ac_exec_ext in '' $ac_executable_extensions; do
3791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3792     ac_cv_prog_ac_ct_AS="as"
3793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3794     break 2
3795   fi
3796 done
3797   done
3798 IFS=$as_save_IFS
3799
3800 fi
3801 fi
3802 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3803 if test -n "$ac_ct_AS"; then
3804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3805 $as_echo "$ac_ct_AS" >&6; }
3806 else
3807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3808 $as_echo "no" >&6; }
3809 fi
3810
3811   if test "x$ac_ct_AS" = x; then
3812     AS="false"
3813   else
3814     case $cross_compiling:$ac_tool_warned in
3815 yes:)
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3818 ac_tool_warned=yes ;;
3819 esac
3820     AS=$ac_ct_AS
3821   fi
3822 else
3823   AS="$ac_cv_prog_AS"
3824 fi
3825
3826   if test -n "$ac_tool_prefix"; then
3827   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3828 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
3832   $as_echo_n "(cached) " >&6
3833 else
3834   if test -n "$DLLTOOL"; then
3835   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3839 do
3840   IFS=$as_save_IFS
3841   test -z "$as_dir" && as_dir=.
3842     for ac_exec_ext in '' $ac_executable_extensions; do
3843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3844     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3846     break 2
3847   fi
3848 done
3849   done
3850 IFS=$as_save_IFS
3851
3852 fi
3853 fi
3854 DLLTOOL=$ac_cv_prog_DLLTOOL
3855 if test -n "$DLLTOOL"; then
3856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3857 $as_echo "$DLLTOOL" >&6; }
3858 else
3859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3861 fi
3862
3863
3864 fi
3865 if test -z "$ac_cv_prog_DLLTOOL"; then
3866   ac_ct_DLLTOOL=$DLLTOOL
3867   # Extract the first word of "dlltool", so it can be a program name with args.
3868 set dummy dlltool; ac_word=$2
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 $as_echo_n "checking for $ac_word... " >&6; }
3871 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
3872   $as_echo_n "(cached) " >&6
3873 else
3874   if test -n "$ac_ct_DLLTOOL"; then
3875   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3876 else
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH
3879 do
3880   IFS=$as_save_IFS
3881   test -z "$as_dir" && as_dir=.
3882     for ac_exec_ext in '' $ac_executable_extensions; do
3883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3884     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886     break 2
3887   fi
3888 done
3889   done
3890 IFS=$as_save_IFS
3891
3892 fi
3893 fi
3894 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3895 if test -n "$ac_ct_DLLTOOL"; then
3896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3897 $as_echo "$ac_ct_DLLTOOL" >&6; }
3898 else
3899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3901 fi
3902
3903   if test "x$ac_ct_DLLTOOL" = x; then
3904     DLLTOOL="false"
3905   else
3906     case $cross_compiling:$ac_tool_warned in
3907 yes:)
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3910 ac_tool_warned=yes ;;
3911 esac
3912     DLLTOOL=$ac_ct_DLLTOOL
3913   fi
3914 else
3915   DLLTOOL="$ac_cv_prog_DLLTOOL"
3916 fi
3917
3918   if test -n "$ac_tool_prefix"; then
3919   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3920 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
3924   $as_echo_n "(cached) " >&6
3925 else
3926   if test -n "$OBJDUMP"; then
3927   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932   IFS=$as_save_IFS
3933   test -z "$as_dir" && as_dir=.
3934     for ac_exec_ext in '' $ac_executable_extensions; do
3935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938     break 2
3939   fi
3940 done
3941   done
3942 IFS=$as_save_IFS
3943
3944 fi
3945 fi
3946 OBJDUMP=$ac_cv_prog_OBJDUMP
3947 if test -n "$OBJDUMP"; then
3948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3949 $as_echo "$OBJDUMP" >&6; }
3950 else
3951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3953 fi
3954
3955
3956 fi
3957 if test -z "$ac_cv_prog_OBJDUMP"; then
3958   ac_ct_OBJDUMP=$OBJDUMP
3959   # Extract the first word of "objdump", so it can be a program name with args.
3960 set dummy objdump; ac_word=$2
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962 $as_echo_n "checking for $ac_word... " >&6; }
3963 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
3964   $as_echo_n "(cached) " >&6
3965 else
3966   if test -n "$ac_ct_OBJDUMP"; then
3967   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3968 else
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3971 do
3972   IFS=$as_save_IFS
3973   test -z "$as_dir" && as_dir=.
3974     for ac_exec_ext in '' $ac_executable_extensions; do
3975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3976     ac_cv_prog_ac_ct_OBJDUMP="objdump"
3977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3978     break 2
3979   fi
3980 done
3981   done
3982 IFS=$as_save_IFS
3983
3984 fi
3985 fi
3986 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3987 if test -n "$ac_ct_OBJDUMP"; then
3988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
3989 $as_echo "$ac_ct_OBJDUMP" >&6; }
3990 else
3991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992 $as_echo "no" >&6; }
3993 fi
3994
3995   if test "x$ac_ct_OBJDUMP" = x; then
3996     OBJDUMP="false"
3997   else
3998     case $cross_compiling:$ac_tool_warned in
3999 yes:)
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4002 ac_tool_warned=yes ;;
4003 esac
4004     OBJDUMP=$ac_ct_OBJDUMP
4005   fi
4006 else
4007   OBJDUMP="$ac_cv_prog_OBJDUMP"
4008 fi
4009
4010   ;;
4011 esac
4012
4013 test -z "$AS" && AS=as
4014
4015
4016
4017
4018
4019 test -z "$DLLTOOL" && DLLTOOL=dlltool
4020
4021
4022
4023
4024
4025 test -z "$OBJDUMP" && OBJDUMP=objdump
4026
4027
4028
4029
4030
4031
4032
4033
4034 case `pwd` in
4035   *\ * | *\     *)
4036     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4037 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4038 esac
4039
4040
4041
4042 macro_version='2.2.7a'
4043 macro_revision='1.3134'
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057 ltmain="$ac_aux_dir/ltmain.sh"
4058
4059 # Backslashify metacharacters that are still active within
4060 # double-quoted strings.
4061 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4062
4063 # Same as above, but do not quote variable references.
4064 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4065
4066 # Sed substitution to delay expansion of an escaped shell variable in a
4067 # double_quote_subst'ed string.
4068 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4069
4070 # Sed substitution to delay expansion of an escaped single quote.
4071 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4072
4073 # Sed substitution to avoid accidental globbing in evaled expressions
4074 no_glob_subst='s/\*/\\\*/g'
4075
4076 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4077 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4078 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4079
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4081 $as_echo_n "checking how to print strings... " >&6; }
4082 # Test print first, because it will be a builtin if present.
4083 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4084    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4085   ECHO='print -r --'
4086 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4087   ECHO='printf %s\n'
4088 else
4089   # Use this function as a fallback that always works.
4090   func_fallback_echo ()
4091   {
4092     eval 'cat <<_LTECHO_EOF
4093 $1
4094 _LTECHO_EOF'
4095   }
4096   ECHO='func_fallback_echo'
4097 fi
4098
4099 # func_echo_all arg...
4100 # Invoke $ECHO with all args, space-separated.
4101 func_echo_all ()
4102 {
4103     $ECHO ""
4104 }
4105
4106 case "$ECHO" in
4107   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4108 $as_echo "printf" >&6; } ;;
4109   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4110 $as_echo "print -r" >&6; } ;;
4111   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4112 $as_echo "cat" >&6; } ;;
4113 esac
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4129 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4130 if test "${ac_cv_path_SED+set}" = set; then :
4131   $as_echo_n "(cached) " >&6
4132 else
4133             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4134      for ac_i in 1 2 3 4 5 6 7; do
4135        ac_script="$ac_script$as_nl$ac_script"
4136      done
4137      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4138      { ac_script=; unset ac_script;}
4139      if test -z "$SED"; then
4140   ac_path_SED_found=false
4141   # Loop through the user's path and test for each of PROGNAME-LIST
4142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4144 do
4145   IFS=$as_save_IFS
4146   test -z "$as_dir" && as_dir=.
4147     for ac_prog in sed gsed; do
4148     for ac_exec_ext in '' $ac_executable_extensions; do
4149       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4150       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4151 # Check for GNU ac_path_SED and select it if it is found.
4152   # Check for GNU $ac_path_SED
4153 case `"$ac_path_SED" --version 2>&1` in
4154 *GNU*)
4155   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4156 *)
4157   ac_count=0
4158   $as_echo_n 0123456789 >"conftest.in"
4159   while :
4160   do
4161     cat "conftest.in" "conftest.in" >"conftest.tmp"
4162     mv "conftest.tmp" "conftest.in"
4163     cp "conftest.in" "conftest.nl"
4164     $as_echo '' >> "conftest.nl"
4165     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4166     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4167     as_fn_arith $ac_count + 1 && ac_count=$as_val
4168     if test $ac_count -gt ${ac_path_SED_max-0}; then
4169       # Best one so far, save it but keep looking for a better one
4170       ac_cv_path_SED="$ac_path_SED"
4171       ac_path_SED_max=$ac_count
4172     fi
4173     # 10*(2^10) chars as input seems more than enough
4174     test $ac_count -gt 10 && break
4175   done
4176   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4177 esac
4178
4179       $ac_path_SED_found && break 3
4180     done
4181   done
4182   done
4183 IFS=$as_save_IFS
4184   if test -z "$ac_cv_path_SED"; then
4185     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4186   fi
4187 else
4188   ac_cv_path_SED=$SED
4189 fi
4190
4191 fi
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4193 $as_echo "$ac_cv_path_SED" >&6; }
4194  SED="$ac_cv_path_SED"
4195   rm -f conftest.sed
4196
4197 test -z "$SED" && SED=sed
4198 Xsed="$SED -e 1s/^X//"
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4211 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4212 if test "${ac_cv_path_GREP+set}" = set; then :
4213   $as_echo_n "(cached) " >&6
4214 else
4215   if test -z "$GREP"; then
4216   ac_path_GREP_found=false
4217   # Loop through the user's path and test for each of PROGNAME-LIST
4218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4220 do
4221   IFS=$as_save_IFS
4222   test -z "$as_dir" && as_dir=.
4223     for ac_prog in grep ggrep; do
4224     for ac_exec_ext in '' $ac_executable_extensions; do
4225       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4226       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4227 # Check for GNU ac_path_GREP and select it if it is found.
4228   # Check for GNU $ac_path_GREP
4229 case `"$ac_path_GREP" --version 2>&1` in
4230 *GNU*)
4231   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4232 *)
4233   ac_count=0
4234   $as_echo_n 0123456789 >"conftest.in"
4235   while :
4236   do
4237     cat "conftest.in" "conftest.in" >"conftest.tmp"
4238     mv "conftest.tmp" "conftest.in"
4239     cp "conftest.in" "conftest.nl"
4240     $as_echo 'GREP' >> "conftest.nl"
4241     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4242     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4243     as_fn_arith $ac_count + 1 && ac_count=$as_val
4244     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4245       # Best one so far, save it but keep looking for a better one
4246       ac_cv_path_GREP="$ac_path_GREP"
4247       ac_path_GREP_max=$ac_count
4248     fi
4249     # 10*(2^10) chars as input seems more than enough
4250     test $ac_count -gt 10 && break
4251   done
4252   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4253 esac
4254
4255       $ac_path_GREP_found && break 3
4256     done
4257   done
4258   done
4259 IFS=$as_save_IFS
4260   if test -z "$ac_cv_path_GREP"; then
4261     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4262   fi
4263 else
4264   ac_cv_path_GREP=$GREP
4265 fi
4266
4267 fi
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4269 $as_echo "$ac_cv_path_GREP" >&6; }
4270  GREP="$ac_cv_path_GREP"
4271
4272
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4274 $as_echo_n "checking for egrep... " >&6; }
4275 if test "${ac_cv_path_EGREP+set}" = set; then :
4276   $as_echo_n "(cached) " >&6
4277 else
4278   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4279    then ac_cv_path_EGREP="$GREP -E"
4280    else
4281      if test -z "$EGREP"; then
4282   ac_path_EGREP_found=false
4283   # Loop through the user's path and test for each of PROGNAME-LIST
4284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4286 do
4287   IFS=$as_save_IFS
4288   test -z "$as_dir" && as_dir=.
4289     for ac_prog in egrep; do
4290     for ac_exec_ext in '' $ac_executable_extensions; do
4291       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4292       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4293 # Check for GNU ac_path_EGREP and select it if it is found.
4294   # Check for GNU $ac_path_EGREP
4295 case `"$ac_path_EGREP" --version 2>&1` in
4296 *GNU*)
4297   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4298 *)
4299   ac_count=0
4300   $as_echo_n 0123456789 >"conftest.in"
4301   while :
4302   do
4303     cat "conftest.in" "conftest.in" >"conftest.tmp"
4304     mv "conftest.tmp" "conftest.in"
4305     cp "conftest.in" "conftest.nl"
4306     $as_echo 'EGREP' >> "conftest.nl"
4307     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309     as_fn_arith $ac_count + 1 && ac_count=$as_val
4310     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4311       # Best one so far, save it but keep looking for a better one
4312       ac_cv_path_EGREP="$ac_path_EGREP"
4313       ac_path_EGREP_max=$ac_count
4314     fi
4315     # 10*(2^10) chars as input seems more than enough
4316     test $ac_count -gt 10 && break
4317   done
4318   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4319 esac
4320
4321       $ac_path_EGREP_found && break 3
4322     done
4323   done
4324   done
4325 IFS=$as_save_IFS
4326   if test -z "$ac_cv_path_EGREP"; then
4327     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4328   fi
4329 else
4330   ac_cv_path_EGREP=$EGREP
4331 fi
4332
4333    fi
4334 fi
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4336 $as_echo "$ac_cv_path_EGREP" >&6; }
4337  EGREP="$ac_cv_path_EGREP"
4338
4339
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4341 $as_echo_n "checking for fgrep... " >&6; }
4342 if test "${ac_cv_path_FGREP+set}" = set; then :
4343   $as_echo_n "(cached) " >&6
4344 else
4345   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4346    then ac_cv_path_FGREP="$GREP -F"
4347    else
4348      if test -z "$FGREP"; then
4349   ac_path_FGREP_found=false
4350   # Loop through the user's path and test for each of PROGNAME-LIST
4351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4353 do
4354   IFS=$as_save_IFS
4355   test -z "$as_dir" && as_dir=.
4356     for ac_prog in fgrep; do
4357     for ac_exec_ext in '' $ac_executable_extensions; do
4358       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4359       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4360 # Check for GNU ac_path_FGREP and select it if it is found.
4361   # Check for GNU $ac_path_FGREP
4362 case `"$ac_path_FGREP" --version 2>&1` in
4363 *GNU*)
4364   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4365 *)
4366   ac_count=0
4367   $as_echo_n 0123456789 >"conftest.in"
4368   while :
4369   do
4370     cat "conftest.in" "conftest.in" >"conftest.tmp"
4371     mv "conftest.tmp" "conftest.in"
4372     cp "conftest.in" "conftest.nl"
4373     $as_echo 'FGREP' >> "conftest.nl"
4374     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4375     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4376     as_fn_arith $ac_count + 1 && ac_count=$as_val
4377     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4378       # Best one so far, save it but keep looking for a better one
4379       ac_cv_path_FGREP="$ac_path_FGREP"
4380       ac_path_FGREP_max=$ac_count
4381     fi
4382     # 10*(2^10) chars as input seems more than enough
4383     test $ac_count -gt 10 && break
4384   done
4385   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4386 esac
4387
4388       $ac_path_FGREP_found && break 3
4389     done
4390   done
4391   done
4392 IFS=$as_save_IFS
4393   if test -z "$ac_cv_path_FGREP"; then
4394     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4395   fi
4396 else
4397   ac_cv_path_FGREP=$FGREP
4398 fi
4399
4400    fi
4401 fi
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4403 $as_echo "$ac_cv_path_FGREP" >&6; }
4404  FGREP="$ac_cv_path_FGREP"
4405
4406
4407 test -z "$GREP" && GREP=grep
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427 # Check whether --with-gnu-ld was given.
4428 if test "${with_gnu_ld+set}" = set; then :
4429   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4430 else
4431   with_gnu_ld=no
4432 fi
4433
4434 ac_prog=ld
4435 if test "$GCC" = yes; then
4436   # Check if gcc -print-prog-name=ld gives a path.
4437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4438 $as_echo_n "checking for ld used by $CC... " >&6; }
4439   case $host in
4440   *-*-mingw*)
4441     # gcc leaves a trailing carriage return which upsets mingw
4442     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4443   *)
4444     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4445   esac
4446   case $ac_prog in
4447     # Accept absolute paths.
4448     [\\/]* | ?:[\\/]*)
4449       re_direlt='/[^/][^/]*/\.\./'
4450       # Canonicalize the pathname of ld
4451       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4452       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4453         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4454       done
4455       test -z "$LD" && LD="$ac_prog"
4456       ;;
4457   "")
4458     # If it fails, then pretend we aren't using GCC.
4459     ac_prog=ld
4460     ;;
4461   *)
4462     # If it is relative, then search for the first ld in PATH.
4463     with_gnu_ld=unknown
4464     ;;
4465   esac
4466 elif test "$with_gnu_ld" = yes; then
4467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4468 $as_echo_n "checking for GNU ld... " >&6; }
4469 else
4470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4471 $as_echo_n "checking for non-GNU ld... " >&6; }
4472 fi
4473 if test "${lt_cv_path_LD+set}" = set; then :
4474   $as_echo_n "(cached) " >&6
4475 else
4476   if test -z "$LD"; then
4477   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4478   for ac_dir in $PATH; do
4479     IFS="$lt_save_ifs"
4480     test -z "$ac_dir" && ac_dir=.
4481     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4482       lt_cv_path_LD="$ac_dir/$ac_prog"
4483       # Check to see if the program is GNU ld.  I'd rather use --version,
4484       # but apparently some variants of GNU ld only accept -v.
4485       # Break only if it was the GNU/non-GNU ld that we prefer.
4486       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4487       *GNU* | *'with BFD'*)
4488         test "$with_gnu_ld" != no && break
4489         ;;
4490       *)
4491         test "$with_gnu_ld" != yes && break
4492         ;;
4493       esac
4494     fi
4495   done
4496   IFS="$lt_save_ifs"
4497 else
4498   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4499 fi
4500 fi
4501
4502 LD="$lt_cv_path_LD"
4503 if test -n "$LD"; then
4504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4505 $as_echo "$LD" >&6; }
4506 else
4507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 $as_echo "no" >&6; }
4509 fi
4510 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4512 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4513 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4514   $as_echo_n "(cached) " >&6
4515 else
4516   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4517 case `$LD -v 2>&1 </dev/null` in
4518 *GNU* | *'with BFD'*)
4519   lt_cv_prog_gnu_ld=yes
4520   ;;
4521 *)
4522   lt_cv_prog_gnu_ld=no
4523   ;;
4524 esac
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4527 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4528 with_gnu_ld=$lt_cv_prog_gnu_ld
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4539 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4540 if test "${lt_cv_path_NM+set}" = set; then :
4541   $as_echo_n "(cached) " >&6
4542 else
4543   if test -n "$NM"; then
4544   # Let the user override the test.
4545   lt_cv_path_NM="$NM"
4546 else
4547   lt_nm_to_check="${ac_tool_prefix}nm"
4548   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4549     lt_nm_to_check="$lt_nm_to_check nm"
4550   fi
4551   for lt_tmp_nm in $lt_nm_to_check; do
4552     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4553     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4554       IFS="$lt_save_ifs"
4555       test -z "$ac_dir" && ac_dir=.
4556       tmp_nm="$ac_dir/$lt_tmp_nm"
4557       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4558         # Check to see if the nm accepts a BSD-compat flag.
4559         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4560         #   nm: unknown option "B" ignored
4561         # Tru64's nm complains that /dev/null is an invalid object file
4562         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4563         */dev/null* | *'Invalid file or object type'*)
4564           lt_cv_path_NM="$tmp_nm -B"
4565           break
4566           ;;
4567         *)
4568           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4569           */dev/null*)
4570             lt_cv_path_NM="$tmp_nm -p"
4571             break
4572             ;;
4573           *)
4574             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4575             continue # so that we can try to find one that supports BSD flags
4576             ;;
4577           esac
4578           ;;
4579         esac
4580       fi
4581     done
4582     IFS="$lt_save_ifs"
4583   done
4584   : ${lt_cv_path_NM=no}
4585 fi
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4588 $as_echo "$lt_cv_path_NM" >&6; }
4589 if test "$lt_cv_path_NM" != "no"; then
4590   NM="$lt_cv_path_NM"
4591 else
4592   # Didn't find any BSD compatible name lister, look for dumpbin.
4593   if test -n "$DUMPBIN"; then :
4594     # Let the user override the test.
4595   else
4596     if test -n "$ac_tool_prefix"; then
4597   for ac_prog in dumpbin "link -dump"
4598   do
4599     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4604   $as_echo_n "(cached) " >&6
4605 else
4606   if test -n "$DUMPBIN"; then
4607   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4608 else
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4611 do
4612   IFS=$as_save_IFS
4613   test -z "$as_dir" && as_dir=.
4614     for ac_exec_ext in '' $ac_executable_extensions; do
4615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618     break 2
4619   fi
4620 done
4621   done
4622 IFS=$as_save_IFS
4623
4624 fi
4625 fi
4626 DUMPBIN=$ac_cv_prog_DUMPBIN
4627 if test -n "$DUMPBIN"; then
4628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4629 $as_echo "$DUMPBIN" >&6; }
4630 else
4631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4633 fi
4634
4635
4636     test -n "$DUMPBIN" && break
4637   done
4638 fi
4639 if test -z "$DUMPBIN"; then
4640   ac_ct_DUMPBIN=$DUMPBIN
4641   for ac_prog in dumpbin "link -dump"
4642 do
4643   # Extract the first word of "$ac_prog", so it can be a program name with args.
4644 set dummy $ac_prog; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4648   $as_echo_n "(cached) " >&6
4649 else
4650   if test -n "$ac_ct_DUMPBIN"; then
4651   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656   IFS=$as_save_IFS
4657   test -z "$as_dir" && as_dir=.
4658     for ac_exec_ext in '' $ac_executable_extensions; do
4659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662     break 2
4663   fi
4664 done
4665   done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4671 if test -n "$ac_ct_DUMPBIN"; then
4672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4673 $as_echo "$ac_ct_DUMPBIN" >&6; }
4674 else
4675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679
4680   test -n "$ac_ct_DUMPBIN" && break
4681 done
4682
4683   if test "x$ac_ct_DUMPBIN" = x; then
4684     DUMPBIN=":"
4685   else
4686     case $cross_compiling:$ac_tool_warned in
4687 yes:)
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690 ac_tool_warned=yes ;;
4691 esac
4692     DUMPBIN=$ac_ct_DUMPBIN
4693   fi
4694 fi
4695
4696     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4697     *COFF*)
4698       DUMPBIN="$DUMPBIN -symbols"
4699       ;;
4700     *)
4701       DUMPBIN=:
4702       ;;
4703     esac
4704   fi
4705
4706   if test "$DUMPBIN" != ":"; then
4707     NM="$DUMPBIN"
4708   fi
4709 fi
4710 test -z "$NM" && NM=nm
4711
4712
4713
4714
4715
4716
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4718 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4719 if test "${lt_cv_nm_interface+set}" = set; then :
4720   $as_echo_n "(cached) " >&6
4721 else
4722   lt_cv_nm_interface="BSD nm"
4723   echo "int some_variable = 0;" > conftest.$ac_ext
4724   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4725   (eval "$ac_compile" 2>conftest.err)
4726   cat conftest.err >&5
4727   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4728   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4729   cat conftest.err >&5
4730   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4731   cat conftest.out >&5
4732   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4733     lt_cv_nm_interface="MS dumpbin"
4734   fi
4735   rm -f conftest*
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4738 $as_echo "$lt_cv_nm_interface" >&6; }
4739
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4741 $as_echo_n "checking whether ln -s works... " >&6; }
4742 LN_S=$as_ln_s
4743 if test "$LN_S" = "ln -s"; then
4744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4745 $as_echo "yes" >&6; }
4746 else
4747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4748 $as_echo "no, using $LN_S" >&6; }
4749 fi
4750
4751 # find the maximum length of command line arguments
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4753 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4754 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4755   $as_echo_n "(cached) " >&6
4756 else
4757     i=0
4758   teststring="ABCD"
4759
4760   case $build_os in
4761   msdosdjgpp*)
4762     # On DJGPP, this test can blow up pretty badly due to problems in libc
4763     # (any single argument exceeding 2000 bytes causes a buffer overrun
4764     # during glob expansion).  Even if it were fixed, the result of this
4765     # check would be larger than it should be.
4766     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4767     ;;
4768
4769   gnu*)
4770     # Under GNU Hurd, this test is not required because there is
4771     # no limit to the length of command line arguments.
4772     # Libtool will interpret -1 as no limit whatsoever
4773     lt_cv_sys_max_cmd_len=-1;
4774     ;;
4775
4776   cygwin* | mingw* | cegcc*)
4777     # On Win9x/ME, this test blows up -- it succeeds, but takes
4778     # about 5 minutes as the teststring grows exponentially.
4779     # Worse, since 9x/ME are not pre-emptively multitasking,
4780     # you end up with a "frozen" computer, even though with patience
4781     # the test eventually succeeds (with a max line length of 256k).
4782     # Instead, let's just punt: use the minimum linelength reported by
4783     # all of the supported platforms: 8192 (on NT/2K/XP).
4784     lt_cv_sys_max_cmd_len=8192;
4785     ;;
4786
4787   mint*)
4788     # On MiNT this can take a long time and run out of memory.
4789     lt_cv_sys_max_cmd_len=8192;
4790     ;;
4791
4792   amigaos*)
4793     # On AmigaOS with pdksh, this test takes hours, literally.
4794     # So we just punt and use a minimum line length of 8192.
4795     lt_cv_sys_max_cmd_len=8192;
4796     ;;
4797
4798   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4799     # This has been around since 386BSD, at least.  Likely further.
4800     if test -x /sbin/sysctl; then
4801       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4802     elif test -x /usr/sbin/sysctl; then
4803       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4804     else
4805       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4806     fi
4807     # And add a safety zone
4808     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4809     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4810     ;;
4811
4812   interix*)
4813     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4814     lt_cv_sys_max_cmd_len=196608
4815     ;;
4816
4817   osf*)
4818     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4819     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4820     # nice to cause kernel panics so lets avoid the loop below.
4821     # First set a reasonable default.
4822     lt_cv_sys_max_cmd_len=16384
4823     #
4824     if test -x /sbin/sysconfig; then
4825       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4826         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4827       esac
4828     fi
4829     ;;
4830   sco3.2v5*)
4831     lt_cv_sys_max_cmd_len=102400
4832     ;;
4833   sysv5* | sco5v6* | sysv4.2uw2*)
4834     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4835     if test -n "$kargmax"; then
4836       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4837     else
4838       lt_cv_sys_max_cmd_len=32768
4839     fi
4840     ;;
4841   *)
4842     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4843     if test -n "$lt_cv_sys_max_cmd_len"; then
4844       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4845       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4846     else
4847       # Make teststring a little bigger before we do anything with it.
4848       # a 1K string should be a reasonable start.
4849       for i in 1 2 3 4 5 6 7 8 ; do
4850         teststring=$teststring$teststring
4851       done
4852       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4853       # If test is not a shell built-in, we'll probably end up computing a
4854       # maximum length that is only half of the actual maximum length, but
4855       # we can't tell.
4856       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4857                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4858               test $i != 17 # 1/2 MB should be enough
4859       do
4860         i=`expr $i + 1`
4861         teststring=$teststring$teststring
4862       done
4863       # Only check the string length outside the loop.
4864       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4865       teststring=
4866       # Add a significant safety factor because C++ compilers can tack on
4867       # massive amounts of additional arguments before passing them to the
4868       # linker.  It appears as though 1/2 is a usable value.
4869       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4870     fi
4871     ;;
4872   esac
4873
4874 fi
4875
4876 if test -n $lt_cv_sys_max_cmd_len ; then
4877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4878 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4879 else
4880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4881 $as_echo "none" >&6; }
4882 fi
4883 max_cmd_len=$lt_cv_sys_max_cmd_len
4884
4885
4886
4887
4888
4889
4890 : ${CP="cp -f"}
4891 : ${MV="mv -f"}
4892 : ${RM="rm -f"}
4893
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4895 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4896 # Try some XSI features
4897 xsi_shell=no
4898 ( _lt_dummy="a/b/c"
4899   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4900       = c,a/b,, \
4901     && eval 'test $(( 1 + 1 )) -eq 2 \
4902     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4903   && xsi_shell=yes
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4905 $as_echo "$xsi_shell" >&6; }
4906
4907
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4909 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4910 lt_shell_append=no
4911 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4912     >/dev/null 2>&1 \
4913   && lt_shell_append=yes
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4915 $as_echo "$lt_shell_append" >&6; }
4916
4917
4918 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4919   lt_unset=unset
4920 else
4921   lt_unset=false
4922 fi
4923
4924
4925
4926
4927
4928 # test EBCDIC or ASCII
4929 case `echo X|tr X '\101'` in
4930  A) # ASCII based system
4931     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4932   lt_SP2NL='tr \040 \012'
4933   lt_NL2SP='tr \015\012 \040\040'
4934   ;;
4935  *) # EBCDIC based system
4936   lt_SP2NL='tr \100 \n'
4937   lt_NL2SP='tr \r\n \100\100'
4938   ;;
4939 esac
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4950 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4951 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   lt_cv_ld_reload_flag='-r'
4955 fi
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4957 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4958 reload_flag=$lt_cv_ld_reload_flag
4959 case $reload_flag in
4960 "" | " "*) ;;
4961 *) reload_flag=" $reload_flag" ;;
4962 esac
4963 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4964 case $host_os in
4965   darwin*)
4966     if test "$GCC" = yes; then
4967       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4968     else
4969       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4970     fi
4971     ;;
4972 esac
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982 if test -n "$ac_tool_prefix"; then
4983   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4984 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4988   $as_echo_n "(cached) " >&6
4989 else
4990   if test -n "$OBJDUMP"; then
4991   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996   IFS=$as_save_IFS
4997   test -z "$as_dir" && as_dir=.
4998     for ac_exec_ext in '' $ac_executable_extensions; do
4999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002     break 2
5003   fi
5004 done
5005   done
5006 IFS=$as_save_IFS
5007
5008 fi
5009 fi
5010 OBJDUMP=$ac_cv_prog_OBJDUMP
5011 if test -n "$OBJDUMP"; then
5012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5013 $as_echo "$OBJDUMP" >&6; }
5014 else
5015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5017 fi
5018
5019
5020 fi
5021 if test -z "$ac_cv_prog_OBJDUMP"; then
5022   ac_ct_OBJDUMP=$OBJDUMP
5023   # Extract the first word of "objdump", so it can be a program name with args.
5024 set dummy objdump; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5028   $as_echo_n "(cached) " >&6
5029 else
5030   if test -n "$ac_ct_OBJDUMP"; then
5031   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036   IFS=$as_save_IFS
5037   test -z "$as_dir" && as_dir=.
5038     for ac_exec_ext in '' $ac_executable_extensions; do
5039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042     break 2
5043   fi
5044 done
5045   done
5046 IFS=$as_save_IFS
5047
5048 fi
5049 fi
5050 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5051 if test -n "$ac_ct_OBJDUMP"; then
5052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5053 $as_echo "$ac_ct_OBJDUMP" >&6; }
5054 else
5055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5057 fi
5058
5059   if test "x$ac_ct_OBJDUMP" = x; then
5060     OBJDUMP="false"
5061   else
5062     case $cross_compiling:$ac_tool_warned in
5063 yes:)
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5066 ac_tool_warned=yes ;;
5067 esac
5068     OBJDUMP=$ac_ct_OBJDUMP
5069   fi
5070 else
5071   OBJDUMP="$ac_cv_prog_OBJDUMP"
5072 fi
5073
5074 test -z "$OBJDUMP" && OBJDUMP=objdump
5075
5076
5077
5078
5079
5080
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5082 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5083 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5084   $as_echo_n "(cached) " >&6
5085 else
5086   lt_cv_file_magic_cmd='$MAGIC_CMD'
5087 lt_cv_file_magic_test_file=
5088 lt_cv_deplibs_check_method='unknown'
5089 # Need to set the preceding variable on all platforms that support
5090 # interlibrary dependencies.
5091 # 'none' -- dependencies not supported.
5092 # `unknown' -- same as none, but documents that we really don't know.
5093 # 'pass_all' -- all dependencies passed with no checks.
5094 # 'test_compile' -- check by making test program.
5095 # 'file_magic [[regex]]' -- check by looking for files in library path
5096 # which responds to the $file_magic_cmd with a given extended regex.
5097 # If you have `file' or equivalent on your system and you're not sure
5098 # whether `pass_all' will *always* work, you probably want this one.
5099
5100 case $host_os in
5101 aix[4-9]*)
5102   lt_cv_deplibs_check_method=pass_all
5103   ;;
5104
5105 beos*)
5106   lt_cv_deplibs_check_method=pass_all
5107   ;;
5108
5109 bsdi[45]*)
5110   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5111   lt_cv_file_magic_cmd='/usr/bin/file -L'
5112   lt_cv_file_magic_test_file=/shlib/libc.so
5113   ;;
5114
5115 cygwin*)
5116   # func_win32_libid is a shell function defined in ltmain.sh
5117   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5118   lt_cv_file_magic_cmd='func_win32_libid'
5119   ;;
5120
5121 mingw* | pw32*)
5122   # Base MSYS/MinGW do not provide the 'file' command needed by
5123   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5124   # unless we find 'file', for example because we are cross-compiling.
5125   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5126   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5127     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5128     lt_cv_file_magic_cmd='func_win32_libid'
5129   else
5130     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5131     lt_cv_file_magic_cmd='$OBJDUMP -f'
5132   fi
5133   ;;
5134
5135 cegcc*)
5136   # use the weaker test based on 'objdump'. See mingw*.
5137   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5138   lt_cv_file_magic_cmd='$OBJDUMP -f'
5139   ;;
5140
5141 darwin* | rhapsody*)
5142   lt_cv_deplibs_check_method=pass_all
5143   ;;
5144
5145 freebsd* | dragonfly*)
5146   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5147     case $host_cpu in
5148     i*86 )
5149       # Not sure whether the presence of OpenBSD here was a mistake.
5150       # Let's accept both of them until this is cleared up.
5151       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5152       lt_cv_file_magic_cmd=/usr/bin/file
5153       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5154       ;;
5155     esac
5156   else
5157     lt_cv_deplibs_check_method=pass_all
5158   fi
5159   ;;
5160
5161 gnu*)
5162   lt_cv_deplibs_check_method=pass_all
5163   ;;
5164
5165 haiku*)
5166   lt_cv_deplibs_check_method=pass_all
5167   ;;
5168
5169 hpux10.20* | hpux11*)
5170   lt_cv_file_magic_cmd=/usr/bin/file
5171   case $host_cpu in
5172   ia64*)
5173     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5174     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5175     ;;
5176   hppa*64*)
5177     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]'
5178     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5179     ;;
5180   *)
5181     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5182     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5183     ;;
5184   esac
5185   ;;
5186
5187 interix[3-9]*)
5188   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5189   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5190   ;;
5191
5192 irix5* | irix6* | nonstopux*)
5193   case $LD in
5194   *-32|*"-32 ") libmagic=32-bit;;
5195   *-n32|*"-n32 ") libmagic=N32;;
5196   *-64|*"-64 ") libmagic=64-bit;;
5197   *) libmagic=never-match;;
5198   esac
5199   lt_cv_deplibs_check_method=pass_all
5200   ;;
5201
5202 # This must be Linux ELF.
5203 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5204   lt_cv_deplibs_check_method=pass_all
5205   ;;
5206
5207 netbsd*)
5208   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5209     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5210   else
5211     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5212   fi
5213   ;;
5214
5215 newos6*)
5216   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5217   lt_cv_file_magic_cmd=/usr/bin/file
5218   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5219   ;;
5220
5221 *nto* | *qnx*)
5222   lt_cv_deplibs_check_method=pass_all
5223   ;;
5224
5225 openbsd*)
5226   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5227     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5228   else
5229     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5230   fi
5231   ;;
5232
5233 osf3* | osf4* | osf5*)
5234   lt_cv_deplibs_check_method=pass_all
5235   ;;
5236
5237 rdos*)
5238   lt_cv_deplibs_check_method=pass_all
5239   ;;
5240
5241 solaris*)
5242   lt_cv_deplibs_check_method=pass_all
5243   ;;
5244
5245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5246   lt_cv_deplibs_check_method=pass_all
5247   ;;
5248
5249 sysv4 | sysv4.3*)
5250   case $host_vendor in
5251   motorola)
5252     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]'
5253     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5254     ;;
5255   ncr)
5256     lt_cv_deplibs_check_method=pass_all
5257     ;;
5258   sequent)
5259     lt_cv_file_magic_cmd='/bin/file'
5260     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5261     ;;
5262   sni)
5263     lt_cv_file_magic_cmd='/bin/file'
5264     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5265     lt_cv_file_magic_test_file=/lib/libc.so
5266     ;;
5267   siemens)
5268     lt_cv_deplibs_check_method=pass_all
5269     ;;
5270   pc)
5271     lt_cv_deplibs_check_method=pass_all
5272     ;;
5273   esac
5274   ;;
5275
5276 tpf*)
5277   lt_cv_deplibs_check_method=pass_all
5278   ;;
5279 esac
5280
5281 fi
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5283 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5284 file_magic_cmd=$lt_cv_file_magic_cmd
5285 deplibs_check_method=$lt_cv_deplibs_check_method
5286 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299 if test -n "$ac_tool_prefix"; then
5300   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5301 set dummy ${ac_tool_prefix}ar; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if test "${ac_cv_prog_AR+set}" = set; then :
5305   $as_echo_n "(cached) " >&6
5306 else
5307   if test -n "$AR"; then
5308   ac_cv_prog_AR="$AR" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313   IFS=$as_save_IFS
5314   test -z "$as_dir" && as_dir=.
5315     for ac_exec_ext in '' $ac_executable_extensions; do
5316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317     ac_cv_prog_AR="${ac_tool_prefix}ar"
5318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319     break 2
5320   fi
5321 done
5322   done
5323 IFS=$as_save_IFS
5324
5325 fi
5326 fi
5327 AR=$ac_cv_prog_AR
5328 if test -n "$AR"; then
5329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5330 $as_echo "$AR" >&6; }
5331 else
5332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5334 fi
5335
5336
5337 fi
5338 if test -z "$ac_cv_prog_AR"; then
5339   ac_ct_AR=$AR
5340   # Extract the first word of "ar", so it can be a program name with args.
5341 set dummy ar; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5345   $as_echo_n "(cached) " >&6
5346 else
5347   if test -n "$ac_ct_AR"; then
5348   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5349 else
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5352 do
5353   IFS=$as_save_IFS
5354   test -z "$as_dir" && as_dir=.
5355     for ac_exec_ext in '' $ac_executable_extensions; do
5356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357     ac_cv_prog_ac_ct_AR="ar"
5358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359     break 2
5360   fi
5361 done
5362   done
5363 IFS=$as_save_IFS
5364
5365 fi
5366 fi
5367 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5368 if test -n "$ac_ct_AR"; then
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5370 $as_echo "$ac_ct_AR" >&6; }
5371 else
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5374 fi
5375
5376   if test "x$ac_ct_AR" = x; then
5377     AR="false"
5378   else
5379     case $cross_compiling:$ac_tool_warned in
5380 yes:)
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5383 ac_tool_warned=yes ;;
5384 esac
5385     AR=$ac_ct_AR
5386   fi
5387 else
5388   AR="$ac_cv_prog_AR"
5389 fi
5390
5391 test -z "$AR" && AR=ar
5392 test -z "$AR_FLAGS" && AR_FLAGS=cru
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404 if test -n "$ac_tool_prefix"; then
5405   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5406 set dummy ${ac_tool_prefix}strip; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if test "${ac_cv_prog_STRIP+set}" = set; then :
5410   $as_echo_n "(cached) " >&6
5411 else
5412   if test -n "$STRIP"; then
5413   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5417 do
5418   IFS=$as_save_IFS
5419   test -z "$as_dir" && as_dir=.
5420     for ac_exec_ext in '' $ac_executable_extensions; do
5421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424     break 2
5425   fi
5426 done
5427   done
5428 IFS=$as_save_IFS
5429
5430 fi
5431 fi
5432 STRIP=$ac_cv_prog_STRIP
5433 if test -n "$STRIP"; then
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5435 $as_echo "$STRIP" >&6; }
5436 else
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440
5441
5442 fi
5443 if test -z "$ac_cv_prog_STRIP"; then
5444   ac_ct_STRIP=$STRIP
5445   # Extract the first word of "strip", so it can be a program name with args.
5446 set dummy strip; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5450   $as_echo_n "(cached) " >&6
5451 else
5452   if test -n "$ac_ct_STRIP"; then
5453   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458   IFS=$as_save_IFS
5459   test -z "$as_dir" && as_dir=.
5460     for ac_exec_ext in '' $ac_executable_extensions; do
5461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462     ac_cv_prog_ac_ct_STRIP="strip"
5463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464     break 2
5465   fi
5466 done
5467   done
5468 IFS=$as_save_IFS
5469
5470 fi
5471 fi
5472 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5473 if test -n "$ac_ct_STRIP"; then
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5475 $as_echo "$ac_ct_STRIP" >&6; }
5476 else
5477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 fi
5480
5481   if test "x$ac_ct_STRIP" = x; then
5482     STRIP=":"
5483   else
5484     case $cross_compiling:$ac_tool_warned in
5485 yes:)
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5488 ac_tool_warned=yes ;;
5489 esac
5490     STRIP=$ac_ct_STRIP
5491   fi
5492 else
5493   STRIP="$ac_cv_prog_STRIP"
5494 fi
5495
5496 test -z "$STRIP" && STRIP=:
5497
5498
5499
5500
5501
5502
5503 if test -n "$ac_tool_prefix"; then
5504   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5505 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5509   $as_echo_n "(cached) " >&6
5510 else
5511   if test -n "$RANLIB"; then
5512   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517   IFS=$as_save_IFS
5518   test -z "$as_dir" && as_dir=.
5519     for ac_exec_ext in '' $ac_executable_extensions; do
5520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523     break 2
5524   fi
5525 done
5526   done
5527 IFS=$as_save_IFS
5528
5529 fi
5530 fi
5531 RANLIB=$ac_cv_prog_RANLIB
5532 if test -n "$RANLIB"; then
5533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5534 $as_echo "$RANLIB" >&6; }
5535 else
5536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 fi
5539
5540
5541 fi
5542 if test -z "$ac_cv_prog_RANLIB"; then
5543   ac_ct_RANLIB=$RANLIB
5544   # Extract the first word of "ranlib", so it can be a program name with args.
5545 set dummy ranlib; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5549   $as_echo_n "(cached) " >&6
5550 else
5551   if test -n "$ac_ct_RANLIB"; then
5552   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5556 do
5557   IFS=$as_save_IFS
5558   test -z "$as_dir" && as_dir=.
5559     for ac_exec_ext in '' $ac_executable_extensions; do
5560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561     ac_cv_prog_ac_ct_RANLIB="ranlib"
5562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563     break 2
5564   fi
5565 done
5566   done
5567 IFS=$as_save_IFS
5568
5569 fi
5570 fi
5571 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5572 if test -n "$ac_ct_RANLIB"; then
5573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5574 $as_echo "$ac_ct_RANLIB" >&6; }
5575 else
5576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5578 fi
5579
5580   if test "x$ac_ct_RANLIB" = x; then
5581     RANLIB=":"
5582   else
5583     case $cross_compiling:$ac_tool_warned in
5584 yes:)
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587 ac_tool_warned=yes ;;
5588 esac
5589     RANLIB=$ac_ct_RANLIB
5590   fi
5591 else
5592   RANLIB="$ac_cv_prog_RANLIB"
5593 fi
5594
5595 test -z "$RANLIB" && RANLIB=:
5596
5597
5598
5599
5600
5601
5602 # Determine commands to create old-style static archives.
5603 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5604 old_postinstall_cmds='chmod 644 $oldlib'
5605 old_postuninstall_cmds=
5606
5607 if test -n "$RANLIB"; then
5608   case $host_os in
5609   openbsd*)
5610     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5611     ;;
5612   *)
5613     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5614     ;;
5615   esac
5616   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5617 fi
5618
5619 case $host_os in
5620   darwin*)
5621     lock_old_archive_extraction=yes ;;
5622   *)
5623     lock_old_archive_extraction=no ;;
5624 esac
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646 for ac_prog in gawk mawk nawk awk
5647 do
5648   # Extract the first word of "$ac_prog", so it can be a program name with args.
5649 set dummy $ac_prog; ac_word=$2
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651 $as_echo_n "checking for $ac_word... " >&6; }
5652 if test "${ac_cv_prog_AWK+set}" = set; then :
5653   $as_echo_n "(cached) " >&6
5654 else
5655   if test -n "$AWK"; then
5656   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5657 else
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5660 do
5661   IFS=$as_save_IFS
5662   test -z "$as_dir" && as_dir=.
5663     for ac_exec_ext in '' $ac_executable_extensions; do
5664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5665     ac_cv_prog_AWK="$ac_prog"
5666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667     break 2
5668   fi
5669 done
5670   done
5671 IFS=$as_save_IFS
5672
5673 fi
5674 fi
5675 AWK=$ac_cv_prog_AWK
5676 if test -n "$AWK"; then
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5678 $as_echo "$AWK" >&6; }
5679 else
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5682 fi
5683
5684
5685   test -n "$AWK" && break
5686 done
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706 # If no C compiler was specified, use CC.
5707 LTCC=${LTCC-"$CC"}
5708
5709 # If no C compiler flags were specified, use CFLAGS.
5710 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5711
5712 # Allow CC to be a program name with arguments.
5713 compiler=$CC
5714
5715
5716 # Check for command to grab the raw symbol name followed by C symbol from nm.
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5718 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5719 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5720   $as_echo_n "(cached) " >&6
5721 else
5722
5723 # These are sane defaults that work on at least a few old systems.
5724 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5725
5726 # Character class describing NM global symbol codes.
5727 symcode='[BCDEGRST]'
5728
5729 # Regexp to match symbols that can be accessed directly from C.
5730 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5731
5732 # Define system-specific variables.
5733 case $host_os in
5734 aix*)
5735   symcode='[BCDT]'
5736   ;;
5737 cygwin* | mingw* | pw32* | cegcc*)
5738   symcode='[ABCDGISTW]'
5739   ;;
5740 hpux*)
5741   if test "$host_cpu" = ia64; then
5742     symcode='[ABCDEGRST]'
5743   fi
5744   ;;
5745 irix* | nonstopux*)
5746   symcode='[BCDEGRST]'
5747   ;;
5748 osf*)
5749   symcode='[BCDEGQRST]'
5750   ;;
5751 solaris*)
5752   symcode='[BDRT]'
5753   ;;
5754 sco3.2v5*)
5755   symcode='[DT]'
5756   ;;
5757 sysv4.2uw2*)
5758   symcode='[DT]'
5759   ;;
5760 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5761   symcode='[ABDT]'
5762   ;;
5763 sysv4)
5764   symcode='[DFNSTU]'
5765   ;;
5766 esac
5767
5768 # If we're using GNU nm, then use its standard symbol codes.
5769 case `$NM -V 2>&1` in
5770 *GNU* | *'with BFD'*)
5771   symcode='[ABCDGIRSTW]' ;;
5772 esac
5773
5774 # Transform an extracted symbol line into a proper C declaration.
5775 # Some systems (esp. on ia64) link data and code symbols differently,
5776 # so use this general approach.
5777 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5778
5779 # Transform an extracted symbol line into symbol name and symbol address
5780 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5781 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'"
5782
5783 # Handle CRLF in mingw tool chain
5784 opt_cr=
5785 case $build_os in
5786 mingw*)
5787   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5788   ;;
5789 esac
5790
5791 # Try without a prefix underscore, then with it.
5792 for ac_symprfx in "" "_"; do
5793
5794   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5795   symxfrm="\\1 $ac_symprfx\\2 \\2"
5796
5797   # Write the raw and C identifiers.
5798   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5799     # Fake it for dumpbin and say T for any non-static function
5800     # and D for any global variable.
5801     # Also find C++ and __fastcall symbols from MSVC++,
5802     # which start with @ or ?.
5803     lt_cv_sys_global_symbol_pipe="$AWK '"\
5804 "     {last_section=section; section=\$ 3};"\
5805 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5806 "     \$ 0!~/External *\|/{next};"\
5807 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5808 "     {if(hide[section]) next};"\
5809 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5810 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5811 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5812 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5813 "     ' prfx=^$ac_symprfx"
5814   else
5815     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5816   fi
5817
5818   # Check to see that the pipe works correctly.
5819   pipe_works=no
5820
5821   rm -f conftest*
5822   cat > conftest.$ac_ext <<_LT_EOF
5823 #ifdef __cplusplus
5824 extern "C" {
5825 #endif
5826 char nm_test_var;
5827 void nm_test_func(void);
5828 void nm_test_func(void){}
5829 #ifdef __cplusplus
5830 }
5831 #endif
5832 int main(){nm_test_var='a';nm_test_func();return(0);}
5833 _LT_EOF
5834
5835   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5836   (eval $ac_compile) 2>&5
5837   ac_status=$?
5838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5839   test $ac_status = 0; }; then
5840     # Now try to grab the symbols.
5841     nlist=conftest.nm
5842     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5843   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5844   ac_status=$?
5845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5846   test $ac_status = 0; } && test -s "$nlist"; then
5847       # Try sorting and uniquifying the output.
5848       if sort "$nlist" | uniq > "$nlist"T; then
5849         mv -f "$nlist"T "$nlist"
5850       else
5851         rm -f "$nlist"T
5852       fi
5853
5854       # Make sure that we snagged all the symbols we need.
5855       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5856         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5857           cat <<_LT_EOF > conftest.$ac_ext
5858 #ifdef __cplusplus
5859 extern "C" {
5860 #endif
5861
5862 _LT_EOF
5863           # Now generate the symbol file.
5864           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5865
5866           cat <<_LT_EOF >> conftest.$ac_ext
5867
5868 /* The mapping between symbol names and symbols.  */
5869 const struct {
5870   const char *name;
5871   void       *address;
5872 }
5873 lt__PROGRAM__LTX_preloaded_symbols[] =
5874 {
5875   { "@PROGRAM@", (void *) 0 },
5876 _LT_EOF
5877           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5878           cat <<\_LT_EOF >> conftest.$ac_ext
5879   {0, (void *) 0}
5880 };
5881
5882 /* This works around a problem in FreeBSD linker */
5883 #ifdef FREEBSD_WORKAROUND
5884 static const void *lt_preloaded_setup() {
5885   return lt__PROGRAM__LTX_preloaded_symbols;
5886 }
5887 #endif
5888
5889 #ifdef __cplusplus
5890 }
5891 #endif
5892 _LT_EOF
5893           # Now try linking the two files.
5894           mv conftest.$ac_objext conftstm.$ac_objext
5895           lt_save_LIBS="$LIBS"
5896           lt_save_CFLAGS="$CFLAGS"
5897           LIBS="conftstm.$ac_objext"
5898           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5899           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5900   (eval $ac_link) 2>&5
5901   ac_status=$?
5902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5903   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5904             pipe_works=yes
5905           fi
5906           LIBS="$lt_save_LIBS"
5907           CFLAGS="$lt_save_CFLAGS"
5908         else
5909           echo "cannot find nm_test_func in $nlist" >&5
5910         fi
5911       else
5912         echo "cannot find nm_test_var in $nlist" >&5
5913       fi
5914     else
5915       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5916     fi
5917   else
5918     echo "$progname: failed program was:" >&5
5919     cat conftest.$ac_ext >&5
5920   fi
5921   rm -rf conftest* conftst*
5922
5923   # Do not use the global_symbol_pipe unless it works.
5924   if test "$pipe_works" = yes; then
5925     break
5926   else
5927     lt_cv_sys_global_symbol_pipe=
5928   fi
5929 done
5930
5931 fi
5932
5933 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5934   lt_cv_sys_global_symbol_to_cdecl=
5935 fi
5936 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5938 $as_echo "failed" >&6; }
5939 else
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5941 $as_echo "ok" >&6; }
5942 fi
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966 # Check whether --enable-libtool-lock was given.
5967 if test "${enable_libtool_lock+set}" = set; then :
5968   enableval=$enable_libtool_lock;
5969 fi
5970
5971 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5972
5973 # Some flags need to be propagated to the compiler or linker for good
5974 # libtool support.
5975 case $host in
5976 ia64-*-hpux*)
5977   # Find out which ABI we are using.
5978   echo 'int i;' > conftest.$ac_ext
5979   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5980   (eval $ac_compile) 2>&5
5981   ac_status=$?
5982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5983   test $ac_status = 0; }; then
5984     case `/usr/bin/file conftest.$ac_objext` in
5985       *ELF-32*)
5986         HPUX_IA64_MODE="32"
5987         ;;
5988       *ELF-64*)
5989         HPUX_IA64_MODE="64"
5990         ;;
5991     esac
5992   fi
5993   rm -rf conftest*
5994   ;;
5995 *-*-irix6*)
5996   # Find out which ABI we are using.
5997   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5998   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5999   (eval $ac_compile) 2>&5
6000   ac_status=$?
6001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6002   test $ac_status = 0; }; then
6003     if test "$lt_cv_prog_gnu_ld" = yes; then
6004       case `/usr/bin/file conftest.$ac_objext` in
6005         *32-bit*)
6006           LD="${LD-ld} -melf32bsmip"
6007           ;;
6008         *N32*)
6009           LD="${LD-ld} -melf32bmipn32"
6010           ;;
6011         *64-bit*)
6012           LD="${LD-ld} -melf64bmip"
6013         ;;
6014       esac
6015     else
6016       case `/usr/bin/file conftest.$ac_objext` in
6017         *32-bit*)
6018           LD="${LD-ld} -32"
6019           ;;
6020         *N32*)
6021           LD="${LD-ld} -n32"
6022           ;;
6023         *64-bit*)
6024           LD="${LD-ld} -64"
6025           ;;
6026       esac
6027     fi
6028   fi
6029   rm -rf conftest*
6030   ;;
6031
6032 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6033 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6034   # Find out which ABI we are using.
6035   echo 'int i;' > conftest.$ac_ext
6036   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6037   (eval $ac_compile) 2>&5
6038   ac_status=$?
6039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6040   test $ac_status = 0; }; then
6041     case `/usr/bin/file conftest.o` in
6042       *32-bit*)
6043         case $host in
6044           x86_64-*kfreebsd*-gnu)
6045             LD="${LD-ld} -m elf_i386_fbsd"
6046             ;;
6047           x86_64-*linux*)
6048             LD="${LD-ld} -m elf_i386"
6049             ;;
6050           ppc64-*linux*|powerpc64-*linux*)
6051             LD="${LD-ld} -m elf32ppclinux"
6052             ;;
6053           s390x-*linux*)
6054             LD="${LD-ld} -m elf_s390"
6055             ;;
6056           sparc64-*linux*)
6057             LD="${LD-ld} -m elf32_sparc"
6058             ;;
6059         esac
6060         ;;
6061       *64-bit*)
6062         case $host in
6063           x86_64-*kfreebsd*-gnu)
6064             LD="${LD-ld} -m elf_x86_64_fbsd"
6065             ;;
6066           x86_64-*linux*)
6067             LD="${LD-ld} -m elf_x86_64"
6068             ;;
6069           ppc*-*linux*|powerpc*-*linux*)
6070             LD="${LD-ld} -m elf64ppc"
6071             ;;
6072           s390*-*linux*|s390*-*tpf*)
6073             LD="${LD-ld} -m elf64_s390"
6074             ;;
6075           sparc*-*linux*)
6076             LD="${LD-ld} -m elf64_sparc"
6077             ;;
6078         esac
6079         ;;
6080     esac
6081   fi
6082   rm -rf conftest*
6083   ;;
6084
6085 *-*-sco3.2v5*)
6086   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6087   SAVE_CFLAGS="$CFLAGS"
6088   CFLAGS="$CFLAGS -belf"
6089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6090 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6091 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6092   $as_echo_n "(cached) " >&6
6093 else
6094   ac_ext=c
6095 ac_cpp='$CPP $CPPFLAGS'
6096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6099
6100      if test x$gcc_no_link = xyes; then
6101   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6102 fi
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h.  */
6105
6106 int
6107 main ()
6108 {
6109
6110   ;
6111   return 0;
6112 }
6113 _ACEOF
6114 if ac_fn_c_try_link "$LINENO"; then :
6115   lt_cv_cc_needs_belf=yes
6116 else
6117   lt_cv_cc_needs_belf=no
6118 fi
6119 rm -f core conftest.err conftest.$ac_objext \
6120     conftest$ac_exeext conftest.$ac_ext
6121      ac_ext=c
6122 ac_cpp='$CPP $CPPFLAGS'
6123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6126
6127 fi
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6129 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6130   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6131     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6132     CFLAGS="$SAVE_CFLAGS"
6133   fi
6134   ;;
6135 sparc*-*solaris*)
6136   # Find out which ABI we are using.
6137   echo 'int i;' > conftest.$ac_ext
6138   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6139   (eval $ac_compile) 2>&5
6140   ac_status=$?
6141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6142   test $ac_status = 0; }; then
6143     case `/usr/bin/file conftest.o` in
6144     *64-bit*)
6145       case $lt_cv_prog_gnu_ld in
6146       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6147       *)
6148         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6149           LD="${LD-ld} -64"
6150         fi
6151         ;;
6152       esac
6153       ;;
6154     esac
6155   fi
6156   rm -rf conftest*
6157   ;;
6158 esac
6159
6160 need_locks="$enable_libtool_lock"
6161
6162
6163   case $host_os in
6164     rhapsody* | darwin*)
6165     if test -n "$ac_tool_prefix"; then
6166   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6167 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6171   $as_echo_n "(cached) " >&6
6172 else
6173   if test -n "$DSYMUTIL"; then
6174   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181     for ac_exec_ext in '' $ac_executable_extensions; do
6182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185     break 2
6186   fi
6187 done
6188   done
6189 IFS=$as_save_IFS
6190
6191 fi
6192 fi
6193 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6194 if test -n "$DSYMUTIL"; then
6195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6196 $as_echo "$DSYMUTIL" >&6; }
6197 else
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6200 fi
6201
6202
6203 fi
6204 if test -z "$ac_cv_prog_DSYMUTIL"; then
6205   ac_ct_DSYMUTIL=$DSYMUTIL
6206   # Extract the first word of "dsymutil", so it can be a program name with args.
6207 set dummy dsymutil; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6211   $as_echo_n "(cached) " >&6
6212 else
6213   if test -n "$ac_ct_DSYMUTIL"; then
6214   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219   IFS=$as_save_IFS
6220   test -z "$as_dir" && as_dir=.
6221     for ac_exec_ext in '' $ac_executable_extensions; do
6222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225     break 2
6226   fi
6227 done
6228   done
6229 IFS=$as_save_IFS
6230
6231 fi
6232 fi
6233 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6234 if test -n "$ac_ct_DSYMUTIL"; then
6235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6236 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6237 else
6238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6240 fi
6241
6242   if test "x$ac_ct_DSYMUTIL" = x; then
6243     DSYMUTIL=":"
6244   else
6245     case $cross_compiling:$ac_tool_warned in
6246 yes:)
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249 ac_tool_warned=yes ;;
6250 esac
6251     DSYMUTIL=$ac_ct_DSYMUTIL
6252   fi
6253 else
6254   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6255 fi
6256
6257     if test -n "$ac_tool_prefix"; then
6258   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6259 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261 $as_echo_n "checking for $ac_word... " >&6; }
6262 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6263   $as_echo_n "(cached) " >&6
6264 else
6265   if test -n "$NMEDIT"; then
6266   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6267 else
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6270 do
6271   IFS=$as_save_IFS
6272   test -z "$as_dir" && as_dir=.
6273     for ac_exec_ext in '' $ac_executable_extensions; do
6274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6275     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277     break 2
6278   fi
6279 done
6280   done
6281 IFS=$as_save_IFS
6282
6283 fi
6284 fi
6285 NMEDIT=$ac_cv_prog_NMEDIT
6286 if test -n "$NMEDIT"; then
6287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6288 $as_echo "$NMEDIT" >&6; }
6289 else
6290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291 $as_echo "no" >&6; }
6292 fi
6293
6294
6295 fi
6296 if test -z "$ac_cv_prog_NMEDIT"; then
6297   ac_ct_NMEDIT=$NMEDIT
6298   # Extract the first word of "nmedit", so it can be a program name with args.
6299 set dummy nmedit; ac_word=$2
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 $as_echo_n "checking for $ac_word... " >&6; }
6302 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6303   $as_echo_n "(cached) " >&6
6304 else
6305   if test -n "$ac_ct_NMEDIT"; then
6306   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6307 else
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311   IFS=$as_save_IFS
6312   test -z "$as_dir" && as_dir=.
6313     for ac_exec_ext in '' $ac_executable_extensions; do
6314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317     break 2
6318   fi
6319 done
6320   done
6321 IFS=$as_save_IFS
6322
6323 fi
6324 fi
6325 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6326 if test -n "$ac_ct_NMEDIT"; then
6327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6328 $as_echo "$ac_ct_NMEDIT" >&6; }
6329 else
6330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6332 fi
6333
6334   if test "x$ac_ct_NMEDIT" = x; then
6335     NMEDIT=":"
6336   else
6337     case $cross_compiling:$ac_tool_warned in
6338 yes:)
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6341 ac_tool_warned=yes ;;
6342 esac
6343     NMEDIT=$ac_ct_NMEDIT
6344   fi
6345 else
6346   NMEDIT="$ac_cv_prog_NMEDIT"
6347 fi
6348
6349     if test -n "$ac_tool_prefix"; then
6350   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if test "${ac_cv_prog_LIPO+set}" = set; then :
6355   $as_echo_n "(cached) " >&6
6356 else
6357   if test -n "$LIPO"; then
6358   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363   IFS=$as_save_IFS
6364   test -z "$as_dir" && as_dir=.
6365     for ac_exec_ext in '' $ac_executable_extensions; do
6366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369     break 2
6370   fi
6371 done
6372   done
6373 IFS=$as_save_IFS
6374
6375 fi
6376 fi
6377 LIPO=$ac_cv_prog_LIPO
6378 if test -n "$LIPO"; then
6379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6380 $as_echo "$LIPO" >&6; }
6381 else
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386
6387 fi
6388 if test -z "$ac_cv_prog_LIPO"; then
6389   ac_ct_LIPO=$LIPO
6390   # Extract the first word of "lipo", so it can be a program name with args.
6391 set dummy lipo; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6395   $as_echo_n "(cached) " >&6
6396 else
6397   if test -n "$ac_ct_LIPO"; then
6398   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403   IFS=$as_save_IFS
6404   test -z "$as_dir" && as_dir=.
6405     for ac_exec_ext in '' $ac_executable_extensions; do
6406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407     ac_cv_prog_ac_ct_LIPO="lipo"
6408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409     break 2
6410   fi
6411 done
6412   done
6413 IFS=$as_save_IFS
6414
6415 fi
6416 fi
6417 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6418 if test -n "$ac_ct_LIPO"; then
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6420 $as_echo "$ac_ct_LIPO" >&6; }
6421 else
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6424 fi
6425
6426   if test "x$ac_ct_LIPO" = x; then
6427     LIPO=":"
6428   else
6429     case $cross_compiling:$ac_tool_warned in
6430 yes:)
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6434 esac
6435     LIPO=$ac_ct_LIPO
6436   fi
6437 else
6438   LIPO="$ac_cv_prog_LIPO"
6439 fi
6440
6441     if test -n "$ac_tool_prefix"; then
6442   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6443 set dummy ${ac_tool_prefix}otool; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6447   $as_echo_n "(cached) " >&6
6448 else
6449   if test -n "$OTOOL"; then
6450   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455   IFS=$as_save_IFS
6456   test -z "$as_dir" && as_dir=.
6457     for ac_exec_ext in '' $ac_executable_extensions; do
6458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461     break 2
6462   fi
6463 done
6464   done
6465 IFS=$as_save_IFS
6466
6467 fi
6468 fi
6469 OTOOL=$ac_cv_prog_OTOOL
6470 if test -n "$OTOOL"; then
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6472 $as_echo "$OTOOL" >&6; }
6473 else
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6476 fi
6477
6478
6479 fi
6480 if test -z "$ac_cv_prog_OTOOL"; then
6481   ac_ct_OTOOL=$OTOOL
6482   # Extract the first word of "otool", so it can be a program name with args.
6483 set dummy otool; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6487   $as_echo_n "(cached) " >&6
6488 else
6489   if test -n "$ac_ct_OTOOL"; then
6490   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495   IFS=$as_save_IFS
6496   test -z "$as_dir" && as_dir=.
6497     for ac_exec_ext in '' $ac_executable_extensions; do
6498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499     ac_cv_prog_ac_ct_OTOOL="otool"
6500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501     break 2
6502   fi
6503 done
6504   done
6505 IFS=$as_save_IFS
6506
6507 fi
6508 fi
6509 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6510 if test -n "$ac_ct_OTOOL"; then
6511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6512 $as_echo "$ac_ct_OTOOL" >&6; }
6513 else
6514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6516 fi
6517
6518   if test "x$ac_ct_OTOOL" = x; then
6519     OTOOL=":"
6520   else
6521     case $cross_compiling:$ac_tool_warned in
6522 yes:)
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525 ac_tool_warned=yes ;;
6526 esac
6527     OTOOL=$ac_ct_OTOOL
6528   fi
6529 else
6530   OTOOL="$ac_cv_prog_OTOOL"
6531 fi
6532
6533     if test -n "$ac_tool_prefix"; then
6534   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6535 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6539   $as_echo_n "(cached) " >&6
6540 else
6541   if test -n "$OTOOL64"; then
6542   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547   IFS=$as_save_IFS
6548   test -z "$as_dir" && as_dir=.
6549     for ac_exec_ext in '' $ac_executable_extensions; do
6550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553     break 2
6554   fi
6555 done
6556   done
6557 IFS=$as_save_IFS
6558
6559 fi
6560 fi
6561 OTOOL64=$ac_cv_prog_OTOOL64
6562 if test -n "$OTOOL64"; then
6563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6564 $as_echo "$OTOOL64" >&6; }
6565 else
6566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6568 fi
6569
6570
6571 fi
6572 if test -z "$ac_cv_prog_OTOOL64"; then
6573   ac_ct_OTOOL64=$OTOOL64
6574   # Extract the first word of "otool64", so it can be a program name with args.
6575 set dummy otool64; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6579   $as_echo_n "(cached) " >&6
6580 else
6581   if test -n "$ac_ct_OTOOL64"; then
6582   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589     for ac_exec_ext in '' $ac_executable_extensions; do
6590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591     ac_cv_prog_ac_ct_OTOOL64="otool64"
6592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596   done
6597 IFS=$as_save_IFS
6598
6599 fi
6600 fi
6601 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6602 if test -n "$ac_ct_OTOOL64"; then
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6604 $as_echo "$ac_ct_OTOOL64" >&6; }
6605 else
6606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6608 fi
6609
6610   if test "x$ac_ct_OTOOL64" = x; then
6611     OTOOL64=":"
6612   else
6613     case $cross_compiling:$ac_tool_warned in
6614 yes:)
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619     OTOOL64=$ac_ct_OTOOL64
6620   fi
6621 else
6622   OTOOL64="$ac_cv_prog_OTOOL64"
6623 fi
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6652 $as_echo_n "checking for -single_module linker flag... " >&6; }
6653 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6654   $as_echo_n "(cached) " >&6
6655 else
6656   lt_cv_apple_cc_single_mod=no
6657       if test -z "${LT_MULTI_MODULE}"; then
6658         # By default we will add the -single_module flag. You can override
6659         # by either setting the environment variable LT_MULTI_MODULE
6660         # non-empty at configure time, or by adding -multi_module to the
6661         # link flags.
6662         rm -rf libconftest.dylib*
6663         echo "int foo(void){return 1;}" > conftest.c
6664         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6665 -dynamiclib -Wl,-single_module conftest.c" >&5
6666         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6667           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6668         _lt_result=$?
6669         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6670           lt_cv_apple_cc_single_mod=yes
6671         else
6672           cat conftest.err >&5
6673         fi
6674         rm -rf libconftest.dylib*
6675         rm -f conftest.*
6676       fi
6677 fi
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6679 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6680     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6681 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6682 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6683   $as_echo_n "(cached) " >&6
6684 else
6685   lt_cv_ld_exported_symbols_list=no
6686       save_LDFLAGS=$LDFLAGS
6687       echo "_main" > conftest.sym
6688       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6689       if test x$gcc_no_link = xyes; then
6690   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6691 fi
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h.  */
6694
6695 int
6696 main ()
6697 {
6698
6699   ;
6700   return 0;
6701 }
6702 _ACEOF
6703 if ac_fn_c_try_link "$LINENO"; then :
6704   lt_cv_ld_exported_symbols_list=yes
6705 else
6706   lt_cv_ld_exported_symbols_list=no
6707 fi
6708 rm -f core conftest.err conftest.$ac_objext \
6709     conftest$ac_exeext conftest.$ac_ext
6710         LDFLAGS="$save_LDFLAGS"
6711
6712 fi
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6714 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6716 $as_echo_n "checking for -force_load linker flag... " >&6; }
6717 if test "${lt_cv_ld_force_load+set}" = set; then :
6718   $as_echo_n "(cached) " >&6
6719 else
6720   lt_cv_ld_force_load=no
6721       cat > conftest.c << _LT_EOF
6722 int forced_loaded() { return 2;}
6723 _LT_EOF
6724       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6725       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6726       echo "$AR cru libconftest.a conftest.o" >&5
6727       $AR cru libconftest.a conftest.o 2>&5
6728       cat > conftest.c << _LT_EOF
6729 int main() { return 0;}
6730 _LT_EOF
6731       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6732       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6733       _lt_result=$?
6734       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6735         lt_cv_ld_force_load=yes
6736       else
6737         cat conftest.err >&5
6738       fi
6739         rm -f conftest.err libconftest.a conftest conftest.c
6740         rm -rf conftest.dSYM
6741
6742 fi
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6744 $as_echo "$lt_cv_ld_force_load" >&6; }
6745     case $host_os in
6746     rhapsody* | darwin1.[012])
6747       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6748     darwin1.*)
6749       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6750     darwin*) # darwin 5.x on
6751       # if running on 10.5 or later, the deployment target defaults
6752       # to the OS version, if on x86, and 10.4, the deployment
6753       # target defaults to 10.4. Don't you love it?
6754       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6755         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6756           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6757         10.[012]*)
6758           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6759         10.*)
6760           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6761       esac
6762     ;;
6763   esac
6764     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6765       _lt_dar_single_mod='$single_module'
6766     fi
6767     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6768       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6769     else
6770       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6771     fi
6772     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6773       _lt_dsymutil='~$DSYMUTIL $lib || :'
6774     else
6775       _lt_dsymutil=
6776     fi
6777     ;;
6778   esac
6779
6780 ac_ext=c
6781 ac_cpp='$CPP $CPPFLAGS'
6782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6786 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6787 # On Suns, sometimes $CPP names a directory.
6788 if test -n "$CPP" && test -d "$CPP"; then
6789   CPP=
6790 fi
6791 if test -z "$CPP"; then
6792   if test "${ac_cv_prog_CPP+set}" = set; then :
6793   $as_echo_n "(cached) " >&6
6794 else
6795       # Double quotes because CPP needs to be expanded
6796     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6797     do
6798       ac_preproc_ok=false
6799 for ac_c_preproc_warn_flag in '' yes
6800 do
6801   # Use a header file that comes with gcc, so configuring glibc
6802   # with a fresh cross-compiler works.
6803   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6804   # <limits.h> exists even on freestanding compilers.
6805   # On the NeXT, cc -E runs the code through the compiler's parser,
6806   # not just through cpp. "Syntax error" is here to catch this case.
6807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h.  */
6809 #ifdef __STDC__
6810 # include <limits.h>
6811 #else
6812 # include <assert.h>
6813 #endif
6814                      Syntax error
6815 _ACEOF
6816 if ac_fn_c_try_cpp "$LINENO"; then :
6817
6818 else
6819   # Broken: fails on valid input.
6820 continue
6821 fi
6822 rm -f conftest.err conftest.$ac_ext
6823
6824   # OK, works on sane cases.  Now check whether nonexistent headers
6825   # can be detected and how.
6826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h.  */
6828 #include <ac_nonexistent.h>
6829 _ACEOF
6830 if ac_fn_c_try_cpp "$LINENO"; then :
6831   # Broken: success on invalid input.
6832 continue
6833 else
6834   # Passes both tests.
6835 ac_preproc_ok=:
6836 break
6837 fi
6838 rm -f conftest.err conftest.$ac_ext
6839
6840 done
6841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6842 rm -f conftest.err conftest.$ac_ext
6843 if $ac_preproc_ok; then :
6844   break
6845 fi
6846
6847     done
6848     ac_cv_prog_CPP=$CPP
6849
6850 fi
6851   CPP=$ac_cv_prog_CPP
6852 else
6853   ac_cv_prog_CPP=$CPP
6854 fi
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6856 $as_echo "$CPP" >&6; }
6857 ac_preproc_ok=false
6858 for ac_c_preproc_warn_flag in '' yes
6859 do
6860   # Use a header file that comes with gcc, so configuring glibc
6861   # with a fresh cross-compiler works.
6862   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6863   # <limits.h> exists even on freestanding compilers.
6864   # On the NeXT, cc -E runs the code through the compiler's parser,
6865   # not just through cpp. "Syntax error" is here to catch this case.
6866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h.  */
6868 #ifdef __STDC__
6869 # include <limits.h>
6870 #else
6871 # include <assert.h>
6872 #endif
6873                      Syntax error
6874 _ACEOF
6875 if ac_fn_c_try_cpp "$LINENO"; then :
6876
6877 else
6878   # Broken: fails on valid input.
6879 continue
6880 fi
6881 rm -f conftest.err conftest.$ac_ext
6882
6883   # OK, works on sane cases.  Now check whether nonexistent headers
6884   # can be detected and how.
6885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h.  */
6887 #include <ac_nonexistent.h>
6888 _ACEOF
6889 if ac_fn_c_try_cpp "$LINENO"; then :
6890   # Broken: success on invalid input.
6891 continue
6892 else
6893   # Passes both tests.
6894 ac_preproc_ok=:
6895 break
6896 fi
6897 rm -f conftest.err conftest.$ac_ext
6898
6899 done
6900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6901 rm -f conftest.err conftest.$ac_ext
6902 if $ac_preproc_ok; then :
6903
6904 else
6905   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6907 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6908 See \`config.log' for more details." "$LINENO" 5; }
6909 fi
6910
6911 ac_ext=c
6912 ac_cpp='$CPP $CPPFLAGS'
6913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6916
6917
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6919 $as_echo_n "checking for ANSI C header files... " >&6; }
6920 if test "${ac_cv_header_stdc+set}" = set; then :
6921   $as_echo_n "(cached) " >&6
6922 else
6923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h.  */
6925 #include <stdlib.h>
6926 #include <stdarg.h>
6927 #include <string.h>
6928 #include <float.h>
6929
6930 int
6931 main ()
6932 {
6933
6934   ;
6935   return 0;
6936 }
6937 _ACEOF
6938 if ac_fn_c_try_compile "$LINENO"; then :
6939   ac_cv_header_stdc=yes
6940 else
6941   ac_cv_header_stdc=no
6942 fi
6943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944
6945 if test $ac_cv_header_stdc = yes; then
6946   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h.  */
6949 #include <string.h>
6950
6951 _ACEOF
6952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6953   $EGREP "memchr" >/dev/null 2>&1; then :
6954
6955 else
6956   ac_cv_header_stdc=no
6957 fi
6958 rm -f conftest*
6959
6960 fi
6961
6962 if test $ac_cv_header_stdc = yes; then
6963   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h.  */
6966 #include <stdlib.h>
6967
6968 _ACEOF
6969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6970   $EGREP "free" >/dev/null 2>&1; then :
6971
6972 else
6973   ac_cv_header_stdc=no
6974 fi
6975 rm -f conftest*
6976
6977 fi
6978
6979 if test $ac_cv_header_stdc = yes; then
6980   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6981   if test "$cross_compiling" = yes; then :
6982   :
6983 else
6984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h.  */
6986 #include <ctype.h>
6987 #include <stdlib.h>
6988 #if ((' ' & 0x0FF) == 0x020)
6989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6991 #else
6992 # define ISLOWER(c) \
6993                    (('a' <= (c) && (c) <= 'i') \
6994                      || ('j' <= (c) && (c) <= 'r') \
6995                      || ('s' <= (c) && (c) <= 'z'))
6996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6997 #endif
6998
6999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7000 int
7001 main ()
7002 {
7003   int i;
7004   for (i = 0; i < 256; i++)
7005     if (XOR (islower (i), ISLOWER (i))
7006         || toupper (i) != TOUPPER (i))
7007       return 2;
7008   return 0;
7009 }
7010 _ACEOF
7011 if ac_fn_c_try_run "$LINENO"; then :
7012
7013 else
7014   ac_cv_header_stdc=no
7015 fi
7016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7017   conftest.$ac_objext conftest.beam conftest.$ac_ext
7018 fi
7019
7020 fi
7021 fi
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7023 $as_echo "$ac_cv_header_stdc" >&6; }
7024 if test $ac_cv_header_stdc = yes; then
7025
7026 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7027
7028 fi
7029
7030 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7031 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7032                   inttypes.h stdint.h unistd.h
7033 do :
7034   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7035 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7036 "
7037 eval as_val=\$$as_ac_Header
7038    if test "x$as_val" = x""yes; then :
7039   cat >>confdefs.h <<_ACEOF
7040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7041 _ACEOF
7042
7043 fi
7044
7045 done
7046
7047
7048 for ac_header in dlfcn.h
7049 do :
7050   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7051 "
7052 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7053   cat >>confdefs.h <<_ACEOF
7054 #define HAVE_DLFCN_H 1
7055 _ACEOF
7056
7057 fi
7058
7059 done
7060
7061
7062
7063
7064
7065 # Set options
7066
7067
7068
7069         enable_dlopen=no
7070
7071
7072
7073             # Check whether --enable-shared was given.
7074 if test "${enable_shared+set}" = set; then :
7075   enableval=$enable_shared; p=${PACKAGE-default}
7076     case $enableval in
7077     yes) enable_shared=yes ;;
7078     no) enable_shared=no ;;
7079     *)
7080       enable_shared=no
7081       # Look at the argument we got.  We use all the common list separators.
7082       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7083       for pkg in $enableval; do
7084         IFS="$lt_save_ifs"
7085         if test "X$pkg" = "X$p"; then
7086           enable_shared=yes
7087         fi
7088       done
7089       IFS="$lt_save_ifs"
7090       ;;
7091     esac
7092 else
7093   enable_shared=yes
7094 fi
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104   # Check whether --enable-static was given.
7105 if test "${enable_static+set}" = set; then :
7106   enableval=$enable_static; p=${PACKAGE-default}
7107     case $enableval in
7108     yes) enable_static=yes ;;
7109     no) enable_static=no ;;
7110     *)
7111      enable_static=no
7112       # Look at the argument we got.  We use all the common list separators.
7113       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7114       for pkg in $enableval; do
7115         IFS="$lt_save_ifs"
7116         if test "X$pkg" = "X$p"; then
7117           enable_static=yes
7118         fi
7119       done
7120       IFS="$lt_save_ifs"
7121       ;;
7122     esac
7123 else
7124   enable_static=yes
7125 fi
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136 # Check whether --with-pic was given.
7137 if test "${with_pic+set}" = set; then :
7138   withval=$with_pic; pic_mode="$withval"
7139 else
7140   pic_mode=default
7141 fi
7142
7143
7144 test -z "$pic_mode" && pic_mode=default
7145
7146
7147
7148
7149
7150
7151
7152   # Check whether --enable-fast-install was given.
7153 if test "${enable_fast_install+set}" = set; then :
7154   enableval=$enable_fast_install; p=${PACKAGE-default}
7155     case $enableval in
7156     yes) enable_fast_install=yes ;;
7157     no) enable_fast_install=no ;;
7158     *)
7159       enable_fast_install=no
7160       # Look at the argument we got.  We use all the common list separators.
7161       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7162       for pkg in $enableval; do
7163         IFS="$lt_save_ifs"
7164         if test "X$pkg" = "X$p"; then
7165           enable_fast_install=yes
7166         fi
7167       done
7168       IFS="$lt_save_ifs"
7169       ;;
7170     esac
7171 else
7172   enable_fast_install=yes
7173 fi
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185 # This can be used to rebuild libtool when needed
7186 LIBTOOL_DEPS="$ltmain"
7187
7188 # Always use our own libtool.
7189 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216 test -z "$LN_S" && LN_S="ln -s"
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231 if test -n "${ZSH_VERSION+set}" ; then
7232    setopt NO_GLOB_SUBST
7233 fi
7234
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7236 $as_echo_n "checking for objdir... " >&6; }
7237 if test "${lt_cv_objdir+set}" = set; then :
7238   $as_echo_n "(cached) " >&6
7239 else
7240   rm -f .libs 2>/dev/null
7241 mkdir .libs 2>/dev/null
7242 if test -d .libs; then
7243   lt_cv_objdir=.libs
7244 else
7245   # MS-DOS does not allow filenames that begin with a dot.
7246   lt_cv_objdir=_libs
7247 fi
7248 rmdir .libs 2>/dev/null
7249 fi
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7251 $as_echo "$lt_cv_objdir" >&6; }
7252 objdir=$lt_cv_objdir
7253
7254
7255
7256
7257
7258 cat >>confdefs.h <<_ACEOF
7259 #define LT_OBJDIR "$lt_cv_objdir/"
7260 _ACEOF
7261
7262
7263
7264
7265 case $host_os in
7266 aix3*)
7267   # AIX sometimes has problems with the GCC collect2 program.  For some
7268   # reason, if we set the COLLECT_NAMES environment variable, the problems
7269   # vanish in a puff of smoke.
7270   if test "X${COLLECT_NAMES+set}" != Xset; then
7271     COLLECT_NAMES=
7272     export COLLECT_NAMES
7273   fi
7274   ;;
7275 esac
7276
7277 # Global variables:
7278 ofile=libtool
7279 can_build_shared=yes
7280
7281 # All known linkers require a `.a' archive for static linking (except MSVC,
7282 # which needs '.lib').
7283 libext=a
7284
7285 with_gnu_ld="$lt_cv_prog_gnu_ld"
7286
7287 old_CC="$CC"
7288 old_CFLAGS="$CFLAGS"
7289
7290 # Set sane defaults for various variables
7291 test -z "$CC" && CC=cc
7292 test -z "$LTCC" && LTCC=$CC
7293 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7294 test -z "$LD" && LD=ld
7295 test -z "$ac_objext" && ac_objext=o
7296
7297 for cc_temp in $compiler""; do
7298   case $cc_temp in
7299     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7300     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7301     \-*) ;;
7302     *) break;;
7303   esac
7304 done
7305 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7306
7307
7308 # Only perform the check for file, if the check method requires it
7309 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7310 case $deplibs_check_method in
7311 file_magic*)
7312   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7314 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7315 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7316   $as_echo_n "(cached) " >&6
7317 else
7318   case $MAGIC_CMD in
7319 [\\/*] |  ?:[\\/]*)
7320   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7321   ;;
7322 *)
7323   lt_save_MAGIC_CMD="$MAGIC_CMD"
7324   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7325   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7326   for ac_dir in $ac_dummy; do
7327     IFS="$lt_save_ifs"
7328     test -z "$ac_dir" && ac_dir=.
7329     if test -f $ac_dir/${ac_tool_prefix}file; then
7330       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7331       if test -n "$file_magic_test_file"; then
7332         case $deplibs_check_method in
7333         "file_magic "*)
7334           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7335           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7336           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7337             $EGREP "$file_magic_regex" > /dev/null; then
7338             :
7339           else
7340             cat <<_LT_EOF 1>&2
7341
7342 *** Warning: the command libtool uses to detect shared libraries,
7343 *** $file_magic_cmd, produces output that libtool cannot recognize.
7344 *** The result is that libtool may fail to recognize shared libraries
7345 *** as such.  This will affect the creation of libtool libraries that
7346 *** depend on shared libraries, but programs linked with such libtool
7347 *** libraries will work regardless of this problem.  Nevertheless, you
7348 *** may want to report the problem to your system manager and/or to
7349 *** bug-libtool@gnu.org
7350
7351 _LT_EOF
7352           fi ;;
7353         esac
7354       fi
7355       break
7356     fi
7357   done
7358   IFS="$lt_save_ifs"
7359   MAGIC_CMD="$lt_save_MAGIC_CMD"
7360   ;;
7361 esac
7362 fi
7363
7364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7365 if test -n "$MAGIC_CMD"; then
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7367 $as_echo "$MAGIC_CMD" >&6; }
7368 else
7369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7371 fi
7372
7373
7374
7375
7376
7377 if test -z "$lt_cv_path_MAGIC_CMD"; then
7378   if test -n "$ac_tool_prefix"; then
7379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7380 $as_echo_n "checking for file... " >&6; }
7381 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7382   $as_echo_n "(cached) " >&6
7383 else
7384   case $MAGIC_CMD in
7385 [\\/*] |  ?:[\\/]*)
7386   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7387   ;;
7388 *)
7389   lt_save_MAGIC_CMD="$MAGIC_CMD"
7390   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7391   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7392   for ac_dir in $ac_dummy; do
7393     IFS="$lt_save_ifs"
7394     test -z "$ac_dir" && ac_dir=.
7395     if test -f $ac_dir/file; then
7396       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7397       if test -n "$file_magic_test_file"; then
7398         case $deplibs_check_method in
7399         "file_magic "*)
7400           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7401           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7402           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7403             $EGREP "$file_magic_regex" > /dev/null; then
7404             :
7405           else
7406             cat <<_LT_EOF 1>&2
7407
7408 *** Warning: the command libtool uses to detect shared libraries,
7409 *** $file_magic_cmd, produces output that libtool cannot recognize.
7410 *** The result is that libtool may fail to recognize shared libraries
7411 *** as such.  This will affect the creation of libtool libraries that
7412 *** depend on shared libraries, but programs linked with such libtool
7413 *** libraries will work regardless of this problem.  Nevertheless, you
7414 *** may want to report the problem to your system manager and/or to
7415 *** bug-libtool@gnu.org
7416
7417 _LT_EOF
7418           fi ;;
7419         esac
7420       fi
7421       break
7422     fi
7423   done
7424   IFS="$lt_save_ifs"
7425   MAGIC_CMD="$lt_save_MAGIC_CMD"
7426   ;;
7427 esac
7428 fi
7429
7430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7431 if test -n "$MAGIC_CMD"; then
7432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7433 $as_echo "$MAGIC_CMD" >&6; }
7434 else
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7437 fi
7438
7439
7440   else
7441     MAGIC_CMD=:
7442   fi
7443 fi
7444
7445   fi
7446   ;;
7447 esac
7448
7449 # Use C for the default configuration in the libtool script
7450
7451 lt_save_CC="$CC"
7452 ac_ext=c
7453 ac_cpp='$CPP $CPPFLAGS'
7454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7457
7458
7459 # Source file extension for C test sources.
7460 ac_ext=c
7461
7462 # Object file extension for compiled C test sources.
7463 objext=o
7464 objext=$objext
7465
7466 # Code to be used in simple compile tests
7467 lt_simple_compile_test_code="int some_variable = 0;"
7468
7469 # Code to be used in simple link tests
7470 lt_simple_link_test_code='int main(){return(0);}'
7471
7472
7473
7474
7475
7476
7477
7478 # If no C compiler was specified, use CC.
7479 LTCC=${LTCC-"$CC"}
7480
7481 # If no C compiler flags were specified, use CFLAGS.
7482 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7483
7484 # Allow CC to be a program name with arguments.
7485 compiler=$CC
7486
7487 # Save the default compiler, since it gets overwritten when the other
7488 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7489 compiler_DEFAULT=$CC
7490
7491 # save warnings/boilerplate of simple test code
7492 ac_outfile=conftest.$ac_objext
7493 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7494 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7495 _lt_compiler_boilerplate=`cat conftest.err`
7496 $RM conftest*
7497
7498 ac_outfile=conftest.$ac_objext
7499 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7500 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7501 _lt_linker_boilerplate=`cat conftest.err`
7502 $RM -r conftest*
7503
7504
7505 ## CAVEAT EMPTOR:
7506 ## There is no encapsulation within the following macros, do not change
7507 ## the running order or otherwise move them around unless you know exactly
7508 ## what you are doing...
7509 if test -n "$compiler"; then
7510
7511 lt_prog_compiler_no_builtin_flag=
7512
7513 if test "$GCC" = yes; then
7514   case $cc_basename in
7515   nvcc*)
7516     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7517   *)
7518     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7519   esac
7520
7521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7522 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7523 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7524   $as_echo_n "(cached) " >&6
7525 else
7526   lt_cv_prog_compiler_rtti_exceptions=no
7527    ac_outfile=conftest.$ac_objext
7528    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7529    lt_compiler_flag="-fno-rtti -fno-exceptions"
7530    # Insert the option either (1) after the last *FLAGS variable, or
7531    # (2) before a word containing "conftest.", or (3) at the end.
7532    # Note that $ac_compile itself does not contain backslashes and begins
7533    # with a dollar sign (not a hyphen), so the echo should work correctly.
7534    # The option is referenced via a variable to avoid confusing sed.
7535    lt_compile=`echo "$ac_compile" | $SED \
7536    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7537    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7538    -e 's:$: $lt_compiler_flag:'`
7539    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7540    (eval "$lt_compile" 2>conftest.err)
7541    ac_status=$?
7542    cat conftest.err >&5
7543    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544    if (exit $ac_status) && test -s "$ac_outfile"; then
7545      # The compiler can only warn and ignore the option if not recognized
7546      # So say no if there are warnings other than the usual output.
7547      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7548      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7549      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7550        lt_cv_prog_compiler_rtti_exceptions=yes
7551      fi
7552    fi
7553    $RM conftest*
7554
7555 fi
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7557 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7558
7559 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7560     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7561 else
7562     :
7563 fi
7564
7565 fi
7566
7567
7568
7569
7570
7571
7572   lt_prog_compiler_wl=
7573 lt_prog_compiler_pic=
7574 lt_prog_compiler_static=
7575
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7577 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7578
7579   if test "$GCC" = yes; then
7580     lt_prog_compiler_wl='-Wl,'
7581     lt_prog_compiler_static='-static'
7582
7583     case $host_os in
7584       aix*)
7585       # All AIX code is PIC.
7586       if test "$host_cpu" = ia64; then
7587         # AIX 5 now supports IA64 processor
7588         lt_prog_compiler_static='-Bstatic'
7589       fi
7590       ;;
7591
7592     amigaos*)
7593       case $host_cpu in
7594       powerpc)
7595             # see comment about AmigaOS4 .so support
7596             lt_prog_compiler_pic='-fPIC'
7597         ;;
7598       m68k)
7599             # FIXME: we need at least 68020 code to build shared libraries, but
7600             # adding the `-m68020' flag to GCC prevents building anything better,
7601             # like `-m68040'.
7602             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7603         ;;
7604       esac
7605       ;;
7606
7607     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7608       # PIC is the default for these OSes.
7609       ;;
7610
7611     mingw* | cygwin* | pw32* | os2* | cegcc*)
7612       # This hack is so that the source file can tell whether it is being
7613       # built for inclusion in a dll (and should export symbols for example).
7614       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7615       # (--disable-auto-import) libraries
7616       lt_prog_compiler_pic='-DDLL_EXPORT'
7617       ;;
7618
7619     darwin* | rhapsody*)
7620       # PIC is the default on this platform
7621       # Common symbols not allowed in MH_DYLIB files
7622       lt_prog_compiler_pic='-fno-common'
7623       ;;
7624
7625     haiku*)
7626       # PIC is the default for Haiku.
7627       # The "-static" flag exists, but is broken.
7628       lt_prog_compiler_static=
7629       ;;
7630
7631     hpux*)
7632       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7633       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7634       # sets the default TLS model and affects inlining.
7635       case $host_cpu in
7636       hppa*64*)
7637         # +Z the default
7638         ;;
7639       *)
7640         lt_prog_compiler_pic='-fPIC'
7641         ;;
7642       esac
7643       ;;
7644
7645     interix[3-9]*)
7646       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7647       # Instead, we relocate shared libraries at runtime.
7648       ;;
7649
7650     msdosdjgpp*)
7651       # Just because we use GCC doesn't mean we suddenly get shared libraries
7652       # on systems that don't support them.
7653       lt_prog_compiler_can_build_shared=no
7654       enable_shared=no
7655       ;;
7656
7657     *nto* | *qnx*)
7658       # QNX uses GNU C++, but need to define -shared option too, otherwise
7659       # it will coredump.
7660       lt_prog_compiler_pic='-fPIC -shared'
7661       ;;
7662
7663     sysv4*MP*)
7664       if test -d /usr/nec; then
7665         lt_prog_compiler_pic=-Kconform_pic
7666       fi
7667       ;;
7668
7669     *)
7670       lt_prog_compiler_pic='-fPIC'
7671       ;;
7672     esac
7673
7674     case $cc_basename in
7675     nvcc*) # Cuda Compiler Driver 2.2
7676       lt_prog_compiler_wl='-Xlinker '
7677       lt_prog_compiler_pic='-Xcompiler -fPIC'
7678       ;;
7679     esac
7680   else
7681     # PORTME Check for flag to pass linker flags through the system compiler.
7682     case $host_os in
7683     aix*)
7684       lt_prog_compiler_wl='-Wl,'
7685       if test "$host_cpu" = ia64; then
7686         # AIX 5 now supports IA64 processor
7687         lt_prog_compiler_static='-Bstatic'
7688       else
7689         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7690       fi
7691       ;;
7692
7693     mingw* | cygwin* | pw32* | os2* | cegcc*)
7694       # This hack is so that the source file can tell whether it is being
7695       # built for inclusion in a dll (and should export symbols for example).
7696       lt_prog_compiler_pic='-DDLL_EXPORT'
7697       ;;
7698
7699     hpux9* | hpux10* | hpux11*)
7700       lt_prog_compiler_wl='-Wl,'
7701       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7702       # not for PA HP-UX.
7703       case $host_cpu in
7704       hppa*64*|ia64*)
7705         # +Z the default
7706         ;;
7707       *)
7708         lt_prog_compiler_pic='+Z'
7709         ;;
7710       esac
7711       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7712       lt_prog_compiler_static='${wl}-a ${wl}archive'
7713       ;;
7714
7715     irix5* | irix6* | nonstopux*)
7716       lt_prog_compiler_wl='-Wl,'
7717       # PIC (with -KPIC) is the default.
7718       lt_prog_compiler_static='-non_shared'
7719       ;;
7720
7721     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7722       case $cc_basename in
7723       # old Intel for x86_64 which still supported -KPIC.
7724       ecc*)
7725         lt_prog_compiler_wl='-Wl,'
7726         lt_prog_compiler_pic='-KPIC'
7727         lt_prog_compiler_static='-static'
7728         ;;
7729       # icc used to be incompatible with GCC.
7730       # ICC 10 doesn't accept -KPIC any more.
7731       icc* | ifort*)
7732         lt_prog_compiler_wl='-Wl,'
7733         lt_prog_compiler_pic='-fPIC'
7734         lt_prog_compiler_static='-static'
7735         ;;
7736       # Lahey Fortran 8.1.
7737       lf95*)
7738         lt_prog_compiler_wl='-Wl,'
7739         lt_prog_compiler_pic='--shared'
7740         lt_prog_compiler_static='--static'
7741         ;;
7742       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7743         # Portland Group compilers (*not* the Pentium gcc compiler,
7744         # which looks to be a dead project)
7745         lt_prog_compiler_wl='-Wl,'
7746         lt_prog_compiler_pic='-fpic'
7747         lt_prog_compiler_static='-Bstatic'
7748         ;;
7749       ccc*)
7750         lt_prog_compiler_wl='-Wl,'
7751         # All Alpha code is PIC.
7752         lt_prog_compiler_static='-non_shared'
7753         ;;
7754       xl* | bgxl* | bgf* | mpixl*)
7755         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7756         lt_prog_compiler_wl='-Wl,'
7757         lt_prog_compiler_pic='-qpic'
7758         lt_prog_compiler_static='-qstaticlink'
7759         ;;
7760       *)
7761         case `$CC -V 2>&1 | sed 5q` in
7762         *Sun\ F* | *Sun*Fortran*)
7763           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7764           lt_prog_compiler_pic='-KPIC'
7765           lt_prog_compiler_static='-Bstatic'
7766           lt_prog_compiler_wl=''
7767           ;;
7768         *Sun\ C*)
7769           # Sun C 5.9
7770           lt_prog_compiler_pic='-KPIC'
7771           lt_prog_compiler_static='-Bstatic'
7772           lt_prog_compiler_wl='-Wl,'
7773           ;;
7774         esac
7775         ;;
7776       esac
7777       ;;
7778
7779     newsos6)
7780       lt_prog_compiler_pic='-KPIC'
7781       lt_prog_compiler_static='-Bstatic'
7782       ;;
7783
7784     *nto* | *qnx*)
7785       # QNX uses GNU C++, but need to define -shared option too, otherwise
7786       # it will coredump.
7787       lt_prog_compiler_pic='-fPIC -shared'
7788       ;;
7789
7790     osf3* | osf4* | osf5*)
7791       lt_prog_compiler_wl='-Wl,'
7792       # All OSF/1 code is PIC.
7793       lt_prog_compiler_static='-non_shared'
7794       ;;
7795
7796     rdos*)
7797       lt_prog_compiler_static='-non_shared'
7798       ;;
7799
7800     solaris*)
7801       lt_prog_compiler_pic='-KPIC'
7802       lt_prog_compiler_static='-Bstatic'
7803       case $cc_basename in
7804       f77* | f90* | f95*)
7805         lt_prog_compiler_wl='-Qoption ld ';;
7806       *)
7807         lt_prog_compiler_wl='-Wl,';;
7808       esac
7809       ;;
7810
7811     sunos4*)
7812       lt_prog_compiler_wl='-Qoption ld '
7813       lt_prog_compiler_pic='-PIC'
7814       lt_prog_compiler_static='-Bstatic'
7815       ;;
7816
7817     sysv4 | sysv4.2uw2* | sysv4.3*)
7818       lt_prog_compiler_wl='-Wl,'
7819       lt_prog_compiler_pic='-KPIC'
7820       lt_prog_compiler_static='-Bstatic'
7821       ;;
7822
7823     sysv4*MP*)
7824       if test -d /usr/nec ;then
7825         lt_prog_compiler_pic='-Kconform_pic'
7826         lt_prog_compiler_static='-Bstatic'
7827       fi
7828       ;;
7829
7830     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7831       lt_prog_compiler_wl='-Wl,'
7832       lt_prog_compiler_pic='-KPIC'
7833       lt_prog_compiler_static='-Bstatic'
7834       ;;
7835
7836     unicos*)
7837       lt_prog_compiler_wl='-Wl,'
7838       lt_prog_compiler_can_build_shared=no
7839       ;;
7840
7841     uts4*)
7842       lt_prog_compiler_pic='-pic'
7843       lt_prog_compiler_static='-Bstatic'
7844       ;;
7845
7846     *)
7847       lt_prog_compiler_can_build_shared=no
7848       ;;
7849     esac
7850   fi
7851
7852 case $host_os in
7853   # For platforms which do not support PIC, -DPIC is meaningless:
7854   *djgpp*)
7855     lt_prog_compiler_pic=
7856     ;;
7857   *)
7858     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7859     ;;
7860 esac
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7862 $as_echo "$lt_prog_compiler_pic" >&6; }
7863
7864
7865
7866
7867
7868
7869 #
7870 # Check to make sure the PIC flag actually works.
7871 #
7872 if test -n "$lt_prog_compiler_pic"; then
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7874 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7875 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7876   $as_echo_n "(cached) " >&6
7877 else
7878   lt_cv_prog_compiler_pic_works=no
7879    ac_outfile=conftest.$ac_objext
7880    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7881    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7882    # Insert the option either (1) after the last *FLAGS variable, or
7883    # (2) before a word containing "conftest.", or (3) at the end.
7884    # Note that $ac_compile itself does not contain backslashes and begins
7885    # with a dollar sign (not a hyphen), so the echo should work correctly.
7886    # The option is referenced via a variable to avoid confusing sed.
7887    lt_compile=`echo "$ac_compile" | $SED \
7888    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7890    -e 's:$: $lt_compiler_flag:'`
7891    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7892    (eval "$lt_compile" 2>conftest.err)
7893    ac_status=$?
7894    cat conftest.err >&5
7895    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896    if (exit $ac_status) && test -s "$ac_outfile"; then
7897      # The compiler can only warn and ignore the option if not recognized
7898      # So say no if there are warnings other than the usual output.
7899      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7900      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7901      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7902        lt_cv_prog_compiler_pic_works=yes
7903      fi
7904    fi
7905    $RM conftest*
7906
7907 fi
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7909 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7910
7911 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7912     case $lt_prog_compiler_pic in
7913      "" | " "*) ;;
7914      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7915      esac
7916 else
7917     lt_prog_compiler_pic=
7918      lt_prog_compiler_can_build_shared=no
7919 fi
7920
7921 fi
7922
7923
7924
7925
7926
7927
7928 #
7929 # Check to make sure the static flag actually works.
7930 #
7931 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7933 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7934 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7935   $as_echo_n "(cached) " >&6
7936 else
7937   lt_cv_prog_compiler_static_works=no
7938    save_LDFLAGS="$LDFLAGS"
7939    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7940    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7941    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7942      # The linker can only warn and ignore the option if not recognized
7943      # So say no if there are warnings
7944      if test -s conftest.err; then
7945        # Append any errors to the config.log.
7946        cat conftest.err 1>&5
7947        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7948        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7949        if diff conftest.exp conftest.er2 >/dev/null; then
7950          lt_cv_prog_compiler_static_works=yes
7951        fi
7952      else
7953        lt_cv_prog_compiler_static_works=yes
7954      fi
7955    fi
7956    $RM -r conftest*
7957    LDFLAGS="$save_LDFLAGS"
7958
7959 fi
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7961 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7962
7963 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7964     :
7965 else
7966     lt_prog_compiler_static=
7967 fi
7968
7969
7970
7971
7972
7973
7974
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7976 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7977 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7978   $as_echo_n "(cached) " >&6
7979 else
7980   lt_cv_prog_compiler_c_o=no
7981    $RM -r conftest 2>/dev/null
7982    mkdir conftest
7983    cd conftest
7984    mkdir out
7985    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7986
7987    lt_compiler_flag="-o out/conftest2.$ac_objext"
7988    # Insert the option either (1) after the last *FLAGS variable, or
7989    # (2) before a word containing "conftest.", or (3) at the end.
7990    # Note that $ac_compile itself does not contain backslashes and begins
7991    # with a dollar sign (not a hyphen), so the echo should work correctly.
7992    lt_compile=`echo "$ac_compile" | $SED \
7993    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7994    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7995    -e 's:$: $lt_compiler_flag:'`
7996    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7997    (eval "$lt_compile" 2>out/conftest.err)
7998    ac_status=$?
7999    cat out/conftest.err >&5
8000    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8002    then
8003      # The compiler can only warn and ignore the option if not recognized
8004      # So say no if there are warnings
8005      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8006      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8007      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8008        lt_cv_prog_compiler_c_o=yes
8009      fi
8010    fi
8011    chmod u+w . 2>&5
8012    $RM conftest*
8013    # SGI C++ compiler will create directory out/ii_files/ for
8014    # template instantiation
8015    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8016    $RM out/* && rmdir out
8017    cd ..
8018    $RM -r conftest
8019    $RM conftest*
8020
8021 fi
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8023 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8024
8025
8026
8027
8028
8029
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8031 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8032 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035   lt_cv_prog_compiler_c_o=no
8036    $RM -r conftest 2>/dev/null
8037    mkdir conftest
8038    cd conftest
8039    mkdir out
8040    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8041
8042    lt_compiler_flag="-o out/conftest2.$ac_objext"
8043    # Insert the option either (1) after the last *FLAGS variable, or
8044    # (2) before a word containing "conftest.", or (3) at the end.
8045    # Note that $ac_compile itself does not contain backslashes and begins
8046    # with a dollar sign (not a hyphen), so the echo should work correctly.
8047    lt_compile=`echo "$ac_compile" | $SED \
8048    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8049    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8050    -e 's:$: $lt_compiler_flag:'`
8051    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8052    (eval "$lt_compile" 2>out/conftest.err)
8053    ac_status=$?
8054    cat out/conftest.err >&5
8055    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8057    then
8058      # The compiler can only warn and ignore the option if not recognized
8059      # So say no if there are warnings
8060      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8061      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8062      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8063        lt_cv_prog_compiler_c_o=yes
8064      fi
8065    fi
8066    chmod u+w . 2>&5
8067    $RM conftest*
8068    # SGI C++ compiler will create directory out/ii_files/ for
8069    # template instantiation
8070    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8071    $RM out/* && rmdir out
8072    cd ..
8073    $RM -r conftest
8074    $RM conftest*
8075
8076 fi
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8078 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8079
8080
8081
8082
8083 hard_links="nottested"
8084 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8085   # do not overwrite the value of need_locks provided by the user
8086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8087 $as_echo_n "checking if we can lock with hard links... " >&6; }
8088   hard_links=yes
8089   $RM conftest*
8090   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8091   touch conftest.a
8092   ln conftest.a conftest.b 2>&5 || hard_links=no
8093   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8095 $as_echo "$hard_links" >&6; }
8096   if test "$hard_links" = no; then
8097     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8098 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8099     need_locks=warn
8100   fi
8101 else
8102   need_locks=no
8103 fi
8104
8105
8106
8107
8108
8109
8110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8111 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8112
8113   runpath_var=
8114   allow_undefined_flag=
8115   always_export_symbols=no
8116   archive_cmds=
8117   archive_expsym_cmds=
8118   compiler_needs_object=no
8119   enable_shared_with_static_runtimes=no
8120   export_dynamic_flag_spec=
8121   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8122   hardcode_automatic=no
8123   hardcode_direct=no
8124   hardcode_direct_absolute=no
8125   hardcode_libdir_flag_spec=
8126   hardcode_libdir_flag_spec_ld=
8127   hardcode_libdir_separator=
8128   hardcode_minus_L=no
8129   hardcode_shlibpath_var=unsupported
8130   inherit_rpath=no
8131   link_all_deplibs=unknown
8132   module_cmds=
8133   module_expsym_cmds=
8134   old_archive_from_new_cmds=
8135   old_archive_from_expsyms_cmds=
8136   thread_safe_flag_spec=
8137   whole_archive_flag_spec=
8138   # include_expsyms should be a list of space-separated symbols to be *always*
8139   # included in the symbol list
8140   include_expsyms=
8141   # exclude_expsyms can be an extended regexp of symbols to exclude
8142   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8143   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8144   # as well as any symbol that contains `d'.
8145   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8146   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8147   # platforms (ab)use it in PIC code, but their linkers get confused if
8148   # the symbol is explicitly referenced.  Since portable code cannot
8149   # rely on this symbol name, it's probably fine to never include it in
8150   # preloaded symbol tables.
8151   # Exclude shared library initialization/finalization symbols.
8152   extract_expsyms_cmds=
8153
8154   case $host_os in
8155   cygwin* | mingw* | pw32* | cegcc*)
8156     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8157     # When not using gcc, we currently assume that we are using
8158     # Microsoft Visual C++.
8159     if test "$GCC" != yes; then
8160       with_gnu_ld=no
8161     fi
8162     ;;
8163   interix*)
8164     # we just hope/assume this is gcc and not c89 (= MSVC++)
8165     with_gnu_ld=yes
8166     ;;
8167   openbsd*)
8168     with_gnu_ld=no
8169     ;;
8170   esac
8171
8172   ld_shlibs=yes
8173
8174   # On some targets, GNU ld is compatible enough with the native linker
8175   # that we're better off using the native interface for both.
8176   lt_use_gnu_ld_interface=no
8177   if test "$with_gnu_ld" = yes; then
8178     case $host_os in
8179       aix*)
8180         # The AIX port of GNU ld has always aspired to compatibility
8181         # with the native linker.  However, as the warning in the GNU ld
8182         # block says, versions before 2.19.5* couldn't really create working
8183         # shared libraries, regardless of the interface used.
8184         case `$LD -v 2>&1` in
8185           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8186           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8187           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8188           *)
8189             lt_use_gnu_ld_interface=yes
8190             ;;
8191         esac
8192         ;;
8193       *)
8194         lt_use_gnu_ld_interface=yes
8195         ;;
8196     esac
8197   fi
8198
8199   if test "$lt_use_gnu_ld_interface" = yes; then
8200     # If archive_cmds runs LD, not CC, wlarc should be empty
8201     wlarc='${wl}'
8202
8203     # Set some defaults for GNU ld with shared library support. These
8204     # are reset later if shared libraries are not supported. Putting them
8205     # here allows them to be overridden if necessary.
8206     runpath_var=LD_RUN_PATH
8207     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8208     export_dynamic_flag_spec='${wl}--export-dynamic'
8209     # ancient GNU ld didn't support --whole-archive et. al.
8210     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8211       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8212     else
8213       whole_archive_flag_spec=
8214     fi
8215     supports_anon_versioning=no
8216     case `$LD -v 2>&1` in
8217       *GNU\ gold*) supports_anon_versioning=yes ;;
8218       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8219       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8220       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8221       *\ 2.11.*) ;; # other 2.11 versions
8222       *) supports_anon_versioning=yes ;;
8223     esac
8224
8225     # See if GNU ld supports shared libraries.
8226     case $host_os in
8227     aix[3-9]*)
8228       # On AIX/PPC, the GNU linker is very broken
8229       if test "$host_cpu" != ia64; then
8230         ld_shlibs=no
8231         cat <<_LT_EOF 1>&2
8232
8233 *** Warning: the GNU linker, at least up to release 2.19, is reported
8234 *** to be unable to reliably create shared libraries on AIX.
8235 *** Therefore, libtool is disabling shared libraries support.  If you
8236 *** really care for shared libraries, you may want to install binutils
8237 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8238 *** You will then need to restart the configuration process.
8239
8240 _LT_EOF
8241       fi
8242       ;;
8243
8244     amigaos*)
8245       case $host_cpu in
8246       powerpc)
8247             # see comment about AmigaOS4 .so support
8248             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8249             archive_expsym_cmds=''
8250         ;;
8251       m68k)
8252             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)'
8253             hardcode_libdir_flag_spec='-L$libdir'
8254             hardcode_minus_L=yes
8255         ;;
8256       esac
8257       ;;
8258
8259     beos*)
8260       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8261         allow_undefined_flag=unsupported
8262         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8263         # support --undefined.  This deserves some investigation.  FIXME
8264         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265       else
8266         ld_shlibs=no
8267       fi
8268       ;;
8269
8270     cygwin* | mingw* | pw32* | cegcc*)
8271       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8272       # as there is no search path for DLLs.
8273       hardcode_libdir_flag_spec='-L$libdir'
8274       export_dynamic_flag_spec='${wl}--export-all-symbols'
8275       allow_undefined_flag=unsupported
8276       always_export_symbols=no
8277       enable_shared_with_static_runtimes=yes
8278       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8279
8280       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8281         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8282         # If the export-symbols file already is a .def file (1st line
8283         # is EXPORTS), use it as is; otherwise, prepend...
8284         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8285           cp $export_symbols $output_objdir/$soname.def;
8286         else
8287           echo EXPORTS > $output_objdir/$soname.def;
8288           cat $export_symbols >> $output_objdir/$soname.def;
8289         fi~
8290         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8291       else
8292         ld_shlibs=no
8293       fi
8294       ;;
8295
8296     haiku*)
8297       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8298       link_all_deplibs=yes
8299       ;;
8300
8301     interix[3-9]*)
8302       hardcode_direct=no
8303       hardcode_shlibpath_var=no
8304       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8305       export_dynamic_flag_spec='${wl}-E'
8306       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8307       # Instead, shared libraries are loaded at an image base (0x10000000 by
8308       # default) and relocated if they conflict, which is a slow very memory
8309       # consuming and fragmenting process.  To avoid this, we pick a random,
8310       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8311       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8312       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8313       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'
8314       ;;
8315
8316     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8317       tmp_diet=no
8318       if test "$host_os" = linux-dietlibc; then
8319         case $cc_basename in
8320           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8321         esac
8322       fi
8323       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8324          && test "$tmp_diet" = no
8325       then
8326         tmp_addflag=
8327         tmp_sharedflag='-shared'
8328         case $cc_basename,$host_cpu in
8329         pgcc*)                          # Portland Group C compiler
8330           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'
8331           tmp_addflag=' $pic_flag'
8332           ;;
8333         pgf77* | pgf90* | pgf95* | pgfortran*)
8334                                         # Portland Group f77 and f90 compilers
8335           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'
8336           tmp_addflag=' $pic_flag -Mnomain' ;;
8337         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8338           tmp_addflag=' -i_dynamic' ;;
8339         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8340           tmp_addflag=' -i_dynamic -nofor_main' ;;
8341         ifc* | ifort*)                  # Intel Fortran compiler
8342           tmp_addflag=' -nofor_main' ;;
8343         lf95*)                          # Lahey Fortran 8.1
8344           whole_archive_flag_spec=
8345           tmp_sharedflag='--shared' ;;
8346         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8347           tmp_sharedflag='-qmkshrobj'
8348           tmp_addflag= ;;
8349         nvcc*)  # Cuda Compiler Driver 2.2
8350           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'
8351           compiler_needs_object=yes
8352           ;;
8353         esac
8354         case `$CC -V 2>&1 | sed 5q` in
8355         *Sun\ C*)                       # Sun C 5.9
8356           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'
8357           compiler_needs_object=yes
8358           tmp_sharedflag='-G' ;;
8359         *Sun\ F*)                       # Sun Fortran 8.3
8360           tmp_sharedflag='-G' ;;
8361         esac
8362         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363
8364         if test "x$supports_anon_versioning" = xyes; then
8365           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8366             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8367             echo "local: *; };" >> $output_objdir/$libname.ver~
8368             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8369         fi
8370
8371         case $cc_basename in
8372         xlf* | bgf* | bgxlf* | mpixlf*)
8373           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8374           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8375           hardcode_libdir_flag_spec=
8376           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8377           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8378           if test "x$supports_anon_versioning" = xyes; then
8379             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8380               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8381               echo "local: *; };" >> $output_objdir/$libname.ver~
8382               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8383           fi
8384           ;;
8385         esac
8386       else
8387         ld_shlibs=no
8388       fi
8389       ;;
8390
8391     netbsd*)
8392       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8393         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8394         wlarc=
8395       else
8396         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8397         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8398       fi
8399       ;;
8400
8401     solaris*)
8402       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8403         ld_shlibs=no
8404         cat <<_LT_EOF 1>&2
8405
8406 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8407 *** create shared libraries on Solaris systems.  Therefore, libtool
8408 *** is disabling shared libraries support.  We urge you to upgrade GNU
8409 *** binutils to release 2.9.1 or newer.  Another option is to modify
8410 *** your PATH or compiler configuration so that the native linker is
8411 *** used, and then restart.
8412
8413 _LT_EOF
8414       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8415         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8416         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8417       else
8418         ld_shlibs=no
8419       fi
8420       ;;
8421
8422     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8423       case `$LD -v 2>&1` in
8424         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8425         ld_shlibs=no
8426         cat <<_LT_EOF 1>&2
8427
8428 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8429 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8430 *** is disabling shared libraries support.  We urge you to upgrade GNU
8431 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8432 *** your PATH or compiler configuration so that the native linker is
8433 *** used, and then restart.
8434
8435 _LT_EOF
8436         ;;
8437         *)
8438           # For security reasons, it is highly recommended that you always
8439           # use absolute paths for naming shared libraries, and exclude the
8440           # DT_RUNPATH tag from executables and libraries.  But doing so
8441           # requires that you compile everything twice, which is a pain.
8442           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8443             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8444             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8445             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8446           else
8447             ld_shlibs=no
8448           fi
8449         ;;
8450       esac
8451       ;;
8452
8453     sunos4*)
8454       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8455       wlarc=
8456       hardcode_direct=yes
8457       hardcode_shlibpath_var=no
8458       ;;
8459
8460     *)
8461       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8462         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8463         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8464       else
8465         ld_shlibs=no
8466       fi
8467       ;;
8468     esac
8469
8470     if test "$ld_shlibs" = no; then
8471       runpath_var=
8472       hardcode_libdir_flag_spec=
8473       export_dynamic_flag_spec=
8474       whole_archive_flag_spec=
8475     fi
8476   else
8477     # PORTME fill in a description of your system's linker (not GNU ld)
8478     case $host_os in
8479     aix3*)
8480       allow_undefined_flag=unsupported
8481       always_export_symbols=yes
8482       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'
8483       # Note: this linker hardcodes the directories in LIBPATH if there
8484       # are no directories specified by -L.
8485       hardcode_minus_L=yes
8486       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8487         # Neither direct hardcoding nor static linking is supported with a
8488         # broken collect2.
8489         hardcode_direct=unsupported
8490       fi
8491       ;;
8492
8493     aix[4-9]*)
8494       if test "$host_cpu" = ia64; then
8495         # On IA64, the linker does run time linking by default, so we don't
8496         # have to do anything special.
8497         aix_use_runtimelinking=no
8498         exp_sym_flag='-Bexport'
8499         no_entry_flag=""
8500       else
8501         # If we're using GNU nm, then we don't want the "-C" option.
8502         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8503         # Also, AIX nm treats weak defined symbols like other global
8504         # defined symbols, whereas GNU nm marks them as "W".
8505         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8506           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'
8507         else
8508           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8509         fi
8510         aix_use_runtimelinking=no
8511
8512         # Test if we are trying to use run time linking or normal
8513         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8514         # need to do runtime linking.
8515         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8516           for ld_flag in $LDFLAGS; do
8517           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8518             aix_use_runtimelinking=yes
8519             break
8520           fi
8521           done
8522           ;;
8523         esac
8524
8525         exp_sym_flag='-bexport'
8526         no_entry_flag='-bnoentry'
8527       fi
8528
8529       # When large executables or shared objects are built, AIX ld can
8530       # have problems creating the table of contents.  If linking a library
8531       # or program results in "error TOC overflow" add -mminimal-toc to
8532       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8533       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8534
8535       archive_cmds=''
8536       hardcode_direct=yes
8537       hardcode_direct_absolute=yes
8538       hardcode_libdir_separator=':'
8539       link_all_deplibs=yes
8540       file_list_spec='${wl}-f,'
8541
8542       if test "$GCC" = yes; then
8543         case $host_os in aix4.[012]|aix4.[012].*)
8544         # We only want to do this on AIX 4.2 and lower, the check
8545         # below for broken collect2 doesn't work under 4.3+
8546           collect2name=`${CC} -print-prog-name=collect2`
8547           if test -f "$collect2name" &&
8548            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8549           then
8550           # We have reworked collect2
8551           :
8552           else
8553           # We have old collect2
8554           hardcode_direct=unsupported
8555           # It fails to find uninstalled libraries when the uninstalled
8556           # path is not listed in the libpath.  Setting hardcode_minus_L
8557           # to unsupported forces relinking
8558           hardcode_minus_L=yes
8559           hardcode_libdir_flag_spec='-L$libdir'
8560           hardcode_libdir_separator=
8561           fi
8562           ;;
8563         esac
8564         shared_flag='-shared'
8565         if test "$aix_use_runtimelinking" = yes; then
8566           shared_flag="$shared_flag "'${wl}-G'
8567         fi
8568       else
8569         # not using gcc
8570         if test "$host_cpu" = ia64; then
8571         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8572         # chokes on -Wl,-G. The following line is correct:
8573           shared_flag='-G'
8574         else
8575           if test "$aix_use_runtimelinking" = yes; then
8576             shared_flag='${wl}-G'
8577           else
8578             shared_flag='${wl}-bM:SRE'
8579           fi
8580         fi
8581       fi
8582
8583       export_dynamic_flag_spec='${wl}-bexpall'
8584       # It seems that -bexpall does not export symbols beginning with
8585       # underscore (_), so it is better to generate a list of symbols to export.
8586       always_export_symbols=yes
8587       if test "$aix_use_runtimelinking" = yes; then
8588         # Warning - without using the other runtime loading flags (-brtl),
8589         # -berok will link without error, but may produce a broken library.
8590         allow_undefined_flag='-berok'
8591         # Determine the default libpath from the value encoded in an
8592         # empty executable.
8593         if test x$gcc_no_link = xyes; then
8594   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8595 fi
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h.  */
8598
8599 int
8600 main ()
8601 {
8602
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 if ac_fn_c_try_link "$LINENO"; then :
8608
8609 lt_aix_libpath_sed='
8610     /Import File Strings/,/^$/ {
8611         /^0/ {
8612             s/^0  *\(.*\)$/\1/
8613             p
8614         }
8615     }'
8616 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8617 # Check for a 64-bit object if we didn't find anything.
8618 if test -z "$aix_libpath"; then
8619   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8620 fi
8621 fi
8622 rm -f core conftest.err conftest.$ac_objext \
8623     conftest$ac_exeext conftest.$ac_ext
8624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8625
8626         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8627         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"
8628       else
8629         if test "$host_cpu" = ia64; then
8630           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8631           allow_undefined_flag="-z nodefs"
8632           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"
8633         else
8634          # Determine the default libpath from the value encoded in an
8635          # empty executable.
8636          if test x$gcc_no_link = xyes; then
8637   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8638 fi
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h.  */
8641
8642 int
8643 main ()
8644 {
8645
8646   ;
8647   return 0;
8648 }
8649 _ACEOF
8650 if ac_fn_c_try_link "$LINENO"; then :
8651
8652 lt_aix_libpath_sed='
8653     /Import File Strings/,/^$/ {
8654         /^0/ {
8655             s/^0  *\(.*\)$/\1/
8656             p
8657         }
8658     }'
8659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8660 # Check for a 64-bit object if we didn't find anything.
8661 if test -z "$aix_libpath"; then
8662   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8663 fi
8664 fi
8665 rm -f core conftest.err conftest.$ac_objext \
8666     conftest$ac_exeext conftest.$ac_ext
8667 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8668
8669          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8670           # Warning - without using the other run time loading flags,
8671           # -berok will link without error, but may produce a broken library.
8672           no_undefined_flag=' ${wl}-bernotok'
8673           allow_undefined_flag=' ${wl}-berok'
8674           if test "$with_gnu_ld" = yes; then
8675             # We only use this code for GNU lds that support --whole-archive.
8676             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8677           else
8678             # Exported symbols can be pulled into shared objects from archives
8679             whole_archive_flag_spec='$convenience'
8680           fi
8681           archive_cmds_need_lc=yes
8682           # This is similar to how AIX traditionally builds its shared libraries.
8683           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'
8684         fi
8685       fi
8686       ;;
8687
8688     amigaos*)
8689       case $host_cpu in
8690       powerpc)
8691             # see comment about AmigaOS4 .so support
8692             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693             archive_expsym_cmds=''
8694         ;;
8695       m68k)
8696             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)'
8697             hardcode_libdir_flag_spec='-L$libdir'
8698             hardcode_minus_L=yes
8699         ;;
8700       esac
8701       ;;
8702
8703     bsdi[45]*)
8704       export_dynamic_flag_spec=-rdynamic
8705       ;;
8706
8707     cygwin* | mingw* | pw32* | cegcc*)
8708       # When not using gcc, we currently assume that we are using
8709       # Microsoft Visual C++.
8710       # hardcode_libdir_flag_spec is actually meaningless, as there is
8711       # no search path for DLLs.
8712       hardcode_libdir_flag_spec=' '
8713       allow_undefined_flag=unsupported
8714       # Tell ltmain to make .lib files, not .a files.
8715       libext=lib
8716       # Tell ltmain to make .dll files, not .so files.
8717       shrext_cmds=".dll"
8718       # FIXME: Setting linknames here is a bad hack.
8719       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8720       # The linker will automatically build a .lib file if we build a DLL.
8721       old_archive_from_new_cmds='true'
8722       # FIXME: Should let the user specify the lib program.
8723       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8724       fix_srcfile_path='`cygpath -w "$srcfile"`'
8725       enable_shared_with_static_runtimes=yes
8726       ;;
8727
8728     darwin* | rhapsody*)
8729
8730
8731   archive_cmds_need_lc=no
8732   hardcode_direct=no
8733   hardcode_automatic=yes
8734   hardcode_shlibpath_var=unsupported
8735   if test "$lt_cv_ld_force_load" = "yes"; then
8736     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\"`'
8737   else
8738     whole_archive_flag_spec=''
8739   fi
8740   link_all_deplibs=yes
8741   allow_undefined_flag="$_lt_dar_allow_undefined"
8742   case $cc_basename in
8743      ifort*) _lt_dar_can_shared=yes ;;
8744      *) _lt_dar_can_shared=$GCC ;;
8745   esac
8746   if test "$_lt_dar_can_shared" = "yes"; then
8747     output_verbose_link_cmd=func_echo_all
8748     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8749     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8750     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}"
8751     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}"
8752
8753   else
8754   ld_shlibs=no
8755   fi
8756
8757       ;;
8758
8759     dgux*)
8760       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8761       hardcode_libdir_flag_spec='-L$libdir'
8762       hardcode_shlibpath_var=no
8763       ;;
8764
8765     freebsd1*)
8766       ld_shlibs=no
8767       ;;
8768
8769     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8770     # support.  Future versions do this automatically, but an explicit c++rt0.o
8771     # does not break anything, and helps significantly (at the cost of a little
8772     # extra space).
8773     freebsd2.2*)
8774       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8775       hardcode_libdir_flag_spec='-R$libdir'
8776       hardcode_direct=yes
8777       hardcode_shlibpath_var=no
8778       ;;
8779
8780     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8781     freebsd2*)
8782       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8783       hardcode_direct=yes
8784       hardcode_minus_L=yes
8785       hardcode_shlibpath_var=no
8786       ;;
8787
8788     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8789     freebsd* | dragonfly*)
8790       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8791       hardcode_libdir_flag_spec='-R$libdir'
8792       hardcode_direct=yes
8793       hardcode_shlibpath_var=no
8794       ;;
8795
8796     hpux9*)
8797       if test "$GCC" = yes; then
8798         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'
8799       else
8800         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'
8801       fi
8802       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8803       hardcode_libdir_separator=:
8804       hardcode_direct=yes
8805
8806       # hardcode_minus_L: Not really in the search PATH,
8807       # but as the default location of the library.
8808       hardcode_minus_L=yes
8809       export_dynamic_flag_spec='${wl}-E'
8810       ;;
8811
8812     hpux10*)
8813       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8814         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8815       else
8816         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8817       fi
8818       if test "$with_gnu_ld" = no; then
8819         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8820         hardcode_libdir_flag_spec_ld='+b $libdir'
8821         hardcode_libdir_separator=:
8822         hardcode_direct=yes
8823         hardcode_direct_absolute=yes
8824         export_dynamic_flag_spec='${wl}-E'
8825         # hardcode_minus_L: Not really in the search PATH,
8826         # but as the default location of the library.
8827         hardcode_minus_L=yes
8828       fi
8829       ;;
8830
8831     hpux11*)
8832       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8833         case $host_cpu in
8834         hppa*64*)
8835           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8836           ;;
8837         ia64*)
8838           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8839           ;;
8840         *)
8841           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8842           ;;
8843         esac
8844       else
8845         case $host_cpu in
8846         hppa*64*)
8847           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8848           ;;
8849         ia64*)
8850           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8851           ;;
8852         *)
8853
8854           # Older versions of the 11.00 compiler do not understand -b yet
8855           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8856           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8857 $as_echo_n "checking if $CC understands -b... " >&6; }
8858 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8859   $as_echo_n "(cached) " >&6
8860 else
8861   lt_cv_prog_compiler__b=no
8862    save_LDFLAGS="$LDFLAGS"
8863    LDFLAGS="$LDFLAGS -b"
8864    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8865    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8866      # The linker can only warn and ignore the option if not recognized
8867      # So say no if there are warnings
8868      if test -s conftest.err; then
8869        # Append any errors to the config.log.
8870        cat conftest.err 1>&5
8871        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8872        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8873        if diff conftest.exp conftest.er2 >/dev/null; then
8874          lt_cv_prog_compiler__b=yes
8875        fi
8876      else
8877        lt_cv_prog_compiler__b=yes
8878      fi
8879    fi
8880    $RM -r conftest*
8881    LDFLAGS="$save_LDFLAGS"
8882
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8885 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8886
8887 if test x"$lt_cv_prog_compiler__b" = xyes; then
8888     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8889 else
8890     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8891 fi
8892
8893           ;;
8894         esac
8895       fi
8896       if test "$with_gnu_ld" = no; then
8897         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8898         hardcode_libdir_separator=:
8899
8900         case $host_cpu in
8901         hppa*64*|ia64*)
8902           hardcode_direct=no
8903           hardcode_shlibpath_var=no
8904           ;;
8905         *)
8906           hardcode_direct=yes
8907           hardcode_direct_absolute=yes
8908           export_dynamic_flag_spec='${wl}-E'
8909
8910           # hardcode_minus_L: Not really in the search PATH,
8911           # but as the default location of the library.
8912           hardcode_minus_L=yes
8913           ;;
8914         esac
8915       fi
8916       ;;
8917
8918     irix5* | irix6* | nonstopux*)
8919       if test "$GCC" = yes; then
8920         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'
8921         # Try to use the -exported_symbol ld option, if it does not
8922         # work, assume that -exports_file does not work either and
8923         # implicitly export all symbols.
8924         save_LDFLAGS="$LDFLAGS"
8925         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8926         if test x$gcc_no_link = xyes; then
8927   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8928 fi
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h.  */
8931 int foo(void) {}
8932 _ACEOF
8933 if ac_fn_c_try_link "$LINENO"; then :
8934   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'
8935
8936 fi
8937 rm -f core conftest.err conftest.$ac_objext \
8938     conftest$ac_exeext conftest.$ac_ext
8939         LDFLAGS="$save_LDFLAGS"
8940       else
8941         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'
8942         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'
8943       fi
8944       archive_cmds_need_lc='no'
8945       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8946       hardcode_libdir_separator=:
8947       inherit_rpath=yes
8948       link_all_deplibs=yes
8949       ;;
8950
8951     netbsd*)
8952       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8953         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8954       else
8955         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8956       fi
8957       hardcode_libdir_flag_spec='-R$libdir'
8958       hardcode_direct=yes
8959       hardcode_shlibpath_var=no
8960       ;;
8961
8962     newsos6)
8963       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8964       hardcode_direct=yes
8965       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8966       hardcode_libdir_separator=:
8967       hardcode_shlibpath_var=no
8968       ;;
8969
8970     *nto* | *qnx*)
8971       ;;
8972
8973     openbsd*)
8974       if test -f /usr/libexec/ld.so; then
8975         hardcode_direct=yes
8976         hardcode_shlibpath_var=no
8977         hardcode_direct_absolute=yes
8978         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8979           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8980           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8981           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8982           export_dynamic_flag_spec='${wl}-E'
8983         else
8984           case $host_os in
8985            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8986              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8987              hardcode_libdir_flag_spec='-R$libdir'
8988              ;;
8989            *)
8990              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8991              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8992              ;;
8993           esac
8994         fi
8995       else
8996         ld_shlibs=no
8997       fi
8998       ;;
8999
9000     os2*)
9001       hardcode_libdir_flag_spec='-L$libdir'
9002       hardcode_minus_L=yes
9003       allow_undefined_flag=unsupported
9004       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'
9005       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9006       ;;
9007
9008     osf3*)
9009       if test "$GCC" = yes; then
9010         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9011         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'
9012       else
9013         allow_undefined_flag=' -expect_unresolved \*'
9014         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'
9015       fi
9016       archive_cmds_need_lc='no'
9017       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9018       hardcode_libdir_separator=:
9019       ;;
9020
9021     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9022       if test "$GCC" = yes; then
9023         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9024         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'
9025         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9026       else
9027         allow_undefined_flag=' -expect_unresolved \*'
9028         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'
9029         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~
9030         $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'
9031
9032         # Both c and cxx compiler support -rpath directly
9033         hardcode_libdir_flag_spec='-rpath $libdir'
9034       fi
9035       archive_cmds_need_lc='no'
9036       hardcode_libdir_separator=:
9037       ;;
9038
9039     solaris*)
9040       no_undefined_flag=' -z defs'
9041       if test "$GCC" = yes; then
9042         wlarc='${wl}'
9043         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9044         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9045           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9046       else
9047         case `$CC -V 2>&1` in
9048         *"Compilers 5.0"*)
9049           wlarc=''
9050           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9051           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9052           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9053           ;;
9054         *)
9055           wlarc='${wl}'
9056           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9057           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9058           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9059           ;;
9060         esac
9061       fi
9062       hardcode_libdir_flag_spec='-R$libdir'
9063       hardcode_shlibpath_var=no
9064       case $host_os in
9065       solaris2.[0-5] | solaris2.[0-5].*) ;;
9066       *)
9067         # The compiler driver will combine and reorder linker options,
9068         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9069         # but is careful enough not to reorder.
9070         # Supported since Solaris 2.6 (maybe 2.5.1?)
9071         if test "$GCC" = yes; then
9072           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9073         else
9074           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9075         fi
9076         ;;
9077       esac
9078       link_all_deplibs=yes
9079       ;;
9080
9081     sunos4*)
9082       if test "x$host_vendor" = xsequent; then
9083         # Use $CC to link under sequent, because it throws in some extra .o
9084         # files that make .init and .fini sections work.
9085         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9086       else
9087         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9088       fi
9089       hardcode_libdir_flag_spec='-L$libdir'
9090       hardcode_direct=yes
9091       hardcode_minus_L=yes
9092       hardcode_shlibpath_var=no
9093       ;;
9094
9095     sysv4)
9096       case $host_vendor in
9097         sni)
9098           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9099           hardcode_direct=yes # is this really true???
9100         ;;
9101         siemens)
9102           ## LD is ld it makes a PLAMLIB
9103           ## CC just makes a GrossModule.
9104           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9105           reload_cmds='$CC -r -o $output$reload_objs'
9106           hardcode_direct=no
9107         ;;
9108         motorola)
9109           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9110           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9111         ;;
9112       esac
9113       runpath_var='LD_RUN_PATH'
9114       hardcode_shlibpath_var=no
9115       ;;
9116
9117     sysv4.3*)
9118       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9119       hardcode_shlibpath_var=no
9120       export_dynamic_flag_spec='-Bexport'
9121       ;;
9122
9123     sysv4*MP*)
9124       if test -d /usr/nec; then
9125         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9126         hardcode_shlibpath_var=no
9127         runpath_var=LD_RUN_PATH
9128         hardcode_runpath_var=yes
9129         ld_shlibs=yes
9130       fi
9131       ;;
9132
9133     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9134       no_undefined_flag='${wl}-z,text'
9135       archive_cmds_need_lc=no
9136       hardcode_shlibpath_var=no
9137       runpath_var='LD_RUN_PATH'
9138
9139       if test "$GCC" = yes; then
9140         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9141         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9142       else
9143         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9144         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9145       fi
9146       ;;
9147
9148     sysv5* | sco3.2v5* | sco5v6*)
9149       # Note: We can NOT use -z defs as we might desire, because we do not
9150       # link with -lc, and that would cause any symbols used from libc to
9151       # always be unresolved, which means just about no library would
9152       # ever link correctly.  If we're not using GNU ld we use -z text
9153       # though, which does catch some bad symbols but isn't as heavy-handed
9154       # as -z defs.
9155       no_undefined_flag='${wl}-z,text'
9156       allow_undefined_flag='${wl}-z,nodefs'
9157       archive_cmds_need_lc=no
9158       hardcode_shlibpath_var=no
9159       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9160       hardcode_libdir_separator=':'
9161       link_all_deplibs=yes
9162       export_dynamic_flag_spec='${wl}-Bexport'
9163       runpath_var='LD_RUN_PATH'
9164
9165       if test "$GCC" = yes; then
9166         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9167         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9168       else
9169         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9170         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9171       fi
9172       ;;
9173
9174     uts4*)
9175       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9176       hardcode_libdir_flag_spec='-L$libdir'
9177       hardcode_shlibpath_var=no
9178       ;;
9179
9180     *)
9181       ld_shlibs=no
9182       ;;
9183     esac
9184
9185     if test x$host_vendor = xsni; then
9186       case $host in
9187       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9188         export_dynamic_flag_spec='${wl}-Blargedynsym'
9189         ;;
9190       esac
9191     fi
9192   fi
9193
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9195 $as_echo "$ld_shlibs" >&6; }
9196 test "$ld_shlibs" = no && can_build_shared=no
9197
9198 with_gnu_ld=$with_gnu_ld
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214 #
9215 # Do we need to explicitly link libc?
9216 #
9217 case "x$archive_cmds_need_lc" in
9218 x|xyes)
9219   # Assume -lc should be added
9220   archive_cmds_need_lc=yes
9221
9222   if test "$enable_shared" = yes && test "$GCC" = yes; then
9223     case $archive_cmds in
9224     *'~'*)
9225       # FIXME: we may have to deal with multi-command sequences.
9226       ;;
9227     '$CC '*)
9228       # Test whether the compiler implicitly links with -lc since on some
9229       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9230       # to ld, don't add -lc before -lgcc.
9231       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9232 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9233 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9234   $as_echo_n "(cached) " >&6
9235 else
9236   $RM conftest*
9237         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9238
9239         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9240   (eval $ac_compile) 2>&5
9241   ac_status=$?
9242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9243   test $ac_status = 0; } 2>conftest.err; then
9244           soname=conftest
9245           lib=conftest
9246           libobjs=conftest.$ac_objext
9247           deplibs=
9248           wl=$lt_prog_compiler_wl
9249           pic_flag=$lt_prog_compiler_pic
9250           compiler_flags=-v
9251           linker_flags=-v
9252           verstring=
9253           output_objdir=.
9254           libname=conftest
9255           lt_save_allow_undefined_flag=$allow_undefined_flag
9256           allow_undefined_flag=
9257           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9258   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9259   ac_status=$?
9260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9261   test $ac_status = 0; }
9262           then
9263             lt_cv_archive_cmds_need_lc=no
9264           else
9265             lt_cv_archive_cmds_need_lc=yes
9266           fi
9267           allow_undefined_flag=$lt_save_allow_undefined_flag
9268         else
9269           cat conftest.err 1>&5
9270         fi
9271         $RM conftest*
9272
9273 fi
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9275 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9276       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9277       ;;
9278     esac
9279   fi
9280   ;;
9281 esac
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9440 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9441
9442 if test "$GCC" = yes; then
9443   case $host_os in
9444     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9445     *) lt_awk_arg="/^libraries:/" ;;
9446   esac
9447   case $host_os in
9448     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9449     *) lt_sed_strip_eq="s,=/,/,g" ;;
9450   esac
9451   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9452   case $lt_search_path_spec in
9453   *\;*)
9454     # if the path contains ";" then we assume it to be the separator
9455     # otherwise default to the standard path separator (i.e. ":") - it is
9456     # assumed that no part of a normal pathname contains ";" but that should
9457     # okay in the real world where ";" in dirpaths is itself problematic.
9458     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9459     ;;
9460   *)
9461     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9462     ;;
9463   esac
9464   # Ok, now we have the path, separated by spaces, we can step through it
9465   # and add multilib dir if necessary.
9466   lt_tmp_lt_search_path_spec=
9467   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9468   for lt_sys_path in $lt_search_path_spec; do
9469     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9470       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9471     else
9472       test -d "$lt_sys_path" && \
9473         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9474     fi
9475   done
9476   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9477 BEGIN {RS=" "; FS="/|\n";} {
9478   lt_foo="";
9479   lt_count=0;
9480   for (lt_i = NF; lt_i > 0; lt_i--) {
9481     if ($lt_i != "" && $lt_i != ".") {
9482       if ($lt_i == "..") {
9483         lt_count++;
9484       } else {
9485         if (lt_count == 0) {
9486           lt_foo="/" $lt_i lt_foo;
9487         } else {
9488           lt_count--;
9489         }
9490       }
9491     }
9492   }
9493   if (lt_foo != "") { lt_freq[lt_foo]++; }
9494   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9495 }'`
9496   # AWK program above erroneously prepends '/' to C:/dos/paths
9497   # for these hosts.
9498   case $host_os in
9499     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9500       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9501   esac
9502   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9503 else
9504   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9505 fi
9506 library_names_spec=
9507 libname_spec='lib$name'
9508 soname_spec=
9509 shrext_cmds=".so"
9510 postinstall_cmds=
9511 postuninstall_cmds=
9512 finish_cmds=
9513 finish_eval=
9514 shlibpath_var=
9515 shlibpath_overrides_runpath=unknown
9516 version_type=none
9517 dynamic_linker="$host_os ld.so"
9518 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9519 need_lib_prefix=unknown
9520 hardcode_into_libs=no
9521
9522 # when you set need_version to no, make sure it does not cause -set_version
9523 # flags to be left without arguments
9524 need_version=unknown
9525
9526 case $host_os in
9527 aix3*)
9528   version_type=linux
9529   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9530   shlibpath_var=LIBPATH
9531
9532   # AIX 3 has no versioning support, so we append a major version to the name.
9533   soname_spec='${libname}${release}${shared_ext}$major'
9534   ;;
9535
9536 aix[4-9]*)
9537   version_type=linux
9538   need_lib_prefix=no
9539   need_version=no
9540   hardcode_into_libs=yes
9541   if test "$host_cpu" = ia64; then
9542     # AIX 5 supports IA64
9543     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9544     shlibpath_var=LD_LIBRARY_PATH
9545   else
9546     # With GCC up to 2.95.x, collect2 would create an import file
9547     # for dependence libraries.  The import file would start with
9548     # the line `#! .'.  This would cause the generated library to
9549     # depend on `.', always an invalid library.  This was fixed in
9550     # development snapshots of GCC prior to 3.0.
9551     case $host_os in
9552       aix4 | aix4.[01] | aix4.[01].*)
9553       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9554            echo ' yes '
9555            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9556         :
9557       else
9558         can_build_shared=no
9559       fi
9560       ;;
9561     esac
9562     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9563     # soname into executable. Probably we can add versioning support to
9564     # collect2, so additional links can be useful in future.
9565     if test "$aix_use_runtimelinking" = yes; then
9566       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9567       # instead of lib<name>.a to let people know that these are not
9568       # typical AIX shared libraries.
9569       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9570     else
9571       # We preserve .a as extension for shared libraries through AIX4.2
9572       # and later when we are not doing run time linking.
9573       library_names_spec='${libname}${release}.a $libname.a'
9574       soname_spec='${libname}${release}${shared_ext}$major'
9575     fi
9576     shlibpath_var=LIBPATH
9577   fi
9578   ;;
9579
9580 amigaos*)
9581   case $host_cpu in
9582   powerpc)
9583     # Since July 2007 AmigaOS4 officially supports .so libraries.
9584     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9585     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9586     ;;
9587   m68k)
9588     library_names_spec='$libname.ixlibrary $libname.a'
9589     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9590     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'
9591     ;;
9592   esac
9593   ;;
9594
9595 beos*)
9596   library_names_spec='${libname}${shared_ext}'
9597   dynamic_linker="$host_os ld.so"
9598   shlibpath_var=LIBRARY_PATH
9599   ;;
9600
9601 bsdi[45]*)
9602   version_type=linux
9603   need_version=no
9604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9605   soname_spec='${libname}${release}${shared_ext}$major'
9606   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9607   shlibpath_var=LD_LIBRARY_PATH
9608   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9609   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9610   # the default ld.so.conf also contains /usr/contrib/lib and
9611   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9612   # libtool to hard-code these into programs
9613   ;;
9614
9615 cygwin* | mingw* | pw32* | cegcc*)
9616   version_type=windows
9617   shrext_cmds=".dll"
9618   need_version=no
9619   need_lib_prefix=no
9620
9621   case $GCC,$host_os in
9622   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9623     library_names_spec='$libname.dll.a'
9624     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9625     postinstall_cmds='base_file=`basename \${file}`~
9626       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9627       dldir=$destdir/`dirname \$dlpath`~
9628       test -d \$dldir || mkdir -p \$dldir~
9629       $install_prog $dir/$dlname \$dldir/$dlname~
9630       chmod a+x \$dldir/$dlname~
9631       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9632         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9633       fi'
9634     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9635       dlpath=$dir/\$dldll~
9636        $RM \$dlpath'
9637     shlibpath_overrides_runpath=yes
9638
9639     case $host_os in
9640     cygwin*)
9641       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9642       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9643
9644       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9645       ;;
9646     mingw* | cegcc*)
9647       # MinGW DLLs use traditional 'lib' prefix
9648       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9649       ;;
9650     pw32*)
9651       # pw32 DLLs use 'pw' prefix rather than 'lib'
9652       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9653       ;;
9654     esac
9655     ;;
9656
9657   *)
9658     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9659     ;;
9660   esac
9661   dynamic_linker='Win32 ld.exe'
9662   # FIXME: first we should search . and the directory the executable is in
9663   shlibpath_var=PATH
9664   ;;
9665
9666 darwin* | rhapsody*)
9667   dynamic_linker="$host_os dyld"
9668   version_type=darwin
9669   need_lib_prefix=no
9670   need_version=no
9671   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9672   soname_spec='${libname}${release}${major}$shared_ext'
9673   shlibpath_overrides_runpath=yes
9674   shlibpath_var=DYLD_LIBRARY_PATH
9675   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9676
9677   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9678   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9679   ;;
9680
9681 dgux*)
9682   version_type=linux
9683   need_lib_prefix=no
9684   need_version=no
9685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9686   soname_spec='${libname}${release}${shared_ext}$major'
9687   shlibpath_var=LD_LIBRARY_PATH
9688   ;;
9689
9690 freebsd1*)
9691   dynamic_linker=no
9692   ;;
9693
9694 freebsd* | dragonfly*)
9695   # DragonFly does not have aout.  When/if they implement a new
9696   # versioning mechanism, adjust this.
9697   if test -x /usr/bin/objformat; then
9698     objformat=`/usr/bin/objformat`
9699   else
9700     case $host_os in
9701     freebsd[123]*) objformat=aout ;;
9702     *) objformat=elf ;;
9703     esac
9704   fi
9705   version_type=freebsd-$objformat
9706   case $version_type in
9707     freebsd-elf*)
9708       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9709       need_version=no
9710       need_lib_prefix=no
9711       ;;
9712     freebsd-*)
9713       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9714       need_version=yes
9715       ;;
9716   esac
9717   shlibpath_var=LD_LIBRARY_PATH
9718   case $host_os in
9719   freebsd2*)
9720     shlibpath_overrides_runpath=yes
9721     ;;
9722   freebsd3.[01]* | freebsdelf3.[01]*)
9723     shlibpath_overrides_runpath=yes
9724     hardcode_into_libs=yes
9725     ;;
9726   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9727   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9728     shlibpath_overrides_runpath=no
9729     hardcode_into_libs=yes
9730     ;;
9731   *) # from 4.6 on, and DragonFly
9732     shlibpath_overrides_runpath=yes
9733     hardcode_into_libs=yes
9734     ;;
9735   esac
9736   ;;
9737
9738 gnu*)
9739   version_type=linux
9740   need_lib_prefix=no
9741   need_version=no
9742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9743   soname_spec='${libname}${release}${shared_ext}$major'
9744   shlibpath_var=LD_LIBRARY_PATH
9745   hardcode_into_libs=yes
9746   ;;
9747
9748 haiku*)
9749   version_type=linux
9750   need_lib_prefix=no
9751   need_version=no
9752   dynamic_linker="$host_os runtime_loader"
9753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9754   soname_spec='${libname}${release}${shared_ext}$major'
9755   shlibpath_var=LIBRARY_PATH
9756   shlibpath_overrides_runpath=yes
9757   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9758   hardcode_into_libs=yes
9759   ;;
9760
9761 hpux9* | hpux10* | hpux11*)
9762   # Give a soname corresponding to the major version so that dld.sl refuses to
9763   # link against other versions.
9764   version_type=sunos
9765   need_lib_prefix=no
9766   need_version=no
9767   case $host_cpu in
9768   ia64*)
9769     shrext_cmds='.so'
9770     hardcode_into_libs=yes
9771     dynamic_linker="$host_os dld.so"
9772     shlibpath_var=LD_LIBRARY_PATH
9773     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9774     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775     soname_spec='${libname}${release}${shared_ext}$major'
9776     if test "X$HPUX_IA64_MODE" = X32; then
9777       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9778     else
9779       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9780     fi
9781     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9782     ;;
9783   hppa*64*)
9784     shrext_cmds='.sl'
9785     hardcode_into_libs=yes
9786     dynamic_linker="$host_os dld.sl"
9787     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9788     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790     soname_spec='${libname}${release}${shared_ext}$major'
9791     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9792     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9793     ;;
9794   *)
9795     shrext_cmds='.sl'
9796     dynamic_linker="$host_os dld.sl"
9797     shlibpath_var=SHLIB_PATH
9798     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9799     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800     soname_spec='${libname}${release}${shared_ext}$major'
9801     ;;
9802   esac
9803   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9804   postinstall_cmds='chmod 555 $lib'
9805   # or fails outright, so override atomically:
9806   install_override_mode=555
9807   ;;
9808
9809 interix[3-9]*)
9810   version_type=linux
9811   need_lib_prefix=no
9812   need_version=no
9813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9814   soname_spec='${libname}${release}${shared_ext}$major'
9815   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9816   shlibpath_var=LD_LIBRARY_PATH
9817   shlibpath_overrides_runpath=no
9818   hardcode_into_libs=yes
9819   ;;
9820
9821 irix5* | irix6* | nonstopux*)
9822   case $host_os in
9823     nonstopux*) version_type=nonstopux ;;
9824     *)
9825         if test "$lt_cv_prog_gnu_ld" = yes; then
9826                 version_type=linux
9827         else
9828                 version_type=irix
9829         fi ;;
9830   esac
9831   need_lib_prefix=no
9832   need_version=no
9833   soname_spec='${libname}${release}${shared_ext}$major'
9834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9835   case $host_os in
9836   irix5* | nonstopux*)
9837     libsuff= shlibsuff=
9838     ;;
9839   *)
9840     case $LD in # libtool.m4 will add one of these switches to LD
9841     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9842       libsuff= shlibsuff= libmagic=32-bit;;
9843     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9844       libsuff=32 shlibsuff=N32 libmagic=N32;;
9845     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9846       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9847     *) libsuff= shlibsuff= libmagic=never-match;;
9848     esac
9849     ;;
9850   esac
9851   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9852   shlibpath_overrides_runpath=no
9853   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9854   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9855   hardcode_into_libs=yes
9856   ;;
9857
9858 # No shared lib support for Linux oldld, aout, or coff.
9859 linux*oldld* | linux*aout* | linux*coff*)
9860   dynamic_linker=no
9861   ;;
9862
9863 # This must be Linux ELF.
9864 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9865   version_type=linux
9866   need_lib_prefix=no
9867   need_version=no
9868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869   soname_spec='${libname}${release}${shared_ext}$major'
9870   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9871   shlibpath_var=LD_LIBRARY_PATH
9872   shlibpath_overrides_runpath=no
9873
9874   # Some binutils ld are patched to set DT_RUNPATH
9875   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9876   $as_echo_n "(cached) " >&6
9877 else
9878   lt_cv_shlibpath_overrides_runpath=no
9879     save_LDFLAGS=$LDFLAGS
9880     save_libdir=$libdir
9881     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9882          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9883     if test x$gcc_no_link = xyes; then
9884   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9885 fi
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h.  */
9888
9889 int
9890 main ()
9891 {
9892
9893   ;
9894   return 0;
9895 }
9896 _ACEOF
9897 if ac_fn_c_try_link "$LINENO"; then :
9898   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9899   lt_cv_shlibpath_overrides_runpath=yes
9900 fi
9901 fi
9902 rm -f core conftest.err conftest.$ac_objext \
9903     conftest$ac_exeext conftest.$ac_ext
9904     LDFLAGS=$save_LDFLAGS
9905     libdir=$save_libdir
9906
9907 fi
9908
9909   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9910
9911   # This implies no fast_install, which is unacceptable.
9912   # Some rework will be needed to allow for fast_install
9913   # before this can be enabled.
9914   hardcode_into_libs=yes
9915
9916   # Append ld.so.conf contents to the search path
9917   if test -f /etc/ld.so.conf; then
9918     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' ' '`
9919     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9920   fi
9921
9922   # We used to test for /lib/ld.so.1 and disable shared libraries on
9923   # powerpc, because MkLinux only supported shared libraries with the
9924   # GNU dynamic linker.  Since this was broken with cross compilers,
9925   # most powerpc-linux boxes support dynamic linking these days and
9926   # people can always --disable-shared, the test was removed, and we
9927   # assume the GNU/Linux dynamic linker is in use.
9928   dynamic_linker='GNU/Linux ld.so'
9929   ;;
9930
9931 netbsd*)
9932   version_type=sunos
9933   need_lib_prefix=no
9934   need_version=no
9935   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9937     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9938     dynamic_linker='NetBSD (a.out) ld.so'
9939   else
9940     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9941     soname_spec='${libname}${release}${shared_ext}$major'
9942     dynamic_linker='NetBSD ld.elf_so'
9943   fi
9944   shlibpath_var=LD_LIBRARY_PATH
9945   shlibpath_overrides_runpath=yes
9946   hardcode_into_libs=yes
9947   ;;
9948
9949 newsos6)
9950   version_type=linux
9951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952   shlibpath_var=LD_LIBRARY_PATH
9953   shlibpath_overrides_runpath=yes
9954   ;;
9955
9956 *nto* | *qnx*)
9957   version_type=qnx
9958   need_lib_prefix=no
9959   need_version=no
9960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961   soname_spec='${libname}${release}${shared_ext}$major'
9962   shlibpath_var=LD_LIBRARY_PATH
9963   shlibpath_overrides_runpath=no
9964   hardcode_into_libs=yes
9965   dynamic_linker='ldqnx.so'
9966   ;;
9967
9968 openbsd*)
9969   version_type=sunos
9970   sys_lib_dlsearch_path_spec="/usr/lib"
9971   need_lib_prefix=no
9972   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9973   case $host_os in
9974     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9975     *)                          need_version=no  ;;
9976   esac
9977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9978   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9979   shlibpath_var=LD_LIBRARY_PATH
9980   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9981     case $host_os in
9982       openbsd2.[89] | openbsd2.[89].*)
9983         shlibpath_overrides_runpath=no
9984         ;;
9985       *)
9986         shlibpath_overrides_runpath=yes
9987         ;;
9988       esac
9989   else
9990     shlibpath_overrides_runpath=yes
9991   fi
9992   ;;
9993
9994 os2*)
9995   libname_spec='$name'
9996   shrext_cmds=".dll"
9997   need_lib_prefix=no
9998   library_names_spec='$libname${shared_ext} $libname.a'
9999   dynamic_linker='OS/2 ld.exe'
10000   shlibpath_var=LIBPATH
10001   ;;
10002
10003 osf3* | osf4* | osf5*)
10004   version_type=osf
10005   need_lib_prefix=no
10006   need_version=no
10007   soname_spec='${libname}${release}${shared_ext}$major'
10008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009   shlibpath_var=LD_LIBRARY_PATH
10010   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10011   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10012   ;;
10013
10014 rdos*)
10015   dynamic_linker=no
10016   ;;
10017
10018 solaris*)
10019   version_type=linux
10020   need_lib_prefix=no
10021   need_version=no
10022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10023   soname_spec='${libname}${release}${shared_ext}$major'
10024   shlibpath_var=LD_LIBRARY_PATH
10025   shlibpath_overrides_runpath=yes
10026   hardcode_into_libs=yes
10027   # ldd complains unless libraries are executable
10028   postinstall_cmds='chmod +x $lib'
10029   ;;
10030
10031 sunos4*)
10032   version_type=sunos
10033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10034   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10035   shlibpath_var=LD_LIBRARY_PATH
10036   shlibpath_overrides_runpath=yes
10037   if test "$with_gnu_ld" = yes; then
10038     need_lib_prefix=no
10039   fi
10040   need_version=yes
10041   ;;
10042
10043 sysv4 | sysv4.3*)
10044   version_type=linux
10045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046   soname_spec='${libname}${release}${shared_ext}$major'
10047   shlibpath_var=LD_LIBRARY_PATH
10048   case $host_vendor in
10049     sni)
10050       shlibpath_overrides_runpath=no
10051       need_lib_prefix=no
10052       runpath_var=LD_RUN_PATH
10053       ;;
10054     siemens)
10055       need_lib_prefix=no
10056       ;;
10057     motorola)
10058       need_lib_prefix=no
10059       need_version=no
10060       shlibpath_overrides_runpath=no
10061       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10062       ;;
10063   esac
10064   ;;
10065
10066 sysv4*MP*)
10067   if test -d /usr/nec ;then
10068     version_type=linux
10069     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10070     soname_spec='$libname${shared_ext}.$major'
10071     shlibpath_var=LD_LIBRARY_PATH
10072   fi
10073   ;;
10074
10075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10076   version_type=freebsd-elf
10077   need_lib_prefix=no
10078   need_version=no
10079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10080   soname_spec='${libname}${release}${shared_ext}$major'
10081   shlibpath_var=LD_LIBRARY_PATH
10082   shlibpath_overrides_runpath=yes
10083   hardcode_into_libs=yes
10084   if test "$with_gnu_ld" = yes; then
10085     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10086   else
10087     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10088     case $host_os in
10089       sco3.2v5*)
10090         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10091         ;;
10092     esac
10093   fi
10094   sys_lib_dlsearch_path_spec='/usr/lib'
10095   ;;
10096
10097 tpf*)
10098   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10099   version_type=linux
10100   need_lib_prefix=no
10101   need_version=no
10102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103   shlibpath_var=LD_LIBRARY_PATH
10104   shlibpath_overrides_runpath=no
10105   hardcode_into_libs=yes
10106   ;;
10107
10108 uts4*)
10109   version_type=linux
10110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111   soname_spec='${libname}${release}${shared_ext}$major'
10112   shlibpath_var=LD_LIBRARY_PATH
10113   ;;
10114
10115 *)
10116   dynamic_linker=no
10117   ;;
10118 esac
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10120 $as_echo "$dynamic_linker" >&6; }
10121 test "$dynamic_linker" = no && can_build_shared=no
10122
10123 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10124 if test "$GCC" = yes; then
10125   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10126 fi
10127
10128 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10129   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10130 fi
10131 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10132   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10133 fi
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10227 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10228 hardcode_action=
10229 if test -n "$hardcode_libdir_flag_spec" ||
10230    test -n "$runpath_var" ||
10231    test "X$hardcode_automatic" = "Xyes" ; then
10232
10233   # We can hardcode non-existent directories.
10234   if test "$hardcode_direct" != no &&
10235      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10236      # have to relink, otherwise we might link with an installed library
10237      # when we should be linking with a yet-to-be-installed one
10238      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10239      test "$hardcode_minus_L" != no; then
10240     # Linking always hardcodes the temporary library directory.
10241     hardcode_action=relink
10242   else
10243     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10244     hardcode_action=immediate
10245   fi
10246 else
10247   # We cannot hardcode anything, or else we can only hardcode existing
10248   # directories.
10249   hardcode_action=unsupported
10250 fi
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10252 $as_echo "$hardcode_action" >&6; }
10253
10254 if test "$hardcode_action" = relink ||
10255    test "$inherit_rpath" = yes; then
10256   # Fast installation is not supported
10257   enable_fast_install=no
10258 elif test "$shlibpath_overrides_runpath" = yes ||
10259      test "$enable_shared" = no; then
10260   # Fast installation is not necessary
10261   enable_fast_install=needless
10262 fi
10263
10264
10265
10266
10267
10268
10269   if test "x$enable_dlopen" != xyes; then
10270   enable_dlopen=unknown
10271   enable_dlopen_self=unknown
10272   enable_dlopen_self_static=unknown
10273 else
10274   lt_cv_dlopen=no
10275   lt_cv_dlopen_libs=
10276
10277   case $host_os in
10278   beos*)
10279     lt_cv_dlopen="load_add_on"
10280     lt_cv_dlopen_libs=
10281     lt_cv_dlopen_self=yes
10282     ;;
10283
10284   mingw* | pw32* | cegcc*)
10285     lt_cv_dlopen="LoadLibrary"
10286     lt_cv_dlopen_libs=
10287     ;;
10288
10289   cygwin*)
10290     lt_cv_dlopen="dlopen"
10291     lt_cv_dlopen_libs=
10292     ;;
10293
10294   darwin*)
10295   # if libdl is installed we need to link against it
10296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10297 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10298 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10299   $as_echo_n "(cached) " >&6
10300 else
10301   ac_check_lib_save_LIBS=$LIBS
10302 LIBS="-ldl  $LIBS"
10303 if test x$gcc_no_link = xyes; then
10304   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10305 fi
10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307 /* end confdefs.h.  */
10308
10309 /* Override any GCC internal prototype to avoid an error.
10310    Use char because int might match the return type of a GCC
10311    builtin and then its argument prototype would still apply.  */
10312 #ifdef __cplusplus
10313 extern "C"
10314 #endif
10315 char dlopen ();
10316 int
10317 main ()
10318 {
10319 return dlopen ();
10320   ;
10321   return 0;
10322 }
10323 _ACEOF
10324 if ac_fn_c_try_link "$LINENO"; then :
10325   ac_cv_lib_dl_dlopen=yes
10326 else
10327   ac_cv_lib_dl_dlopen=no
10328 fi
10329 rm -f core conftest.err conftest.$ac_objext \
10330     conftest$ac_exeext conftest.$ac_ext
10331 LIBS=$ac_check_lib_save_LIBS
10332 fi
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10334 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10335 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10336   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10337 else
10338
10339     lt_cv_dlopen="dyld"
10340     lt_cv_dlopen_libs=
10341     lt_cv_dlopen_self=yes
10342
10343 fi
10344
10345     ;;
10346
10347   *)
10348     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10349 if test "x$ac_cv_func_shl_load" = x""yes; then :
10350   lt_cv_dlopen="shl_load"
10351 else
10352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10353 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10354 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10355   $as_echo_n "(cached) " >&6
10356 else
10357   ac_check_lib_save_LIBS=$LIBS
10358 LIBS="-ldld  $LIBS"
10359 if test x$gcc_no_link = xyes; then
10360   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10361 fi
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h.  */
10364
10365 /* Override any GCC internal prototype to avoid an error.
10366    Use char because int might match the return type of a GCC
10367    builtin and then its argument prototype would still apply.  */
10368 #ifdef __cplusplus
10369 extern "C"
10370 #endif
10371 char shl_load ();
10372 int
10373 main ()
10374 {
10375 return shl_load ();
10376   ;
10377   return 0;
10378 }
10379 _ACEOF
10380 if ac_fn_c_try_link "$LINENO"; then :
10381   ac_cv_lib_dld_shl_load=yes
10382 else
10383   ac_cv_lib_dld_shl_load=no
10384 fi
10385 rm -f core conftest.err conftest.$ac_objext \
10386     conftest$ac_exeext conftest.$ac_ext
10387 LIBS=$ac_check_lib_save_LIBS
10388 fi
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10390 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10391 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10392   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10393 else
10394   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10395 if test "x$ac_cv_func_dlopen" = x""yes; then :
10396   lt_cv_dlopen="dlopen"
10397 else
10398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10399 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10400 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10401   $as_echo_n "(cached) " >&6
10402 else
10403   ac_check_lib_save_LIBS=$LIBS
10404 LIBS="-ldl  $LIBS"
10405 if test x$gcc_no_link = xyes; then
10406   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10407 fi
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h.  */
10410
10411 /* Override any GCC internal prototype to avoid an error.
10412    Use char because int might match the return type of a GCC
10413    builtin and then its argument prototype would still apply.  */
10414 #ifdef __cplusplus
10415 extern "C"
10416 #endif
10417 char dlopen ();
10418 int
10419 main ()
10420 {
10421 return dlopen ();
10422   ;
10423   return 0;
10424 }
10425 _ACEOF
10426 if ac_fn_c_try_link "$LINENO"; then :
10427   ac_cv_lib_dl_dlopen=yes
10428 else
10429   ac_cv_lib_dl_dlopen=no
10430 fi
10431 rm -f core conftest.err conftest.$ac_objext \
10432     conftest$ac_exeext conftest.$ac_ext
10433 LIBS=$ac_check_lib_save_LIBS
10434 fi
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10436 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10437 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10438   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10439 else
10440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10441 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10442 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10443   $as_echo_n "(cached) " >&6
10444 else
10445   ac_check_lib_save_LIBS=$LIBS
10446 LIBS="-lsvld  $LIBS"
10447 if test x$gcc_no_link = xyes; then
10448   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10449 fi
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h.  */
10452
10453 /* Override any GCC internal prototype to avoid an error.
10454    Use char because int might match the return type of a GCC
10455    builtin and then its argument prototype would still apply.  */
10456 #ifdef __cplusplus
10457 extern "C"
10458 #endif
10459 char dlopen ();
10460 int
10461 main ()
10462 {
10463 return dlopen ();
10464   ;
10465   return 0;
10466 }
10467 _ACEOF
10468 if ac_fn_c_try_link "$LINENO"; then :
10469   ac_cv_lib_svld_dlopen=yes
10470 else
10471   ac_cv_lib_svld_dlopen=no
10472 fi
10473 rm -f core conftest.err conftest.$ac_objext \
10474     conftest$ac_exeext conftest.$ac_ext
10475 LIBS=$ac_check_lib_save_LIBS
10476 fi
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10478 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10479 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10480   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10481 else
10482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10483 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10484 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10485   $as_echo_n "(cached) " >&6
10486 else
10487   ac_check_lib_save_LIBS=$LIBS
10488 LIBS="-ldld  $LIBS"
10489 if test x$gcc_no_link = xyes; then
10490   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10491 fi
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h.  */
10494
10495 /* Override any GCC internal prototype to avoid an error.
10496    Use char because int might match the return type of a GCC
10497    builtin and then its argument prototype would still apply.  */
10498 #ifdef __cplusplus
10499 extern "C"
10500 #endif
10501 char dld_link ();
10502 int
10503 main ()
10504 {
10505 return dld_link ();
10506   ;
10507   return 0;
10508 }
10509 _ACEOF
10510 if ac_fn_c_try_link "$LINENO"; then :
10511   ac_cv_lib_dld_dld_link=yes
10512 else
10513   ac_cv_lib_dld_dld_link=no
10514 fi
10515 rm -f core conftest.err conftest.$ac_objext \
10516     conftest$ac_exeext conftest.$ac_ext
10517 LIBS=$ac_check_lib_save_LIBS
10518 fi
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10520 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10521 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10522   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10523 fi
10524
10525
10526 fi
10527
10528
10529 fi
10530
10531
10532 fi
10533
10534
10535 fi
10536
10537
10538 fi
10539
10540     ;;
10541   esac
10542
10543   if test "x$lt_cv_dlopen" != xno; then
10544     enable_dlopen=yes
10545   else
10546     enable_dlopen=no
10547   fi
10548
10549   case $lt_cv_dlopen in
10550   dlopen)
10551     save_CPPFLAGS="$CPPFLAGS"
10552     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10553
10554     save_LDFLAGS="$LDFLAGS"
10555     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10556
10557     save_LIBS="$LIBS"
10558     LIBS="$lt_cv_dlopen_libs $LIBS"
10559
10560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10561 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10562 if test "${lt_cv_dlopen_self+set}" = set; then :
10563   $as_echo_n "(cached) " >&6
10564 else
10565           if test "$cross_compiling" = yes; then :
10566   lt_cv_dlopen_self=cross
10567 else
10568   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10569   lt_status=$lt_dlunknown
10570   cat > conftest.$ac_ext <<_LT_EOF
10571 #line 10571 "configure"
10572 #include "confdefs.h"
10573
10574 #if HAVE_DLFCN_H
10575 #include <dlfcn.h>
10576 #endif
10577
10578 #include <stdio.h>
10579
10580 #ifdef RTLD_GLOBAL
10581 #  define LT_DLGLOBAL           RTLD_GLOBAL
10582 #else
10583 #  ifdef DL_GLOBAL
10584 #    define LT_DLGLOBAL         DL_GLOBAL
10585 #  else
10586 #    define LT_DLGLOBAL         0
10587 #  endif
10588 #endif
10589
10590 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10591    find out it does not work in some platform. */
10592 #ifndef LT_DLLAZY_OR_NOW
10593 #  ifdef RTLD_LAZY
10594 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10595 #  else
10596 #    ifdef DL_LAZY
10597 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10598 #    else
10599 #      ifdef RTLD_NOW
10600 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10601 #      else
10602 #        ifdef DL_NOW
10603 #          define LT_DLLAZY_OR_NOW      DL_NOW
10604 #        else
10605 #          define LT_DLLAZY_OR_NOW      0
10606 #        endif
10607 #      endif
10608 #    endif
10609 #  endif
10610 #endif
10611
10612 /* When -fvisbility=hidden is used, assume the code has been annotated
10613    correspondingly for the symbols needed.  */
10614 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10615 void fnord () __attribute__((visibility("default")));
10616 #endif
10617
10618 void fnord () { int i=42; }
10619 int main ()
10620 {
10621   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10622   int status = $lt_dlunknown;
10623
10624   if (self)
10625     {
10626       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10627       else
10628         {
10629           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10630           else puts (dlerror ());
10631         }
10632       /* dlclose (self); */
10633     }
10634   else
10635     puts (dlerror ());
10636
10637   return status;
10638 }
10639 _LT_EOF
10640   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10641   (eval $ac_link) 2>&5
10642   ac_status=$?
10643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10644   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10645     (./conftest; exit; ) >&5 2>/dev/null
10646     lt_status=$?
10647     case x$lt_status in
10648       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10649       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10650       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10651     esac
10652   else :
10653     # compilation failed
10654     lt_cv_dlopen_self=no
10655   fi
10656 fi
10657 rm -fr conftest*
10658
10659
10660 fi
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10662 $as_echo "$lt_cv_dlopen_self" >&6; }
10663
10664     if test "x$lt_cv_dlopen_self" = xyes; then
10665       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10666       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10667 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10668 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10669   $as_echo_n "(cached) " >&6
10670 else
10671           if test "$cross_compiling" = yes; then :
10672   lt_cv_dlopen_self_static=cross
10673 else
10674   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10675   lt_status=$lt_dlunknown
10676   cat > conftest.$ac_ext <<_LT_EOF
10677 #line 10677 "configure"
10678 #include "confdefs.h"
10679
10680 #if HAVE_DLFCN_H
10681 #include <dlfcn.h>
10682 #endif
10683
10684 #include <stdio.h>
10685
10686 #ifdef RTLD_GLOBAL
10687 #  define LT_DLGLOBAL           RTLD_GLOBAL
10688 #else
10689 #  ifdef DL_GLOBAL
10690 #    define LT_DLGLOBAL         DL_GLOBAL
10691 #  else
10692 #    define LT_DLGLOBAL         0
10693 #  endif
10694 #endif
10695
10696 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10697    find out it does not work in some platform. */
10698 #ifndef LT_DLLAZY_OR_NOW
10699 #  ifdef RTLD_LAZY
10700 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10701 #  else
10702 #    ifdef DL_LAZY
10703 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10704 #    else
10705 #      ifdef RTLD_NOW
10706 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10707 #      else
10708 #        ifdef DL_NOW
10709 #          define LT_DLLAZY_OR_NOW      DL_NOW
10710 #        else
10711 #          define LT_DLLAZY_OR_NOW      0
10712 #        endif
10713 #      endif
10714 #    endif
10715 #  endif
10716 #endif
10717
10718 /* When -fvisbility=hidden is used, assume the code has been annotated
10719    correspondingly for the symbols needed.  */
10720 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10721 void fnord () __attribute__((visibility("default")));
10722 #endif
10723
10724 void fnord () { int i=42; }
10725 int main ()
10726 {
10727   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10728   int status = $lt_dlunknown;
10729
10730   if (self)
10731     {
10732       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10733       else
10734         {
10735           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10736           else puts (dlerror ());
10737         }
10738       /* dlclose (self); */
10739     }
10740   else
10741     puts (dlerror ());
10742
10743   return status;
10744 }
10745 _LT_EOF
10746   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10747   (eval $ac_link) 2>&5
10748   ac_status=$?
10749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10750   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10751     (./conftest; exit; ) >&5 2>/dev/null
10752     lt_status=$?
10753     case x$lt_status in
10754       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10755       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10756       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10757     esac
10758   else :
10759     # compilation failed
10760     lt_cv_dlopen_self_static=no
10761   fi
10762 fi
10763 rm -fr conftest*
10764
10765
10766 fi
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10768 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10769     fi
10770
10771     CPPFLAGS="$save_CPPFLAGS"
10772     LDFLAGS="$save_LDFLAGS"
10773     LIBS="$save_LIBS"
10774     ;;
10775   esac
10776
10777   case $lt_cv_dlopen_self in
10778   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10779   *) enable_dlopen_self=unknown ;;
10780   esac
10781
10782   case $lt_cv_dlopen_self_static in
10783   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10784   *) enable_dlopen_self_static=unknown ;;
10785   esac
10786 fi
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804 striplib=
10805 old_striplib=
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10807 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10808 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10809   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10810   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10812 $as_echo "yes" >&6; }
10813 else
10814 # FIXME - insert some real tests, host_os isn't really good enough
10815   case $host_os in
10816   darwin*)
10817     if test -n "$STRIP" ; then
10818       striplib="$STRIP -x"
10819       old_striplib="$STRIP -S"
10820       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10821 $as_echo "yes" >&6; }
10822     else
10823       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 $as_echo "no" >&6; }
10825     fi
10826     ;;
10827   *)
10828     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10830     ;;
10831   esac
10832 fi
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845   # Report which library types will actually be built
10846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10847 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10849 $as_echo "$can_build_shared" >&6; }
10850
10851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10852 $as_echo_n "checking whether to build shared libraries... " >&6; }
10853   test "$can_build_shared" = "no" && enable_shared=no
10854
10855   # On AIX, shared libraries and static libraries use the same namespace, and
10856   # are all built from PIC.
10857   case $host_os in
10858   aix3*)
10859     test "$enable_shared" = yes && enable_static=no
10860     if test -n "$RANLIB"; then
10861       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10862       postinstall_cmds='$RANLIB $lib'
10863     fi
10864     ;;
10865
10866   aix[4-9]*)
10867     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10868       test "$enable_shared" = yes && enable_static=no
10869     fi
10870     ;;
10871   esac
10872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10873 $as_echo "$enable_shared" >&6; }
10874
10875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10876 $as_echo_n "checking whether to build static libraries... " >&6; }
10877   # Make sure either enable_shared or enable_static is yes.
10878   test "$enable_shared" = yes || enable_static=yes
10879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10880 $as_echo "$enable_static" >&6; }
10881
10882
10883
10884
10885 fi
10886 ac_ext=c
10887 ac_cpp='$CPP $CPPFLAGS'
10888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10891
10892 CC="$lt_save_CC"
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906         ac_config_commands="$ac_config_commands libtool"
10907
10908
10909
10910
10911 # Only expand once:
10912
10913
10914
10915 if test "x$CC" != xcc; then
10916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10917 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10918 else
10919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10920 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10921 fi
10922 set dummy $CC; ac_cc=`$as_echo "$2" |
10923                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10924 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
10925   $as_echo_n "(cached) " >&6
10926 else
10927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h.  */
10929
10930 int
10931 main ()
10932 {
10933
10934   ;
10935   return 0;
10936 }
10937 _ACEOF
10938 # Make sure it works both with $CC and with simple cc.
10939 # We do the test twice because some compilers refuse to overwrite an
10940 # existing .o file with -o, though they will create one.
10941 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10942 rm -f conftest2.*
10943 if { { case "(($ac_try" in
10944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945   *) ac_try_echo=$ac_try;;
10946 esac
10947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10948 $as_echo "$ac_try_echo"; } >&5
10949   (eval "$ac_try") 2>&5
10950   ac_status=$?
10951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10952   test $ac_status = 0; } &&
10953    test -f conftest2.$ac_objext && { { case "(($ac_try" in
10954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955   *) ac_try_echo=$ac_try;;
10956 esac
10957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10958 $as_echo "$ac_try_echo"; } >&5
10959   (eval "$ac_try") 2>&5
10960   ac_status=$?
10961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10962   test $ac_status = 0; };
10963 then
10964   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10965   if test "x$CC" != xcc; then
10966     # Test first that cc exists at all.
10967     if { ac_try='cc -c conftest.$ac_ext >&5'
10968   { { case "(($ac_try" in
10969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970   *) ac_try_echo=$ac_try;;
10971 esac
10972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10973 $as_echo "$ac_try_echo"; } >&5
10974   (eval "$ac_try") 2>&5
10975   ac_status=$?
10976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10977   test $ac_status = 0; }; }; then
10978       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10979       rm -f conftest2.*
10980       if { { case "(($ac_try" in
10981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982   *) ac_try_echo=$ac_try;;
10983 esac
10984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10985 $as_echo "$ac_try_echo"; } >&5
10986   (eval "$ac_try") 2>&5
10987   ac_status=$?
10988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10989   test $ac_status = 0; } &&
10990          test -f conftest2.$ac_objext && { { case "(($ac_try" in
10991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992   *) ac_try_echo=$ac_try;;
10993 esac
10994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10995 $as_echo "$ac_try_echo"; } >&5
10996   (eval "$ac_try") 2>&5
10997   ac_status=$?
10998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10999   test $ac_status = 0; };
11000       then
11001         # cc works too.
11002         :
11003       else
11004         # cc exists but doesn't like -o.
11005         eval ac_cv_prog_cc_${ac_cc}_c_o=no
11006       fi
11007     fi
11008   fi
11009 else
11010   eval ac_cv_prog_cc_${ac_cc}_c_o=no
11011 fi
11012 rm -f core conftest*
11013
11014 fi
11015 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11017 $as_echo "yes" >&6; }
11018 else
11019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020 $as_echo "no" >&6; }
11021
11022 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11023
11024 fi
11025
11026 # expand $ac_aux_dir to an absolute path
11027 am_aux_dir=`cd $ac_aux_dir && pwd`
11028
11029 # FIXME: we rely on the cache variable name because
11030 # there is no other way.
11031 set dummy $CC
11032 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11033 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11034 if test "$am_t" != yes; then
11035    # Losing compiler, so override with the script.
11036    # FIXME: It is wrong to rewrite CC.
11037    # But if we don't then we get into trouble of one sort or another.
11038    # A longer-term fix would be to have automake use am__CC in this case,
11039    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11040    CC="$am_aux_dir/compile $CC"
11041 fi
11042
11043
11044
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11046 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11047 set x ${MAKE-make}
11048 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11049 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11050   $as_echo_n "(cached) " >&6
11051 else
11052   cat >conftest.make <<\_ACEOF
11053 SHELL = /bin/sh
11054 all:
11055         @echo '@@@%%%=$(MAKE)=@@@%%%'
11056 _ACEOF
11057 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11058 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11059   *@@@%%%=?*=@@@%%%*)
11060     eval ac_cv_prog_make_${ac_make}_set=yes;;
11061   *)
11062     eval ac_cv_prog_make_${ac_make}_set=no;;
11063 esac
11064 rm -f conftest.make
11065 fi
11066 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11068 $as_echo "yes" >&6; }
11069   SET_MAKE=
11070 else
11071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11073   SET_MAKE="MAKE=${MAKE-make}"
11074 fi
11075
11076
11077 # -------
11078 # Headers
11079 # -------
11080
11081 # Sanity check for the cross-compilation case:
11082 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
11083 if test "x$ac_cv_header_stdio_h" = x""yes; then :
11084   :
11085 else
11086   as_fn_error "Can't find stdio.h.
11087 You must have a usable C system for the target already installed, at least
11088 including headers and, preferably, the library, before you can configure
11089 the Objective C runtime system.  If necessary, install gcc now with
11090 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." "$LINENO" 5
11091 fi
11092
11093
11094
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11096 $as_echo_n "checking for ANSI C header files... " >&6; }
11097 if test "${ac_cv_header_stdc+set}" = set; then :
11098   $as_echo_n "(cached) " >&6
11099 else
11100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h.  */
11102 #include <stdlib.h>
11103 #include <stdarg.h>
11104 #include <string.h>
11105 #include <float.h>
11106
11107 int
11108 main ()
11109 {
11110
11111   ;
11112   return 0;
11113 }
11114 _ACEOF
11115 if ac_fn_c_try_compile "$LINENO"; then :
11116   ac_cv_header_stdc=yes
11117 else
11118   ac_cv_header_stdc=no
11119 fi
11120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11121
11122 if test $ac_cv_header_stdc = yes; then
11123   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h.  */
11126 #include <string.h>
11127
11128 _ACEOF
11129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11130   $EGREP "memchr" >/dev/null 2>&1; then :
11131
11132 else
11133   ac_cv_header_stdc=no
11134 fi
11135 rm -f conftest*
11136
11137 fi
11138
11139 if test $ac_cv_header_stdc = yes; then
11140   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h.  */
11143 #include <stdlib.h>
11144
11145 _ACEOF
11146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11147   $EGREP "free" >/dev/null 2>&1; then :
11148
11149 else
11150   ac_cv_header_stdc=no
11151 fi
11152 rm -f conftest*
11153
11154 fi
11155
11156 if test $ac_cv_header_stdc = yes; then
11157   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11158   if test "$cross_compiling" = yes; then :
11159   :
11160 else
11161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h.  */
11163 #include <ctype.h>
11164 #include <stdlib.h>
11165 #if ((' ' & 0x0FF) == 0x020)
11166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11168 #else
11169 # define ISLOWER(c) \
11170                    (('a' <= (c) && (c) <= 'i') \
11171                      || ('j' <= (c) && (c) <= 'r') \
11172                      || ('s' <= (c) && (c) <= 'z'))
11173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11174 #endif
11175
11176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11177 int
11178 main ()
11179 {
11180   int i;
11181   for (i = 0; i < 256; i++)
11182     if (XOR (islower (i), ISLOWER (i))
11183         || toupper (i) != TOUPPER (i))
11184       return 2;
11185   return 0;
11186 }
11187 _ACEOF
11188 if ac_fn_c_try_run "$LINENO"; then :
11189
11190 else
11191   ac_cv_header_stdc=no
11192 fi
11193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11194   conftest.$ac_objext conftest.beam conftest.$ac_ext
11195 fi
11196
11197 fi
11198 fi
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11200 $as_echo "$ac_cv_header_stdc" >&6; }
11201 if test $ac_cv_header_stdc = yes; then
11202
11203 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11204
11205 fi
11206
11207
11208 for ac_header in sched.h
11209 do :
11210   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
11211 if test "x$ac_cv_header_sched_h" = x""yes; then :
11212   cat >>confdefs.h <<_ACEOF
11213 #define HAVE_SCHED_H 1
11214 _ACEOF
11215
11216 fi
11217
11218 done
11219
11220
11221 # -----------
11222 # Miscellanea
11223 # -----------
11224
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
11226 $as_echo_n "checking for thread model used by GCC... " >&6; }
11227 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
11229 $as_echo "$target_thread_file" >&6; }
11230
11231 if test $target_thread_file != single; then
11232
11233 $as_echo "#define HAVE_GTHR_DEFAULT 1" >>confdefs.h
11234
11235 fi
11236
11237 # Check if we have thread-local storage
11238
11239
11240    # Check whether --enable-tls was given.
11241 if test "${enable_tls+set}" = set; then :
11242   enableval=$enable_tls;
11243       case "$enableval" in
11244        yes|no) ;;
11245        *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
11246       esac
11247
11248 else
11249   enable_tls=yes
11250 fi
11251
11252
11253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
11254 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
11255 if test "${gcc_cv_have_tls+set}" = set; then :
11256   $as_echo_n "(cached) " >&6
11257 else
11258
11259     if test "$cross_compiling" = yes; then :
11260                 if test x$gcc_no_link = xyes; then
11261   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11262 fi
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h.  */
11265 __thread int a; int b; int main() { return a = b; }
11266 _ACEOF
11267 if ac_fn_c_try_link "$LINENO"; then :
11268   chktls_save_LDFLAGS="$LDFLAGS"
11269                           case $host in
11270             *-*-linux*)
11271               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
11272               ;;
11273           esac
11274           chktls_save_CFLAGS="$CFLAGS"
11275           CFLAGS="-fPIC $CFLAGS"
11276                   if test x$gcc_no_link = xyes; then
11277   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11278 fi
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h.  */
11281 int f() { return 0; }
11282 _ACEOF
11283 if ac_fn_c_try_link "$LINENO"; then :
11284   if test x$gcc_no_link = xyes; then
11285   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11286 fi
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h.  */
11289 __thread int a; int b; int f() { return a = b; }
11290 _ACEOF
11291 if ac_fn_c_try_link "$LINENO"; then :
11292   gcc_cv_have_tls=yes
11293 else
11294   gcc_cv_have_tls=no
11295 fi
11296 rm -f core conftest.err conftest.$ac_objext \
11297     conftest$ac_exeext conftest.$ac_ext
11298 else
11299   gcc_cv_have_tls=yes
11300 fi
11301 rm -f core conftest.err conftest.$ac_objext \
11302     conftest$ac_exeext conftest.$ac_ext
11303           CFLAGS="$chktls_save_CFLAGS"
11304           LDFLAGS="$chktls_save_LDFLAGS"
11305 else
11306   gcc_cv_have_tls=no
11307 fi
11308 rm -f core conftest.err conftest.$ac_objext \
11309     conftest$ac_exeext conftest.$ac_ext
11310
11311
11312 else
11313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h.  */
11315 __thread int a; int b; int main() { return a = b; }
11316 _ACEOF
11317 if ac_fn_c_try_run "$LINENO"; then :
11318                       chktls_save_LDFLAGS="$LDFLAGS"
11319       LDFLAGS="-static $LDFLAGS"
11320       if test x$gcc_no_link = xyes; then
11321   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11322 fi
11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h.  */
11325 int main() { return 0; }
11326 _ACEOF
11327 if ac_fn_c_try_link "$LINENO"; then :
11328   if test "$cross_compiling" = yes; then :
11329   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11331 as_fn_error "cannot run test program while cross compiling
11332 See \`config.log' for more details." "$LINENO" 5; }
11333 else
11334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h.  */
11336 __thread int a; int b; int main() { return a = b; }
11337 _ACEOF
11338 if ac_fn_c_try_run "$LINENO"; then :
11339   gcc_cv_have_tls=yes
11340 else
11341   gcc_cv_have_tls=no
11342 fi
11343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11344   conftest.$ac_objext conftest.beam conftest.$ac_ext
11345 fi
11346
11347 else
11348   gcc_cv_have_tls=yes
11349 fi
11350 rm -f core conftest.err conftest.$ac_objext \
11351     conftest$ac_exeext conftest.$ac_ext
11352       LDFLAGS="$chktls_save_LDFLAGS"
11353       if test $gcc_cv_have_tls = yes; then
11354                                                 chktls_save_CFLAGS="$CFLAGS"
11355         thread_CFLAGS=failed
11356         for flag in '' '-pthread' '-lpthread'; do
11357           CFLAGS="$flag $chktls_save_CFLAGS"
11358           if test x$gcc_no_link = xyes; then
11359   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11360 fi
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h.  */
11363 #include <pthread.h>
11364                 void *g(void *d) { return NULL; }
11365 int
11366 main ()
11367 {
11368 pthread_t t; pthread_create(&t,NULL,g,NULL);
11369   ;
11370   return 0;
11371 }
11372 _ACEOF
11373 if ac_fn_c_try_link "$LINENO"; then :
11374   thread_CFLAGS="$flag"
11375 fi
11376 rm -f core conftest.err conftest.$ac_objext \
11377     conftest$ac_exeext conftest.$ac_ext
11378           if test "X$thread_CFLAGS" != Xfailed; then
11379             break
11380           fi
11381         done
11382         CFLAGS="$chktls_save_CFLAGS"
11383         if test "X$thread_CFLAGS" != Xfailed; then
11384           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
11385                                                   if test "$cross_compiling" = yes; then :
11386   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11388 as_fn_error "cannot run test program while cross compiling
11389 See \`config.log' for more details." "$LINENO" 5; }
11390 else
11391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h.  */
11393 #include <pthread.h>
11394                 __thread int a;
11395                 static int *volatile a_in_other_thread;
11396                 static void *
11397                 thread_func (void *arg)
11398                 {
11399                   a_in_other_thread = &a;
11400                   return (void *)0;
11401                 }
11402 int
11403 main ()
11404 {
11405 pthread_t thread;
11406                 void *thread_retval;
11407                 int *volatile a_in_main_thread;
11408                 a_in_main_thread = &a;
11409                 if (pthread_create (&thread, (pthread_attr_t *)0,
11410                                     thread_func, (void *)0))
11411                   return 0;
11412                 if (pthread_join (thread, &thread_retval))
11413                   return 0;
11414                 return (a_in_other_thread == a_in_main_thread);
11415   ;
11416   return 0;
11417 }
11418 _ACEOF
11419 if ac_fn_c_try_run "$LINENO"; then :
11420   gcc_cv_have_tls=yes
11421 else
11422   gcc_cv_have_tls=no
11423 fi
11424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11425   conftest.$ac_objext conftest.beam conftest.$ac_ext
11426 fi
11427
11428           CFLAGS="$chktls_save_CFLAGS"
11429         fi
11430       fi
11431 else
11432   gcc_cv_have_tls=no
11433 fi
11434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11435   conftest.$ac_objext conftest.beam conftest.$ac_ext
11436 fi
11437
11438 fi
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
11440 $as_echo "$gcc_cv_have_tls" >&6; }
11441   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
11442
11443 $as_echo "#define HAVE_TLS 1" >>confdefs.h
11444
11445   fi
11446
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
11448 $as_echo_n "checking for exception model to use... " >&6; }
11449 ac_ext=c
11450 ac_cpp='$CPP $CPPFLAGS'
11451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11454
11455 # Check whether --enable-sjlj-exceptions was given.
11456 if test "${enable_sjlj_exceptions+set}" = set; then :
11457   enableval=$enable_sjlj_exceptions; :
11458 else
11459   cat > conftest.$ac_ext << EOF
11460 #line 11460 "configure"
11461 @interface Frob
11462 @end
11463 @implementation Frob
11464 @end
11465 int proc();
11466 int foo()
11467 {
11468   @try {
11469    return proc();
11470   }
11471   @catch (Frob* ex) {
11472     return 0;
11473   }
11474 }
11475 EOF
11476 old_CFLAGS="$CFLAGS"
11477 CFLAGS="-x objective-c -fgnu-runtime -fobjc-exceptions -S"
11478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11479   (eval $ac_compile) 2>&5
11480   ac_status=$?
11481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11482   test $ac_status = 0; }; then
11483   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
11484     enable_sjlj_exceptions=yes
11485   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
11486     enable_sjlj_exceptions=no
11487   fi
11488 fi
11489 CFLAGS="$old_CFLAGS"
11490 rm -f conftest*
11491 fi
11492
11493 if test x$enable_sjlj_exceptions = xyes; then
11494
11495 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
11496
11497   ac_exception_model_name=sjlj
11498 elif test x$enable_sjlj_exceptions = xno; then
11499   ac_exception_model_name="call frame"
11500 else
11501   as_fn_error "unable to detect exception model" "$LINENO" 5
11502 fi
11503 ac_ext=c
11504 ac_cpp='$CPP $CPPFLAGS'
11505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11508
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
11510 $as_echo "$ac_exception_model_name" >&6; }
11511
11512 # ------
11513 # Output
11514 # ------
11515
11516 if test ${multilib} = yes; then
11517   multilib_arg="--enable-multilib"
11518 else
11519   multilib_arg=
11520 fi
11521
11522 ac_config_files="$ac_config_files Makefile"
11523
11524 cat >confcache <<\_ACEOF
11525 # This file is a shell script that caches the results of configure
11526 # tests run on this system so they can be shared between configure
11527 # scripts and configure runs, see configure's option --config-cache.
11528 # It is not useful on other systems.  If it contains results you don't
11529 # want to keep, you may remove or edit it.
11530 #
11531 # config.status only pays attention to the cache file if you give it
11532 # the --recheck option to rerun configure.
11533 #
11534 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11535 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11536 # following values.
11537
11538 _ACEOF
11539
11540 # The following way of writing the cache mishandles newlines in values,
11541 # but we know of no workaround that is simple, portable, and efficient.
11542 # So, we kill variables containing newlines.
11543 # Ultrix sh set writes to stderr and can't be redirected directly,
11544 # and sets the high bit in the cache file unless we assign to the vars.
11545 (
11546   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11547     eval ac_val=\$$ac_var
11548     case $ac_val in #(
11549     *${as_nl}*)
11550       case $ac_var in #(
11551       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11552 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11553       esac
11554       case $ac_var in #(
11555       _ | IFS | as_nl) ;; #(
11556       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11557       *) { eval $ac_var=; unset $ac_var;} ;;
11558       esac ;;
11559     esac
11560   done
11561
11562   (set) 2>&1 |
11563     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11564     *${as_nl}ac_space=\ *)
11565       # `set' does not quote correctly, so add quotes: double-quote
11566       # substitution turns \\\\ into \\, and sed turns \\ into \.
11567       sed -n \
11568         "s/'/'\\\\''/g;
11569           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11570       ;; #(
11571     *)
11572       # `set' quotes correctly as required by POSIX, so do not add quotes.
11573       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11574       ;;
11575     esac |
11576     sort
11577 ) |
11578   sed '
11579      /^ac_cv_env_/b end
11580      t clear
11581      :clear
11582      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11583      t end
11584      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11585      :end' >>confcache
11586 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11587   if test -w "$cache_file"; then
11588     test "x$cache_file" != "x/dev/null" &&
11589       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11590 $as_echo "$as_me: updating cache $cache_file" >&6;}
11591     cat confcache >$cache_file
11592   else
11593     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11594 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11595   fi
11596 fi
11597 rm -f confcache
11598
11599 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11600 # Let make expand exec_prefix.
11601 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11602
11603 DEFS=-DHAVE_CONFIG_H
11604
11605 ac_libobjs=
11606 ac_ltlibobjs=
11607 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11608   # 1. Remove the extension, and $U if already installed.
11609   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11610   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11611   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11612   #    will be set to the directory where LIBOBJS objects are built.
11613   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11614   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11615 done
11616 LIBOBJS=$ac_libobjs
11617
11618 LTLIBOBJS=$ac_ltlibobjs
11619
11620
11621 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11622   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11624 fi
11625
11626 : ${CONFIG_STATUS=./config.status}
11627 ac_write_fail=0
11628 ac_clean_files_save=$ac_clean_files
11629 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11631 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11632 as_write_fail=0
11633 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11634 #! $SHELL
11635 # Generated by $as_me.
11636 # Run this file to recreate the current configuration.
11637 # Compiler output produced by configure, useful for debugging
11638 # configure, is in config.log if it exists.
11639
11640 debug=false
11641 ac_cs_recheck=false
11642 ac_cs_silent=false
11643
11644 SHELL=\${CONFIG_SHELL-$SHELL}
11645 export SHELL
11646 _ASEOF
11647 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11648 ## -------------------- ##
11649 ## M4sh Initialization. ##
11650 ## -------------------- ##
11651
11652 # Be more Bourne compatible
11653 DUALCASE=1; export DUALCASE # for MKS sh
11654 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11655   emulate sh
11656   NULLCMD=:
11657   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11658   # is contrary to our usage.  Disable this feature.
11659   alias -g '${1+"$@"}'='"$@"'
11660   setopt NO_GLOB_SUBST
11661 else
11662   case `(set -o) 2>/dev/null` in #(
11663   *posix*) :
11664     set -o posix ;; #(
11665   *) :
11666      ;;
11667 esac
11668 fi
11669
11670
11671 as_nl='
11672 '
11673 export as_nl
11674 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11675 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11676 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11677 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11678 # Prefer a ksh shell builtin over an external printf program on Solaris,
11679 # but without wasting forks for bash or zsh.
11680 if test -z "$BASH_VERSION$ZSH_VERSION" \
11681     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11682   as_echo='print -r --'
11683   as_echo_n='print -rn --'
11684 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11685   as_echo='printf %s\n'
11686   as_echo_n='printf %s'
11687 else
11688   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11689     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11690     as_echo_n='/usr/ucb/echo -n'
11691   else
11692     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11693     as_echo_n_body='eval
11694       arg=$1;
11695       case $arg in #(
11696       *"$as_nl"*)
11697         expr "X$arg" : "X\\(.*\\)$as_nl";
11698         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11699       esac;
11700       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11701     '
11702     export as_echo_n_body
11703     as_echo_n='sh -c $as_echo_n_body as_echo'
11704   fi
11705   export as_echo_body
11706   as_echo='sh -c $as_echo_body as_echo'
11707 fi
11708
11709 # The user is always right.
11710 if test "${PATH_SEPARATOR+set}" != set; then
11711   PATH_SEPARATOR=:
11712   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11713     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11714       PATH_SEPARATOR=';'
11715   }
11716 fi
11717
11718
11719 # IFS
11720 # We need space, tab and new line, in precisely that order.  Quoting is
11721 # there to prevent editors from complaining about space-tab.
11722 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11723 # splitting by setting IFS to empty value.)
11724 IFS=" ""        $as_nl"
11725
11726 # Find who we are.  Look in the path if we contain no directory separator.
11727 case $0 in #((
11728   *[\\/]* ) as_myself=$0 ;;
11729   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11731 do
11732   IFS=$as_save_IFS
11733   test -z "$as_dir" && as_dir=.
11734     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11735   done
11736 IFS=$as_save_IFS
11737
11738      ;;
11739 esac
11740 # We did not find ourselves, most probably we were run as `sh COMMAND'
11741 # in which case we are not to be found in the path.
11742 if test "x$as_myself" = x; then
11743   as_myself=$0
11744 fi
11745 if test ! -f "$as_myself"; then
11746   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11747   exit 1
11748 fi
11749
11750 # Unset variables that we do not need and which cause bugs (e.g. in
11751 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11752 # suppresses any "Segmentation fault" message there.  '((' could
11753 # trigger a bug in pdksh 5.2.14.
11754 for as_var in BASH_ENV ENV MAIL MAILPATH
11755 do eval test x\${$as_var+set} = xset \
11756   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11757 done
11758 PS1='$ '
11759 PS2='> '
11760 PS4='+ '
11761
11762 # NLS nuisances.
11763 LC_ALL=C
11764 export LC_ALL
11765 LANGUAGE=C
11766 export LANGUAGE
11767
11768 # CDPATH.
11769 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11770
11771
11772 # as_fn_error ERROR [LINENO LOG_FD]
11773 # ---------------------------------
11774 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11775 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11776 # script with status $?, using 1 if that was 0.
11777 as_fn_error ()
11778 {
11779   as_status=$?; test $as_status -eq 0 && as_status=1
11780   if test "$3"; then
11781     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11782     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11783   fi
11784   $as_echo "$as_me: error: $1" >&2
11785   as_fn_exit $as_status
11786 } # as_fn_error
11787
11788
11789 # as_fn_set_status STATUS
11790 # -----------------------
11791 # Set $? to STATUS, without forking.
11792 as_fn_set_status ()
11793 {
11794   return $1
11795 } # as_fn_set_status
11796
11797 # as_fn_exit STATUS
11798 # -----------------
11799 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11800 as_fn_exit ()
11801 {
11802   set +e
11803   as_fn_set_status $1
11804   exit $1
11805 } # as_fn_exit
11806
11807 # as_fn_unset VAR
11808 # ---------------
11809 # Portably unset VAR.
11810 as_fn_unset ()
11811 {
11812   { eval $1=; unset $1;}
11813 }
11814 as_unset=as_fn_unset
11815 # as_fn_append VAR VALUE
11816 # ----------------------
11817 # Append the text in VALUE to the end of the definition contained in VAR. Take
11818 # advantage of any shell optimizations that allow amortized linear growth over
11819 # repeated appends, instead of the typical quadratic growth present in naive
11820 # implementations.
11821 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11822   eval 'as_fn_append ()
11823   {
11824     eval $1+=\$2
11825   }'
11826 else
11827   as_fn_append ()
11828   {
11829     eval $1=\$$1\$2
11830   }
11831 fi # as_fn_append
11832
11833 # as_fn_arith ARG...
11834 # ------------------
11835 # Perform arithmetic evaluation on the ARGs, and store the result in the
11836 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11837 # must be portable across $(()) and expr.
11838 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11839   eval 'as_fn_arith ()
11840   {
11841     as_val=$(( $* ))
11842   }'
11843 else
11844   as_fn_arith ()
11845   {
11846     as_val=`expr "$@" || test $? -eq 1`
11847   }
11848 fi # as_fn_arith
11849
11850
11851 if expr a : '\(a\)' >/dev/null 2>&1 &&
11852    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11853   as_expr=expr
11854 else
11855   as_expr=false
11856 fi
11857
11858 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11859   as_basename=basename
11860 else
11861   as_basename=false
11862 fi
11863
11864 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11865   as_dirname=dirname
11866 else
11867   as_dirname=false
11868 fi
11869
11870 as_me=`$as_basename -- "$0" ||
11871 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11872          X"$0" : 'X\(//\)$' \| \
11873          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11874 $as_echo X/"$0" |
11875     sed '/^.*\/\([^/][^/]*\)\/*$/{
11876             s//\1/
11877             q
11878           }
11879           /^X\/\(\/\/\)$/{
11880             s//\1/
11881             q
11882           }
11883           /^X\/\(\/\).*/{
11884             s//\1/
11885             q
11886           }
11887           s/.*/./; q'`
11888
11889 # Avoid depending upon Character Ranges.
11890 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11891 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11892 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11893 as_cr_digits='0123456789'
11894 as_cr_alnum=$as_cr_Letters$as_cr_digits
11895
11896 ECHO_C= ECHO_N= ECHO_T=
11897 case `echo -n x` in #(((((
11898 -n*)
11899   case `echo 'xy\c'` in
11900   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11901   xy)  ECHO_C='\c';;
11902   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11903        ECHO_T=' ';;
11904   esac;;
11905 *)
11906   ECHO_N='-n';;
11907 esac
11908
11909 rm -f conf$$ conf$$.exe conf$$.file
11910 if test -d conf$$.dir; then
11911   rm -f conf$$.dir/conf$$.file
11912 else
11913   rm -f conf$$.dir
11914   mkdir conf$$.dir 2>/dev/null
11915 fi
11916 if (echo >conf$$.file) 2>/dev/null; then
11917   if ln -s conf$$.file conf$$ 2>/dev/null; then
11918     as_ln_s='ln -s'
11919     # ... but there are two gotchas:
11920     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11921     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11922     # In both cases, we have to default to `cp -p'.
11923     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11924       as_ln_s='cp -p'
11925   elif ln conf$$.file conf$$ 2>/dev/null; then
11926     as_ln_s=ln
11927   else
11928     as_ln_s='cp -p'
11929   fi
11930 else
11931   as_ln_s='cp -p'
11932 fi
11933 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11934 rmdir conf$$.dir 2>/dev/null
11935
11936
11937 # as_fn_mkdir_p
11938 # -------------
11939 # Create "$as_dir" as a directory, including parents if necessary.
11940 as_fn_mkdir_p ()
11941 {
11942
11943   case $as_dir in #(
11944   -*) as_dir=./$as_dir;;
11945   esac
11946   test -d "$as_dir" || eval $as_mkdir_p || {
11947     as_dirs=
11948     while :; do
11949       case $as_dir in #(
11950       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11951       *) as_qdir=$as_dir;;
11952       esac
11953       as_dirs="'$as_qdir' $as_dirs"
11954       as_dir=`$as_dirname -- "$as_dir" ||
11955 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11956          X"$as_dir" : 'X\(//\)[^/]' \| \
11957          X"$as_dir" : 'X\(//\)$' \| \
11958          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11959 $as_echo X"$as_dir" |
11960     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11961             s//\1/
11962             q
11963           }
11964           /^X\(\/\/\)[^/].*/{
11965             s//\1/
11966             q
11967           }
11968           /^X\(\/\/\)$/{
11969             s//\1/
11970             q
11971           }
11972           /^X\(\/\).*/{
11973             s//\1/
11974             q
11975           }
11976           s/.*/./; q'`
11977       test -d "$as_dir" && break
11978     done
11979     test -z "$as_dirs" || eval "mkdir $as_dirs"
11980   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11981
11982
11983 } # as_fn_mkdir_p
11984 if mkdir -p . 2>/dev/null; then
11985   as_mkdir_p='mkdir -p "$as_dir"'
11986 else
11987   test -d ./-p && rmdir ./-p
11988   as_mkdir_p=false
11989 fi
11990
11991 if test -x / >/dev/null 2>&1; then
11992   as_test_x='test -x'
11993 else
11994   if ls -dL / >/dev/null 2>&1; then
11995     as_ls_L_option=L
11996   else
11997     as_ls_L_option=
11998   fi
11999   as_test_x='
12000     eval sh -c '\''
12001       if test -d "$1"; then
12002         test -d "$1/.";
12003       else
12004         case $1 in #(
12005         -*)set "./$1";;
12006         esac;
12007         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12008         ???[sx]*):;;*)false;;esac;fi
12009     '\'' sh
12010   '
12011 fi
12012 as_executable_p=$as_test_x
12013
12014 # Sed expression to map a string onto a valid CPP name.
12015 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12016
12017 # Sed expression to map a string onto a valid variable name.
12018 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12019
12020
12021 exec 6>&1
12022 ## ----------------------------------- ##
12023 ## Main body of $CONFIG_STATUS script. ##
12024 ## ----------------------------------- ##
12025 _ASEOF
12026 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12027
12028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12029 # Save the log message, to keep $0 and so on meaningful, and to
12030 # report actual input values of CONFIG_FILES etc. instead of their
12031 # values after options handling.
12032 ac_log="
12033 This file was extended by package-unused $as_me version-unused, which was
12034 generated by GNU Autoconf 2.64.  Invocation command line was
12035
12036   CONFIG_FILES    = $CONFIG_FILES
12037   CONFIG_HEADERS  = $CONFIG_HEADERS
12038   CONFIG_LINKS    = $CONFIG_LINKS
12039   CONFIG_COMMANDS = $CONFIG_COMMANDS
12040   $ $0 $@
12041
12042 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12043 "
12044
12045 _ACEOF
12046
12047 case $ac_config_files in *"
12048 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12049 esac
12050
12051 case $ac_config_headers in *"
12052 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12053 esac
12054
12055
12056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12057 # Files that config.status was made for.
12058 config_files="$ac_config_files"
12059 config_headers="$ac_config_headers"
12060 config_commands="$ac_config_commands"
12061
12062 _ACEOF
12063
12064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12065 ac_cs_usage="\
12066 \`$as_me' instantiates files and other configuration actions
12067 from templates according to the current configuration.  Unless the files
12068 and actions are specified as TAGs, all are instantiated by default.
12069
12070 Usage: $0 [OPTION]... [TAG]...
12071
12072   -h, --help       print this help, then exit
12073   -V, --version    print version number and configuration settings, then exit
12074   -q, --quiet, --silent
12075                    do not print progress messages
12076   -d, --debug      don't remove temporary files
12077       --recheck    update $as_me by reconfiguring in the same conditions
12078       --file=FILE[:TEMPLATE]
12079                    instantiate the configuration file FILE
12080       --header=FILE[:TEMPLATE]
12081                    instantiate the configuration header FILE
12082
12083 Configuration files:
12084 $config_files
12085
12086 Configuration headers:
12087 $config_headers
12088
12089 Configuration commands:
12090 $config_commands
12091
12092 Report bugs to the package provider."
12093
12094 _ACEOF
12095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12096 ac_cs_version="\\
12097 package-unused config.status version-unused
12098 configured by $0, generated by GNU Autoconf 2.64,
12099   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12100
12101 Copyright (C) 2009 Free Software Foundation, Inc.
12102 This config.status script is free software; the Free Software Foundation
12103 gives unlimited permission to copy, distribute and modify it."
12104
12105 ac_pwd='$ac_pwd'
12106 srcdir='$srcdir'
12107 INSTALL='$INSTALL'
12108 AWK='$AWK'
12109 test -n "\$AWK" || AWK=awk
12110 _ACEOF
12111
12112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12113 # The default lists apply if the user does not specify any file.
12114 ac_need_defaults=:
12115 while test $# != 0
12116 do
12117   case $1 in
12118   --*=*)
12119     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12120     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12121     ac_shift=:
12122     ;;
12123   *)
12124     ac_option=$1
12125     ac_optarg=$2
12126     ac_shift=shift
12127     ;;
12128   esac
12129
12130   case $ac_option in
12131   # Handling of the options.
12132   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12133     ac_cs_recheck=: ;;
12134   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12135     $as_echo "$ac_cs_version"; exit ;;
12136   --debug | --debu | --deb | --de | --d | -d )
12137     debug=: ;;
12138   --file | --fil | --fi | --f )
12139     $ac_shift
12140     case $ac_optarg in
12141     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12142     esac
12143     as_fn_append CONFIG_FILES " '$ac_optarg'"
12144     ac_need_defaults=false;;
12145   --header | --heade | --head | --hea )
12146     $ac_shift
12147     case $ac_optarg in
12148     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12149     esac
12150     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12151     ac_need_defaults=false;;
12152   --he | --h)
12153     # Conflict between --help and --header
12154     as_fn_error "ambiguous option: \`$1'
12155 Try \`$0 --help' for more information.";;
12156   --help | --hel | -h )
12157     $as_echo "$ac_cs_usage"; exit ;;
12158   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12159   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12160     ac_cs_silent=: ;;
12161
12162   # This is an error.
12163   -*) as_fn_error "unrecognized option: \`$1'
12164 Try \`$0 --help' for more information." ;;
12165
12166   *) as_fn_append ac_config_targets " $1"
12167      ac_need_defaults=false ;;
12168
12169   esac
12170   shift
12171 done
12172
12173 ac_configure_extra_args=
12174
12175 if $ac_cs_silent; then
12176   exec 6>/dev/null
12177   ac_configure_extra_args="$ac_configure_extra_args --silent"
12178 fi
12179
12180 _ACEOF
12181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12182 if \$ac_cs_recheck; then
12183   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12184   shift
12185   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12186   CONFIG_SHELL='$SHELL'
12187   export CONFIG_SHELL
12188   exec "\$@"
12189 fi
12190
12191 _ACEOF
12192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12193 exec 5>>config.log
12194 {
12195   echo
12196   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12197 ## Running $as_me. ##
12198 _ASBOX
12199   $as_echo "$ac_log"
12200 } >&5
12201
12202 _ACEOF
12203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12204 #
12205 # INIT-COMMANDS
12206 #
12207
12208 srcdir="$srcdir"
12209 host="$host"
12210 target="$target"
12211 with_multisubdir="$with_multisubdir"
12212 with_multisrctop="$with_multisrctop"
12213 with_target_subdir="$with_target_subdir"
12214 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12215 multi_basedir="$multi_basedir"
12216 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12217 CC="$CC"
12218 CXX="$CXX"
12219 GFORTRAN="$GFORTRAN"
12220 GCJ="$GCJ"
12221
12222
12223 # The HP-UX ksh and POSIX shell print the target directory to stdout
12224 # if CDPATH is set.
12225 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12226
12227 sed_quote_subst='$sed_quote_subst'
12228 double_quote_subst='$double_quote_subst'
12229 delay_variable_subst='$delay_variable_subst'
12230 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12231 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12232 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12233 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12234 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12235 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12236 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12237 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12238 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12239 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12240 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12241 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12242 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12243 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12244 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12245 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12246 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12247 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12248 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12249 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12250 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12251 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12252 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12253 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12254 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12255 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12256 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12257 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12258 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12259 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12260 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12261 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12262 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12263 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12264 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12265 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12266 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12267 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12268 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12269 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12270 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12271 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12272 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12273 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12274 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12275 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12276 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12277 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12278 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12279 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12280 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"`'
12281 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12282 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12283 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12284 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12285 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12286 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12287 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12288 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12289 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12290 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12291 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12292 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12293 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12294 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12295 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12296 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12297 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12298 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12299 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12300 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12301 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12302 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12303 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12304 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12305 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12306 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12307 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12308 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12309 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12310 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12311 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12312 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12313 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12314 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12315 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12316 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12317 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12318 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12319 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12320 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12321 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12322 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12323 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12324 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12325 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12326 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12327 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12328 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12329 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12330 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12331 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12332 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12333 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12334 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12335 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12336 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12337 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12338 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12339 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12340 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12341 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12342 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12343 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12344 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12345 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12346 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12347 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12348 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12349 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12350 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12351 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12352
12353 LTCC='$LTCC'
12354 LTCFLAGS='$LTCFLAGS'
12355 compiler='$compiler_DEFAULT'
12356
12357 # A function that is used when there is no print builtin or printf.
12358 func_fallback_echo ()
12359 {
12360   eval 'cat <<_LTECHO_EOF
12361 \$1
12362 _LTECHO_EOF'
12363 }
12364
12365 # Quote evaled strings.
12366 for var in AS \
12367 DLLTOOL \
12368 OBJDUMP \
12369 SHELL \
12370 ECHO \
12371 SED \
12372 GREP \
12373 EGREP \
12374 FGREP \
12375 LD \
12376 NM \
12377 LN_S \
12378 lt_SP2NL \
12379 lt_NL2SP \
12380 reload_flag \
12381 deplibs_check_method \
12382 file_magic_cmd \
12383 AR \
12384 AR_FLAGS \
12385 STRIP \
12386 RANLIB \
12387 CC \
12388 CFLAGS \
12389 compiler \
12390 lt_cv_sys_global_symbol_pipe \
12391 lt_cv_sys_global_symbol_to_cdecl \
12392 lt_cv_sys_global_symbol_to_c_name_address \
12393 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12394 lt_prog_compiler_no_builtin_flag \
12395 lt_prog_compiler_wl \
12396 lt_prog_compiler_pic \
12397 lt_prog_compiler_static \
12398 lt_cv_prog_compiler_c_o \
12399 need_locks \
12400 DSYMUTIL \
12401 NMEDIT \
12402 LIPO \
12403 OTOOL \
12404 OTOOL64 \
12405 shrext_cmds \
12406 export_dynamic_flag_spec \
12407 whole_archive_flag_spec \
12408 compiler_needs_object \
12409 with_gnu_ld \
12410 allow_undefined_flag \
12411 no_undefined_flag \
12412 hardcode_libdir_flag_spec \
12413 hardcode_libdir_flag_spec_ld \
12414 hardcode_libdir_separator \
12415 fix_srcfile_path \
12416 exclude_expsyms \
12417 include_expsyms \
12418 file_list_spec \
12419 variables_saved_for_relink \
12420 libname_spec \
12421 library_names_spec \
12422 soname_spec \
12423 install_override_mode \
12424 finish_eval \
12425 old_striplib \
12426 striplib; do
12427     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12428     *[\\\\\\\`\\"\\\$]*)
12429       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12430       ;;
12431     *)
12432       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12433       ;;
12434     esac
12435 done
12436
12437 # Double-quote double-evaled strings.
12438 for var in reload_cmds \
12439 old_postinstall_cmds \
12440 old_postuninstall_cmds \
12441 old_archive_cmds \
12442 extract_expsyms_cmds \
12443 old_archive_from_new_cmds \
12444 old_archive_from_expsyms_cmds \
12445 archive_cmds \
12446 archive_expsym_cmds \
12447 module_cmds \
12448 module_expsym_cmds \
12449 export_symbols_cmds \
12450 prelink_cmds \
12451 postinstall_cmds \
12452 postuninstall_cmds \
12453 finish_cmds \
12454 sys_lib_search_path_spec \
12455 sys_lib_dlsearch_path_spec; do
12456     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12457     *[\\\\\\\`\\"\\\$]*)
12458       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12459       ;;
12460     *)
12461       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12462       ;;
12463     esac
12464 done
12465
12466 ac_aux_dir='$ac_aux_dir'
12467 xsi_shell='$xsi_shell'
12468 lt_shell_append='$lt_shell_append'
12469
12470 # See if we are running on zsh, and set the options which allow our
12471 # commands through without removal of \ escapes INIT.
12472 if test -n "\${ZSH_VERSION+set}" ; then
12473    setopt NO_GLOB_SUBST
12474 fi
12475
12476
12477     PACKAGE='$PACKAGE'
12478     VERSION='$VERSION'
12479     TIMESTAMP='$TIMESTAMP'
12480     RM='$RM'
12481     ofile='$ofile'
12482
12483
12484
12485
12486 _ACEOF
12487
12488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12489
12490 # Handling of arguments.
12491 for ac_config_target in $ac_config_targets
12492 do
12493   case $ac_config_target in
12494     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12495     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12496     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12497     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12498
12499   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12500   esac
12501 done
12502
12503
12504 # If the user did not use the arguments to specify the items to instantiate,
12505 # then the envvar interface is used.  Set only those that are not.
12506 # We use the long form for the default assignment because of an extremely
12507 # bizarre bug on SunOS 4.1.3.
12508 if $ac_need_defaults; then
12509   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12510   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12511   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12512 fi
12513
12514 # Have a temporary directory for convenience.  Make it in the build tree
12515 # simply because there is no reason against having it here, and in addition,
12516 # creating and moving files from /tmp can sometimes cause problems.
12517 # Hook for its removal unless debugging.
12518 # Note that there is a small window in which the directory will not be cleaned:
12519 # after its creation but before its name has been assigned to `$tmp'.
12520 $debug ||
12521 {
12522   tmp=
12523   trap 'exit_status=$?
12524   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12525 ' 0
12526   trap 'as_fn_exit 1' 1 2 13 15
12527 }
12528 # Create a (secure) tmp directory for tmp files.
12529
12530 {
12531   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12532   test -n "$tmp" && test -d "$tmp"
12533 }  ||
12534 {
12535   tmp=./conf$$-$RANDOM
12536   (umask 077 && mkdir "$tmp")
12537 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12538
12539 # Set up the scripts for CONFIG_FILES section.
12540 # No need to generate them if there are no CONFIG_FILES.
12541 # This happens for instance with `./config.status config.h'.
12542 if test -n "$CONFIG_FILES"; then
12543
12544
12545 ac_cr=`echo X | tr X '\015'`
12546 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12547 # But we know of no other shell where ac_cr would be empty at this
12548 # point, so we can use a bashism as a fallback.
12549 if test "x$ac_cr" = x; then
12550   eval ac_cr=\$\'\\r\'
12551 fi
12552 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12553 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12554   ac_cs_awk_cr='\r'
12555 else
12556   ac_cs_awk_cr=$ac_cr
12557 fi
12558
12559 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12560 _ACEOF
12561
12562
12563 {
12564   echo "cat >conf$$subs.awk <<_ACEOF" &&
12565   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12566   echo "_ACEOF"
12567 } >conf$$subs.sh ||
12568   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12569 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12570 ac_delim='%!_!# '
12571 for ac_last_try in false false false false false :; do
12572   . ./conf$$subs.sh ||
12573     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12574
12575   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12576   if test $ac_delim_n = $ac_delim_num; then
12577     break
12578   elif $ac_last_try; then
12579     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12580   else
12581     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12582   fi
12583 done
12584 rm -f conf$$subs.sh
12585
12586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12587 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12588 _ACEOF
12589 sed -n '
12590 h
12591 s/^/S["/; s/!.*/"]=/
12592 p
12593 g
12594 s/^[^!]*!//
12595 :repl
12596 t repl
12597 s/'"$ac_delim"'$//
12598 t delim
12599 :nl
12600 h
12601 s/\(.\{148\}\).*/\1/
12602 t more1
12603 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12604 p
12605 n
12606 b repl
12607 :more1
12608 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12609 p
12610 g
12611 s/.\{148\}//
12612 t nl
12613 :delim
12614 h
12615 s/\(.\{148\}\).*/\1/
12616 t more2
12617 s/["\\]/\\&/g; s/^/"/; s/$/"/
12618 p
12619 b
12620 :more2
12621 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12622 p
12623 g
12624 s/.\{148\}//
12625 t delim
12626 ' <conf$$subs.awk | sed '
12627 /^[^""]/{
12628   N
12629   s/\n//
12630 }
12631 ' >>$CONFIG_STATUS || ac_write_fail=1
12632 rm -f conf$$subs.awk
12633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12634 _ACAWK
12635 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12636   for (key in S) S_is_set[key] = 1
12637   FS = "\a"
12638
12639 }
12640 {
12641   line = $ 0
12642   nfields = split(line, field, "@")
12643   substed = 0
12644   len = length(field[1])
12645   for (i = 2; i < nfields; i++) {
12646     key = field[i]
12647     keylen = length(key)
12648     if (S_is_set[key]) {
12649       value = S[key]
12650       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12651       len += length(value) + length(field[++i])
12652       substed = 1
12653     } else
12654       len += 1 + keylen
12655   }
12656
12657   print line
12658 }
12659
12660 _ACAWK
12661 _ACEOF
12662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12663 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12664   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12665 else
12666   cat
12667 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12668   || as_fn_error "could not setup config files machinery" "$LINENO" 5
12669 _ACEOF
12670
12671 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12672 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12673 # trailing colons and then remove the whole line if VPATH becomes empty
12674 # (actually we leave an empty line to preserve line numbers).
12675 if test "x$srcdir" = x.; then
12676   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12677 s/:*\$(srcdir):*/:/
12678 s/:*\${srcdir}:*/:/
12679 s/:*@srcdir@:*/:/
12680 s/^\([^=]*=[     ]*\):*/\1/
12681 s/:*$//
12682 s/^[^=]*=[       ]*$//
12683 }'
12684 fi
12685
12686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12687 fi # test -n "$CONFIG_FILES"
12688
12689 # Set up the scripts for CONFIG_HEADERS section.
12690 # No need to generate them if there are no CONFIG_HEADERS.
12691 # This happens for instance with `./config.status Makefile'.
12692 if test -n "$CONFIG_HEADERS"; then
12693 cat >"$tmp/defines.awk" <<\_ACAWK ||
12694 BEGIN {
12695 _ACEOF
12696
12697 # Transform confdefs.h into an awk script `defines.awk', embedded as
12698 # here-document in config.status, that substitutes the proper values into
12699 # config.h.in to produce config.h.
12700
12701 # Create a delimiter string that does not exist in confdefs.h, to ease
12702 # handling of long lines.
12703 ac_delim='%!_!# '
12704 for ac_last_try in false false :; do
12705   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12706   if test -z "$ac_t"; then
12707     break
12708   elif $ac_last_try; then
12709     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12710   else
12711     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12712   fi
12713 done
12714
12715 # For the awk script, D is an array of macro values keyed by name,
12716 # likewise P contains macro parameters if any.  Preserve backslash
12717 # newline sequences.
12718
12719 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12720 sed -n '
12721 s/.\{148\}/&'"$ac_delim"'/g
12722 t rset
12723 :rset
12724 s/^[     ]*#[    ]*define[       ][      ]*/ /
12725 t def
12726 d
12727 :def
12728 s/\\$//
12729 t bsnl
12730 s/["\\]/\\&/g
12731 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12732 D["\1"]=" \3"/p
12733 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12734 d
12735 :bsnl
12736 s/["\\]/\\&/g
12737 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12738 D["\1"]=" \3\\\\\\n"\\/p
12739 t cont
12740 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12741 t cont
12742 d
12743 :cont
12744 n
12745 s/.\{148\}/&'"$ac_delim"'/g
12746 t clear
12747 :clear
12748 s/\\$//
12749 t bsnlc
12750 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12751 d
12752 :bsnlc
12753 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12754 b cont
12755 ' <confdefs.h | sed '
12756 s/'"$ac_delim"'/"\\\
12757 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12758
12759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12760   for (key in D) D_is_set[key] = 1
12761   FS = "\a"
12762 }
12763 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12764   line = \$ 0
12765   split(line, arg, " ")
12766   if (arg[1] == "#") {
12767     defundef = arg[2]
12768     mac1 = arg[3]
12769   } else {
12770     defundef = substr(arg[1], 2)
12771     mac1 = arg[2]
12772   }
12773   split(mac1, mac2, "(") #)
12774   macro = mac2[1]
12775   prefix = substr(line, 1, index(line, defundef) - 1)
12776   if (D_is_set[macro]) {
12777     # Preserve the white space surrounding the "#".
12778     print prefix "define", macro P[macro] D[macro]
12779     next
12780   } else {
12781     # Replace #undef with comments.  This is necessary, for example,
12782     # in the case of _POSIX_SOURCE, which is predefined and required
12783     # on some systems where configure will not decide to define it.
12784     if (defundef == "undef") {
12785       print "/*", prefix defundef, macro, "*/"
12786       next
12787     }
12788   }
12789 }
12790 { print }
12791 _ACAWK
12792 _ACEOF
12793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12794   as_fn_error "could not setup config headers machinery" "$LINENO" 5
12795 fi # test -n "$CONFIG_HEADERS"
12796
12797
12798 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12799 shift
12800 for ac_tag
12801 do
12802   case $ac_tag in
12803   :[FHLC]) ac_mode=$ac_tag; continue;;
12804   esac
12805   case $ac_mode$ac_tag in
12806   :[FHL]*:*);;
12807   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12808   :[FH]-) ac_tag=-:-;;
12809   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12810   esac
12811   ac_save_IFS=$IFS
12812   IFS=:
12813   set x $ac_tag
12814   IFS=$ac_save_IFS
12815   shift
12816   ac_file=$1
12817   shift
12818
12819   case $ac_mode in
12820   :L) ac_source=$1;;
12821   :[FH])
12822     ac_file_inputs=
12823     for ac_f
12824     do
12825       case $ac_f in
12826       -) ac_f="$tmp/stdin";;
12827       *) # Look for the file first in the build tree, then in the source tree
12828          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12829          # because $ac_f cannot contain `:'.
12830          test -f "$ac_f" ||
12831            case $ac_f in
12832            [\\/$]*) false;;
12833            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12834            esac ||
12835            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12836       esac
12837       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12838       as_fn_append ac_file_inputs " '$ac_f'"
12839     done
12840
12841     # Let's still pretend it is `configure' which instantiates (i.e., don't
12842     # use $as_me), people would be surprised to read:
12843     #    /* config.h.  Generated by config.status.  */
12844     configure_input='Generated from '`
12845           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12846         `' by configure.'
12847     if test x"$ac_file" != x-; then
12848       configure_input="$ac_file.  $configure_input"
12849       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12850 $as_echo "$as_me: creating $ac_file" >&6;}
12851     fi
12852     # Neutralize special characters interpreted by sed in replacement strings.
12853     case $configure_input in #(
12854     *\&* | *\|* | *\\* )
12855        ac_sed_conf_input=`$as_echo "$configure_input" |
12856        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12857     *) ac_sed_conf_input=$configure_input;;
12858     esac
12859
12860     case $ac_tag in
12861     *:-:* | *:-) cat >"$tmp/stdin" \
12862       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12863     esac
12864     ;;
12865   esac
12866
12867   ac_dir=`$as_dirname -- "$ac_file" ||
12868 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12869          X"$ac_file" : 'X\(//\)[^/]' \| \
12870          X"$ac_file" : 'X\(//\)$' \| \
12871          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12872 $as_echo X"$ac_file" |
12873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12874             s//\1/
12875             q
12876           }
12877           /^X\(\/\/\)[^/].*/{
12878             s//\1/
12879             q
12880           }
12881           /^X\(\/\/\)$/{
12882             s//\1/
12883             q
12884           }
12885           /^X\(\/\).*/{
12886             s//\1/
12887             q
12888           }
12889           s/.*/./; q'`
12890   as_dir="$ac_dir"; as_fn_mkdir_p
12891   ac_builddir=.
12892
12893 case "$ac_dir" in
12894 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12895 *)
12896   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12897   # A ".." for each directory in $ac_dir_suffix.
12898   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12899   case $ac_top_builddir_sub in
12900   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12901   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12902   esac ;;
12903 esac
12904 ac_abs_top_builddir=$ac_pwd
12905 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12906 # for backward compatibility:
12907 ac_top_builddir=$ac_top_build_prefix
12908
12909 case $srcdir in
12910   .)  # We are building in place.
12911     ac_srcdir=.
12912     ac_top_srcdir=$ac_top_builddir_sub
12913     ac_abs_top_srcdir=$ac_pwd ;;
12914   [\\/]* | ?:[\\/]* )  # Absolute name.
12915     ac_srcdir=$srcdir$ac_dir_suffix;
12916     ac_top_srcdir=$srcdir
12917     ac_abs_top_srcdir=$srcdir ;;
12918   *) # Relative name.
12919     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12920     ac_top_srcdir=$ac_top_build_prefix$srcdir
12921     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12922 esac
12923 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12924
12925
12926   case $ac_mode in
12927   :F)
12928   #
12929   # CONFIG_FILE
12930   #
12931
12932   case $INSTALL in
12933   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12934   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12935   esac
12936 _ACEOF
12937
12938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12939 # If the template does not know about datarootdir, expand it.
12940 # FIXME: This hack should be removed a few years after 2.60.
12941 ac_datarootdir_hack=; ac_datarootdir_seen=
12942 ac_sed_dataroot='
12943 /datarootdir/ {
12944   p
12945   q
12946 }
12947 /@datadir@/p
12948 /@docdir@/p
12949 /@infodir@/p
12950 /@localedir@/p
12951 /@mandir@/p'
12952 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12953 *datarootdir*) ac_datarootdir_seen=yes;;
12954 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12955   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12956 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12957 _ACEOF
12958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12959   ac_datarootdir_hack='
12960   s&@datadir@&$datadir&g
12961   s&@docdir@&$docdir&g
12962   s&@infodir@&$infodir&g
12963   s&@localedir@&$localedir&g
12964   s&@mandir@&$mandir&g
12965   s&\\\${datarootdir}&$datarootdir&g' ;;
12966 esac
12967 _ACEOF
12968
12969 # Neutralize VPATH when `$srcdir' = `.'.
12970 # Shell code in configure.ac might set extrasub.
12971 # FIXME: do we really want to maintain this feature?
12972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12973 ac_sed_extra="$ac_vpsub
12974 $extrasub
12975 _ACEOF
12976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12977 :t
12978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12979 s|@configure_input@|$ac_sed_conf_input|;t t
12980 s&@top_builddir@&$ac_top_builddir_sub&;t t
12981 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12982 s&@srcdir@&$ac_srcdir&;t t
12983 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12984 s&@top_srcdir@&$ac_top_srcdir&;t t
12985 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12986 s&@builddir@&$ac_builddir&;t t
12987 s&@abs_builddir@&$ac_abs_builddir&;t t
12988 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12989 s&@INSTALL@&$ac_INSTALL&;t t
12990 $ac_datarootdir_hack
12991 "
12992 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12993   || as_fn_error "could not create $ac_file" "$LINENO" 5
12994
12995 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12996   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12997   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12998   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12999 which seems to be undefined.  Please make sure it is defined." >&5
13000 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13001 which seems to be undefined.  Please make sure it is defined." >&2;}
13002
13003   rm -f "$tmp/stdin"
13004   case $ac_file in
13005   -) cat "$tmp/out" && rm -f "$tmp/out";;
13006   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13007   esac \
13008   || as_fn_error "could not create $ac_file" "$LINENO" 5
13009  ;;
13010   :H)
13011   #
13012   # CONFIG_HEADER
13013   #
13014   if test x"$ac_file" != x-; then
13015     {
13016       $as_echo "/* $configure_input  */" \
13017       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13018     } >"$tmp/config.h" \
13019       || as_fn_error "could not create $ac_file" "$LINENO" 5
13020     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13021       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13022 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13023     else
13024       rm -f "$ac_file"
13025       mv "$tmp/config.h" "$ac_file" \
13026         || as_fn_error "could not create $ac_file" "$LINENO" 5
13027     fi
13028   else
13029     $as_echo "/* $configure_input  */" \
13030       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13031       || as_fn_error "could not create -" "$LINENO" 5
13032   fi
13033  ;;
13034
13035   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13036 $as_echo "$as_me: executing $ac_file commands" >&6;}
13037  ;;
13038   esac
13039
13040
13041   case $ac_file$ac_mode in
13042     "default-1":C)
13043 # Only add multilib support code if we just rebuilt the top-level
13044 # Makefile.
13045 case " $CONFIG_FILES " in
13046  *" Makefile "*)
13047    ac_file=Makefile . ${multi_basedir}/config-ml.in
13048    ;;
13049 esac ;;
13050     "libtool":C)
13051
13052     # See if we are running on zsh, and set the options which allow our
13053     # commands through without removal of \ escapes.
13054     if test -n "${ZSH_VERSION+set}" ; then
13055       setopt NO_GLOB_SUBST
13056     fi
13057
13058     cfgfile="${ofile}T"
13059     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13060     $RM "$cfgfile"
13061
13062     cat <<_LT_EOF >> "$cfgfile"
13063 #! $SHELL
13064
13065 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13066 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13067 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13068 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13069 #
13070 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13071 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13072 #   Written by Gordon Matzigkeit, 1996
13073 #
13074 #   This file is part of GNU Libtool.
13075 #
13076 # GNU Libtool is free software; you can redistribute it and/or
13077 # modify it under the terms of the GNU General Public License as
13078 # published by the Free Software Foundation; either version 2 of
13079 # the License, or (at your option) any later version.
13080 #
13081 # As a special exception to the GNU General Public License,
13082 # if you distribute this file as part of a program or library that
13083 # is built using GNU Libtool, you may include this file under the
13084 # same distribution terms that you use for the rest of that program.
13085 #
13086 # GNU Libtool is distributed in the hope that it will be useful,
13087 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13088 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13089 # GNU General Public License for more details.
13090 #
13091 # You should have received a copy of the GNU General Public License
13092 # along with GNU Libtool; see the file COPYING.  If not, a copy
13093 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13094 # obtained by writing to the Free Software Foundation, Inc.,
13095 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13096
13097
13098 # The names of the tagged configurations supported by this script.
13099 available_tags=""
13100
13101 # ### BEGIN LIBTOOL CONFIG
13102
13103 # Assembler program.
13104 AS=$lt_AS
13105
13106 # DLL creation program.
13107 DLLTOOL=$lt_DLLTOOL
13108
13109 # Object dumper program.
13110 OBJDUMP=$lt_OBJDUMP
13111
13112 # Which release of libtool.m4 was used?
13113 macro_version=$macro_version
13114 macro_revision=$macro_revision
13115
13116 # Whether or not to build shared libraries.
13117 build_libtool_libs=$enable_shared
13118
13119 # Whether or not to build static libraries.
13120 build_old_libs=$enable_static
13121
13122 # What type of objects to build.
13123 pic_mode=$pic_mode
13124
13125 # Whether or not to optimize for fast installation.
13126 fast_install=$enable_fast_install
13127
13128 # Shell to use when invoking shell scripts.
13129 SHELL=$lt_SHELL
13130
13131 # An echo program that protects backslashes.
13132 ECHO=$lt_ECHO
13133
13134 # The host system.
13135 host_alias=$host_alias
13136 host=$host
13137 host_os=$host_os
13138
13139 # The build system.
13140 build_alias=$build_alias
13141 build=$build
13142 build_os=$build_os
13143
13144 # A sed program that does not truncate output.
13145 SED=$lt_SED
13146
13147 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13148 Xsed="\$SED -e 1s/^X//"
13149
13150 # A grep program that handles long lines.
13151 GREP=$lt_GREP
13152
13153 # An ERE matcher.
13154 EGREP=$lt_EGREP
13155
13156 # A literal string matcher.
13157 FGREP=$lt_FGREP
13158
13159 # A BSD- or MS-compatible name lister.
13160 NM=$lt_NM
13161
13162 # Whether we need soft or hard links.
13163 LN_S=$lt_LN_S
13164
13165 # What is the maximum length of a command?
13166 max_cmd_len=$max_cmd_len
13167
13168 # Object file suffix (normally "o").
13169 objext=$ac_objext
13170
13171 # Executable file suffix (normally "").
13172 exeext=$exeext
13173
13174 # whether the shell understands "unset".
13175 lt_unset=$lt_unset
13176
13177 # turn spaces into newlines.
13178 SP2NL=$lt_lt_SP2NL
13179
13180 # turn newlines into spaces.
13181 NL2SP=$lt_lt_NL2SP
13182
13183 # Method to check whether dependent libraries are shared objects.
13184 deplibs_check_method=$lt_deplibs_check_method
13185
13186 # Command to use when deplibs_check_method == "file_magic".
13187 file_magic_cmd=$lt_file_magic_cmd
13188
13189 # The archiver.
13190 AR=$lt_AR
13191 AR_FLAGS=$lt_AR_FLAGS
13192
13193 # A symbol stripping program.
13194 STRIP=$lt_STRIP
13195
13196 # Commands used to install an old-style archive.
13197 RANLIB=$lt_RANLIB
13198 old_postinstall_cmds=$lt_old_postinstall_cmds
13199 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13200
13201 # Whether to use a lock for old archive extraction.
13202 lock_old_archive_extraction=$lock_old_archive_extraction
13203
13204 # A C compiler.
13205 LTCC=$lt_CC
13206
13207 # LTCC compiler flags.
13208 LTCFLAGS=$lt_CFLAGS
13209
13210 # Take the output of nm and produce a listing of raw symbols and C names.
13211 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13212
13213 # Transform the output of nm in a proper C declaration.
13214 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13215
13216 # Transform the output of nm in a C name address pair.
13217 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13218
13219 # Transform the output of nm in a C name address pair when lib prefix is needed.
13220 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13221
13222 # The name of the directory that contains temporary libtool files.
13223 objdir=$objdir
13224
13225 # Used to examine libraries when file_magic_cmd begins with "file".
13226 MAGIC_CMD=$MAGIC_CMD
13227
13228 # Must we lock files when doing compilation?
13229 need_locks=$lt_need_locks
13230
13231 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13232 DSYMUTIL=$lt_DSYMUTIL
13233
13234 # Tool to change global to local symbols on Mac OS X.
13235 NMEDIT=$lt_NMEDIT
13236
13237 # Tool to manipulate fat objects and archives on Mac OS X.
13238 LIPO=$lt_LIPO
13239
13240 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13241 OTOOL=$lt_OTOOL
13242
13243 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13244 OTOOL64=$lt_OTOOL64
13245
13246 # Old archive suffix (normally "a").
13247 libext=$libext
13248
13249 # Shared library suffix (normally ".so").
13250 shrext_cmds=$lt_shrext_cmds
13251
13252 # The commands to extract the exported symbol list from a shared archive.
13253 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13254
13255 # Variables whose values should be saved in libtool wrapper scripts and
13256 # restored at link time.
13257 variables_saved_for_relink=$lt_variables_saved_for_relink
13258
13259 # Do we need the "lib" prefix for modules?
13260 need_lib_prefix=$need_lib_prefix
13261
13262 # Do we need a version for libraries?
13263 need_version=$need_version
13264
13265 # Library versioning type.
13266 version_type=$version_type
13267
13268 # Shared library runtime path variable.
13269 runpath_var=$runpath_var
13270
13271 # Shared library path variable.
13272 shlibpath_var=$shlibpath_var
13273
13274 # Is shlibpath searched before the hard-coded library search path?
13275 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13276
13277 # Format of library name prefix.
13278 libname_spec=$lt_libname_spec
13279
13280 # List of archive names.  First name is the real one, the rest are links.
13281 # The last name is the one that the linker finds with -lNAME
13282 library_names_spec=$lt_library_names_spec
13283
13284 # The coded name of the library, if different from the real name.
13285 soname_spec=$lt_soname_spec
13286
13287 # Permission mode override for installation of shared libraries.
13288 install_override_mode=$lt_install_override_mode
13289
13290 # Command to use after installation of a shared archive.
13291 postinstall_cmds=$lt_postinstall_cmds
13292
13293 # Command to use after uninstallation of a shared archive.
13294 postuninstall_cmds=$lt_postuninstall_cmds
13295
13296 # Commands used to finish a libtool library installation in a directory.
13297 finish_cmds=$lt_finish_cmds
13298
13299 # As "finish_cmds", except a single script fragment to be evaled but
13300 # not shown.
13301 finish_eval=$lt_finish_eval
13302
13303 # Whether we should hardcode library paths into libraries.
13304 hardcode_into_libs=$hardcode_into_libs
13305
13306 # Compile-time system search path for libraries.
13307 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13308
13309 # Run-time system search path for libraries.
13310 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13311
13312 # Whether dlopen is supported.
13313 dlopen_support=$enable_dlopen
13314
13315 # Whether dlopen of programs is supported.
13316 dlopen_self=$enable_dlopen_self
13317
13318 # Whether dlopen of statically linked programs is supported.
13319 dlopen_self_static=$enable_dlopen_self_static
13320
13321 # Commands to strip libraries.
13322 old_striplib=$lt_old_striplib
13323 striplib=$lt_striplib
13324
13325
13326 # The linker used to build libraries.
13327 LD=$lt_LD
13328
13329 # How to create reloadable object files.
13330 reload_flag=$lt_reload_flag
13331 reload_cmds=$lt_reload_cmds
13332
13333 # Commands used to build an old-style archive.
13334 old_archive_cmds=$lt_old_archive_cmds
13335
13336 # A language specific compiler.
13337 CC=$lt_compiler
13338
13339 # Is the compiler the GNU compiler?
13340 with_gcc=$GCC
13341
13342 # Compiler flag to turn off builtin functions.
13343 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13344
13345 # How to pass a linker flag through the compiler.
13346 wl=$lt_lt_prog_compiler_wl
13347
13348 # Additional compiler flags for building library objects.
13349 pic_flag=$lt_lt_prog_compiler_pic
13350
13351 # Compiler flag to prevent dynamic linking.
13352 link_static_flag=$lt_lt_prog_compiler_static
13353
13354 # Does compiler simultaneously support -c and -o options?
13355 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13356
13357 # Whether or not to add -lc for building shared libraries.
13358 build_libtool_need_lc=$archive_cmds_need_lc
13359
13360 # Whether or not to disallow shared libs when runtime libs are static.
13361 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13362
13363 # Compiler flag to allow reflexive dlopens.
13364 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13365
13366 # Compiler flag to generate shared objects directly from archives.
13367 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13368
13369 # Whether the compiler copes with passing no objects directly.
13370 compiler_needs_object=$lt_compiler_needs_object
13371
13372 # Create an old-style archive from a shared archive.
13373 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13374
13375 # Create a temporary old-style archive to link instead of a shared archive.
13376 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13377
13378 # Commands used to build a shared archive.
13379 archive_cmds=$lt_archive_cmds
13380 archive_expsym_cmds=$lt_archive_expsym_cmds
13381
13382 # Commands used to build a loadable module if different from building
13383 # a shared archive.
13384 module_cmds=$lt_module_cmds
13385 module_expsym_cmds=$lt_module_expsym_cmds
13386
13387 # Whether we are building with GNU ld or not.
13388 with_gnu_ld=$lt_with_gnu_ld
13389
13390 # Flag that allows shared libraries with undefined symbols to be built.
13391 allow_undefined_flag=$lt_allow_undefined_flag
13392
13393 # Flag that enforces no undefined symbols.
13394 no_undefined_flag=$lt_no_undefined_flag
13395
13396 # Flag to hardcode \$libdir into a binary during linking.
13397 # This must work even if \$libdir does not exist
13398 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13399
13400 # If ld is used when linking, flag to hardcode \$libdir into a binary
13401 # during linking.  This must work even if \$libdir does not exist.
13402 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13403
13404 # Whether we need a single "-rpath" flag with a separated argument.
13405 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13406
13407 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13408 # DIR into the resulting binary.
13409 hardcode_direct=$hardcode_direct
13410
13411 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13412 # DIR into the resulting binary and the resulting library dependency is
13413 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13414 # library is relocated.
13415 hardcode_direct_absolute=$hardcode_direct_absolute
13416
13417 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13418 # into the resulting binary.
13419 hardcode_minus_L=$hardcode_minus_L
13420
13421 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13422 # into the resulting binary.
13423 hardcode_shlibpath_var=$hardcode_shlibpath_var
13424
13425 # Set to "yes" if building a shared library automatically hardcodes DIR
13426 # into the library and all subsequent libraries and executables linked
13427 # against it.
13428 hardcode_automatic=$hardcode_automatic
13429
13430 # Set to yes if linker adds runtime paths of dependent libraries
13431 # to runtime path list.
13432 inherit_rpath=$inherit_rpath
13433
13434 # Whether libtool must link a program against all its dependency libraries.
13435 link_all_deplibs=$link_all_deplibs
13436
13437 # Fix the shell variable \$srcfile for the compiler.
13438 fix_srcfile_path=$lt_fix_srcfile_path
13439
13440 # Set to "yes" if exported symbols are required.
13441 always_export_symbols=$always_export_symbols
13442
13443 # The commands to list exported symbols.
13444 export_symbols_cmds=$lt_export_symbols_cmds
13445
13446 # Symbols that should not be listed in the preloaded symbols.
13447 exclude_expsyms=$lt_exclude_expsyms
13448
13449 # Symbols that must always be exported.
13450 include_expsyms=$lt_include_expsyms
13451
13452 # Commands necessary for linking programs (against libraries) with templates.
13453 prelink_cmds=$lt_prelink_cmds
13454
13455 # Specify filename containing input files.
13456 file_list_spec=$lt_file_list_spec
13457
13458 # How to hardcode a shared library path into an executable.
13459 hardcode_action=$hardcode_action
13460
13461 # ### END LIBTOOL CONFIG
13462
13463 _LT_EOF
13464
13465   case $host_os in
13466   aix3*)
13467     cat <<\_LT_EOF >> "$cfgfile"
13468 # AIX sometimes has problems with the GCC collect2 program.  For some
13469 # reason, if we set the COLLECT_NAMES environment variable, the problems
13470 # vanish in a puff of smoke.
13471 if test "X${COLLECT_NAMES+set}" != Xset; then
13472   COLLECT_NAMES=
13473   export COLLECT_NAMES
13474 fi
13475 _LT_EOF
13476     ;;
13477   esac
13478
13479
13480 ltmain="$ac_aux_dir/ltmain.sh"
13481
13482
13483   # We use sed instead of cat because bash on DJGPP gets confused if
13484   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13485   # text mode, it properly converts lines to CR/LF.  This bash problem
13486   # is reportedly fixed, but why not run on old versions too?
13487   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13488     || (rm -f "$cfgfile"; exit 1)
13489
13490   case $xsi_shell in
13491   yes)
13492     cat << \_LT_EOF >> "$cfgfile"
13493
13494 # func_dirname file append nondir_replacement
13495 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13496 # otherwise set result to NONDIR_REPLACEMENT.
13497 func_dirname ()
13498 {
13499   case ${1} in
13500     */*) func_dirname_result="${1%/*}${2}" ;;
13501     *  ) func_dirname_result="${3}" ;;
13502   esac
13503 }
13504
13505 # func_basename file
13506 func_basename ()
13507 {
13508   func_basename_result="${1##*/}"
13509 }
13510
13511 # func_dirname_and_basename file append nondir_replacement
13512 # perform func_basename and func_dirname in a single function
13513 # call:
13514 #   dirname:  Compute the dirname of FILE.  If nonempty,
13515 #             add APPEND to the result, otherwise set result
13516 #             to NONDIR_REPLACEMENT.
13517 #             value returned in "$func_dirname_result"
13518 #   basename: Compute filename of FILE.
13519 #             value retuned in "$func_basename_result"
13520 # Implementation must be kept synchronized with func_dirname
13521 # and func_basename. For efficiency, we do not delegate to
13522 # those functions but instead duplicate the functionality here.
13523 func_dirname_and_basename ()
13524 {
13525   case ${1} in
13526     */*) func_dirname_result="${1%/*}${2}" ;;
13527     *  ) func_dirname_result="${3}" ;;
13528   esac
13529   func_basename_result="${1##*/}"
13530 }
13531
13532 # func_stripname prefix suffix name
13533 # strip PREFIX and SUFFIX off of NAME.
13534 # PREFIX and SUFFIX must not contain globbing or regex special
13535 # characters, hashes, percent signs, but SUFFIX may contain a leading
13536 # dot (in which case that matches only a dot).
13537 func_stripname ()
13538 {
13539   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13540   # positional parameters, so assign one to ordinary parameter first.
13541   func_stripname_result=${3}
13542   func_stripname_result=${func_stripname_result#"${1}"}
13543   func_stripname_result=${func_stripname_result%"${2}"}
13544 }
13545
13546 # func_opt_split
13547 func_opt_split ()
13548 {
13549   func_opt_split_opt=${1%%=*}
13550   func_opt_split_arg=${1#*=}
13551 }
13552
13553 # func_lo2o object
13554 func_lo2o ()
13555 {
13556   case ${1} in
13557     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13558     *)    func_lo2o_result=${1} ;;
13559   esac
13560 }
13561
13562 # func_xform libobj-or-source
13563 func_xform ()
13564 {
13565   func_xform_result=${1%.*}.lo
13566 }
13567
13568 # func_arith arithmetic-term...
13569 func_arith ()
13570 {
13571   func_arith_result=$(( $* ))
13572 }
13573
13574 # func_len string
13575 # STRING may not start with a hyphen.
13576 func_len ()
13577 {
13578   func_len_result=${#1}
13579 }
13580
13581 _LT_EOF
13582     ;;
13583   *) # Bourne compatible functions.
13584     cat << \_LT_EOF >> "$cfgfile"
13585
13586 # func_dirname file append nondir_replacement
13587 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13588 # otherwise set result to NONDIR_REPLACEMENT.
13589 func_dirname ()
13590 {
13591   # Extract subdirectory from the argument.
13592   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13593   if test "X$func_dirname_result" = "X${1}"; then
13594     func_dirname_result="${3}"
13595   else
13596     func_dirname_result="$func_dirname_result${2}"
13597   fi
13598 }
13599
13600 # func_basename file
13601 func_basename ()
13602 {
13603   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13604 }
13605
13606
13607 # func_stripname prefix suffix name
13608 # strip PREFIX and SUFFIX off of NAME.
13609 # PREFIX and SUFFIX must not contain globbing or regex special
13610 # characters, hashes, percent signs, but SUFFIX may contain a leading
13611 # dot (in which case that matches only a dot).
13612 # func_strip_suffix prefix name
13613 func_stripname ()
13614 {
13615   case ${2} in
13616     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13617     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13618   esac
13619 }
13620
13621 # sed scripts:
13622 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13623 my_sed_long_arg='1s/^-[^=]*=//'
13624
13625 # func_opt_split
13626 func_opt_split ()
13627 {
13628   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13629   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13630 }
13631
13632 # func_lo2o object
13633 func_lo2o ()
13634 {
13635   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13636 }
13637
13638 # func_xform libobj-or-source
13639 func_xform ()
13640 {
13641   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13642 }
13643
13644 # func_arith arithmetic-term...
13645 func_arith ()
13646 {
13647   func_arith_result=`expr "$@"`
13648 }
13649
13650 # func_len string
13651 # STRING may not start with a hyphen.
13652 func_len ()
13653 {
13654   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13655 }
13656
13657 _LT_EOF
13658 esac
13659
13660 case $lt_shell_append in
13661   yes)
13662     cat << \_LT_EOF >> "$cfgfile"
13663
13664 # func_append var value
13665 # Append VALUE to the end of shell variable VAR.
13666 func_append ()
13667 {
13668   eval "$1+=\$2"
13669 }
13670 _LT_EOF
13671     ;;
13672   *)
13673     cat << \_LT_EOF >> "$cfgfile"
13674
13675 # func_append var value
13676 # Append VALUE to the end of shell variable VAR.
13677 func_append ()
13678 {
13679   eval "$1=\$$1\$2"
13680 }
13681
13682 _LT_EOF
13683     ;;
13684   esac
13685
13686
13687   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13688     || (rm -f "$cfgfile"; exit 1)
13689
13690   mv -f "$cfgfile" "$ofile" ||
13691     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13692   chmod +x "$ofile"
13693
13694  ;;
13695
13696   esac
13697 done # for ac_tag
13698
13699
13700 as_fn_exit 0
13701 _ACEOF
13702 ac_clean_files=$ac_clean_files_save
13703
13704 test $ac_write_fail = 0 ||
13705   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13706
13707
13708 # configure is writing to config.log, and then calls config.status.
13709 # config.status does its own redirection, appending to config.log.
13710 # Unfortunately, on DOS this fails, as config.log is still kept open
13711 # by configure, so config.status won't be able to write to it; its
13712 # output is simply discarded.  So we exec the FD to /dev/null,
13713 # effectively closing config.log, so it can be properly (re)opened and
13714 # appended to by config.status.  When coming back to configure, we
13715 # need to make the FD available again.
13716 if test "$no_create" != yes; then
13717   ac_cs_success=:
13718   ac_config_status_args=
13719   test "$silent" = yes &&
13720     ac_config_status_args="$ac_config_status_args --quiet"
13721   exec 5>/dev/null
13722   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13723   exec 5>>config.log
13724   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13725   # would make configure fail if this is the last instruction.
13726   $ac_cs_success || as_fn_exit $?
13727 fi
13728 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13729   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13730 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13731 fi
13732