Use newer autotools. Only build debug.c when --enable-debug.
[platform/upstream/libffi.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libffi 3.0.10rc3.
4 #
5 # Report bugs to <http://sourceware.org/libffi.html>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://sourceware.org/libffi.html about your system,
251 $0: including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libffi'
572 PACKAGE_TARNAME='libffi'
573 PACKAGE_VERSION='3.0.10rc3'
574 PACKAGE_STRING='libffi 3.0.10rc3'
575 PACKAGE_BUGREPORT='http://sourceware.org/libffi.html'
576 PACKAGE_URL=''
577
578 # Factoring default headers for most tests.
579 ac_includes_default="\
580 #include <stdio.h>
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
583 #endif
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
586 #endif
587 #ifdef STDC_HEADERS
588 # include <stdlib.h>
589 # include <stddef.h>
590 #else
591 # ifdef HAVE_STDLIB_H
592 #  include <stdlib.h>
593 # endif
594 #endif
595 #ifdef HAVE_STRING_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597 #  include <memory.h>
598 # endif
599 # include <string.h>
600 #endif
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
603 #endif
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
606 #endif
607 #ifdef HAVE_STDINT_H
608 # include <stdint.h>
609 #endif
610 #ifdef HAVE_UNISTD_H
611 # include <unistd.h>
612 #endif"
613
614 ac_subst_vars='am__EXEEXT_FALSE
615 am__EXEEXT_TRUE
616 LTLIBOBJS
617 LIBOBJS
618 toolexeclibdir
619 toolexecdir
620 FFI_DEBUG_FALSE
621 FFI_DEBUG_TRUE
622 TARGETDIR
623 TARGET
624 FFI_EXEC_TRAMPOLINE_TABLE
625 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
626 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
627 sys_symbol_underscore
628 HAVE_LONG_DOUBLE
629 ALLOCA
630 PA64_HPUX_FALSE
631 PA64_HPUX_TRUE
632 PA_HPUX_FALSE
633 PA_HPUX_TRUE
634 PA_LINUX_FALSE
635 PA_LINUX_TRUE
636 SH64_FALSE
637 SH64_TRUE
638 SH_FALSE
639 SH_TRUE
640 X86_64_FALSE
641 X86_64_TRUE
642 S390_FALSE
643 S390_TRUE
644 FRV_FALSE
645 FRV_TRUE
646 LIBFFI_CRIS_FALSE
647 LIBFFI_CRIS_TRUE
648 AVR32_FALSE
649 AVR32_TRUE
650 ARM_FALSE
651 ARM_TRUE
652 POWERPC_FREEBSD_FALSE
653 POWERPC_FREEBSD_TRUE
654 POWERPC_DARWIN_FALSE
655 POWERPC_DARWIN_TRUE
656 POWERPC_AIX_FALSE
657 POWERPC_AIX_TRUE
658 POWERPC_FALSE
659 POWERPC_TRUE
660 MOXIE_FALSE
661 MOXIE_TRUE
662 M68K_FALSE
663 M68K_TRUE
664 M32R_FALSE
665 M32R_TRUE
666 IA64_FALSE
667 IA64_TRUE
668 ALPHA_FALSE
669 ALPHA_TRUE
670 X86_DARWIN_FALSE
671 X86_DARWIN_TRUE
672 X86_WIN64_FALSE
673 X86_WIN64_TRUE
674 X86_WIN32_FALSE
675 X86_WIN32_TRUE
676 X86_FREEBSD_FALSE
677 X86_FREEBSD_TRUE
678 X86_FALSE
679 X86_TRUE
680 SPARC_FALSE
681 SPARC_TRUE
682 MIPS_FALSE
683 MIPS_TRUE
684 AM_LTLDFLAGS
685 AM_RUNTESTFLAGS
686 TESTSUBDIR_FALSE
687 TESTSUBDIR_TRUE
688 MAINT
689 MAINTAINER_MODE_FALSE
690 MAINTAINER_MODE_TRUE
691 CPP
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 MANIFEST_TOOL
698 RANLIB
699 ac_ct_AR
700 AR
701 DLLTOOL
702 OBJDUMP
703 LN_S
704 NM
705 ac_ct_DUMPBIN
706 DUMPBIN
707 LD
708 FGREP
709 EGREP
710 GREP
711 SED
712 LIBTOOL
713 am__fastdepCCAS_FALSE
714 am__fastdepCCAS_TRUE
715 CCASDEPMODE
716 CCASFLAGS
717 CCAS
718 am__fastdepCC_FALSE
719 am__fastdepCC_TRUE
720 CCDEPMODE
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__quote
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 am__untar
735 am__tar
736 AMTAR
737 am__leading_dot
738 SET_MAKE
739 AWK
740 mkdir_p
741 MKDIR_P
742 INSTALL_STRIP_PROGRAM
743 STRIP
744 install_sh
745 MAKEINFO
746 AUTOHEADER
747 AUTOMAKE
748 AUTOCONF
749 ACLOCAL
750 VERSION
751 PACKAGE
752 CYGPATH_W
753 am__isrc
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 target_os
758 target_vendor
759 target_cpu
760 target
761 host_os
762 host_vendor
763 host_cpu
764 host
765 build_os
766 build_vendor
767 build_cpu
768 build
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_dependency_tracking
811 enable_shared
812 enable_static
813 with_pic
814 enable_fast_install
815 with_gnu_ld
816 with_sysroot
817 enable_libtool_lock
818 enable_maintainer_mode
819 enable_debug
820 enable_structs
821 enable_raw_api
822 enable_purify_safety
823 '
824       ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CCAS
828 CCASFLAGS
829 CPP
830 CPPFLAGS'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885   # If the previous option needs an argument, assign it.
886   if test -n "$ac_prev"; then
887     eval $ac_prev=\$ac_option
888     ac_prev=
889     continue
890   fi
891
892   case $ac_option in
893   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894   *=)   ac_optarg= ;;
895   *)    ac_optarg=yes ;;
896   esac
897
898   # Accept the important Cygnus configure options, so we can diagnose typos.
899
900   case $ac_dashdash$ac_option in
901   --)
902     ac_dashdash=yes ;;
903
904   -bindir | --bindir | --bindi | --bind | --bin | --bi)
905     ac_prev=bindir ;;
906   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907     bindir=$ac_optarg ;;
908
909   -build | --build | --buil | --bui | --bu)
910     ac_prev=build_alias ;;
911   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912     build_alias=$ac_optarg ;;
913
914   -cache-file | --cache-file | --cache-fil | --cache-fi \
915   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916     ac_prev=cache_file ;;
917   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919     cache_file=$ac_optarg ;;
920
921   --config-cache | -C)
922     cache_file=config.cache ;;
923
924   -datadir | --datadir | --datadi | --datad)
925     ac_prev=datadir ;;
926   -datadir=* | --datadir=* | --datadi=* | --datad=*)
927     datadir=$ac_optarg ;;
928
929   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930   | --dataroo | --dataro | --datar)
931     ac_prev=datarootdir ;;
932   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934     datarootdir=$ac_optarg ;;
935
936   -disable-* | --disable-*)
937     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938     # Reject names that are not valid shell variable names.
939     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940       as_fn_error $? "invalid feature name: $ac_useropt"
941     ac_useropt_orig=$ac_useropt
942     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943     case $ac_user_opts in
944       *"
945 "enable_$ac_useropt"
946 "*) ;;
947       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948          ac_unrecognized_sep=', ';;
949     esac
950     eval enable_$ac_useropt=no ;;
951
952   -docdir | --docdir | --docdi | --doc | --do)
953     ac_prev=docdir ;;
954   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955     docdir=$ac_optarg ;;
956
957   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958     ac_prev=dvidir ;;
959   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960     dvidir=$ac_optarg ;;
961
962   -enable-* | --enable-*)
963     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964     # Reject names that are not valid shell variable names.
965     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966       as_fn_error $? "invalid feature name: $ac_useropt"
967     ac_useropt_orig=$ac_useropt
968     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969     case $ac_user_opts in
970       *"
971 "enable_$ac_useropt"
972 "*) ;;
973       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974          ac_unrecognized_sep=', ';;
975     esac
976     eval enable_$ac_useropt=\$ac_optarg ;;
977
978   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980   | --exec | --exe | --ex)
981     ac_prev=exec_prefix ;;
982   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984   | --exec=* | --exe=* | --ex=*)
985     exec_prefix=$ac_optarg ;;
986
987   -gas | --gas | --ga | --g)
988     # Obsolete; use --with-gas.
989     with_gas=yes ;;
990
991   -help | --help | --hel | --he | -h)
992     ac_init_help=long ;;
993   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994     ac_init_help=recursive ;;
995   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996     ac_init_help=short ;;
997
998   -host | --host | --hos | --ho)
999     ac_prev=host_alias ;;
1000   -host=* | --host=* | --hos=* | --ho=*)
1001     host_alias=$ac_optarg ;;
1002
1003   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004     ac_prev=htmldir ;;
1005   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006   | --ht=*)
1007     htmldir=$ac_optarg ;;
1008
1009   -includedir | --includedir | --includedi | --included | --include \
1010   | --includ | --inclu | --incl | --inc)
1011     ac_prev=includedir ;;
1012   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013   | --includ=* | --inclu=* | --incl=* | --inc=*)
1014     includedir=$ac_optarg ;;
1015
1016   -infodir | --infodir | --infodi | --infod | --info | --inf)
1017     ac_prev=infodir ;;
1018   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019     infodir=$ac_optarg ;;
1020
1021   -libdir | --libdir | --libdi | --libd)
1022     ac_prev=libdir ;;
1023   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024     libdir=$ac_optarg ;;
1025
1026   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027   | --libexe | --libex | --libe)
1028     ac_prev=libexecdir ;;
1029   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030   | --libexe=* | --libex=* | --libe=*)
1031     libexecdir=$ac_optarg ;;
1032
1033   -localedir | --localedir | --localedi | --localed | --locale)
1034     ac_prev=localedir ;;
1035   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036     localedir=$ac_optarg ;;
1037
1038   -localstatedir | --localstatedir | --localstatedi | --localstated \
1039   | --localstate | --localstat | --localsta | --localst | --locals)
1040     ac_prev=localstatedir ;;
1041   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043     localstatedir=$ac_optarg ;;
1044
1045   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046     ac_prev=mandir ;;
1047   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048     mandir=$ac_optarg ;;
1049
1050   -nfp | --nfp | --nf)
1051     # Obsolete; use --without-fp.
1052     with_fp=no ;;
1053
1054   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055   | --no-cr | --no-c | -n)
1056     no_create=yes ;;
1057
1058   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060     no_recursion=yes ;;
1061
1062   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064   | --oldin | --oldi | --old | --ol | --o)
1065     ac_prev=oldincludedir ;;
1066   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069     oldincludedir=$ac_optarg ;;
1070
1071   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072     ac_prev=prefix ;;
1073   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074     prefix=$ac_optarg ;;
1075
1076   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077   | --program-pre | --program-pr | --program-p)
1078     ac_prev=program_prefix ;;
1079   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081     program_prefix=$ac_optarg ;;
1082
1083   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084   | --program-suf | --program-su | --program-s)
1085     ac_prev=program_suffix ;;
1086   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088     program_suffix=$ac_optarg ;;
1089
1090   -program-transform-name | --program-transform-name \
1091   | --program-transform-nam | --program-transform-na \
1092   | --program-transform-n | --program-transform- \
1093   | --program-transform | --program-transfor \
1094   | --program-transfo | --program-transf \
1095   | --program-trans | --program-tran \
1096   | --progr-tra | --program-tr | --program-t)
1097     ac_prev=program_transform_name ;;
1098   -program-transform-name=* | --program-transform-name=* \
1099   | --program-transform-nam=* | --program-transform-na=* \
1100   | --program-transform-n=* | --program-transform-=* \
1101   | --program-transform=* | --program-transfor=* \
1102   | --program-transfo=* | --program-transf=* \
1103   | --program-trans=* | --program-tran=* \
1104   | --progr-tra=* | --program-tr=* | --program-t=*)
1105     program_transform_name=$ac_optarg ;;
1106
1107   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108     ac_prev=pdfdir ;;
1109   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110     pdfdir=$ac_optarg ;;
1111
1112   -psdir | --psdir | --psdi | --psd | --ps)
1113     ac_prev=psdir ;;
1114   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115     psdir=$ac_optarg ;;
1116
1117   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118   | -silent | --silent | --silen | --sile | --sil)
1119     silent=yes ;;
1120
1121   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122     ac_prev=sbindir ;;
1123   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124   | --sbi=* | --sb=*)
1125     sbindir=$ac_optarg ;;
1126
1127   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129   | --sharedst | --shareds | --shared | --share | --shar \
1130   | --sha | --sh)
1131     ac_prev=sharedstatedir ;;
1132   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135   | --sha=* | --sh=*)
1136     sharedstatedir=$ac_optarg ;;
1137
1138   -site | --site | --sit)
1139     ac_prev=site ;;
1140   -site=* | --site=* | --sit=*)
1141     site=$ac_optarg ;;
1142
1143   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144     ac_prev=srcdir ;;
1145   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146     srcdir=$ac_optarg ;;
1147
1148   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149   | --syscon | --sysco | --sysc | --sys | --sy)
1150     ac_prev=sysconfdir ;;
1151   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153     sysconfdir=$ac_optarg ;;
1154
1155   -target | --target | --targe | --targ | --tar | --ta | --t)
1156     ac_prev=target_alias ;;
1157   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158     target_alias=$ac_optarg ;;
1159
1160   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161     verbose=yes ;;
1162
1163   -version | --version | --versio | --versi | --vers | -V)
1164     ac_init_version=: ;;
1165
1166   -with-* | --with-*)
1167     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168     # Reject names that are not valid shell variable names.
1169     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170       as_fn_error $? "invalid package name: $ac_useropt"
1171     ac_useropt_orig=$ac_useropt
1172     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173     case $ac_user_opts in
1174       *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178          ac_unrecognized_sep=', ';;
1179     esac
1180     eval with_$ac_useropt=\$ac_optarg ;;
1181
1182   -without-* | --without-*)
1183     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186       as_fn_error $? "invalid package name: $ac_useropt"
1187     ac_useropt_orig=$ac_useropt
1188     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189     case $ac_user_opts in
1190       *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194          ac_unrecognized_sep=', ';;
1195     esac
1196     eval with_$ac_useropt=no ;;
1197
1198   --x)
1199     # Obsolete; use --with-x.
1200     with_x=yes ;;
1201
1202   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203   | --x-incl | --x-inc | --x-in | --x-i)
1204     ac_prev=x_includes ;;
1205   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207     x_includes=$ac_optarg ;;
1208
1209   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211     ac_prev=x_libraries ;;
1212   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214     x_libraries=$ac_optarg ;;
1215
1216   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information"
1218     ;;
1219
1220   *=*)
1221     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222     # Reject names that are not valid shell variable names.
1223     case $ac_envvar in #(
1224       '' | [0-9]* | *[!_$as_cr_alnum]* )
1225       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226     esac
1227     eval $ac_envvar=\$ac_optarg
1228     export $ac_envvar ;;
1229
1230   *)
1231     # FIXME: should be removed in autoconf 3.0.
1232     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236     ;;
1237
1238   esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243   as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247   case $enable_option_checking in
1248     no) ;;
1249     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251   esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256                 datadir sysconfdir sharedstatedir localstatedir includedir \
1257                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258                 libdir localedir mandir
1259 do
1260   eval ac_val=\$$ac_var
1261   # Remove trailing slashes.
1262   case $ac_val in
1263     */ )
1264       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265       eval $ac_var=\$ac_val;;
1266   esac
1267   # Be sure to have absolute directory names.
1268   case $ac_val in
1269     [\\/$]* | ?:[\\/]* )  continue;;
1270     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271   esac
1272   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284   if test "x$build_alias" = x; then
1285     cross_compiling=maybe
1286     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1287     If a cross compiler is detected then cross compile mode will be used" >&2
1288   elif test "x$build_alias" != "x$host_alias"; then
1289     cross_compiling=yes
1290   fi
1291 fi
1292
1293 ac_tool_prefix=
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296 test "$silent" = yes && exec 6>/dev/null
1297
1298
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302   as_fn_error $? "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304   as_fn_error $? "pwd does not report name of working directory"
1305
1306
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309   ac_srcdir_defaulted=yes
1310   # Try the directory containing this script, then the parent directory.
1311   ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313          X"$as_myself" : 'X\(//\)[^/]' \| \
1314          X"$as_myself" : 'X\(//\)$' \| \
1315          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318             s//\1/
1319             q
1320           }
1321           /^X\(\/\/\)[^/].*/{
1322             s//\1/
1323             q
1324           }
1325           /^X\(\/\/\)$/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\).*/{
1330             s//\1/
1331             q
1332           }
1333           s/.*/./; q'`
1334   srcdir=$ac_confdir
1335   if test ! -r "$srcdir/$ac_unique_file"; then
1336     srcdir=..
1337   fi
1338 else
1339   ac_srcdir_defaulted=no
1340 fi
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344 fi
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348         pwd)`
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351   srcdir=.
1352 fi
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1356 case $srcdir in
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 esac
1359 for ac_var in $ac_precious_vars; do
1360   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361   eval ac_env_${ac_var}_value=\$${ac_var}
1362   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1365
1366 #
1367 # Report the --help message.
1368 #
1369 if test "$ac_init_help" = "long"; then
1370   # Omit some internal or obsolete options to make the list less imposing.
1371   # This message is too long to be a string in the A/UX 3.1 sh.
1372   cat <<_ACEOF
1373 \`configure' configures libffi 3.0.10rc3 to adapt to many kinds of systems.
1374
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE.  See below for descriptions of some of the useful variables.
1379
1380 Defaults for the options are specified in brackets.
1381
1382 Configuration:
1383   -h, --help              display this help and exit
1384       --help=short        display options specific to this package
1385       --help=recursive    display the short help of all the included packages
1386   -V, --version           display version information and exit
1387   -q, --quiet, --silent   do not print \`checking ...' messages
1388       --cache-file=FILE   cache test results in FILE [disabled]
1389   -C, --config-cache      alias for \`--cache-file=config.cache'
1390   -n, --no-create         do not create output files
1391       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1392
1393 Installation directories:
1394   --prefix=PREFIX         install architecture-independent files in PREFIX
1395                           [$ac_default_prefix]
1396   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1397                           [PREFIX]
1398
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1403
1404 For better control, use the options below.
1405
1406 Fine tuning of the installation directories:
1407   --bindir=DIR            user executables [EPREFIX/bin]
1408   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1409   --libexecdir=DIR        program executables [EPREFIX/libexec]
1410   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1411   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1412   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1413   --libdir=DIR            object code libraries [EPREFIX/lib]
1414   --includedir=DIR        C header files [PREFIX/include]
1415   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1416   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1417   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1418   --infodir=DIR           info documentation [DATAROOTDIR/info]
1419   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1420   --mandir=DIR            man documentation [DATAROOTDIR/man]
1421   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1422   --htmldir=DIR           html documentation [DOCDIR]
1423   --dvidir=DIR            dvi documentation [DOCDIR]
1424   --pdfdir=DIR            pdf documentation [DOCDIR]
1425   --psdir=DIR             ps documentation [DOCDIR]
1426 _ACEOF
1427
1428   cat <<\_ACEOF
1429
1430 Program names:
1431   --program-prefix=PREFIX            prepend PREFIX to installed program names
1432   --program-suffix=SUFFIX            append SUFFIX to installed program names
1433   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1434
1435 System types:
1436   --build=BUILD     configure for building on BUILD [guessed]
1437   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1438   --target=TARGET   configure for building compilers for TARGET [HOST]
1439 _ACEOF
1440 fi
1441
1442 if test -n "$ac_init_help"; then
1443   case $ac_init_help in
1444      short | recursive ) echo "Configuration of libffi 3.0.10rc3:";;
1445    esac
1446   cat <<\_ACEOF
1447
1448 Optional Features:
1449   --disable-option-checking  ignore unrecognized --enable/--with options
1450   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1451   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1452   --disable-dependency-tracking  speeds up one-time build
1453   --enable-dependency-tracking   do not reject slow dependency extractors
1454   --enable-shared[=PKGS]  build shared libraries [default=yes]
1455   --enable-static[=PKGS]  build static libraries [default=yes]
1456   --enable-fast-install[=PKGS]
1457                           optimize for fast installation [default=yes]
1458   --disable-libtool-lock  avoid locking (might break parallel builds)
1459   --enable-maintainer-mode  enable make rules and dependencies not useful
1460                           (and sometimes confusing) to the casual installer
1461   --enable-debug          debugging mode
1462   --disable-structs       omit code for struct support
1463   --disable-raw-api       make the raw api unavailable
1464   --enable-purify-safety  purify-safe mode
1465
1466 Optional Packages:
1467   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1468   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1469   --with-pic              try to use only PIC/non-PIC objects [default=use
1470                           both]
1471   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1472   --with-sysroot=DIR Search for dependent libraries within DIR
1473                         (or the compiler's sysroot if not specified).
1474
1475 Some influential environment variables:
1476   CC          C compiler command
1477   CFLAGS      C compiler flags
1478   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1479               nonstandard directory <lib dir>
1480   LIBS        libraries to pass to the linker, e.g. -l<library>
1481   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1482               you have headers in a nonstandard directory <include dir>
1483   CCAS        assembler compiler command (defaults to CC)
1484   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1485   CPP         C preprocessor
1486
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1489
1490 Report bugs to <http://sourceware.org/libffi.html>.
1491 _ACEOF
1492 ac_status=$?
1493 fi
1494
1495 if test "$ac_init_help" = "recursive"; then
1496   # If there are subdirs, report their specific --help.
1497   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498     test -d "$ac_dir" ||
1499       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500       continue
1501     ac_builddir=.
1502
1503 case "$ac_dir" in
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *)
1506   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1507   # A ".." for each directory in $ac_dir_suffix.
1508   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509   case $ac_top_builddir_sub in
1510   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512   esac ;;
1513 esac
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1518
1519 case $srcdir in
1520   .)  # We are building in place.
1521     ac_srcdir=.
1522     ac_top_srcdir=$ac_top_builddir_sub
1523     ac_abs_top_srcdir=$ac_pwd ;;
1524   [\\/]* | ?:[\\/]* )  # Absolute name.
1525     ac_srcdir=$srcdir$ac_dir_suffix;
1526     ac_top_srcdir=$srcdir
1527     ac_abs_top_srcdir=$srcdir ;;
1528   *) # Relative name.
1529     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530     ac_top_srcdir=$ac_top_build_prefix$srcdir
1531     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 esac
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535     cd "$ac_dir" || { ac_status=$?; continue; }
1536     # Check for guested configure.
1537     if test -f "$ac_srcdir/configure.gnu"; then
1538       echo &&
1539       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540     elif test -f "$ac_srcdir/configure"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure" --help=recursive
1543     else
1544       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545     fi || ac_status=$?
1546     cd "$ac_pwd" || { ac_status=$?; break; }
1547   done
1548 fi
1549
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1552   cat <<\_ACEOF
1553 libffi configure 3.0.10rc3
1554 generated by GNU Autoconf 2.68
1555
1556 Copyright (C) 2010 Free Software Foundation, Inc.
1557 This configure script is free software; the Free Software Foundation
1558 gives unlimited permission to copy, distribute and modify it.
1559 _ACEOF
1560   exit
1561 fi
1562
1563 ## ------------------------ ##
1564 ## Autoconf initialization. ##
1565 ## ------------------------ ##
1566
1567 # ac_fn_c_try_compile LINENO
1568 # --------------------------
1569 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_compile ()
1571 {
1572   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573   rm -f conftest.$ac_objext
1574   if { { ac_try="$ac_compile"
1575 case "(($ac_try" in
1576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577   *) ac_try_echo=$ac_try;;
1578 esac
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581   (eval "$ac_compile") 2>conftest.err
1582   ac_status=$?
1583   if test -s conftest.err; then
1584     grep -v '^ *+' conftest.err >conftest.er1
1585     cat conftest.er1 >&5
1586     mv -f conftest.er1 conftest.err
1587   fi
1588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589   test $ac_status = 0; } && {
1590          test -z "$ac_c_werror_flag" ||
1591          test ! -s conftest.err
1592        } && test -s conftest.$ac_objext; then :
1593   ac_retval=0
1594 else
1595   $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598         ac_retval=1
1599 fi
1600   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601   as_fn_set_status $ac_retval
1602
1603 } # ac_fn_c_try_compile
1604
1605 # ac_fn_c_try_link LINENO
1606 # -----------------------
1607 # Try to link conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_link ()
1609 {
1610   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611   rm -f conftest.$ac_objext conftest$ac_exeext
1612   if { { ac_try="$ac_link"
1613 case "(($ac_try" in
1614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615   *) ac_try_echo=$ac_try;;
1616 esac
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619   (eval "$ac_link") 2>conftest.err
1620   ac_status=$?
1621   if test -s conftest.err; then
1622     grep -v '^ *+' conftest.err >conftest.er1
1623     cat conftest.er1 >&5
1624     mv -f conftest.er1 conftest.err
1625   fi
1626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627   test $ac_status = 0; } && {
1628          test -z "$ac_c_werror_flag" ||
1629          test ! -s conftest.err
1630        } && test -s conftest$ac_exeext && {
1631          test "$cross_compiling" = yes ||
1632          $as_test_x conftest$ac_exeext
1633        }; then :
1634   ac_retval=0
1635 else
1636   $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639         ac_retval=1
1640 fi
1641   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1642   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1643   # interfere with the next link command; also delete a directory that is
1644   # left behind by Apple's compiler.  We do this before executing the actions.
1645   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1646   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647   as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_link
1650
1651 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1652 # -------------------------------------------------------
1653 # Tests whether HEADER exists and can be compiled using the include files in
1654 # INCLUDES, setting the cache variable VAR accordingly.
1655 ac_fn_c_check_header_compile ()
1656 {
1657   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659 $as_echo_n "checking for $2... " >&6; }
1660 if eval \${$3+:} false; then :
1661   $as_echo_n "(cached) " >&6
1662 else
1663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h.  */
1665 $4
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_compile "$LINENO"; then :
1669   eval "$3=yes"
1670 else
1671   eval "$3=no"
1672 fi
1673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674 fi
1675 eval ac_res=\$$3
1676                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1678   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679
1680 } # ac_fn_c_check_header_compile
1681
1682 # ac_fn_c_try_cpp LINENO
1683 # ----------------------
1684 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_cpp ()
1686 {
1687   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688   if { { ac_try="$ac_cpp conftest.$ac_ext"
1689 case "(($ac_try" in
1690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691   *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696   ac_status=$?
1697   if test -s conftest.err; then
1698     grep -v '^ *+' conftest.err >conftest.er1
1699     cat conftest.er1 >&5
1700     mv -f conftest.er1 conftest.err
1701   fi
1702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703   test $ac_status = 0; } > conftest.i && {
1704          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705          test ! -s conftest.err
1706        }; then :
1707   ac_retval=0
1708 else
1709   $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712     ac_retval=1
1713 fi
1714   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715   as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_cpp
1718
1719 # ac_fn_c_try_run LINENO
1720 # ----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722 # that executables *can* be run.
1723 ac_fn_c_try_run ()
1724 {
1725   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726   if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729   *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733   (eval "$ac_link") 2>&5
1734   ac_status=$?
1735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737   { { case "(($ac_try" in
1738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739   *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743   (eval "$ac_try") 2>&5
1744   ac_status=$?
1745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746   test $ac_status = 0; }; }; then :
1747   ac_retval=0
1748 else
1749   $as_echo "$as_me: program exited with status $ac_status" >&5
1750        $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753        ac_retval=$ac_status
1754 fi
1755   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757   as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_run
1760
1761 # ac_fn_c_check_func LINENO FUNC VAR
1762 # ----------------------------------
1763 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1764 ac_fn_c_check_func ()
1765 {
1766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if eval \${$3+:} false; then :
1770   $as_echo_n "(cached) " >&6
1771 else
1772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h.  */
1774 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1776 #define $2 innocuous_$2
1777
1778 /* System header to define __stub macros and hopefully few prototypes,
1779     which can conflict with char $2 (); below.
1780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1781     <limits.h> exists even on freestanding compilers.  */
1782
1783 #ifdef __STDC__
1784 # include <limits.h>
1785 #else
1786 # include <assert.h>
1787 #endif
1788
1789 #undef $2
1790
1791 /* Override any GCC internal prototype to avoid an error.
1792    Use char because int might match the return type of a GCC
1793    builtin and then its argument prototype would still apply.  */
1794 #ifdef __cplusplus
1795 extern "C"
1796 #endif
1797 char $2 ();
1798 /* The GNU C library defines this for functions which it implements
1799     to always fail with ENOSYS.  Some functions are actually named
1800     something starting with __ and the normal name is an alias.  */
1801 #if defined __stub_$2 || defined __stub___$2
1802 choke me
1803 #endif
1804
1805 int
1806 main ()
1807 {
1808 return $2 ();
1809   ;
1810   return 0;
1811 }
1812 _ACEOF
1813 if ac_fn_c_try_link "$LINENO"; then :
1814   eval "$3=yes"
1815 else
1816   eval "$3=no"
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext \
1819     conftest$ac_exeext conftest.$ac_ext
1820 fi
1821 eval ac_res=\$$3
1822                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826 } # ac_fn_c_check_func
1827
1828 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1829 # -------------------------------------------------------
1830 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1831 # the include files in INCLUDES and setting the cache variable VAR
1832 # accordingly.
1833 ac_fn_c_check_header_mongrel ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   if eval \${$3+:} false; then :
1837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840   $as_echo_n "(cached) " >&6
1841 fi
1842 eval ac_res=\$$3
1843                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 else
1846   # Is the header compilable?
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1848 $as_echo_n "checking $2 usability... " >&6; }
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h.  */
1851 $4
1852 #include <$2>
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855   ac_header_compiler=yes
1856 else
1857   ac_header_compiler=no
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1861 $as_echo "$ac_header_compiler" >&6; }
1862
1863 # Is the header present?
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1865 $as_echo_n "checking $2 presence... " >&6; }
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h.  */
1868 #include <$2>
1869 _ACEOF
1870 if ac_fn_c_try_cpp "$LINENO"; then :
1871   ac_header_preproc=yes
1872 else
1873   ac_header_preproc=no
1874 fi
1875 rm -f conftest.err conftest.i conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1877 $as_echo "$ac_header_preproc" >&6; }
1878
1879 # So?  What about this header?
1880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1881   yes:no: )
1882     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1883 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1884     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886     ;;
1887   no:yes:* )
1888     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1889 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1890     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1891 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1893 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1895 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1896     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1898 ( $as_echo "## ------------------------------------------------ ##
1899 ## Report this to http://sourceware.org/libffi.html ##
1900 ## ------------------------------------------------ ##"
1901      ) | sed "s/^/$as_me: WARNING:     /" >&2
1902     ;;
1903 esac
1904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if eval \${$3+:} false; then :
1907   $as_echo_n "(cached) " >&6
1908 else
1909   eval "$3=\$ac_header_compiler"
1910 fi
1911 eval ac_res=\$$3
1912                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 fi
1915   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916
1917 } # ac_fn_c_check_header_mongrel
1918
1919 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1920 # -------------------------------------------
1921 # Tests whether TYPE exists after having included INCLUDES, setting cache
1922 # variable VAR accordingly.
1923 ac_fn_c_check_type ()
1924 {
1925   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929   $as_echo_n "(cached) " >&6
1930 else
1931   eval "$3=no"
1932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h.  */
1934 $4
1935 int
1936 main ()
1937 {
1938 if (sizeof ($2))
1939          return 0;
1940   ;
1941   return 0;
1942 }
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h.  */
1947 $4
1948 int
1949 main ()
1950 {
1951 if (sizeof (($2)))
1952             return 0;
1953   ;
1954   return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958
1959 else
1960   eval "$3=yes"
1961 fi
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 fi
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 fi
1966 eval ac_res=\$$3
1967                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_check_type
1972
1973 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1974 # --------------------------------------------
1975 # Tries to find the compile-time value of EXPR in a program that includes
1976 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1977 # computed
1978 ac_fn_c_compute_int ()
1979 {
1980   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981   if test "$cross_compiling" = yes; then
1982     # Depending upon the size, compute the lo and hi bounds.
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h.  */
1985 $4
1986 int
1987 main ()
1988 {
1989 static int test_array [1 - 2 * !(($2) >= 0)];
1990 test_array [0] = 0
1991
1992   ;
1993   return 0;
1994 }
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997   ac_lo=0 ac_mid=0
1998   while :; do
1999     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h.  */
2001 $4
2002 int
2003 main ()
2004 {
2005 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2006 test_array [0] = 0
2007
2008   ;
2009   return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013   ac_hi=$ac_mid; break
2014 else
2015   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2016                         if test $ac_lo -le $ac_mid; then
2017                           ac_lo= ac_hi=
2018                           break
2019                         fi
2020                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2021 fi
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023   done
2024 else
2025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h.  */
2027 $4
2028 int
2029 main ()
2030 {
2031 static int test_array [1 - 2 * !(($2) < 0)];
2032 test_array [0] = 0
2033
2034   ;
2035   return 0;
2036 }
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039   ac_hi=-1 ac_mid=-1
2040   while :; do
2041     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h.  */
2043 $4
2044 int
2045 main ()
2046 {
2047 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2048 test_array [0] = 0
2049
2050   ;
2051   return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055   ac_lo=$ac_mid; break
2056 else
2057   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2058                         if test $ac_mid -le $ac_hi; then
2059                           ac_lo= ac_hi=
2060                           break
2061                         fi
2062                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065   done
2066 else
2067   ac_lo= ac_hi=
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 # Binary search between lo and hi bounds.
2073 while test "x$ac_lo" != "x$ac_hi"; do
2074   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h.  */
2077 $4
2078 int
2079 main ()
2080 {
2081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2082 test_array [0] = 0
2083
2084   ;
2085   return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089   ac_hi=$ac_mid
2090 else
2091   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2092 fi
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 done
2095 case $ac_lo in #((
2096 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2097 '') ac_retval=1 ;;
2098 esac
2099   else
2100     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h.  */
2102 $4
2103 static long int longval () { return $2; }
2104 static unsigned long int ulongval () { return $2; }
2105 #include <stdio.h>
2106 #include <stdlib.h>
2107 int
2108 main ()
2109 {
2110
2111   FILE *f = fopen ("conftest.val", "w");
2112   if (! f)
2113     return 1;
2114   if (($2) < 0)
2115     {
2116       long int i = longval ();
2117       if (i != ($2))
2118         return 1;
2119       fprintf (f, "%ld", i);
2120     }
2121   else
2122     {
2123       unsigned long int i = ulongval ();
2124       if (i != ($2))
2125         return 1;
2126       fprintf (f, "%lu", i);
2127     }
2128   /* Do not output a trailing newline, as this causes \r\n confusion
2129      on some platforms.  */
2130   return ferror (f) || fclose (f) != 0;
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_run "$LINENO"; then :
2137   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2138 else
2139   ac_retval=1
2140 fi
2141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2142   conftest.$ac_objext conftest.beam conftest.$ac_ext
2143 rm -f conftest.val
2144
2145   fi
2146   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147   as_fn_set_status $ac_retval
2148
2149 } # ac_fn_c_compute_int
2150 cat >config.log <<_ACEOF
2151 This file contains any messages produced by compilers while
2152 running configure, to aid debugging if configure makes a mistake.
2153
2154 It was created by libffi $as_me 3.0.10rc3, which was
2155 generated by GNU Autoconf 2.68.  Invocation command line was
2156
2157   $ $0 $@
2158
2159 _ACEOF
2160 exec 5>>config.log
2161 {
2162 cat <<_ASUNAME
2163 ## --------- ##
2164 ## Platform. ##
2165 ## --------- ##
2166
2167 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2168 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2169 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2170 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2171 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2172
2173 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2174 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2175
2176 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2177 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2178 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2179 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2180 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2181 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2182 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2183
2184 _ASUNAME
2185
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2188 do
2189   IFS=$as_save_IFS
2190   test -z "$as_dir" && as_dir=.
2191     $as_echo "PATH: $as_dir"
2192   done
2193 IFS=$as_save_IFS
2194
2195 } >&5
2196
2197 cat >&5 <<_ACEOF
2198
2199
2200 ## ----------- ##
2201 ## Core tests. ##
2202 ## ----------- ##
2203
2204 _ACEOF
2205
2206
2207 # Keep a trace of the command line.
2208 # Strip out --no-create and --no-recursion so they do not pile up.
2209 # Strip out --silent because we don't want to record it for future runs.
2210 # Also quote any args containing shell meta-characters.
2211 # Make two passes to allow for proper duplicate-argument suppression.
2212 ac_configure_args=
2213 ac_configure_args0=
2214 ac_configure_args1=
2215 ac_must_keep_next=false
2216 for ac_pass in 1 2
2217 do
2218   for ac_arg
2219   do
2220     case $ac_arg in
2221     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2222     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2223     | -silent | --silent | --silen | --sile | --sil)
2224       continue ;;
2225     *\'*)
2226       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2227     esac
2228     case $ac_pass in
2229     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2230     2)
2231       as_fn_append ac_configure_args1 " '$ac_arg'"
2232       if test $ac_must_keep_next = true; then
2233         ac_must_keep_next=false # Got value, back to normal.
2234       else
2235         case $ac_arg in
2236           *=* | --config-cache | -C | -disable-* | --disable-* \
2237           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2238           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2239           | -with-* | --with-* | -without-* | --without-* | --x)
2240             case "$ac_configure_args0 " in
2241               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2242             esac
2243             ;;
2244           -* ) ac_must_keep_next=true ;;
2245         esac
2246       fi
2247       as_fn_append ac_configure_args " '$ac_arg'"
2248       ;;
2249     esac
2250   done
2251 done
2252 { ac_configure_args0=; unset ac_configure_args0;}
2253 { ac_configure_args1=; unset ac_configure_args1;}
2254
2255 # When interrupted or exit'd, cleanup temporary files, and complete
2256 # config.log.  We remove comments because anyway the quotes in there
2257 # would cause problems or look ugly.
2258 # WARNING: Use '\'' to represent an apostrophe within the trap.
2259 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2260 trap 'exit_status=$?
2261   # Save into config.log some information that might help in debugging.
2262   {
2263     echo
2264
2265     $as_echo "## ---------------- ##
2266 ## Cache variables. ##
2267 ## ---------------- ##"
2268     echo
2269     # The following way of writing the cache mishandles newlines in values,
2270 (
2271   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2272     eval ac_val=\$$ac_var
2273     case $ac_val in #(
2274     *${as_nl}*)
2275       case $ac_var in #(
2276       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2277 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2278       esac
2279       case $ac_var in #(
2280       _ | IFS | as_nl) ;; #(
2281       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2282       *) { eval $ac_var=; unset $ac_var;} ;;
2283       esac ;;
2284     esac
2285   done
2286   (set) 2>&1 |
2287     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2288     *${as_nl}ac_space=\ *)
2289       sed -n \
2290         "s/'\''/'\''\\\\'\'''\''/g;
2291           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2292       ;; #(
2293     *)
2294       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2295       ;;
2296     esac |
2297     sort
2298 )
2299     echo
2300
2301     $as_echo "## ----------------- ##
2302 ## Output variables. ##
2303 ## ----------------- ##"
2304     echo
2305     for ac_var in $ac_subst_vars
2306     do
2307       eval ac_val=\$$ac_var
2308       case $ac_val in
2309       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2310       esac
2311       $as_echo "$ac_var='\''$ac_val'\''"
2312     done | sort
2313     echo
2314
2315     if test -n "$ac_subst_files"; then
2316       $as_echo "## ------------------- ##
2317 ## File substitutions. ##
2318 ## ------------------- ##"
2319       echo
2320       for ac_var in $ac_subst_files
2321       do
2322         eval ac_val=\$$ac_var
2323         case $ac_val in
2324         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2325         esac
2326         $as_echo "$ac_var='\''$ac_val'\''"
2327       done | sort
2328       echo
2329     fi
2330
2331     if test -s confdefs.h; then
2332       $as_echo "## ----------- ##
2333 ## confdefs.h. ##
2334 ## ----------- ##"
2335       echo
2336       cat confdefs.h
2337       echo
2338     fi
2339     test "$ac_signal" != 0 &&
2340       $as_echo "$as_me: caught signal $ac_signal"
2341     $as_echo "$as_me: exit $exit_status"
2342   } >&5
2343   rm -f core *.core core.conftest.* &&
2344     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2345     exit $exit_status
2346 ' 0
2347 for ac_signal in 1 2 13 15; do
2348   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2349 done
2350 ac_signal=0
2351
2352 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2353 rm -f -r conftest* confdefs.h
2354
2355 $as_echo "/* confdefs.h */" > confdefs.h
2356
2357 # Predefined preprocessor variables.
2358
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_NAME "$PACKAGE_NAME"
2361 _ACEOF
2362
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2365 _ACEOF
2366
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2369 _ACEOF
2370
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_STRING "$PACKAGE_STRING"
2373 _ACEOF
2374
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2377 _ACEOF
2378
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_URL "$PACKAGE_URL"
2381 _ACEOF
2382
2383
2384 # Let the site file select an alternate cache file if it wants to.
2385 # Prefer an explicitly selected file to automatically selected ones.
2386 ac_site_file1=NONE
2387 ac_site_file2=NONE
2388 if test -n "$CONFIG_SITE"; then
2389   # We do not want a PATH search for config.site.
2390   case $CONFIG_SITE in #((
2391     -*)  ac_site_file1=./$CONFIG_SITE;;
2392     */*) ac_site_file1=$CONFIG_SITE;;
2393     *)   ac_site_file1=./$CONFIG_SITE;;
2394   esac
2395 elif test "x$prefix" != xNONE; then
2396   ac_site_file1=$prefix/share/config.site
2397   ac_site_file2=$prefix/etc/config.site
2398 else
2399   ac_site_file1=$ac_default_prefix/share/config.site
2400   ac_site_file2=$ac_default_prefix/etc/config.site
2401 fi
2402 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2403 do
2404   test "x$ac_site_file" = xNONE && continue
2405   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2406     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2407 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2408     sed 's/^/| /' "$ac_site_file" >&5
2409     . "$ac_site_file" \
2410       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2412 as_fn_error $? "failed to load site script $ac_site_file
2413 See \`config.log' for more details" "$LINENO" 5; }
2414   fi
2415 done
2416
2417 if test -r "$cache_file"; then
2418   # Some versions of bash will fail to source /dev/null (special files
2419   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2420   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2421     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2422 $as_echo "$as_me: loading cache $cache_file" >&6;}
2423     case $cache_file in
2424       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2425       *)                      . "./$cache_file";;
2426     esac
2427   fi
2428 else
2429   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2430 $as_echo "$as_me: creating cache $cache_file" >&6;}
2431   >$cache_file
2432 fi
2433
2434 # Check that the precious variables saved in the cache have kept the same
2435 # value.
2436 ac_cache_corrupted=false
2437 for ac_var in $ac_precious_vars; do
2438   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2439   eval ac_new_set=\$ac_env_${ac_var}_set
2440   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2441   eval ac_new_val=\$ac_env_${ac_var}_value
2442   case $ac_old_set,$ac_new_set in
2443     set,)
2444       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2445 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2446       ac_cache_corrupted=: ;;
2447     ,set)
2448       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2449 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2450       ac_cache_corrupted=: ;;
2451     ,);;
2452     *)
2453       if test "x$ac_old_val" != "x$ac_new_val"; then
2454         # differences in whitespace do not lead to failure.
2455         ac_old_val_w=`echo x $ac_old_val`
2456         ac_new_val_w=`echo x $ac_new_val`
2457         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2458           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2459 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2460           ac_cache_corrupted=:
2461         else
2462           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2463 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2464           eval $ac_var=\$ac_old_val
2465         fi
2466         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2467 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2468         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2469 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2470       fi;;
2471   esac
2472   # Pass precious variables to config.status.
2473   if test "$ac_new_set" = set; then
2474     case $ac_new_val in
2475     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2476     *) ac_arg=$ac_var=$ac_new_val ;;
2477     esac
2478     case " $ac_configure_args " in
2479       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2480       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2481     esac
2482   fi
2483 done
2484 if $ac_cache_corrupted; then
2485   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2488 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2489   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2490 fi
2491 ## -------------------- ##
2492 ## Main body of script. ##
2493 ## -------------------- ##
2494
2495 ac_ext=c
2496 ac_cpp='$CPP $CPPFLAGS'
2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2500
2501
2502 ac_config_headers="$ac_config_headers fficonfig.h"
2503
2504
2505 ac_aux_dir=
2506 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2507   if test -f "$ac_dir/install-sh"; then
2508     ac_aux_dir=$ac_dir
2509     ac_install_sh="$ac_aux_dir/install-sh -c"
2510     break
2511   elif test -f "$ac_dir/install.sh"; then
2512     ac_aux_dir=$ac_dir
2513     ac_install_sh="$ac_aux_dir/install.sh -c"
2514     break
2515   elif test -f "$ac_dir/shtool"; then
2516     ac_aux_dir=$ac_dir
2517     ac_install_sh="$ac_aux_dir/shtool install -c"
2518     break
2519   fi
2520 done
2521 if test -z "$ac_aux_dir"; then
2522   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2523 fi
2524
2525 # These three variables are undocumented and unsupported,
2526 # and are intended to be withdrawn in a future Autoconf release.
2527 # They can cause serious problems if a builder's source tree is in a directory
2528 # whose full name contains unusual characters.
2529 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2530 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2531 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2532
2533
2534 # Make sure we can run config.sub.
2535 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2536   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2537
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2539 $as_echo_n "checking build system type... " >&6; }
2540 if ${ac_cv_build+:} false; then :
2541   $as_echo_n "(cached) " >&6
2542 else
2543   ac_build_alias=$build_alias
2544 test "x$ac_build_alias" = x &&
2545   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2546 test "x$ac_build_alias" = x &&
2547   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2548 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2549   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2550
2551 fi
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2553 $as_echo "$ac_cv_build" >&6; }
2554 case $ac_cv_build in
2555 *-*-*) ;;
2556 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2557 esac
2558 build=$ac_cv_build
2559 ac_save_IFS=$IFS; IFS='-'
2560 set x $ac_cv_build
2561 shift
2562 build_cpu=$1
2563 build_vendor=$2
2564 shift; shift
2565 # Remember, the first character of IFS is used to create $*,
2566 # except with old shells:
2567 build_os=$*
2568 IFS=$ac_save_IFS
2569 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2570
2571
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2573 $as_echo_n "checking host system type... " >&6; }
2574 if ${ac_cv_host+:} false; then :
2575   $as_echo_n "(cached) " >&6
2576 else
2577   if test "x$host_alias" = x; then
2578   ac_cv_host=$ac_cv_build
2579 else
2580   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2581     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2582 fi
2583
2584 fi
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2586 $as_echo "$ac_cv_host" >&6; }
2587 case $ac_cv_host in
2588 *-*-*) ;;
2589 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2590 esac
2591 host=$ac_cv_host
2592 ac_save_IFS=$IFS; IFS='-'
2593 set x $ac_cv_host
2594 shift
2595 host_cpu=$1
2596 host_vendor=$2
2597 shift; shift
2598 # Remember, the first character of IFS is used to create $*,
2599 # except with old shells:
2600 host_os=$*
2601 IFS=$ac_save_IFS
2602 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2603
2604
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2606 $as_echo_n "checking target system type... " >&6; }
2607 if ${ac_cv_target+:} false; then :
2608   $as_echo_n "(cached) " >&6
2609 else
2610   if test "x$target_alias" = x; then
2611   ac_cv_target=$ac_cv_host
2612 else
2613   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2614     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2615 fi
2616
2617 fi
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2619 $as_echo "$ac_cv_target" >&6; }
2620 case $ac_cv_target in
2621 *-*-*) ;;
2622 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2623 esac
2624 target=$ac_cv_target
2625 ac_save_IFS=$IFS; IFS='-'
2626 set x $ac_cv_target
2627 shift
2628 target_cpu=$1
2629 target_vendor=$2
2630 shift; shift
2631 # Remember, the first character of IFS is used to create $*,
2632 # except with old shells:
2633 target_os=$*
2634 IFS=$ac_save_IFS
2635 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2636
2637
2638 # The aliases save the names the user supplied, while $host etc.
2639 # will get canonicalized.
2640 test -n "$target_alias" &&
2641   test "$program_prefix$program_suffix$program_transform_name" = \
2642     NONENONEs,x,x, &&
2643   program_prefix=${target_alias}-
2644
2645 target_alias=${target_alias-$host_alias}
2646
2647 . ${srcdir}/configure.host
2648
2649 am__api_version='1.11'
2650
2651 # Find a good install program.  We prefer a C program (faster),
2652 # so one script is as good as another.  But avoid the broken or
2653 # incompatible versions:
2654 # SysV /etc/install, /usr/sbin/install
2655 # SunOS /usr/etc/install
2656 # IRIX /sbin/install
2657 # AIX /bin/install
2658 # AmigaOS /C/install, which installs bootblocks on floppy discs
2659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2662 # OS/2's system install, which has a completely different semantic
2663 # ./install, which can be erroneously created by make from ./install.sh.
2664 # Reject install programs that cannot install multiple files.
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2666 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2667 if test -z "$INSTALL"; then
2668 if ${ac_cv_path_install+:} false; then :
2669   $as_echo_n "(cached) " >&6
2670 else
2671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674   IFS=$as_save_IFS
2675   test -z "$as_dir" && as_dir=.
2676     # Account for people who put trailing slashes in PATH elements.
2677 case $as_dir/ in #((
2678   ./ | .// | /[cC]/* | \
2679   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2680   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2681   /usr/ucb/* ) ;;
2682   *)
2683     # OSF1 and SCO ODT 3.0 have their own names for install.
2684     # Don't use installbsd from OSF since it installs stuff as root
2685     # by default.
2686     for ac_prog in ginstall scoinst install; do
2687       for ac_exec_ext in '' $ac_executable_extensions; do
2688         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2689           if test $ac_prog = install &&
2690             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691             # AIX install.  It has an incompatible calling convention.
2692             :
2693           elif test $ac_prog = install &&
2694             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2695             # program-specific install script used by HP pwplus--don't use.
2696             :
2697           else
2698             rm -rf conftest.one conftest.two conftest.dir
2699             echo one > conftest.one
2700             echo two > conftest.two
2701             mkdir conftest.dir
2702             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2703               test -s conftest.one && test -s conftest.two &&
2704               test -s conftest.dir/conftest.one &&
2705               test -s conftest.dir/conftest.two
2706             then
2707               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2708               break 3
2709             fi
2710           fi
2711         fi
2712       done
2713     done
2714     ;;
2715 esac
2716
2717   done
2718 IFS=$as_save_IFS
2719
2720 rm -rf conftest.one conftest.two conftest.dir
2721
2722 fi
2723   if test "${ac_cv_path_install+set}" = set; then
2724     INSTALL=$ac_cv_path_install
2725   else
2726     # As a last resort, use the slow shell script.  Don't cache a
2727     # value for INSTALL within a source directory, because that will
2728     # break other packages using the cache if that directory is
2729     # removed, or if the value is a relative name.
2730     INSTALL=$ac_install_sh
2731   fi
2732 fi
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2734 $as_echo "$INSTALL" >&6; }
2735
2736 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2737 # It thinks the first close brace ends the variable substitution.
2738 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2739
2740 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2741
2742 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2743
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2745 $as_echo_n "checking whether build environment is sane... " >&6; }
2746 # Just in case
2747 sleep 1
2748 echo timestamp > conftest.file
2749 # Reject unsafe characters in $srcdir or the absolute working directory
2750 # name.  Accept space and tab only in the latter.
2751 am_lf='
2752 '
2753 case `pwd` in
2754   *[\\\"\#\$\&\'\`$am_lf]*)
2755     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2756 esac
2757 case $srcdir in
2758   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2759     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2760 esac
2761
2762 # Do `set' in a subshell so we don't clobber the current shell's
2763 # arguments.  Must try -L first in case configure is actually a
2764 # symlink; some systems play weird games with the mod time of symlinks
2765 # (eg FreeBSD returns the mod time of the symlink's containing
2766 # directory).
2767 if (
2768    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2769    if test "$*" = "X"; then
2770       # -L didn't work.
2771       set X `ls -t "$srcdir/configure" conftest.file`
2772    fi
2773    rm -f conftest.file
2774    if test "$*" != "X $srcdir/configure conftest.file" \
2775       && test "$*" != "X conftest.file $srcdir/configure"; then
2776
2777       # If neither matched, then we have a broken ls.  This can happen
2778       # if, for instance, CONFIG_SHELL is bash and it inherits a
2779       # broken ls alias from the environment.  This has actually
2780       # happened.  Such a system could not be considered "sane".
2781       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2782 alias in your environment" "$LINENO" 5
2783    fi
2784
2785    test "$2" = conftest.file
2786    )
2787 then
2788    # Ok.
2789    :
2790 else
2791    as_fn_error $? "newly created file is older than distributed files!
2792 Check your system clock" "$LINENO" 5
2793 fi
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2795 $as_echo "yes" >&6; }
2796 test "$program_prefix" != NONE &&
2797   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2798 # Use a double $ so make ignores it.
2799 test "$program_suffix" != NONE &&
2800   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2801 # Double any \ or $.
2802 # By default was `s,x,x', remove it if useless.
2803 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2804 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2805
2806 # expand $ac_aux_dir to an absolute path
2807 am_aux_dir=`cd $ac_aux_dir && pwd`
2808
2809 if test x"${MISSING+set}" != xset; then
2810   case $am_aux_dir in
2811   *\ * | *\     *)
2812     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2813   *)
2814     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2815   esac
2816 fi
2817 # Use eval to expand $SHELL
2818 if eval "$MISSING --run true"; then
2819   am_missing_run="$MISSING --run "
2820 else
2821   am_missing_run=
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2823 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2824 fi
2825
2826 if test x"${install_sh}" != xset; then
2827   case $am_aux_dir in
2828   *\ * | *\     *)
2829     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2830   *)
2831     install_sh="\${SHELL} $am_aux_dir/install-sh"
2832   esac
2833 fi
2834
2835 # Installed binaries are usually stripped using `strip' when the user
2836 # run `make install-strip'.  However `strip' might not be the right
2837 # tool to use in cross-compilation environments, therefore Automake
2838 # will honor the `STRIP' environment variable to overrule this program.
2839 if test "$cross_compiling" != no; then
2840   if test -n "$ac_tool_prefix"; then
2841   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2842 set dummy ${ac_tool_prefix}strip; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_STRIP+:} false; then :
2846   $as_echo_n "(cached) " >&6
2847 else
2848   if test -n "$STRIP"; then
2849   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854   IFS=$as_save_IFS
2855   test -z "$as_dir" && as_dir=.
2856     for ac_exec_ext in '' $ac_executable_extensions; do
2857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860     break 2
2861   fi
2862 done
2863   done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 STRIP=$ac_cv_prog_STRIP
2869 if test -n "$STRIP"; then
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2871 $as_echo "$STRIP" >&6; }
2872 else
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877
2878 fi
2879 if test -z "$ac_cv_prog_STRIP"; then
2880   ac_ct_STRIP=$STRIP
2881   # Extract the first word of "strip", so it can be a program name with args.
2882 set dummy strip; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2886   $as_echo_n "(cached) " >&6
2887 else
2888   if test -n "$ac_ct_STRIP"; then
2889   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894   IFS=$as_save_IFS
2895   test -z "$as_dir" && as_dir=.
2896     for ac_exec_ext in '' $ac_executable_extensions; do
2897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898     ac_cv_prog_ac_ct_STRIP="strip"
2899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900     break 2
2901   fi
2902 done
2903   done
2904 IFS=$as_save_IFS
2905
2906 fi
2907 fi
2908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2909 if test -n "$ac_ct_STRIP"; then
2910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2911 $as_echo "$ac_ct_STRIP" >&6; }
2912 else
2913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2915 fi
2916
2917   if test "x$ac_ct_STRIP" = x; then
2918     STRIP=":"
2919   else
2920     case $cross_compiling:$ac_tool_warned in
2921 yes:)
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2924 ac_tool_warned=yes ;;
2925 esac
2926     STRIP=$ac_ct_STRIP
2927   fi
2928 else
2929   STRIP="$ac_cv_prog_STRIP"
2930 fi
2931
2932 fi
2933 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2934
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2936 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2937 if test -z "$MKDIR_P"; then
2938   if ${ac_cv_path_mkdir+:} false; then :
2939   $as_echo_n "(cached) " >&6
2940 else
2941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2943 do
2944   IFS=$as_save_IFS
2945   test -z "$as_dir" && as_dir=.
2946     for ac_prog in mkdir gmkdir; do
2947          for ac_exec_ext in '' $ac_executable_extensions; do
2948            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2949            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2950              'mkdir (GNU coreutils) '* | \
2951              'mkdir (coreutils) '* | \
2952              'mkdir (fileutils) '4.1*)
2953                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2954                break 3;;
2955            esac
2956          done
2957        done
2958   done
2959 IFS=$as_save_IFS
2960
2961 fi
2962
2963   test -d ./--version && rmdir ./--version
2964   if test "${ac_cv_path_mkdir+set}" = set; then
2965     MKDIR_P="$ac_cv_path_mkdir -p"
2966   else
2967     # As a last resort, use the slow shell script.  Don't cache a
2968     # value for MKDIR_P within a source directory, because that will
2969     # break other packages using the cache if that directory is
2970     # removed, or if the value is a relative name.
2971     MKDIR_P="$ac_install_sh -d"
2972   fi
2973 fi
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2975 $as_echo "$MKDIR_P" >&6; }
2976
2977 mkdir_p="$MKDIR_P"
2978 case $mkdir_p in
2979   [\\/$]* | ?:[\\/]*) ;;
2980   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2981 esac
2982
2983 for ac_prog in gawk mawk nawk awk
2984 do
2985   # Extract the first word of "$ac_prog", so it can be a program name with args.
2986 set dummy $ac_prog; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_AWK+:} false; then :
2990   $as_echo_n "(cached) " >&6
2991 else
2992   if test -n "$AWK"; then
2993   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998   IFS=$as_save_IFS
2999   test -z "$as_dir" && as_dir=.
3000     for ac_exec_ext in '' $ac_executable_extensions; do
3001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002     ac_cv_prog_AWK="$ac_prog"
3003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004     break 2
3005   fi
3006 done
3007   done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 AWK=$ac_cv_prog_AWK
3013 if test -n "$AWK"; then
3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3015 $as_echo "$AWK" >&6; }
3016 else
3017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021
3022   test -n "$AWK" && break
3023 done
3024
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3026 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3027 set x ${MAKE-make}
3028 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3029 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3030   $as_echo_n "(cached) " >&6
3031 else
3032   cat >conftest.make <<\_ACEOF
3033 SHELL = /bin/sh
3034 all:
3035         @echo '@@@%%%=$(MAKE)=@@@%%%'
3036 _ACEOF
3037 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3038 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3039   *@@@%%%=?*=@@@%%%*)
3040     eval ac_cv_prog_make_${ac_make}_set=yes;;
3041   *)
3042     eval ac_cv_prog_make_${ac_make}_set=no;;
3043 esac
3044 rm -f conftest.make
3045 fi
3046 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3048 $as_echo "yes" >&6; }
3049   SET_MAKE=
3050 else
3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053   SET_MAKE="MAKE=${MAKE-make}"
3054 fi
3055
3056 rm -rf .tst 2>/dev/null
3057 mkdir .tst 2>/dev/null
3058 if test -d .tst; then
3059   am__leading_dot=.
3060 else
3061   am__leading_dot=_
3062 fi
3063 rmdir .tst 2>/dev/null
3064
3065 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3066   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3067   # is not polluted with repeated "-I."
3068   am__isrc=' -I$(srcdir)'
3069   # test to see if srcdir already configured
3070   if test -f $srcdir/config.status; then
3071     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3072   fi
3073 fi
3074
3075 # test whether we have cygpath
3076 if test -z "$CYGPATH_W"; then
3077   if (cygpath --version) >/dev/null 2>/dev/null; then
3078     CYGPATH_W='cygpath -w'
3079   else
3080     CYGPATH_W=echo
3081   fi
3082 fi
3083
3084
3085 # Define the identity of the package.
3086  PACKAGE='libffi'
3087  VERSION='3.0.10rc3'
3088
3089
3090 cat >>confdefs.h <<_ACEOF
3091 #define PACKAGE "$PACKAGE"
3092 _ACEOF
3093
3094
3095 cat >>confdefs.h <<_ACEOF
3096 #define VERSION "$VERSION"
3097 _ACEOF
3098
3099 # Some tools Automake needs.
3100
3101 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3102
3103
3104 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3105
3106
3107 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3108
3109
3110 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3111
3112
3113 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3114
3115 # We need awk for the "check" target.  The system "awk" is bad on
3116 # some platforms.
3117 # Always define AMTAR for backward compatibility.
3118
3119 AMTAR=${AMTAR-"${am_missing_run}tar"}
3120
3121 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3122
3123
3124
3125
3126
3127
3128 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3129 # We must force CC to /not/ be precious variables; otherwise
3130 # the wrong, non-multilib-adjusted value will be used in multilibs.
3131 # As a side effect, we have to subst CFLAGS ourselves.
3132 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3133 # defaults of its own if none are provided.
3134
3135
3136
3137 save_CFLAGS=$CFLAGS
3138 ac_ext=c
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143 if test -n "$ac_tool_prefix"; then
3144   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3145 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if ${ac_cv_prog_CC+:} false; then :
3149   $as_echo_n "(cached) " >&6
3150 else
3151   if test -n "$CC"; then
3152   ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157   IFS=$as_save_IFS
3158   test -z "$as_dir" && as_dir=.
3159     for ac_exec_ext in '' $ac_executable_extensions; do
3160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163     break 2
3164   fi
3165 done
3166   done
3167 IFS=$as_save_IFS
3168
3169 fi
3170 fi
3171 CC=$ac_cv_prog_CC
3172 if test -n "$CC"; then
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3174 $as_echo "$CC" >&6; }
3175 else
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178 fi
3179
3180
3181 fi
3182 if test -z "$ac_cv_prog_CC"; then
3183   ac_ct_CC=$CC
3184   # Extract the first word of "gcc", so it can be a program name with args.
3185 set dummy gcc; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   if test -n "$ac_ct_CC"; then
3192   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197   IFS=$as_save_IFS
3198   test -z "$as_dir" && as_dir=.
3199     for ac_exec_ext in '' $ac_executable_extensions; do
3200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201     ac_cv_prog_ac_ct_CC="gcc"
3202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203     break 2
3204   fi
3205 done
3206   done
3207 IFS=$as_save_IFS
3208
3209 fi
3210 fi
3211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3212 if test -n "$ac_ct_CC"; then
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3214 $as_echo "$ac_ct_CC" >&6; }
3215 else
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220   if test "x$ac_ct_CC" = x; then
3221     CC=""
3222   else
3223     case $cross_compiling:$ac_tool_warned in
3224 yes:)
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227 ac_tool_warned=yes ;;
3228 esac
3229     CC=$ac_ct_CC
3230   fi
3231 else
3232   CC="$ac_cv_prog_CC"
3233 fi
3234
3235 if test -z "$CC"; then
3236           if test -n "$ac_tool_prefix"; then
3237     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3238 set dummy ${ac_tool_prefix}cc; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_prog_CC+:} false; then :
3242   $as_echo_n "(cached) " >&6
3243 else
3244   if test -n "$CC"; then
3245   ac_cv_prog_CC="$CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250   IFS=$as_save_IFS
3251   test -z "$as_dir" && as_dir=.
3252     for ac_exec_ext in '' $ac_executable_extensions; do
3253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254     ac_cv_prog_CC="${ac_tool_prefix}cc"
3255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256     break 2
3257   fi
3258 done
3259   done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 CC=$ac_cv_prog_CC
3265 if test -n "$CC"; then
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3268 else
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274   fi
3275 fi
3276 if test -z "$CC"; then
3277   # Extract the first word of "cc", so it can be a program name with args.
3278 set dummy cc; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if ${ac_cv_prog_CC+:} false; then :
3282   $as_echo_n "(cached) " >&6
3283 else
3284   if test -n "$CC"; then
3285   ac_cv_prog_CC="$CC" # Let the user override the test.
3286 else
3287   ac_prog_rejected=no
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293     for ac_exec_ext in '' $ac_executable_extensions; do
3294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3296        ac_prog_rejected=yes
3297        continue
3298      fi
3299     ac_cv_prog_CC="cc"
3300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301     break 2
3302   fi
3303 done
3304   done
3305 IFS=$as_save_IFS
3306
3307 if test $ac_prog_rejected = yes; then
3308   # We found a bogon in the path, so make sure we never use it.
3309   set dummy $ac_cv_prog_CC
3310   shift
3311   if test $# != 0; then
3312     # We chose a different compiler from the bogus one.
3313     # However, it has the same basename, so the bogon will be chosen
3314     # first if we set CC to just the basename; use the full file name.
3315     shift
3316     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3317   fi
3318 fi
3319 fi
3320 fi
3321 CC=$ac_cv_prog_CC
3322 if test -n "$CC"; then
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324 $as_echo "$CC" >&6; }
3325 else
3326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3328 fi
3329
3330
3331 fi
3332 if test -z "$CC"; then
3333   if test -n "$ac_tool_prefix"; then
3334   for ac_prog in cl.exe
3335   do
3336     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3337 set dummy $ac_tool_prefix$ac_prog; 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 ${ac_cv_prog_CC+:} false; then :
3341   $as_echo_n "(cached) " >&6
3342 else
3343   if test -n "$CC"; then
3344   ac_cv_prog_CC="$CC" # 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_CC="$ac_tool_prefix$ac_prog"
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 CC=$ac_cv_prog_CC
3364 if test -n "$CC"; then
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3366 $as_echo "$CC" >&6; }
3367 else
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 fi
3371
3372
3373     test -n "$CC" && break
3374   done
3375 fi
3376 if test -z "$CC"; then
3377   ac_ct_CC=$CC
3378   for ac_prog in cl.exe
3379 do
3380   # Extract the first word of "$ac_prog", so it can be a program name with args.
3381 set dummy $ac_prog; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3385   $as_echo_n "(cached) " >&6
3386 else
3387   if test -n "$ac_ct_CC"; then
3388   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395     for ac_exec_ext in '' $ac_executable_extensions; do
3396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397     ac_cv_prog_ac_ct_CC="$ac_prog"
3398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402   done
3403 IFS=$as_save_IFS
3404
3405 fi
3406 fi
3407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3408 if test -n "$ac_ct_CC"; then
3409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3410 $as_echo "$ac_ct_CC" >&6; }
3411 else
3412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3414 fi
3415
3416
3417   test -n "$ac_ct_CC" && break
3418 done
3419
3420   if test "x$ac_ct_CC" = x; then
3421     CC=""
3422   else
3423     case $cross_compiling:$ac_tool_warned in
3424 yes:)
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427 ac_tool_warned=yes ;;
3428 esac
3429     CC=$ac_ct_CC
3430   fi
3431 fi
3432
3433 fi
3434
3435
3436 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error $? "no acceptable C compiler found in \$PATH
3439 See \`config.log' for more details" "$LINENO" 5; }
3440
3441 # Provide some information about the compiler.
3442 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3443 set X $ac_compile
3444 ac_compiler=$2
3445 for ac_option in --version -v -V -qversion; do
3446   { { ac_try="$ac_compiler $ac_option >&5"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3454   ac_status=$?
3455   if test -s conftest.err; then
3456     sed '10a\
3457 ... rest of stderr output deleted ...
3458          10q' conftest.err >conftest.er1
3459     cat conftest.er1 >&5
3460   fi
3461   rm -f conftest.er1 conftest.err
3462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463   test $ac_status = 0; }
3464 done
3465
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h.  */
3468
3469 int
3470 main ()
3471 {
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 ac_clean_files_save=$ac_clean_files
3478 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3479 # Try to create an executable without -o first, disregard a.out.
3480 # It will help us diagnose broken compilers, and finding out an intuition
3481 # of exeext.
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3483 $as_echo_n "checking whether the C compiler works... " >&6; }
3484 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3485
3486 # The possible output files:
3487 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3488
3489 ac_rmfiles=
3490 for ac_file in $ac_files
3491 do
3492   case $ac_file in
3493     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3494     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3495   esac
3496 done
3497 rm -f $ac_rmfiles
3498
3499 if { { ac_try="$ac_link_default"
3500 case "(($ac_try" in
3501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502   *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506   (eval "$ac_link_default") 2>&5
3507   ac_status=$?
3508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509   test $ac_status = 0; }; then :
3510   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3511 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3512 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3513 # so that the user can short-circuit this test for compilers unknown to
3514 # Autoconf.
3515 for ac_file in $ac_files ''
3516 do
3517   test -f "$ac_file" || continue
3518   case $ac_file in
3519     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3520         ;;
3521     [ab].out )
3522         # We found the default executable, but exeext='' is most
3523         # certainly right.
3524         break;;
3525     *.* )
3526         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3527         then :; else
3528            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3529         fi
3530         # We set ac_cv_exeext here because the later test for it is not
3531         # safe: cross compilers may not add the suffix if given an `-o'
3532         # argument, so we may need to know it at that point already.
3533         # Even if this section looks crufty: it has the advantage of
3534         # actually working.
3535         break;;
3536     * )
3537         break;;
3538   esac
3539 done
3540 test "$ac_cv_exeext" = no && ac_cv_exeext=
3541
3542 else
3543   ac_file=''
3544 fi
3545 if test -z "$ac_file"; then :
3546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3548 $as_echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3550
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 as_fn_error 77 "C compiler cannot create executables
3554 See \`config.log' for more details" "$LINENO" 5; }
3555 else
3556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3557 $as_echo "yes" >&6; }
3558 fi
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3560 $as_echo_n "checking for C compiler default output file name... " >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3562 $as_echo "$ac_file" >&6; }
3563 ac_exeext=$ac_cv_exeext
3564
3565 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3566 ac_clean_files=$ac_clean_files_save
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3568 $as_echo_n "checking for suffix of executables... " >&6; }
3569 if { { ac_try="$ac_link"
3570 case "(($ac_try" in
3571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572   *) ac_try_echo=$ac_try;;
3573 esac
3574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575 $as_echo "$ac_try_echo"; } >&5
3576   (eval "$ac_link") 2>&5
3577   ac_status=$?
3578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579   test $ac_status = 0; }; then :
3580   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3581 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3582 # work properly (i.e., refer to `conftest.exe'), while it won't with
3583 # `rm'.
3584 for ac_file in conftest.exe conftest conftest.*; do
3585   test -f "$ac_file" || continue
3586   case $ac_file in
3587     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3588     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3589           break;;
3590     * ) break;;
3591   esac
3592 done
3593 else
3594   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3597 See \`config.log' for more details" "$LINENO" 5; }
3598 fi
3599 rm -f conftest conftest$ac_cv_exeext
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3601 $as_echo "$ac_cv_exeext" >&6; }
3602
3603 rm -f conftest.$ac_ext
3604 EXEEXT=$ac_cv_exeext
3605 ac_exeext=$EXEEXT
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h.  */
3608 #include <stdio.h>
3609 int
3610 main ()
3611 {
3612 FILE *f = fopen ("conftest.out", "w");
3613  return ferror (f) || fclose (f) != 0;
3614
3615   ;
3616   return 0;
3617 }
3618 _ACEOF
3619 ac_clean_files="$ac_clean_files conftest.out"
3620 # Check that the compiler produces executables we can run.  If not, either
3621 # the compiler is broken, or we cross compile.
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3623 $as_echo_n "checking whether we are cross compiling... " >&6; }
3624 if test "$cross_compiling" != yes; then
3625   { { ac_try="$ac_link"
3626 case "(($ac_try" in
3627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628   *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632   (eval "$ac_link") 2>&5
3633   ac_status=$?
3634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635   test $ac_status = 0; }
3636   if { ac_try='./conftest$ac_cv_exeext'
3637   { { case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643   (eval "$ac_try") 2>&5
3644   ac_status=$?
3645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646   test $ac_status = 0; }; }; then
3647     cross_compiling=no
3648   else
3649     if test "$cross_compiling" = maybe; then
3650         cross_compiling=yes
3651     else
3652         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 as_fn_error $? "cannot run C compiled programs.
3655 If you meant to cross compile, use \`--host'.
3656 See \`config.log' for more details" "$LINENO" 5; }
3657     fi
3658   fi
3659 fi
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3661 $as_echo "$cross_compiling" >&6; }
3662
3663 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3664 ac_clean_files=$ac_clean_files_save
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3666 $as_echo_n "checking for suffix of object files... " >&6; }
3667 if ${ac_cv_objext+:} false; then :
3668   $as_echo_n "(cached) " >&6
3669 else
3670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h.  */
3672
3673 int
3674 main ()
3675 {
3676
3677   ;
3678   return 0;
3679 }
3680 _ACEOF
3681 rm -f conftest.o conftest.obj
3682 if { { ac_try="$ac_compile"
3683 case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689   (eval "$ac_compile") 2>&5
3690   ac_status=$?
3691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692   test $ac_status = 0; }; then :
3693   for ac_file in conftest.o conftest.obj conftest.*; do
3694   test -f "$ac_file" || continue;
3695   case $ac_file in
3696     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3697     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3698        break;;
3699   esac
3700 done
3701 else
3702   $as_echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error $? "cannot compute suffix of object files: cannot compile
3708 See \`config.log' for more details" "$LINENO" 5; }
3709 fi
3710 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3713 $as_echo "$ac_cv_objext" >&6; }
3714 OBJEXT=$ac_cv_objext
3715 ac_objext=$OBJEXT
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3717 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3718 if ${ac_cv_c_compiler_gnu+:} false; then :
3719   $as_echo_n "(cached) " >&6
3720 else
3721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h.  */
3723
3724 int
3725 main ()
3726 {
3727 #ifndef __GNUC__
3728        choke me
3729 #endif
3730
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736   ac_compiler_gnu=yes
3737 else
3738   ac_compiler_gnu=no
3739 fi
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3742
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3745 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3746 if test $ac_compiler_gnu = yes; then
3747   GCC=yes
3748 else
3749   GCC=
3750 fi
3751 ac_test_CFLAGS=${CFLAGS+set}
3752 ac_save_CFLAGS=$CFLAGS
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3754 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3755 if ${ac_cv_prog_cc_g+:} false; then :
3756   $as_echo_n "(cached) " >&6
3757 else
3758   ac_save_c_werror_flag=$ac_c_werror_flag
3759    ac_c_werror_flag=yes
3760    ac_cv_prog_cc_g=no
3761    CFLAGS="-g"
3762    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h.  */
3764
3765 int
3766 main ()
3767 {
3768
3769   ;
3770   return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_c_try_compile "$LINENO"; then :
3774   ac_cv_prog_cc_g=yes
3775 else
3776   CFLAGS=""
3777       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h.  */
3779
3780 int
3781 main ()
3782 {
3783
3784   ;
3785   return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789
3790 else
3791   ac_c_werror_flag=$ac_save_c_werror_flag
3792          CFLAGS="-g"
3793          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h.  */
3795
3796 int
3797 main ()
3798 {
3799
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805   ac_cv_prog_cc_g=yes
3806 fi
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 fi
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 fi
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812    ac_c_werror_flag=$ac_save_c_werror_flag
3813 fi
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3815 $as_echo "$ac_cv_prog_cc_g" >&6; }
3816 if test "$ac_test_CFLAGS" = set; then
3817   CFLAGS=$ac_save_CFLAGS
3818 elif test $ac_cv_prog_cc_g = yes; then
3819   if test "$GCC" = yes; then
3820     CFLAGS="-g -O2"
3821   else
3822     CFLAGS="-g"
3823   fi
3824 else
3825   if test "$GCC" = yes; then
3826     CFLAGS="-O2"
3827   else
3828     CFLAGS=
3829   fi
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3832 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3833 if ${ac_cv_prog_cc_c89+:} false; then :
3834   $as_echo_n "(cached) " >&6
3835 else
3836   ac_cv_prog_cc_c89=no
3837 ac_save_CC=$CC
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h.  */
3840 #include <stdarg.h>
3841 #include <stdio.h>
3842 #include <sys/types.h>
3843 #include <sys/stat.h>
3844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3845 struct buf { int x; };
3846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3847 static char *e (p, i)
3848      char **p;
3849      int i;
3850 {
3851   return p[i];
3852 }
3853 static char *f (char * (*g) (char **, int), char **p, ...)
3854 {
3855   char *s;
3856   va_list v;
3857   va_start (v,p);
3858   s = g (p, va_arg (v,int));
3859   va_end (v);
3860   return s;
3861 }
3862
3863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3864    function prototypes and stuff, but not '\xHH' hex character constants.
3865    These don't provoke an error unfortunately, instead are silently treated
3866    as 'x'.  The following induces an error, until -std is added to get
3867    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3868    array size at least.  It's necessary to write '\x00'==0 to get something
3869    that's true only with -std.  */
3870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3871
3872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3873    inside strings and character constants.  */
3874 #define FOO(x) 'x'
3875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3876
3877 int test (int i, double x);
3878 struct s1 {int (*f) (int a);};
3879 struct s2 {int (*f) (double a);};
3880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3881 int argc;
3882 char **argv;
3883 int
3884 main ()
3885 {
3886 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3887   ;
3888   return 0;
3889 }
3890 _ACEOF
3891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3892         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3893 do
3894   CC="$ac_save_CC $ac_arg"
3895   if ac_fn_c_try_compile "$LINENO"; then :
3896   ac_cv_prog_cc_c89=$ac_arg
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext
3899   test "x$ac_cv_prog_cc_c89" != "xno" && break
3900 done
3901 rm -f conftest.$ac_ext
3902 CC=$ac_save_CC
3903
3904 fi
3905 # AC_CACHE_VAL
3906 case "x$ac_cv_prog_cc_c89" in
3907   x)
3908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3909 $as_echo "none needed" >&6; } ;;
3910   xno)
3911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3912 $as_echo "unsupported" >&6; } ;;
3913   *)
3914     CC="$CC $ac_cv_prog_cc_c89"
3915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3916 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3917 esac
3918 if test "x$ac_cv_prog_cc_c89" != xno; then :
3919
3920 fi
3921
3922 ac_ext=c
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927 DEPDIR="${am__leading_dot}deps"
3928
3929 ac_config_commands="$ac_config_commands depfiles"
3930
3931
3932 am_make=${MAKE-make}
3933 cat > confinc << 'END'
3934 am__doit:
3935         @echo this is the am__doit target
3936 .PHONY: am__doit
3937 END
3938 # If we don't find an include directive, just comment out the code.
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3940 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3941 am__include="#"
3942 am__quote=
3943 _am_result=none
3944 # First try GNU make style include.
3945 echo "include confinc" > confmf
3946 # Ignore all kinds of additional output from `make'.
3947 case `$am_make -s -f confmf 2> /dev/null` in #(
3948 *the\ am__doit\ target*)
3949   am__include=include
3950   am__quote=
3951   _am_result=GNU
3952   ;;
3953 esac
3954 # Now try BSD make style include.
3955 if test "$am__include" = "#"; then
3956    echo '.include "confinc"' > confmf
3957    case `$am_make -s -f confmf 2> /dev/null` in #(
3958    *the\ am__doit\ target*)
3959      am__include=.include
3960      am__quote="\""
3961      _am_result=BSD
3962      ;;
3963    esac
3964 fi
3965
3966
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3968 $as_echo "$_am_result" >&6; }
3969 rm -f confinc confmf
3970
3971 # Check whether --enable-dependency-tracking was given.
3972 if test "${enable_dependency_tracking+set}" = set; then :
3973   enableval=$enable_dependency_tracking;
3974 fi
3975
3976 if test "x$enable_dependency_tracking" != xno; then
3977   am_depcomp="$ac_aux_dir/depcomp"
3978   AMDEPBACKSLASH='\'
3979 fi
3980  if test "x$enable_dependency_tracking" != xno; then
3981   AMDEP_TRUE=
3982   AMDEP_FALSE='#'
3983 else
3984   AMDEP_TRUE='#'
3985   AMDEP_FALSE=
3986 fi
3987
3988
3989
3990 depcc="$CC"   am_compiler_list=
3991
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3993 $as_echo_n "checking dependency style of $depcc... " >&6; }
3994 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3995   $as_echo_n "(cached) " >&6
3996 else
3997   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3998   # We make a subdir and do the tests there.  Otherwise we can end up
3999   # making bogus files that we don't know about and never remove.  For
4000   # instance it was reported that on HP-UX the gcc test will end up
4001   # making a dummy file named `D' -- because `-MD' means `put the output
4002   # in D'.
4003   mkdir conftest.dir
4004   # Copy depcomp to subdir because otherwise we won't find it if we're
4005   # using a relative directory.
4006   cp "$am_depcomp" conftest.dir
4007   cd conftest.dir
4008   # We will build objects and dependencies in a subdirectory because
4009   # it helps to detect inapplicable dependency modes.  For instance
4010   # both Tru64's cc and ICC support -MD to output dependencies as a
4011   # side effect of compilation, but ICC will put the dependencies in
4012   # the current directory while Tru64 will put them in the object
4013   # directory.
4014   mkdir sub
4015
4016   am_cv_CC_dependencies_compiler_type=none
4017   if test "$am_compiler_list" = ""; then
4018      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4019   fi
4020   am__universal=false
4021   case " $depcc " in #(
4022      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4023      esac
4024
4025   for depmode in $am_compiler_list; do
4026     # Setup a source with many dependencies, because some compilers
4027     # like to wrap large dependency lists on column 80 (with \), and
4028     # we should not choose a depcomp mode which is confused by this.
4029     #
4030     # We need to recreate these files for each test, as the compiler may
4031     # overwrite some of them when testing with obscure command lines.
4032     # This happens at least with the AIX C compiler.
4033     : > sub/conftest.c
4034     for i in 1 2 3 4 5 6; do
4035       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4036       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4037       # Solaris 8's {/usr,}/bin/sh.
4038       touch sub/conftst$i.h
4039     done
4040     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4041
4042     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4043     # mode.  It turns out that the SunPro C++ compiler does not properly
4044     # handle `-M -o', and we need to detect this.  Also, some Intel
4045     # versions had trouble with output in subdirs
4046     am__obj=sub/conftest.${OBJEXT-o}
4047     am__minus_obj="-o $am__obj"
4048     case $depmode in
4049     gcc)
4050       # This depmode causes a compiler race in universal mode.
4051       test "$am__universal" = false || continue
4052       ;;
4053     nosideeffect)
4054       # after this tag, mechanisms are not by side-effect, so they'll
4055       # only be used when explicitly requested
4056       if test "x$enable_dependency_tracking" = xyes; then
4057         continue
4058       else
4059         break
4060       fi
4061       ;;
4062     msvisualcpp | msvcmsys)
4063       # This compiler won't grok `-c -o', but also, the minuso test has
4064       # not run yet.  These depmodes are late enough in the game, and
4065       # so weak that their functioning should not be impacted.
4066       am__obj=conftest.${OBJEXT-o}
4067       am__minus_obj=
4068       ;;
4069     none) break ;;
4070     esac
4071     if depmode=$depmode \
4072        source=sub/conftest.c object=$am__obj \
4073        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4074        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4075          >/dev/null 2>conftest.err &&
4076        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4077        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4078        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4079        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4080       # icc doesn't choke on unknown options, it will just issue warnings
4081       # or remarks (even with -Werror).  So we grep stderr for any message
4082       # that says an option was ignored or not supported.
4083       # When given -MP, icc 7.0 and 7.1 complain thusly:
4084       #   icc: Command line warning: ignoring option '-M'; no argument required
4085       # The diagnosis changed in icc 8.0:
4086       #   icc: Command line remark: option '-MP' not supported
4087       if (grep 'ignoring option' conftest.err ||
4088           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4089         am_cv_CC_dependencies_compiler_type=$depmode
4090         break
4091       fi
4092     fi
4093   done
4094
4095   cd ..
4096   rm -rf conftest.dir
4097 else
4098   am_cv_CC_dependencies_compiler_type=none
4099 fi
4100
4101 fi
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4103 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4104 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4105
4106  if
4107   test "x$enable_dependency_tracking" != xno \
4108   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4109   am__fastdepCC_TRUE=
4110   am__fastdepCC_FALSE='#'
4111 else
4112   am__fastdepCC_TRUE='#'
4113   am__fastdepCC_FALSE=
4114 fi
4115
4116
4117 CFLAGS=$save_CFLAGS
4118
4119
4120
4121
4122
4123 # By default we simply use the C compiler to build assembly code.
4124
4125 test "${CCAS+set}" = set || CCAS=$CC
4126 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4127
4128
4129
4130 depcc="$CCAS"   am_compiler_list=
4131
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4133 $as_echo_n "checking dependency style of $depcc... " >&6; }
4134 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4135   $as_echo_n "(cached) " >&6
4136 else
4137   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4138   # We make a subdir and do the tests there.  Otherwise we can end up
4139   # making bogus files that we don't know about and never remove.  For
4140   # instance it was reported that on HP-UX the gcc test will end up
4141   # making a dummy file named `D' -- because `-MD' means `put the output
4142   # in D'.
4143   mkdir conftest.dir
4144   # Copy depcomp to subdir because otherwise we won't find it if we're
4145   # using a relative directory.
4146   cp "$am_depcomp" conftest.dir
4147   cd conftest.dir
4148   # We will build objects and dependencies in a subdirectory because
4149   # it helps to detect inapplicable dependency modes.  For instance
4150   # both Tru64's cc and ICC support -MD to output dependencies as a
4151   # side effect of compilation, but ICC will put the dependencies in
4152   # the current directory while Tru64 will put them in the object
4153   # directory.
4154   mkdir sub
4155
4156   am_cv_CCAS_dependencies_compiler_type=none
4157   if test "$am_compiler_list" = ""; then
4158      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4159   fi
4160   am__universal=false
4161
4162
4163   for depmode in $am_compiler_list; do
4164     # Setup a source with many dependencies, because some compilers
4165     # like to wrap large dependency lists on column 80 (with \), and
4166     # we should not choose a depcomp mode which is confused by this.
4167     #
4168     # We need to recreate these files for each test, as the compiler may
4169     # overwrite some of them when testing with obscure command lines.
4170     # This happens at least with the AIX C compiler.
4171     : > sub/conftest.c
4172     for i in 1 2 3 4 5 6; do
4173       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4174       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4175       # Solaris 8's {/usr,}/bin/sh.
4176       touch sub/conftst$i.h
4177     done
4178     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4179
4180     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4181     # mode.  It turns out that the SunPro C++ compiler does not properly
4182     # handle `-M -o', and we need to detect this.  Also, some Intel
4183     # versions had trouble with output in subdirs
4184     am__obj=sub/conftest.${OBJEXT-o}
4185     am__minus_obj="-o $am__obj"
4186     case $depmode in
4187     gcc)
4188       # This depmode causes a compiler race in universal mode.
4189       test "$am__universal" = false || continue
4190       ;;
4191     nosideeffect)
4192       # after this tag, mechanisms are not by side-effect, so they'll
4193       # only be used when explicitly requested
4194       if test "x$enable_dependency_tracking" = xyes; then
4195         continue
4196       else
4197         break
4198       fi
4199       ;;
4200     msvisualcpp | msvcmsys)
4201       # This compiler won't grok `-c -o', but also, the minuso test has
4202       # not run yet.  These depmodes are late enough in the game, and
4203       # so weak that their functioning should not be impacted.
4204       am__obj=conftest.${OBJEXT-o}
4205       am__minus_obj=
4206       ;;
4207     none) break ;;
4208     esac
4209     if depmode=$depmode \
4210        source=sub/conftest.c object=$am__obj \
4211        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4212        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4213          >/dev/null 2>conftest.err &&
4214        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4215        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4216        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4217        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4218       # icc doesn't choke on unknown options, it will just issue warnings
4219       # or remarks (even with -Werror).  So we grep stderr for any message
4220       # that says an option was ignored or not supported.
4221       # When given -MP, icc 7.0 and 7.1 complain thusly:
4222       #   icc: Command line warning: ignoring option '-M'; no argument required
4223       # The diagnosis changed in icc 8.0:
4224       #   icc: Command line remark: option '-MP' not supported
4225       if (grep 'ignoring option' conftest.err ||
4226           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4227         am_cv_CCAS_dependencies_compiler_type=$depmode
4228         break
4229       fi
4230     fi
4231   done
4232
4233   cd ..
4234   rm -rf conftest.dir
4235 else
4236   am_cv_CCAS_dependencies_compiler_type=none
4237 fi
4238
4239 fi
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4241 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4242 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4243
4244  if
4245   test "x$enable_dependency_tracking" != xno \
4246   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4247   am__fastdepCCAS_TRUE=
4248   am__fastdepCCAS_FALSE='#'
4249 else
4250   am__fastdepCCAS_TRUE='#'
4251   am__fastdepCCAS_FALSE=
4252 fi
4253
4254
4255 if test "x$CC" != xcc; then
4256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4257 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4258 else
4259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4260 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4261 fi
4262 set dummy $CC; ac_cc=`$as_echo "$2" |
4263                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4264 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4265   $as_echo_n "(cached) " >&6
4266 else
4267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h.  */
4269
4270 int
4271 main ()
4272 {
4273
4274   ;
4275   return 0;
4276 }
4277 _ACEOF
4278 # Make sure it works both with $CC and with simple cc.
4279 # We do the test twice because some compilers refuse to overwrite an
4280 # existing .o file with -o, though they will create one.
4281 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4282 rm -f conftest2.*
4283 if { { case "(($ac_try" in
4284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285   *) ac_try_echo=$ac_try;;
4286 esac
4287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4288 $as_echo "$ac_try_echo"; } >&5
4289   (eval "$ac_try") 2>&5
4290   ac_status=$?
4291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4292   test $ac_status = 0; } &&
4293    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295   *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299   (eval "$ac_try") 2>&5
4300   ac_status=$?
4301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302   test $ac_status = 0; };
4303 then
4304   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4305   if test "x$CC" != xcc; then
4306     # Test first that cc exists at all.
4307     if { ac_try='cc -c conftest.$ac_ext >&5'
4308   { { case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4313 $as_echo "$ac_try_echo"; } >&5
4314   (eval "$ac_try") 2>&5
4315   ac_status=$?
4316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317   test $ac_status = 0; }; }; then
4318       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4319       rm -f conftest2.*
4320       if { { case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325 $as_echo "$ac_try_echo"; } >&5
4326   (eval "$ac_try") 2>&5
4327   ac_status=$?
4328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329   test $ac_status = 0; } &&
4330          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332   *) ac_try_echo=$ac_try;;
4333 esac
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336   (eval "$ac_try") 2>&5
4337   ac_status=$?
4338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339   test $ac_status = 0; };
4340       then
4341         # cc works too.
4342         :
4343       else
4344         # cc exists but doesn't like -o.
4345         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4346       fi
4347     fi
4348   fi
4349 else
4350   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4351 fi
4352 rm -f core conftest*
4353
4354 fi
4355 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4357 $as_echo "yes" >&6; }
4358 else
4359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4361
4362 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4363
4364 fi
4365
4366 # FIXME: we rely on the cache variable name because
4367 # there is no other way.
4368 set dummy $CC
4369 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4370 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4371 if test "$am_t" != yes; then
4372    # Losing compiler, so override with the script.
4373    # FIXME: It is wrong to rewrite CC.
4374    # But if we don't then we get into trouble of one sort or another.
4375    # A longer-term fix would be to have automake use am__CC in this case,
4376    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4377    CC="$am_aux_dir/compile $CC"
4378 fi
4379
4380
4381 case `pwd` in
4382   *\ * | *\     *)
4383     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4384 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4385 esac
4386
4387
4388
4389 macro_version='2.4'
4390 macro_revision='1.3293'
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404 ltmain="$ac_aux_dir/ltmain.sh"
4405
4406 # Backslashify metacharacters that are still active within
4407 # double-quoted strings.
4408 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4409
4410 # Same as above, but do not quote variable references.
4411 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4412
4413 # Sed substitution to delay expansion of an escaped shell variable in a
4414 # double_quote_subst'ed string.
4415 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4416
4417 # Sed substitution to delay expansion of an escaped single quote.
4418 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4419
4420 # Sed substitution to avoid accidental globbing in evaled expressions
4421 no_glob_subst='s/\*/\\\*/g'
4422
4423 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4424 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4425 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4426
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4428 $as_echo_n "checking how to print strings... " >&6; }
4429 # Test print first, because it will be a builtin if present.
4430 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4431    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4432   ECHO='print -r --'
4433 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4434   ECHO='printf %s\n'
4435 else
4436   # Use this function as a fallback that always works.
4437   func_fallback_echo ()
4438   {
4439     eval 'cat <<_LTECHO_EOF
4440 $1
4441 _LTECHO_EOF'
4442   }
4443   ECHO='func_fallback_echo'
4444 fi
4445
4446 # func_echo_all arg...
4447 # Invoke $ECHO with all args, space-separated.
4448 func_echo_all ()
4449 {
4450     $ECHO ""
4451 }
4452
4453 case "$ECHO" in
4454   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4455 $as_echo "printf" >&6; } ;;
4456   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4457 $as_echo "print -r" >&6; } ;;
4458   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4459 $as_echo "cat" >&6; } ;;
4460 esac
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4476 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4477 if ${ac_cv_path_SED+:} false; then :
4478   $as_echo_n "(cached) " >&6
4479 else
4480             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4481      for ac_i in 1 2 3 4 5 6 7; do
4482        ac_script="$ac_script$as_nl$ac_script"
4483      done
4484      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4485      { ac_script=; unset ac_script;}
4486      if test -z "$SED"; then
4487   ac_path_SED_found=false
4488   # Loop through the user's path and test for each of PROGNAME-LIST
4489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH
4491 do
4492   IFS=$as_save_IFS
4493   test -z "$as_dir" && as_dir=.
4494     for ac_prog in sed gsed; do
4495     for ac_exec_ext in '' $ac_executable_extensions; do
4496       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4497       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4498 # Check for GNU ac_path_SED and select it if it is found.
4499   # Check for GNU $ac_path_SED
4500 case `"$ac_path_SED" --version 2>&1` in
4501 *GNU*)
4502   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4503 *)
4504   ac_count=0
4505   $as_echo_n 0123456789 >"conftest.in"
4506   while :
4507   do
4508     cat "conftest.in" "conftest.in" >"conftest.tmp"
4509     mv "conftest.tmp" "conftest.in"
4510     cp "conftest.in" "conftest.nl"
4511     $as_echo '' >> "conftest.nl"
4512     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4513     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4514     as_fn_arith $ac_count + 1 && ac_count=$as_val
4515     if test $ac_count -gt ${ac_path_SED_max-0}; then
4516       # Best one so far, save it but keep looking for a better one
4517       ac_cv_path_SED="$ac_path_SED"
4518       ac_path_SED_max=$ac_count
4519     fi
4520     # 10*(2^10) chars as input seems more than enough
4521     test $ac_count -gt 10 && break
4522   done
4523   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4524 esac
4525
4526       $ac_path_SED_found && break 3
4527     done
4528   done
4529   done
4530 IFS=$as_save_IFS
4531   if test -z "$ac_cv_path_SED"; then
4532     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4533   fi
4534 else
4535   ac_cv_path_SED=$SED
4536 fi
4537
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4540 $as_echo "$ac_cv_path_SED" >&6; }
4541  SED="$ac_cv_path_SED"
4542   rm -f conftest.sed
4543
4544 test -z "$SED" && SED=sed
4545 Xsed="$SED -e 1s/^X//"
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4558 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4559 if ${ac_cv_path_GREP+:} false; then :
4560   $as_echo_n "(cached) " >&6
4561 else
4562   if test -z "$GREP"; then
4563   ac_path_GREP_found=false
4564   # Loop through the user's path and test for each of PROGNAME-LIST
4565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4567 do
4568   IFS=$as_save_IFS
4569   test -z "$as_dir" && as_dir=.
4570     for ac_prog in grep ggrep; do
4571     for ac_exec_ext in '' $ac_executable_extensions; do
4572       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4573       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4574 # Check for GNU ac_path_GREP and select it if it is found.
4575   # Check for GNU $ac_path_GREP
4576 case `"$ac_path_GREP" --version 2>&1` in
4577 *GNU*)
4578   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4579 *)
4580   ac_count=0
4581   $as_echo_n 0123456789 >"conftest.in"
4582   while :
4583   do
4584     cat "conftest.in" "conftest.in" >"conftest.tmp"
4585     mv "conftest.tmp" "conftest.in"
4586     cp "conftest.in" "conftest.nl"
4587     $as_echo 'GREP' >> "conftest.nl"
4588     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4589     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4590     as_fn_arith $ac_count + 1 && ac_count=$as_val
4591     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4592       # Best one so far, save it but keep looking for a better one
4593       ac_cv_path_GREP="$ac_path_GREP"
4594       ac_path_GREP_max=$ac_count
4595     fi
4596     # 10*(2^10) chars as input seems more than enough
4597     test $ac_count -gt 10 && break
4598   done
4599   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4600 esac
4601
4602       $ac_path_GREP_found && break 3
4603     done
4604   done
4605   done
4606 IFS=$as_save_IFS
4607   if test -z "$ac_cv_path_GREP"; then
4608     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4609   fi
4610 else
4611   ac_cv_path_GREP=$GREP
4612 fi
4613
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4616 $as_echo "$ac_cv_path_GREP" >&6; }
4617  GREP="$ac_cv_path_GREP"
4618
4619
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4621 $as_echo_n "checking for egrep... " >&6; }
4622 if ${ac_cv_path_EGREP+:} false; then :
4623   $as_echo_n "(cached) " >&6
4624 else
4625   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4626    then ac_cv_path_EGREP="$GREP -E"
4627    else
4628      if test -z "$EGREP"; then
4629   ac_path_EGREP_found=false
4630   # Loop through the user's path and test for each of PROGNAME-LIST
4631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4633 do
4634   IFS=$as_save_IFS
4635   test -z "$as_dir" && as_dir=.
4636     for ac_prog in egrep; do
4637     for ac_exec_ext in '' $ac_executable_extensions; do
4638       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4639       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4640 # Check for GNU ac_path_EGREP and select it if it is found.
4641   # Check for GNU $ac_path_EGREP
4642 case `"$ac_path_EGREP" --version 2>&1` in
4643 *GNU*)
4644   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4645 *)
4646   ac_count=0
4647   $as_echo_n 0123456789 >"conftest.in"
4648   while :
4649   do
4650     cat "conftest.in" "conftest.in" >"conftest.tmp"
4651     mv "conftest.tmp" "conftest.in"
4652     cp "conftest.in" "conftest.nl"
4653     $as_echo 'EGREP' >> "conftest.nl"
4654     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4655     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4656     as_fn_arith $ac_count + 1 && ac_count=$as_val
4657     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4658       # Best one so far, save it but keep looking for a better one
4659       ac_cv_path_EGREP="$ac_path_EGREP"
4660       ac_path_EGREP_max=$ac_count
4661     fi
4662     # 10*(2^10) chars as input seems more than enough
4663     test $ac_count -gt 10 && break
4664   done
4665   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4666 esac
4667
4668       $ac_path_EGREP_found && break 3
4669     done
4670   done
4671   done
4672 IFS=$as_save_IFS
4673   if test -z "$ac_cv_path_EGREP"; then
4674     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4675   fi
4676 else
4677   ac_cv_path_EGREP=$EGREP
4678 fi
4679
4680    fi
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4683 $as_echo "$ac_cv_path_EGREP" >&6; }
4684  EGREP="$ac_cv_path_EGREP"
4685
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4688 $as_echo_n "checking for fgrep... " >&6; }
4689 if ${ac_cv_path_FGREP+:} false; then :
4690   $as_echo_n "(cached) " >&6
4691 else
4692   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4693    then ac_cv_path_FGREP="$GREP -F"
4694    else
4695      if test -z "$FGREP"; then
4696   ac_path_FGREP_found=false
4697   # Loop through the user's path and test for each of PROGNAME-LIST
4698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4700 do
4701   IFS=$as_save_IFS
4702   test -z "$as_dir" && as_dir=.
4703     for ac_prog in fgrep; do
4704     for ac_exec_ext in '' $ac_executable_extensions; do
4705       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4706       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4707 # Check for GNU ac_path_FGREP and select it if it is found.
4708   # Check for GNU $ac_path_FGREP
4709 case `"$ac_path_FGREP" --version 2>&1` in
4710 *GNU*)
4711   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4712 *)
4713   ac_count=0
4714   $as_echo_n 0123456789 >"conftest.in"
4715   while :
4716   do
4717     cat "conftest.in" "conftest.in" >"conftest.tmp"
4718     mv "conftest.tmp" "conftest.in"
4719     cp "conftest.in" "conftest.nl"
4720     $as_echo 'FGREP' >> "conftest.nl"
4721     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4722     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4723     as_fn_arith $ac_count + 1 && ac_count=$as_val
4724     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4725       # Best one so far, save it but keep looking for a better one
4726       ac_cv_path_FGREP="$ac_path_FGREP"
4727       ac_path_FGREP_max=$ac_count
4728     fi
4729     # 10*(2^10) chars as input seems more than enough
4730     test $ac_count -gt 10 && break
4731   done
4732   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4733 esac
4734
4735       $ac_path_FGREP_found && break 3
4736     done
4737   done
4738   done
4739 IFS=$as_save_IFS
4740   if test -z "$ac_cv_path_FGREP"; then
4741     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4742   fi
4743 else
4744   ac_cv_path_FGREP=$FGREP
4745 fi
4746
4747    fi
4748 fi
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4750 $as_echo "$ac_cv_path_FGREP" >&6; }
4751  FGREP="$ac_cv_path_FGREP"
4752
4753
4754 test -z "$GREP" && GREP=grep
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774 # Check whether --with-gnu-ld was given.
4775 if test "${with_gnu_ld+set}" = set; then :
4776   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4777 else
4778   with_gnu_ld=no
4779 fi
4780
4781 ac_prog=ld
4782 if test "$GCC" = yes; then
4783   # Check if gcc -print-prog-name=ld gives a path.
4784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4785 $as_echo_n "checking for ld used by $CC... " >&6; }
4786   case $host in
4787   *-*-mingw*)
4788     # gcc leaves a trailing carriage return which upsets mingw
4789     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4790   *)
4791     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4792   esac
4793   case $ac_prog in
4794     # Accept absolute paths.
4795     [\\/]* | ?:[\\/]*)
4796       re_direlt='/[^/][^/]*/\.\./'
4797       # Canonicalize the pathname of ld
4798       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4799       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4800         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4801       done
4802       test -z "$LD" && LD="$ac_prog"
4803       ;;
4804   "")
4805     # If it fails, then pretend we aren't using GCC.
4806     ac_prog=ld
4807     ;;
4808   *)
4809     # If it is relative, then search for the first ld in PATH.
4810     with_gnu_ld=unknown
4811     ;;
4812   esac
4813 elif test "$with_gnu_ld" = yes; then
4814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4815 $as_echo_n "checking for GNU ld... " >&6; }
4816 else
4817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4818 $as_echo_n "checking for non-GNU ld... " >&6; }
4819 fi
4820 if ${lt_cv_path_LD+:} false; then :
4821   $as_echo_n "(cached) " >&6
4822 else
4823   if test -z "$LD"; then
4824   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4825   for ac_dir in $PATH; do
4826     IFS="$lt_save_ifs"
4827     test -z "$ac_dir" && ac_dir=.
4828     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4829       lt_cv_path_LD="$ac_dir/$ac_prog"
4830       # Check to see if the program is GNU ld.  I'd rather use --version,
4831       # but apparently some variants of GNU ld only accept -v.
4832       # Break only if it was the GNU/non-GNU ld that we prefer.
4833       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4834       *GNU* | *'with BFD'*)
4835         test "$with_gnu_ld" != no && break
4836         ;;
4837       *)
4838         test "$with_gnu_ld" != yes && break
4839         ;;
4840       esac
4841     fi
4842   done
4843   IFS="$lt_save_ifs"
4844 else
4845   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4846 fi
4847 fi
4848
4849 LD="$lt_cv_path_LD"
4850 if test -n "$LD"; then
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4852 $as_echo "$LD" >&6; }
4853 else
4854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4856 fi
4857 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4859 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4860 if ${lt_cv_prog_gnu_ld+:} false; then :
4861   $as_echo_n "(cached) " >&6
4862 else
4863   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4864 case `$LD -v 2>&1 </dev/null` in
4865 *GNU* | *'with BFD'*)
4866   lt_cv_prog_gnu_ld=yes
4867   ;;
4868 *)
4869   lt_cv_prog_gnu_ld=no
4870   ;;
4871 esac
4872 fi
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4874 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4875 with_gnu_ld=$lt_cv_prog_gnu_ld
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4886 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4887 if ${lt_cv_path_NM+:} false; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   if test -n "$NM"; then
4891   # Let the user override the test.
4892   lt_cv_path_NM="$NM"
4893 else
4894   lt_nm_to_check="${ac_tool_prefix}nm"
4895   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4896     lt_nm_to_check="$lt_nm_to_check nm"
4897   fi
4898   for lt_tmp_nm in $lt_nm_to_check; do
4899     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4900     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4901       IFS="$lt_save_ifs"
4902       test -z "$ac_dir" && ac_dir=.
4903       tmp_nm="$ac_dir/$lt_tmp_nm"
4904       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4905         # Check to see if the nm accepts a BSD-compat flag.
4906         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4907         #   nm: unknown option "B" ignored
4908         # Tru64's nm complains that /dev/null is an invalid object file
4909         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4910         */dev/null* | *'Invalid file or object type'*)
4911           lt_cv_path_NM="$tmp_nm -B"
4912           break
4913           ;;
4914         *)
4915           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4916           */dev/null*)
4917             lt_cv_path_NM="$tmp_nm -p"
4918             break
4919             ;;
4920           *)
4921             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4922             continue # so that we can try to find one that supports BSD flags
4923             ;;
4924           esac
4925           ;;
4926         esac
4927       fi
4928     done
4929     IFS="$lt_save_ifs"
4930   done
4931   : ${lt_cv_path_NM=no}
4932 fi
4933 fi
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4935 $as_echo "$lt_cv_path_NM" >&6; }
4936 if test "$lt_cv_path_NM" != "no"; then
4937   NM="$lt_cv_path_NM"
4938 else
4939   # Didn't find any BSD compatible name lister, look for dumpbin.
4940   if test -n "$DUMPBIN"; then :
4941     # Let the user override the test.
4942   else
4943     if test -n "$ac_tool_prefix"; then
4944   for ac_prog in dumpbin "link -dump"
4945   do
4946     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_prog_DUMPBIN+:} false; then :
4951   $as_echo_n "(cached) " >&6
4952 else
4953   if test -n "$DUMPBIN"; then
4954   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4955 else
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4958 do
4959   IFS=$as_save_IFS
4960   test -z "$as_dir" && as_dir=.
4961     for ac_exec_ext in '' $ac_executable_extensions; do
4962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965     break 2
4966   fi
4967 done
4968   done
4969 IFS=$as_save_IFS
4970
4971 fi
4972 fi
4973 DUMPBIN=$ac_cv_prog_DUMPBIN
4974 if test -n "$DUMPBIN"; then
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4976 $as_echo "$DUMPBIN" >&6; }
4977 else
4978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4980 fi
4981
4982
4983     test -n "$DUMPBIN" && break
4984   done
4985 fi
4986 if test -z "$DUMPBIN"; then
4987   ac_ct_DUMPBIN=$DUMPBIN
4988   for ac_prog in dumpbin "link -dump"
4989 do
4990   # Extract the first word of "$ac_prog", so it can be a program name with args.
4991 set dummy $ac_prog; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4995   $as_echo_n "(cached) " >&6
4996 else
4997   if test -n "$ac_ct_DUMPBIN"; then
4998   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003   IFS=$as_save_IFS
5004   test -z "$as_dir" && as_dir=.
5005     for ac_exec_ext in '' $ac_executable_extensions; do
5006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009     break 2
5010   fi
5011 done
5012   done
5013 IFS=$as_save_IFS
5014
5015 fi
5016 fi
5017 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5018 if test -n "$ac_ct_DUMPBIN"; then
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5020 $as_echo "$ac_ct_DUMPBIN" >&6; }
5021 else
5022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5024 fi
5025
5026
5027   test -n "$ac_ct_DUMPBIN" && break
5028 done
5029
5030   if test "x$ac_ct_DUMPBIN" = x; then
5031     DUMPBIN=":"
5032   else
5033     case $cross_compiling:$ac_tool_warned in
5034 yes:)
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5037 ac_tool_warned=yes ;;
5038 esac
5039     DUMPBIN=$ac_ct_DUMPBIN
5040   fi
5041 fi
5042
5043     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5044     *COFF*)
5045       DUMPBIN="$DUMPBIN -symbols"
5046       ;;
5047     *)
5048       DUMPBIN=:
5049       ;;
5050     esac
5051   fi
5052
5053   if test "$DUMPBIN" != ":"; then
5054     NM="$DUMPBIN"
5055   fi
5056 fi
5057 test -z "$NM" && NM=nm
5058
5059
5060
5061
5062
5063
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5065 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5066 if ${lt_cv_nm_interface+:} false; then :
5067   $as_echo_n "(cached) " >&6
5068 else
5069   lt_cv_nm_interface="BSD nm"
5070   echo "int some_variable = 0;" > conftest.$ac_ext
5071   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5072   (eval "$ac_compile" 2>conftest.err)
5073   cat conftest.err >&5
5074   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5075   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5076   cat conftest.err >&5
5077   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5078   cat conftest.out >&5
5079   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5080     lt_cv_nm_interface="MS dumpbin"
5081   fi
5082   rm -f conftest*
5083 fi
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5085 $as_echo "$lt_cv_nm_interface" >&6; }
5086
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5088 $as_echo_n "checking whether ln -s works... " >&6; }
5089 LN_S=$as_ln_s
5090 if test "$LN_S" = "ln -s"; then
5091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5092 $as_echo "yes" >&6; }
5093 else
5094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5095 $as_echo "no, using $LN_S" >&6; }
5096 fi
5097
5098 # find the maximum length of command line arguments
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5100 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5101 if ${lt_cv_sys_max_cmd_len+:} false; then :
5102   $as_echo_n "(cached) " >&6
5103 else
5104     i=0
5105   teststring="ABCD"
5106
5107   case $build_os in
5108   msdosdjgpp*)
5109     # On DJGPP, this test can blow up pretty badly due to problems in libc
5110     # (any single argument exceeding 2000 bytes causes a buffer overrun
5111     # during glob expansion).  Even if it were fixed, the result of this
5112     # check would be larger than it should be.
5113     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5114     ;;
5115
5116   gnu*)
5117     # Under GNU Hurd, this test is not required because there is
5118     # no limit to the length of command line arguments.
5119     # Libtool will interpret -1 as no limit whatsoever
5120     lt_cv_sys_max_cmd_len=-1;
5121     ;;
5122
5123   cygwin* | mingw* | cegcc*)
5124     # On Win9x/ME, this test blows up -- it succeeds, but takes
5125     # about 5 minutes as the teststring grows exponentially.
5126     # Worse, since 9x/ME are not pre-emptively multitasking,
5127     # you end up with a "frozen" computer, even though with patience
5128     # the test eventually succeeds (with a max line length of 256k).
5129     # Instead, let's just punt: use the minimum linelength reported by
5130     # all of the supported platforms: 8192 (on NT/2K/XP).
5131     lt_cv_sys_max_cmd_len=8192;
5132     ;;
5133
5134   mint*)
5135     # On MiNT this can take a long time and run out of memory.
5136     lt_cv_sys_max_cmd_len=8192;
5137     ;;
5138
5139   amigaos*)
5140     # On AmigaOS with pdksh, this test takes hours, literally.
5141     # So we just punt and use a minimum line length of 8192.
5142     lt_cv_sys_max_cmd_len=8192;
5143     ;;
5144
5145   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5146     # This has been around since 386BSD, at least.  Likely further.
5147     if test -x /sbin/sysctl; then
5148       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5149     elif test -x /usr/sbin/sysctl; then
5150       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5151     else
5152       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5153     fi
5154     # And add a safety zone
5155     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5156     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5157     ;;
5158
5159   interix*)
5160     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5161     lt_cv_sys_max_cmd_len=196608
5162     ;;
5163
5164   osf*)
5165     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5166     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5167     # nice to cause kernel panics so lets avoid the loop below.
5168     # First set a reasonable default.
5169     lt_cv_sys_max_cmd_len=16384
5170     #
5171     if test -x /sbin/sysconfig; then
5172       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5173         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5174       esac
5175     fi
5176     ;;
5177   sco3.2v5*)
5178     lt_cv_sys_max_cmd_len=102400
5179     ;;
5180   sysv5* | sco5v6* | sysv4.2uw2*)
5181     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5182     if test -n "$kargmax"; then
5183       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5184     else
5185       lt_cv_sys_max_cmd_len=32768
5186     fi
5187     ;;
5188   *)
5189     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5190     if test -n "$lt_cv_sys_max_cmd_len"; then
5191       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5192       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5193     else
5194       # Make teststring a little bigger before we do anything with it.
5195       # a 1K string should be a reasonable start.
5196       for i in 1 2 3 4 5 6 7 8 ; do
5197         teststring=$teststring$teststring
5198       done
5199       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5200       # If test is not a shell built-in, we'll probably end up computing a
5201       # maximum length that is only half of the actual maximum length, but
5202       # we can't tell.
5203       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5204                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5205               test $i != 17 # 1/2 MB should be enough
5206       do
5207         i=`expr $i + 1`
5208         teststring=$teststring$teststring
5209       done
5210       # Only check the string length outside the loop.
5211       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5212       teststring=
5213       # Add a significant safety factor because C++ compilers can tack on
5214       # massive amounts of additional arguments before passing them to the
5215       # linker.  It appears as though 1/2 is a usable value.
5216       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5217     fi
5218     ;;
5219   esac
5220
5221 fi
5222
5223 if test -n $lt_cv_sys_max_cmd_len ; then
5224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5225 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5226 else
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5228 $as_echo "none" >&6; }
5229 fi
5230 max_cmd_len=$lt_cv_sys_max_cmd_len
5231
5232
5233
5234
5235
5236
5237 : ${CP="cp -f"}
5238 : ${MV="mv -f"}
5239 : ${RM="rm -f"}
5240
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5242 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5243 # Try some XSI features
5244 xsi_shell=no
5245 ( _lt_dummy="a/b/c"
5246   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5247       = c,a/b,b/c, \
5248     && eval 'test $(( 1 + 1 )) -eq 2 \
5249     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5250   && xsi_shell=yes
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5252 $as_echo "$xsi_shell" >&6; }
5253
5254
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5256 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5257 lt_shell_append=no
5258 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5259     >/dev/null 2>&1 \
5260   && lt_shell_append=yes
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5262 $as_echo "$lt_shell_append" >&6; }
5263
5264
5265 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5266   lt_unset=unset
5267 else
5268   lt_unset=false
5269 fi
5270
5271
5272
5273
5274
5275 # test EBCDIC or ASCII
5276 case `echo X|tr X '\101'` in
5277  A) # ASCII based system
5278     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5279   lt_SP2NL='tr \040 \012'
5280   lt_NL2SP='tr \015\012 \040\040'
5281   ;;
5282  *) # EBCDIC based system
5283   lt_SP2NL='tr \100 \n'
5284   lt_NL2SP='tr \r\n \100\100'
5285   ;;
5286 esac
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5297 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5298 if ${lt_cv_to_host_file_cmd+:} false; then :
5299   $as_echo_n "(cached) " >&6
5300 else
5301   case $host in
5302   *-*-mingw* )
5303     case $build in
5304       *-*-mingw* ) # actually msys
5305         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5306         ;;
5307       *-*-cygwin* )
5308         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5309         ;;
5310       * ) # otherwise, assume *nix
5311         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5312         ;;
5313     esac
5314     ;;
5315   *-*-cygwin* )
5316     case $build in
5317       *-*-mingw* ) # actually msys
5318         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5319         ;;
5320       *-*-cygwin* )
5321         lt_cv_to_host_file_cmd=func_convert_file_noop
5322         ;;
5323       * ) # otherwise, assume *nix
5324         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5325         ;;
5326     esac
5327     ;;
5328   * ) # unhandled hosts (and "normal" native builds)
5329     lt_cv_to_host_file_cmd=func_convert_file_noop
5330     ;;
5331 esac
5332
5333 fi
5334
5335 to_host_file_cmd=$lt_cv_to_host_file_cmd
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5337 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5338
5339
5340
5341
5342
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5344 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5345 if ${lt_cv_to_tool_file_cmd+:} false; then :
5346   $as_echo_n "(cached) " >&6
5347 else
5348   #assume ordinary cross tools, or native build.
5349 lt_cv_to_tool_file_cmd=func_convert_file_noop
5350 case $host in
5351   *-*-mingw* )
5352     case $build in
5353       *-*-mingw* ) # actually msys
5354         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5355         ;;
5356     esac
5357     ;;
5358 esac
5359
5360 fi
5361
5362 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5364 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5365
5366
5367
5368
5369
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5371 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5372 if ${lt_cv_ld_reload_flag+:} false; then :
5373   $as_echo_n "(cached) " >&6
5374 else
5375   lt_cv_ld_reload_flag='-r'
5376 fi
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5378 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5379 reload_flag=$lt_cv_ld_reload_flag
5380 case $reload_flag in
5381 "" | " "*) ;;
5382 *) reload_flag=" $reload_flag" ;;
5383 esac
5384 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5385 case $host_os in
5386   cygwin* | mingw* | pw32* | cegcc*)
5387     if test "$GCC" != yes; then
5388       reload_cmds=false
5389     fi
5390     ;;
5391   darwin*)
5392     if test "$GCC" = yes; then
5393       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5394     else
5395       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5396     fi
5397     ;;
5398 esac
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408 if test -n "$ac_tool_prefix"; then
5409   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5410 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_prog_OBJDUMP+:} false; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416   if test -n "$OBJDUMP"; then
5417   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5421 do
5422   IFS=$as_save_IFS
5423   test -z "$as_dir" && as_dir=.
5424     for ac_exec_ext in '' $ac_executable_extensions; do
5425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428     break 2
5429   fi
5430 done
5431   done
5432 IFS=$as_save_IFS
5433
5434 fi
5435 fi
5436 OBJDUMP=$ac_cv_prog_OBJDUMP
5437 if test -n "$OBJDUMP"; then
5438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5439 $as_echo "$OBJDUMP" >&6; }
5440 else
5441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5443 fi
5444
5445
5446 fi
5447 if test -z "$ac_cv_prog_OBJDUMP"; then
5448   ac_ct_OBJDUMP=$OBJDUMP
5449   # Extract the first word of "objdump", so it can be a program name with args.
5450 set dummy objdump; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5454   $as_echo_n "(cached) " >&6
5455 else
5456   if test -n "$ac_ct_OBJDUMP"; then
5457   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462   IFS=$as_save_IFS
5463   test -z "$as_dir" && as_dir=.
5464     for ac_exec_ext in '' $ac_executable_extensions; do
5465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5466     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468     break 2
5469   fi
5470 done
5471   done
5472 IFS=$as_save_IFS
5473
5474 fi
5475 fi
5476 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5477 if test -n "$ac_ct_OBJDUMP"; then
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5479 $as_echo "$ac_ct_OBJDUMP" >&6; }
5480 else
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5483 fi
5484
5485   if test "x$ac_ct_OBJDUMP" = x; then
5486     OBJDUMP="false"
5487   else
5488     case $cross_compiling:$ac_tool_warned in
5489 yes:)
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5492 ac_tool_warned=yes ;;
5493 esac
5494     OBJDUMP=$ac_ct_OBJDUMP
5495   fi
5496 else
5497   OBJDUMP="$ac_cv_prog_OBJDUMP"
5498 fi
5499
5500 test -z "$OBJDUMP" && OBJDUMP=objdump
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5511 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5512 if ${lt_cv_deplibs_check_method+:} false; then :
5513   $as_echo_n "(cached) " >&6
5514 else
5515   lt_cv_file_magic_cmd='$MAGIC_CMD'
5516 lt_cv_file_magic_test_file=
5517 lt_cv_deplibs_check_method='unknown'
5518 # Need to set the preceding variable on all platforms that support
5519 # interlibrary dependencies.
5520 # 'none' -- dependencies not supported.
5521 # `unknown' -- same as none, but documents that we really don't know.
5522 # 'pass_all' -- all dependencies passed with no checks.
5523 # 'test_compile' -- check by making test program.
5524 # 'file_magic [[regex]]' -- check by looking for files in library path
5525 # which responds to the $file_magic_cmd with a given extended regex.
5526 # If you have `file' or equivalent on your system and you're not sure
5527 # whether `pass_all' will *always* work, you probably want this one.
5528
5529 case $host_os in
5530 aix[4-9]*)
5531   lt_cv_deplibs_check_method=pass_all
5532   ;;
5533
5534 beos*)
5535   lt_cv_deplibs_check_method=pass_all
5536   ;;
5537
5538 bsdi[45]*)
5539   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5540   lt_cv_file_magic_cmd='/usr/bin/file -L'
5541   lt_cv_file_magic_test_file=/shlib/libc.so
5542   ;;
5543
5544 cygwin*)
5545   # func_win32_libid is a shell function defined in ltmain.sh
5546   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5547   lt_cv_file_magic_cmd='func_win32_libid'
5548   ;;
5549
5550 mingw* | pw32*)
5551   # Base MSYS/MinGW do not provide the 'file' command needed by
5552   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5553   # unless we find 'file', for example because we are cross-compiling.
5554   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5555   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5556     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5557     lt_cv_file_magic_cmd='func_win32_libid'
5558   else
5559     # Keep this pattern in sync with the one in func_win32_libid.
5560     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5561     lt_cv_file_magic_cmd='$OBJDUMP -f'
5562   fi
5563   ;;
5564
5565 cegcc*)
5566   # use the weaker test based on 'objdump'. See mingw*.
5567   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5568   lt_cv_file_magic_cmd='$OBJDUMP -f'
5569   ;;
5570
5571 darwin* | rhapsody*)
5572   lt_cv_deplibs_check_method=pass_all
5573   ;;
5574
5575 freebsd* | dragonfly*)
5576   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5577     case $host_cpu in
5578     i*86 )
5579       # Not sure whether the presence of OpenBSD here was a mistake.
5580       # Let's accept both of them until this is cleared up.
5581       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5582       lt_cv_file_magic_cmd=/usr/bin/file
5583       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5584       ;;
5585     esac
5586   else
5587     lt_cv_deplibs_check_method=pass_all
5588   fi
5589   ;;
5590
5591 gnu*)
5592   lt_cv_deplibs_check_method=pass_all
5593   ;;
5594
5595 haiku*)
5596   lt_cv_deplibs_check_method=pass_all
5597   ;;
5598
5599 hpux10.20* | hpux11*)
5600   lt_cv_file_magic_cmd=/usr/bin/file
5601   case $host_cpu in
5602   ia64*)
5603     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5604     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5605     ;;
5606   hppa*64*)
5607     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]'
5608     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5609     ;;
5610   *)
5611     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5612     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5613     ;;
5614   esac
5615   ;;
5616
5617 interix[3-9]*)
5618   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5619   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5620   ;;
5621
5622 irix5* | irix6* | nonstopux*)
5623   case $LD in
5624   *-32|*"-32 ") libmagic=32-bit;;
5625   *-n32|*"-n32 ") libmagic=N32;;
5626   *-64|*"-64 ") libmagic=64-bit;;
5627   *) libmagic=never-match;;
5628   esac
5629   lt_cv_deplibs_check_method=pass_all
5630   ;;
5631
5632 # This must be Linux ELF.
5633 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5634   lt_cv_deplibs_check_method=pass_all
5635   ;;
5636
5637 netbsd*)
5638   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5639     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5640   else
5641     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5642   fi
5643   ;;
5644
5645 newos6*)
5646   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5647   lt_cv_file_magic_cmd=/usr/bin/file
5648   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5649   ;;
5650
5651 *nto* | *qnx*)
5652   lt_cv_deplibs_check_method=pass_all
5653   ;;
5654
5655 openbsd*)
5656   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5657     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5658   else
5659     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5660   fi
5661   ;;
5662
5663 osf3* | osf4* | osf5*)
5664   lt_cv_deplibs_check_method=pass_all
5665   ;;
5666
5667 rdos*)
5668   lt_cv_deplibs_check_method=pass_all
5669   ;;
5670
5671 solaris*)
5672   lt_cv_deplibs_check_method=pass_all
5673   ;;
5674
5675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5676   lt_cv_deplibs_check_method=pass_all
5677   ;;
5678
5679 sysv4 | sysv4.3*)
5680   case $host_vendor in
5681   motorola)
5682     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]'
5683     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5684     ;;
5685   ncr)
5686     lt_cv_deplibs_check_method=pass_all
5687     ;;
5688   sequent)
5689     lt_cv_file_magic_cmd='/bin/file'
5690     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5691     ;;
5692   sni)
5693     lt_cv_file_magic_cmd='/bin/file'
5694     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5695     lt_cv_file_magic_test_file=/lib/libc.so
5696     ;;
5697   siemens)
5698     lt_cv_deplibs_check_method=pass_all
5699     ;;
5700   pc)
5701     lt_cv_deplibs_check_method=pass_all
5702     ;;
5703   esac
5704   ;;
5705
5706 tpf*)
5707   lt_cv_deplibs_check_method=pass_all
5708   ;;
5709 esac
5710
5711 fi
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5713 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5714
5715 file_magic_glob=
5716 want_nocaseglob=no
5717 if test "$build" = "$host"; then
5718   case $host_os in
5719   mingw* | pw32*)
5720     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5721       want_nocaseglob=yes
5722     else
5723       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5724     fi
5725     ;;
5726   esac
5727 fi
5728
5729 file_magic_cmd=$lt_cv_file_magic_cmd
5730 deplibs_check_method=$lt_cv_deplibs_check_method
5731 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754 if test -n "$ac_tool_prefix"; then
5755   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5756 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if ${ac_cv_prog_DLLTOOL+:} false; then :
5760   $as_echo_n "(cached) " >&6
5761 else
5762   if test -n "$DLLTOOL"; then
5763   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768   IFS=$as_save_IFS
5769   test -z "$as_dir" && as_dir=.
5770     for ac_exec_ext in '' $ac_executable_extensions; do
5771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774     break 2
5775   fi
5776 done
5777   done
5778 IFS=$as_save_IFS
5779
5780 fi
5781 fi
5782 DLLTOOL=$ac_cv_prog_DLLTOOL
5783 if test -n "$DLLTOOL"; then
5784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5785 $as_echo "$DLLTOOL" >&6; }
5786 else
5787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5789 fi
5790
5791
5792 fi
5793 if test -z "$ac_cv_prog_DLLTOOL"; then
5794   ac_ct_DLLTOOL=$DLLTOOL
5795   # Extract the first word of "dlltool", so it can be a program name with args.
5796 set dummy dlltool; ac_word=$2
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 $as_echo_n "checking for $ac_word... " >&6; }
5799 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5800   $as_echo_n "(cached) " >&6
5801 else
5802   if test -n "$ac_ct_DLLTOOL"; then
5803   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810     for ac_exec_ext in '' $ac_executable_extensions; do
5811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817   done
5818 IFS=$as_save_IFS
5819
5820 fi
5821 fi
5822 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5823 if test -n "$ac_ct_DLLTOOL"; then
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5825 $as_echo "$ac_ct_DLLTOOL" >&6; }
5826 else
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5829 fi
5830
5831   if test "x$ac_ct_DLLTOOL" = x; then
5832     DLLTOOL="false"
5833   else
5834     case $cross_compiling:$ac_tool_warned in
5835 yes:)
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5838 ac_tool_warned=yes ;;
5839 esac
5840     DLLTOOL=$ac_ct_DLLTOOL
5841   fi
5842 else
5843   DLLTOOL="$ac_cv_prog_DLLTOOL"
5844 fi
5845
5846 test -z "$DLLTOOL" && DLLTOOL=dlltool
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5858 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5859 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5860   $as_echo_n "(cached) " >&6
5861 else
5862   lt_cv_sharedlib_from_linklib_cmd='unknown'
5863
5864 case $host_os in
5865 cygwin* | mingw* | pw32* | cegcc*)
5866   # two different shell functions defined in ltmain.sh
5867   # decide which to use based on capabilities of $DLLTOOL
5868   case `$DLLTOOL --help 2>&1` in
5869   *--identify-strict*)
5870     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5871     ;;
5872   *)
5873     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5874     ;;
5875   esac
5876   ;;
5877 *)
5878   # fallback: assume linklib IS sharedlib
5879   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5880   ;;
5881 esac
5882
5883 fi
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5885 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5886 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5887 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5888
5889
5890
5891
5892
5893
5894
5895
5896 if test -n "$ac_tool_prefix"; then
5897   for ac_prog in ar
5898   do
5899     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if ${ac_cv_prog_AR+:} false; then :
5904   $as_echo_n "(cached) " >&6
5905 else
5906   if test -n "$AR"; then
5907   ac_cv_prog_AR="$AR" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5911 do
5912   IFS=$as_save_IFS
5913   test -z "$as_dir" && as_dir=.
5914     for ac_exec_ext in '' $ac_executable_extensions; do
5915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918     break 2
5919   fi
5920 done
5921   done
5922 IFS=$as_save_IFS
5923
5924 fi
5925 fi
5926 AR=$ac_cv_prog_AR
5927 if test -n "$AR"; then
5928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5929 $as_echo "$AR" >&6; }
5930 else
5931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5933 fi
5934
5935
5936     test -n "$AR" && break
5937   done
5938 fi
5939 if test -z "$AR"; then
5940   ac_ct_AR=$AR
5941   for ac_prog in ar
5942 do
5943   # Extract the first word of "$ac_prog", so it can be a program name with args.
5944 set dummy $ac_prog; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5948   $as_echo_n "(cached) " >&6
5949 else
5950   if test -n "$ac_ct_AR"; then
5951   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5955 do
5956   IFS=$as_save_IFS
5957   test -z "$as_dir" && as_dir=.
5958     for ac_exec_ext in '' $ac_executable_extensions; do
5959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960     ac_cv_prog_ac_ct_AR="$ac_prog"
5961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962     break 2
5963   fi
5964 done
5965   done
5966 IFS=$as_save_IFS
5967
5968 fi
5969 fi
5970 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5971 if test -n "$ac_ct_AR"; then
5972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5973 $as_echo "$ac_ct_AR" >&6; }
5974 else
5975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5977 fi
5978
5979
5980   test -n "$ac_ct_AR" && break
5981 done
5982
5983   if test "x$ac_ct_AR" = x; then
5984     AR="false"
5985   else
5986     case $cross_compiling:$ac_tool_warned in
5987 yes:)
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992     AR=$ac_ct_AR
5993   fi
5994 fi
5995
5996 : ${AR=ar}
5997 : ${AR_FLAGS=cru}
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6010 $as_echo_n "checking for archiver @FILE support... " >&6; }
6011 if ${lt_cv_ar_at_file+:} false; then :
6012   $as_echo_n "(cached) " >&6
6013 else
6014   lt_cv_ar_at_file=no
6015    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h.  */
6017
6018 int
6019 main ()
6020 {
6021
6022   ;
6023   return 0;
6024 }
6025 _ACEOF
6026 if ac_fn_c_try_compile "$LINENO"; then :
6027   echo conftest.$ac_objext > conftest.lst
6028       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6029       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6030   (eval $lt_ar_try) 2>&5
6031   ac_status=$?
6032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6033   test $ac_status = 0; }
6034       if test "$ac_status" -eq 0; then
6035         # Ensure the archiver fails upon bogus file names.
6036         rm -f conftest.$ac_objext libconftest.a
6037         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6038   (eval $lt_ar_try) 2>&5
6039   ac_status=$?
6040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6041   test $ac_status = 0; }
6042         if test "$ac_status" -ne 0; then
6043           lt_cv_ar_at_file=@
6044         fi
6045       fi
6046       rm -f conftest.* libconftest.a
6047
6048 fi
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050
6051 fi
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6053 $as_echo "$lt_cv_ar_at_file" >&6; }
6054
6055 if test "x$lt_cv_ar_at_file" = xno; then
6056   archiver_list_spec=
6057 else
6058   archiver_list_spec=$lt_cv_ar_at_file
6059 fi
6060
6061
6062
6063
6064
6065
6066
6067 if test -n "$ac_tool_prefix"; then
6068   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6069 set dummy ${ac_tool_prefix}strip; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if ${ac_cv_prog_STRIP+:} false; then :
6073   $as_echo_n "(cached) " >&6
6074 else
6075   if test -n "$STRIP"; then
6076   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081   IFS=$as_save_IFS
6082   test -z "$as_dir" && as_dir=.
6083     for ac_exec_ext in '' $ac_executable_extensions; do
6084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087     break 2
6088   fi
6089 done
6090   done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 STRIP=$ac_cv_prog_STRIP
6096 if test -n "$STRIP"; then
6097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6098 $as_echo "$STRIP" >&6; }
6099 else
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6102 fi
6103
6104
6105 fi
6106 if test -z "$ac_cv_prog_STRIP"; then
6107   ac_ct_STRIP=$STRIP
6108   # Extract the first word of "strip", so it can be a program name with args.
6109 set dummy strip; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6113   $as_echo_n "(cached) " >&6
6114 else
6115   if test -n "$ac_ct_STRIP"; then
6116   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121   IFS=$as_save_IFS
6122   test -z "$as_dir" && as_dir=.
6123     for ac_exec_ext in '' $ac_executable_extensions; do
6124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125     ac_cv_prog_ac_ct_STRIP="strip"
6126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127     break 2
6128   fi
6129 done
6130   done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6136 if test -n "$ac_ct_STRIP"; then
6137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6138 $as_echo "$ac_ct_STRIP" >&6; }
6139 else
6140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6142 fi
6143
6144   if test "x$ac_ct_STRIP" = x; then
6145     STRIP=":"
6146   else
6147     case $cross_compiling:$ac_tool_warned in
6148 yes:)
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151 ac_tool_warned=yes ;;
6152 esac
6153     STRIP=$ac_ct_STRIP
6154   fi
6155 else
6156   STRIP="$ac_cv_prog_STRIP"
6157 fi
6158
6159 test -z "$STRIP" && STRIP=:
6160
6161
6162
6163
6164
6165
6166 if test -n "$ac_tool_prefix"; then
6167   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6168 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if ${ac_cv_prog_RANLIB+:} false; then :
6172   $as_echo_n "(cached) " >&6
6173 else
6174   if test -n "$RANLIB"; then
6175   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182     for ac_exec_ext in '' $ac_executable_extensions; do
6183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189   done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 RANLIB=$ac_cv_prog_RANLIB
6195 if test -n "$RANLIB"; then
6196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6197 $as_echo "$RANLIB" >&6; }
6198 else
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 $as_echo "no" >&6; }
6201 fi
6202
6203
6204 fi
6205 if test -z "$ac_cv_prog_RANLIB"; then
6206   ac_ct_RANLIB=$RANLIB
6207   # Extract the first word of "ranlib", so it can be a program name with args.
6208 set dummy ranlib; ac_word=$2
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6212   $as_echo_n "(cached) " >&6
6213 else
6214   if test -n "$ac_ct_RANLIB"; then
6215   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220   IFS=$as_save_IFS
6221   test -z "$as_dir" && as_dir=.
6222     for ac_exec_ext in '' $ac_executable_extensions; do
6223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224     ac_cv_prog_ac_ct_RANLIB="ranlib"
6225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226     break 2
6227   fi
6228 done
6229   done
6230 IFS=$as_save_IFS
6231
6232 fi
6233 fi
6234 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6235 if test -n "$ac_ct_RANLIB"; then
6236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6237 $as_echo "$ac_ct_RANLIB" >&6; }
6238 else
6239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240 $as_echo "no" >&6; }
6241 fi
6242
6243   if test "x$ac_ct_RANLIB" = x; then
6244     RANLIB=":"
6245   else
6246     case $cross_compiling:$ac_tool_warned in
6247 yes:)
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6250 ac_tool_warned=yes ;;
6251 esac
6252     RANLIB=$ac_ct_RANLIB
6253   fi
6254 else
6255   RANLIB="$ac_cv_prog_RANLIB"
6256 fi
6257
6258 test -z "$RANLIB" && RANLIB=:
6259
6260
6261
6262
6263
6264
6265 # Determine commands to create old-style static archives.
6266 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6267 old_postinstall_cmds='chmod 644 $oldlib'
6268 old_postuninstall_cmds=
6269
6270 if test -n "$RANLIB"; then
6271   case $host_os in
6272   openbsd*)
6273     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6274     ;;
6275   *)
6276     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6277     ;;
6278   esac
6279   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6280 fi
6281
6282 case $host_os in
6283   darwin*)
6284     lock_old_archive_extraction=yes ;;
6285   *)
6286     lock_old_archive_extraction=no ;;
6287 esac
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327 # If no C compiler was specified, use CC.
6328 LTCC=${LTCC-"$CC"}
6329
6330 # If no C compiler flags were specified, use CFLAGS.
6331 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6332
6333 # Allow CC to be a program name with arguments.
6334 compiler=$CC
6335
6336
6337 # Check for command to grab the raw symbol name followed by C symbol from nm.
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6339 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6340 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343
6344 # These are sane defaults that work on at least a few old systems.
6345 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6346
6347 # Character class describing NM global symbol codes.
6348 symcode='[BCDEGRST]'
6349
6350 # Regexp to match symbols that can be accessed directly from C.
6351 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6352
6353 # Define system-specific variables.
6354 case $host_os in
6355 aix*)
6356   symcode='[BCDT]'
6357   ;;
6358 cygwin* | mingw* | pw32* | cegcc*)
6359   symcode='[ABCDGISTW]'
6360   ;;
6361 hpux*)
6362   if test "$host_cpu" = ia64; then
6363     symcode='[ABCDEGRST]'
6364   fi
6365   ;;
6366 irix* | nonstopux*)
6367   symcode='[BCDEGRST]'
6368   ;;
6369 osf*)
6370   symcode='[BCDEGQRST]'
6371   ;;
6372 solaris*)
6373   symcode='[BDRT]'
6374   ;;
6375 sco3.2v5*)
6376   symcode='[DT]'
6377   ;;
6378 sysv4.2uw2*)
6379   symcode='[DT]'
6380   ;;
6381 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6382   symcode='[ABDT]'
6383   ;;
6384 sysv4)
6385   symcode='[DFNSTU]'
6386   ;;
6387 esac
6388
6389 # If we're using GNU nm, then use its standard symbol codes.
6390 case `$NM -V 2>&1` in
6391 *GNU* | *'with BFD'*)
6392   symcode='[ABCDGIRSTW]' ;;
6393 esac
6394
6395 # Transform an extracted symbol line into a proper C declaration.
6396 # Some systems (esp. on ia64) link data and code symbols differently,
6397 # so use this general approach.
6398 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6399
6400 # Transform an extracted symbol line into symbol name and symbol address
6401 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6402 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'"
6403
6404 # Handle CRLF in mingw tool chain
6405 opt_cr=
6406 case $build_os in
6407 mingw*)
6408   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6409   ;;
6410 esac
6411
6412 # Try without a prefix underscore, then with it.
6413 for ac_symprfx in "" "_"; do
6414
6415   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6416   symxfrm="\\1 $ac_symprfx\\2 \\2"
6417
6418   # Write the raw and C identifiers.
6419   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6420     # Fake it for dumpbin and say T for any non-static function
6421     # and D for any global variable.
6422     # Also find C++ and __fastcall symbols from MSVC++,
6423     # which start with @ or ?.
6424     lt_cv_sys_global_symbol_pipe="$AWK '"\
6425 "     {last_section=section; section=\$ 3};"\
6426 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6427 "     \$ 0!~/External *\|/{next};"\
6428 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6429 "     {if(hide[section]) next};"\
6430 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6431 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6432 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6433 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6434 "     ' prfx=^$ac_symprfx"
6435   else
6436     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6437   fi
6438   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6439
6440   # Check to see that the pipe works correctly.
6441   pipe_works=no
6442
6443   rm -f conftest*
6444   cat > conftest.$ac_ext <<_LT_EOF
6445 #ifdef __cplusplus
6446 extern "C" {
6447 #endif
6448 char nm_test_var;
6449 void nm_test_func(void);
6450 void nm_test_func(void){}
6451 #ifdef __cplusplus
6452 }
6453 #endif
6454 int main(){nm_test_var='a';nm_test_func();return(0);}
6455 _LT_EOF
6456
6457   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6458   (eval $ac_compile) 2>&5
6459   ac_status=$?
6460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6461   test $ac_status = 0; }; then
6462     # Now try to grab the symbols.
6463     nlist=conftest.nm
6464     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6465   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6466   ac_status=$?
6467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468   test $ac_status = 0; } && test -s "$nlist"; then
6469       # Try sorting and uniquifying the output.
6470       if sort "$nlist" | uniq > "$nlist"T; then
6471         mv -f "$nlist"T "$nlist"
6472       else
6473         rm -f "$nlist"T
6474       fi
6475
6476       # Make sure that we snagged all the symbols we need.
6477       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6478         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6479           cat <<_LT_EOF > conftest.$ac_ext
6480 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6481 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6482 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6483    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6484 # define LT_DLSYM_CONST
6485 #elif defined(__osf__)
6486 /* This system does not cope well with relocations in const data.  */
6487 # define LT_DLSYM_CONST
6488 #else
6489 # define LT_DLSYM_CONST const
6490 #endif
6491
6492 #ifdef __cplusplus
6493 extern "C" {
6494 #endif
6495
6496 _LT_EOF
6497           # Now generate the symbol file.
6498           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6499
6500           cat <<_LT_EOF >> conftest.$ac_ext
6501
6502 /* The mapping between symbol names and symbols.  */
6503 LT_DLSYM_CONST struct {
6504   const char *name;
6505   void       *address;
6506 }
6507 lt__PROGRAM__LTX_preloaded_symbols[] =
6508 {
6509   { "@PROGRAM@", (void *) 0 },
6510 _LT_EOF
6511           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6512           cat <<\_LT_EOF >> conftest.$ac_ext
6513   {0, (void *) 0}
6514 };
6515
6516 /* This works around a problem in FreeBSD linker */
6517 #ifdef FREEBSD_WORKAROUND
6518 static const void *lt_preloaded_setup() {
6519   return lt__PROGRAM__LTX_preloaded_symbols;
6520 }
6521 #endif
6522
6523 #ifdef __cplusplus
6524 }
6525 #endif
6526 _LT_EOF
6527           # Now try linking the two files.
6528           mv conftest.$ac_objext conftstm.$ac_objext
6529           lt_globsym_save_LIBS=$LIBS
6530           lt_globsym_save_CFLAGS=$CFLAGS
6531           LIBS="conftstm.$ac_objext"
6532           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6533           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6534   (eval $ac_link) 2>&5
6535   ac_status=$?
6536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6537   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6538             pipe_works=yes
6539           fi
6540           LIBS=$lt_globsym_save_LIBS
6541           CFLAGS=$lt_globsym_save_CFLAGS
6542         else
6543           echo "cannot find nm_test_func in $nlist" >&5
6544         fi
6545       else
6546         echo "cannot find nm_test_var in $nlist" >&5
6547       fi
6548     else
6549       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6550     fi
6551   else
6552     echo "$progname: failed program was:" >&5
6553     cat conftest.$ac_ext >&5
6554   fi
6555   rm -rf conftest* conftst*
6556
6557   # Do not use the global_symbol_pipe unless it works.
6558   if test "$pipe_works" = yes; then
6559     break
6560   else
6561     lt_cv_sys_global_symbol_pipe=
6562   fi
6563 done
6564
6565 fi
6566
6567 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6568   lt_cv_sys_global_symbol_to_cdecl=
6569 fi
6570 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6572 $as_echo "failed" >&6; }
6573 else
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6575 $as_echo "ok" >&6; }
6576 fi
6577
6578 # Response file support.
6579 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6580   nm_file_list_spec='@'
6581 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6582   nm_file_list_spec='@'
6583 fi
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6612 $as_echo_n "checking for sysroot... " >&6; }
6613
6614 # Check whether --with-sysroot was given.
6615 if test "${with_sysroot+set}" = set; then :
6616   withval=$with_sysroot;
6617 else
6618   with_sysroot=no
6619 fi
6620
6621
6622 lt_sysroot=
6623 case ${with_sysroot} in #(
6624  yes)
6625    if test "$GCC" = yes; then
6626      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6627    fi
6628    ;; #(
6629  /*)
6630    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6631    ;; #(
6632  no|'')
6633    ;; #(
6634  *)
6635    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6636 $as_echo "${with_sysroot}" >&6; }
6637    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6638    ;;
6639 esac
6640
6641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6642 $as_echo "${lt_sysroot:-no}" >&6; }
6643
6644
6645
6646
6647
6648 # Check whether --enable-libtool-lock was given.
6649 if test "${enable_libtool_lock+set}" = set; then :
6650   enableval=$enable_libtool_lock;
6651 fi
6652
6653 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6654
6655 # Some flags need to be propagated to the compiler or linker for good
6656 # libtool support.
6657 case $host in
6658 ia64-*-hpux*)
6659   # Find out which ABI we are using.
6660   echo 'int i;' > conftest.$ac_ext
6661   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6662   (eval $ac_compile) 2>&5
6663   ac_status=$?
6664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665   test $ac_status = 0; }; then
6666     case `/usr/bin/file conftest.$ac_objext` in
6667       *ELF-32*)
6668         HPUX_IA64_MODE="32"
6669         ;;
6670       *ELF-64*)
6671         HPUX_IA64_MODE="64"
6672         ;;
6673     esac
6674   fi
6675   rm -rf conftest*
6676   ;;
6677 *-*-irix6*)
6678   # Find out which ABI we are using.
6679   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6680   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6681   (eval $ac_compile) 2>&5
6682   ac_status=$?
6683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6684   test $ac_status = 0; }; then
6685     if test "$lt_cv_prog_gnu_ld" = yes; then
6686       case `/usr/bin/file conftest.$ac_objext` in
6687         *32-bit*)
6688           LD="${LD-ld} -melf32bsmip"
6689           ;;
6690         *N32*)
6691           LD="${LD-ld} -melf32bmipn32"
6692           ;;
6693         *64-bit*)
6694           LD="${LD-ld} -melf64bmip"
6695         ;;
6696       esac
6697     else
6698       case `/usr/bin/file conftest.$ac_objext` in
6699         *32-bit*)
6700           LD="${LD-ld} -32"
6701           ;;
6702         *N32*)
6703           LD="${LD-ld} -n32"
6704           ;;
6705         *64-bit*)
6706           LD="${LD-ld} -64"
6707           ;;
6708       esac
6709     fi
6710   fi
6711   rm -rf conftest*
6712   ;;
6713
6714 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6715 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6716   # Find out which ABI we are using.
6717   echo 'int i;' > conftest.$ac_ext
6718   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6719   (eval $ac_compile) 2>&5
6720   ac_status=$?
6721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722   test $ac_status = 0; }; then
6723     case `/usr/bin/file conftest.o` in
6724       *32-bit*)
6725         case $host in
6726           x86_64-*kfreebsd*-gnu)
6727             LD="${LD-ld} -m elf_i386_fbsd"
6728             ;;
6729           x86_64-*linux*)
6730             LD="${LD-ld} -m elf_i386"
6731             ;;
6732           ppc64-*linux*|powerpc64-*linux*)
6733             LD="${LD-ld} -m elf32ppclinux"
6734             ;;
6735           s390x-*linux*)
6736             LD="${LD-ld} -m elf_s390"
6737             ;;
6738           sparc64-*linux*)
6739             LD="${LD-ld} -m elf32_sparc"
6740             ;;
6741         esac
6742         ;;
6743       *64-bit*)
6744         case $host in
6745           x86_64-*kfreebsd*-gnu)
6746             LD="${LD-ld} -m elf_x86_64_fbsd"
6747             ;;
6748           x86_64-*linux*)
6749             LD="${LD-ld} -m elf_x86_64"
6750             ;;
6751           ppc*-*linux*|powerpc*-*linux*)
6752             LD="${LD-ld} -m elf64ppc"
6753             ;;
6754           s390*-*linux*|s390*-*tpf*)
6755             LD="${LD-ld} -m elf64_s390"
6756             ;;
6757           sparc*-*linux*)
6758             LD="${LD-ld} -m elf64_sparc"
6759             ;;
6760         esac
6761         ;;
6762     esac
6763   fi
6764   rm -rf conftest*
6765   ;;
6766
6767 *-*-sco3.2v5*)
6768   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6769   SAVE_CFLAGS="$CFLAGS"
6770   CFLAGS="$CFLAGS -belf"
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6772 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6773 if ${lt_cv_cc_needs_belf+:} false; then :
6774   $as_echo_n "(cached) " >&6
6775 else
6776   ac_ext=c
6777 ac_cpp='$CPP $CPPFLAGS'
6778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6781
6782      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h.  */
6784
6785 int
6786 main ()
6787 {
6788
6789   ;
6790   return 0;
6791 }
6792 _ACEOF
6793 if ac_fn_c_try_link "$LINENO"; then :
6794   lt_cv_cc_needs_belf=yes
6795 else
6796   lt_cv_cc_needs_belf=no
6797 fi
6798 rm -f core conftest.err conftest.$ac_objext \
6799     conftest$ac_exeext conftest.$ac_ext
6800      ac_ext=c
6801 ac_cpp='$CPP $CPPFLAGS'
6802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6805
6806 fi
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6808 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6809   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6810     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6811     CFLAGS="$SAVE_CFLAGS"
6812   fi
6813   ;;
6814 sparc*-*solaris*)
6815   # Find out which ABI we are using.
6816   echo 'int i;' > conftest.$ac_ext
6817   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6818   (eval $ac_compile) 2>&5
6819   ac_status=$?
6820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6821   test $ac_status = 0; }; then
6822     case `/usr/bin/file conftest.o` in
6823     *64-bit*)
6824       case $lt_cv_prog_gnu_ld in
6825       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6826       *)
6827         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6828           LD="${LD-ld} -64"
6829         fi
6830         ;;
6831       esac
6832       ;;
6833     esac
6834   fi
6835   rm -rf conftest*
6836   ;;
6837 esac
6838
6839 need_locks="$enable_libtool_lock"
6840
6841 if test -n "$ac_tool_prefix"; then
6842   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6843 set dummy ${ac_tool_prefix}mt; ac_word=$2
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845 $as_echo_n "checking for $ac_word... " >&6; }
6846 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6847   $as_echo_n "(cached) " >&6
6848 else
6849   if test -n "$MANIFEST_TOOL"; then
6850   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6851 else
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 for as_dir in $PATH
6854 do
6855   IFS=$as_save_IFS
6856   test -z "$as_dir" && as_dir=.
6857     for ac_exec_ext in '' $ac_executable_extensions; do
6858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6859     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6861     break 2
6862   fi
6863 done
6864   done
6865 IFS=$as_save_IFS
6866
6867 fi
6868 fi
6869 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6870 if test -n "$MANIFEST_TOOL"; then
6871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6872 $as_echo "$MANIFEST_TOOL" >&6; }
6873 else
6874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 $as_echo "no" >&6; }
6876 fi
6877
6878
6879 fi
6880 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6881   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6882   # Extract the first word of "mt", so it can be a program name with args.
6883 set dummy mt; ac_word=$2
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 $as_echo_n "checking for $ac_word... " >&6; }
6886 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   if test -n "$ac_ct_MANIFEST_TOOL"; then
6890   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897     for ac_exec_ext in '' $ac_executable_extensions; do
6898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6899     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904   done
6905 IFS=$as_save_IFS
6906
6907 fi
6908 fi
6909 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6910 if test -n "$ac_ct_MANIFEST_TOOL"; then
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6912 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6913 else
6914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6916 fi
6917
6918   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6919     MANIFEST_TOOL=":"
6920   else
6921     case $cross_compiling:$ac_tool_warned in
6922 yes:)
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6925 ac_tool_warned=yes ;;
6926 esac
6927     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6928   fi
6929 else
6930   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6931 fi
6932
6933 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6935 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6936 if ${lt_cv_path_mainfest_tool+:} false; then :
6937   $as_echo_n "(cached) " >&6
6938 else
6939   lt_cv_path_mainfest_tool=no
6940   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6941   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6942   cat conftest.err >&5
6943   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6944     lt_cv_path_mainfest_tool=yes
6945   fi
6946   rm -f conftest*
6947 fi
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6949 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6950 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6951   MANIFEST_TOOL=:
6952 fi
6953
6954
6955
6956
6957
6958
6959   case $host_os in
6960     rhapsody* | darwin*)
6961     if test -n "$ac_tool_prefix"; then
6962   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6963 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6967   $as_echo_n "(cached) " >&6
6968 else
6969   if test -n "$DSYMUTIL"; then
6970   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6971 else
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6974 do
6975   IFS=$as_save_IFS
6976   test -z "$as_dir" && as_dir=.
6977     for ac_exec_ext in '' $ac_executable_extensions; do
6978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981     break 2
6982   fi
6983 done
6984   done
6985 IFS=$as_save_IFS
6986
6987 fi
6988 fi
6989 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6990 if test -n "$DSYMUTIL"; then
6991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6992 $as_echo "$DSYMUTIL" >&6; }
6993 else
6994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6996 fi
6997
6998
6999 fi
7000 if test -z "$ac_cv_prog_DSYMUTIL"; then
7001   ac_ct_DSYMUTIL=$DSYMUTIL
7002   # Extract the first word of "dsymutil", so it can be a program name with args.
7003 set dummy dsymutil; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7007   $as_echo_n "(cached) " >&6
7008 else
7009   if test -n "$ac_ct_DSYMUTIL"; then
7010   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015   IFS=$as_save_IFS
7016   test -z "$as_dir" && as_dir=.
7017     for ac_exec_ext in '' $ac_executable_extensions; do
7018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021     break 2
7022   fi
7023 done
7024   done
7025 IFS=$as_save_IFS
7026
7027 fi
7028 fi
7029 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7030 if test -n "$ac_ct_DSYMUTIL"; then
7031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7032 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7033 else
7034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7036 fi
7037
7038   if test "x$ac_ct_DSYMUTIL" = x; then
7039     DSYMUTIL=":"
7040   else
7041     case $cross_compiling:$ac_tool_warned in
7042 yes:)
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7045 ac_tool_warned=yes ;;
7046 esac
7047     DSYMUTIL=$ac_ct_DSYMUTIL
7048   fi
7049 else
7050   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7051 fi
7052
7053     if test -n "$ac_tool_prefix"; then
7054   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if ${ac_cv_prog_NMEDIT+:} false; then :
7059   $as_echo_n "(cached) " >&6
7060 else
7061   if test -n "$NMEDIT"; then
7062   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067   IFS=$as_save_IFS
7068   test -z "$as_dir" && as_dir=.
7069     for ac_exec_ext in '' $ac_executable_extensions; do
7070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073     break 2
7074   fi
7075 done
7076   done
7077 IFS=$as_save_IFS
7078
7079 fi
7080 fi
7081 NMEDIT=$ac_cv_prog_NMEDIT
7082 if test -n "$NMEDIT"; then
7083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7084 $as_echo "$NMEDIT" >&6; }
7085 else
7086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7088 fi
7089
7090
7091 fi
7092 if test -z "$ac_cv_prog_NMEDIT"; then
7093   ac_ct_NMEDIT=$NMEDIT
7094   # Extract the first word of "nmedit", so it can be a program name with args.
7095 set dummy nmedit; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7099   $as_echo_n "(cached) " >&6
7100 else
7101   if test -n "$ac_ct_NMEDIT"; then
7102   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109     for ac_exec_ext in '' $ac_executable_extensions; do
7110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116   done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7122 if test -n "$ac_ct_NMEDIT"; then
7123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7124 $as_echo "$ac_ct_NMEDIT" >&6; }
7125 else
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7128 fi
7129
7130   if test "x$ac_ct_NMEDIT" = x; then
7131     NMEDIT=":"
7132   else
7133     case $cross_compiling:$ac_tool_warned in
7134 yes:)
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7137 ac_tool_warned=yes ;;
7138 esac
7139     NMEDIT=$ac_ct_NMEDIT
7140   fi
7141 else
7142   NMEDIT="$ac_cv_prog_NMEDIT"
7143 fi
7144
7145     if test -n "$ac_tool_prefix"; then
7146   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7147 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if ${ac_cv_prog_LIPO+:} false; then :
7151   $as_echo_n "(cached) " >&6
7152 else
7153   if test -n "$LIPO"; then
7154   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159   IFS=$as_save_IFS
7160   test -z "$as_dir" && as_dir=.
7161     for ac_exec_ext in '' $ac_executable_extensions; do
7162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165     break 2
7166   fi
7167 done
7168   done
7169 IFS=$as_save_IFS
7170
7171 fi
7172 fi
7173 LIPO=$ac_cv_prog_LIPO
7174 if test -n "$LIPO"; then
7175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7176 $as_echo "$LIPO" >&6; }
7177 else
7178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 fi
7181
7182
7183 fi
7184 if test -z "$ac_cv_prog_LIPO"; then
7185   ac_ct_LIPO=$LIPO
7186   # Extract the first word of "lipo", so it can be a program name with args.
7187 set dummy lipo; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7191   $as_echo_n "(cached) " >&6
7192 else
7193   if test -n "$ac_ct_LIPO"; then
7194   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199   IFS=$as_save_IFS
7200   test -z "$as_dir" && as_dir=.
7201     for ac_exec_ext in '' $ac_executable_extensions; do
7202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203     ac_cv_prog_ac_ct_LIPO="lipo"
7204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205     break 2
7206   fi
7207 done
7208   done
7209 IFS=$as_save_IFS
7210
7211 fi
7212 fi
7213 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7214 if test -n "$ac_ct_LIPO"; then
7215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7216 $as_echo "$ac_ct_LIPO" >&6; }
7217 else
7218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7220 fi
7221
7222   if test "x$ac_ct_LIPO" = x; then
7223     LIPO=":"
7224   else
7225     case $cross_compiling:$ac_tool_warned in
7226 yes:)
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229 ac_tool_warned=yes ;;
7230 esac
7231     LIPO=$ac_ct_LIPO
7232   fi
7233 else
7234   LIPO="$ac_cv_prog_LIPO"
7235 fi
7236
7237     if test -n "$ac_tool_prefix"; then
7238   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}otool; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if ${ac_cv_prog_OTOOL+:} false; then :
7243   $as_echo_n "(cached) " >&6
7244 else
7245   if test -n "$OTOOL"; then
7246   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251   IFS=$as_save_IFS
7252   test -z "$as_dir" && as_dir=.
7253     for ac_exec_ext in '' $ac_executable_extensions; do
7254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7255     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257     break 2
7258   fi
7259 done
7260   done
7261 IFS=$as_save_IFS
7262
7263 fi
7264 fi
7265 OTOOL=$ac_cv_prog_OTOOL
7266 if test -n "$OTOOL"; then
7267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7268 $as_echo "$OTOOL" >&6; }
7269 else
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7272 fi
7273
7274
7275 fi
7276 if test -z "$ac_cv_prog_OTOOL"; then
7277   ac_ct_OTOOL=$OTOOL
7278   # Extract the first word of "otool", so it can be a program name with args.
7279 set dummy otool; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7283   $as_echo_n "(cached) " >&6
7284 else
7285   if test -n "$ac_ct_OTOOL"; then
7286   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291   IFS=$as_save_IFS
7292   test -z "$as_dir" && as_dir=.
7293     for ac_exec_ext in '' $ac_executable_extensions; do
7294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295     ac_cv_prog_ac_ct_OTOOL="otool"
7296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297     break 2
7298   fi
7299 done
7300   done
7301 IFS=$as_save_IFS
7302
7303 fi
7304 fi
7305 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7306 if test -n "$ac_ct_OTOOL"; then
7307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7308 $as_echo "$ac_ct_OTOOL" >&6; }
7309 else
7310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7312 fi
7313
7314   if test "x$ac_ct_OTOOL" = x; then
7315     OTOOL=":"
7316   else
7317     case $cross_compiling:$ac_tool_warned in
7318 yes:)
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321 ac_tool_warned=yes ;;
7322 esac
7323     OTOOL=$ac_ct_OTOOL
7324   fi
7325 else
7326   OTOOL="$ac_cv_prog_OTOOL"
7327 fi
7328
7329     if test -n "$ac_tool_prefix"; then
7330   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7331 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_OTOOL64+:} false; then :
7335   $as_echo_n "(cached) " >&6
7336 else
7337   if test -n "$OTOOL64"; then
7338   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345     for ac_exec_ext in '' $ac_executable_extensions; do
7346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7347     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352   done
7353 IFS=$as_save_IFS
7354
7355 fi
7356 fi
7357 OTOOL64=$ac_cv_prog_OTOOL64
7358 if test -n "$OTOOL64"; then
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7360 $as_echo "$OTOOL64" >&6; }
7361 else
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7364 fi
7365
7366
7367 fi
7368 if test -z "$ac_cv_prog_OTOOL64"; then
7369   ac_ct_OTOOL64=$OTOOL64
7370   # Extract the first word of "otool64", so it can be a program name with args.
7371 set dummy otool64; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7375   $as_echo_n "(cached) " >&6
7376 else
7377   if test -n "$ac_ct_OTOOL64"; then
7378   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383   IFS=$as_save_IFS
7384   test -z "$as_dir" && as_dir=.
7385     for ac_exec_ext in '' $ac_executable_extensions; do
7386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7387     ac_cv_prog_ac_ct_OTOOL64="otool64"
7388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389     break 2
7390   fi
7391 done
7392   done
7393 IFS=$as_save_IFS
7394
7395 fi
7396 fi
7397 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7398 if test -n "$ac_ct_OTOOL64"; then
7399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7400 $as_echo "$ac_ct_OTOOL64" >&6; }
7401 else
7402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7405
7406   if test "x$ac_ct_OTOOL64" = x; then
7407     OTOOL64=":"
7408   else
7409     case $cross_compiling:$ac_tool_warned in
7410 yes:)
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7413 ac_tool_warned=yes ;;
7414 esac
7415     OTOOL64=$ac_ct_OTOOL64
7416   fi
7417 else
7418   OTOOL64="$ac_cv_prog_OTOOL64"
7419 fi
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7448 $as_echo_n "checking for -single_module linker flag... " >&6; }
7449 if ${lt_cv_apple_cc_single_mod+:} false; then :
7450   $as_echo_n "(cached) " >&6
7451 else
7452   lt_cv_apple_cc_single_mod=no
7453       if test -z "${LT_MULTI_MODULE}"; then
7454         # By default we will add the -single_module flag. You can override
7455         # by either setting the environment variable LT_MULTI_MODULE
7456         # non-empty at configure time, or by adding -multi_module to the
7457         # link flags.
7458         rm -rf libconftest.dylib*
7459         echo "int foo(void){return 1;}" > conftest.c
7460         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7461 -dynamiclib -Wl,-single_module conftest.c" >&5
7462         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7463           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7464         _lt_result=$?
7465         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7466           lt_cv_apple_cc_single_mod=yes
7467         else
7468           cat conftest.err >&5
7469         fi
7470         rm -rf libconftest.dylib*
7471         rm -f conftest.*
7472       fi
7473 fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7475 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7477 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7478 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   lt_cv_ld_exported_symbols_list=no
7482       save_LDFLAGS=$LDFLAGS
7483       echo "_main" > conftest.sym
7484       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7485       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h.  */
7487
7488 int
7489 main ()
7490 {
7491
7492   ;
7493   return 0;
7494 }
7495 _ACEOF
7496 if ac_fn_c_try_link "$LINENO"; then :
7497   lt_cv_ld_exported_symbols_list=yes
7498 else
7499   lt_cv_ld_exported_symbols_list=no
7500 fi
7501 rm -f core conftest.err conftest.$ac_objext \
7502     conftest$ac_exeext conftest.$ac_ext
7503         LDFLAGS="$save_LDFLAGS"
7504
7505 fi
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7507 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7509 $as_echo_n "checking for -force_load linker flag... " >&6; }
7510 if ${lt_cv_ld_force_load+:} false; then :
7511   $as_echo_n "(cached) " >&6
7512 else
7513   lt_cv_ld_force_load=no
7514       cat > conftest.c << _LT_EOF
7515 int forced_loaded() { return 2;}
7516 _LT_EOF
7517       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7518       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7519       echo "$AR cru libconftest.a conftest.o" >&5
7520       $AR cru libconftest.a conftest.o 2>&5
7521       echo "$RANLIB libconftest.a" >&5
7522       $RANLIB libconftest.a 2>&5
7523       cat > conftest.c << _LT_EOF
7524 int main() { return 0;}
7525 _LT_EOF
7526       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7527       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7528       _lt_result=$?
7529       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7530         lt_cv_ld_force_load=yes
7531       else
7532         cat conftest.err >&5
7533       fi
7534         rm -f conftest.err libconftest.a conftest conftest.c
7535         rm -rf conftest.dSYM
7536
7537 fi
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7539 $as_echo "$lt_cv_ld_force_load" >&6; }
7540     case $host_os in
7541     rhapsody* | darwin1.[012])
7542       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7543     darwin1.*)
7544       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7545     darwin*) # darwin 5.x on
7546       # if running on 10.5 or later, the deployment target defaults
7547       # to the OS version, if on x86, and 10.4, the deployment
7548       # target defaults to 10.4. Don't you love it?
7549       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7550         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7551           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7552         10.[012]*)
7553           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7554         10.*)
7555           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7556       esac
7557     ;;
7558   esac
7559     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7560       _lt_dar_single_mod='$single_module'
7561     fi
7562     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7563       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7564     else
7565       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7566     fi
7567     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7568       _lt_dsymutil='~$DSYMUTIL $lib || :'
7569     else
7570       _lt_dsymutil=
7571     fi
7572     ;;
7573   esac
7574
7575 ac_ext=c
7576 ac_cpp='$CPP $CPPFLAGS'
7577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7581 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7582 # On Suns, sometimes $CPP names a directory.
7583 if test -n "$CPP" && test -d "$CPP"; then
7584   CPP=
7585 fi
7586 if test -z "$CPP"; then
7587   if ${ac_cv_prog_CPP+:} false; then :
7588   $as_echo_n "(cached) " >&6
7589 else
7590       # Double quotes because CPP needs to be expanded
7591     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7592     do
7593       ac_preproc_ok=false
7594 for ac_c_preproc_warn_flag in '' yes
7595 do
7596   # Use a header file that comes with gcc, so configuring glibc
7597   # with a fresh cross-compiler works.
7598   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7599   # <limits.h> exists even on freestanding compilers.
7600   # On the NeXT, cc -E runs the code through the compiler's parser,
7601   # not just through cpp. "Syntax error" is here to catch this case.
7602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h.  */
7604 #ifdef __STDC__
7605 # include <limits.h>
7606 #else
7607 # include <assert.h>
7608 #endif
7609                      Syntax error
7610 _ACEOF
7611 if ac_fn_c_try_cpp "$LINENO"; then :
7612
7613 else
7614   # Broken: fails on valid input.
7615 continue
7616 fi
7617 rm -f conftest.err conftest.i conftest.$ac_ext
7618
7619   # OK, works on sane cases.  Now check whether nonexistent headers
7620   # can be detected and how.
7621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h.  */
7623 #include <ac_nonexistent.h>
7624 _ACEOF
7625 if ac_fn_c_try_cpp "$LINENO"; then :
7626   # Broken: success on invalid input.
7627 continue
7628 else
7629   # Passes both tests.
7630 ac_preproc_ok=:
7631 break
7632 fi
7633 rm -f conftest.err conftest.i conftest.$ac_ext
7634
7635 done
7636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7637 rm -f conftest.i conftest.err conftest.$ac_ext
7638 if $ac_preproc_ok; then :
7639   break
7640 fi
7641
7642     done
7643     ac_cv_prog_CPP=$CPP
7644
7645 fi
7646   CPP=$ac_cv_prog_CPP
7647 else
7648   ac_cv_prog_CPP=$CPP
7649 fi
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7651 $as_echo "$CPP" >&6; }
7652 ac_preproc_ok=false
7653 for ac_c_preproc_warn_flag in '' yes
7654 do
7655   # Use a header file that comes with gcc, so configuring glibc
7656   # with a fresh cross-compiler works.
7657   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7658   # <limits.h> exists even on freestanding compilers.
7659   # On the NeXT, cc -E runs the code through the compiler's parser,
7660   # not just through cpp. "Syntax error" is here to catch this case.
7661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h.  */
7663 #ifdef __STDC__
7664 # include <limits.h>
7665 #else
7666 # include <assert.h>
7667 #endif
7668                      Syntax error
7669 _ACEOF
7670 if ac_fn_c_try_cpp "$LINENO"; then :
7671
7672 else
7673   # Broken: fails on valid input.
7674 continue
7675 fi
7676 rm -f conftest.err conftest.i conftest.$ac_ext
7677
7678   # OK, works on sane cases.  Now check whether nonexistent headers
7679   # can be detected and how.
7680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h.  */
7682 #include <ac_nonexistent.h>
7683 _ACEOF
7684 if ac_fn_c_try_cpp "$LINENO"; then :
7685   # Broken: success on invalid input.
7686 continue
7687 else
7688   # Passes both tests.
7689 ac_preproc_ok=:
7690 break
7691 fi
7692 rm -f conftest.err conftest.i conftest.$ac_ext
7693
7694 done
7695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7696 rm -f conftest.i conftest.err conftest.$ac_ext
7697 if $ac_preproc_ok; then :
7698
7699 else
7700   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7702 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7703 See \`config.log' for more details" "$LINENO" 5; }
7704 fi
7705
7706 ac_ext=c
7707 ac_cpp='$CPP $CPPFLAGS'
7708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7711
7712
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7714 $as_echo_n "checking for ANSI C header files... " >&6; }
7715 if ${ac_cv_header_stdc+:} false; then :
7716   $as_echo_n "(cached) " >&6
7717 else
7718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h.  */
7720 #include <stdlib.h>
7721 #include <stdarg.h>
7722 #include <string.h>
7723 #include <float.h>
7724
7725 int
7726 main ()
7727 {
7728
7729   ;
7730   return 0;
7731 }
7732 _ACEOF
7733 if ac_fn_c_try_compile "$LINENO"; then :
7734   ac_cv_header_stdc=yes
7735 else
7736   ac_cv_header_stdc=no
7737 fi
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739
7740 if test $ac_cv_header_stdc = yes; then
7741   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h.  */
7744 #include <string.h>
7745
7746 _ACEOF
7747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7748   $EGREP "memchr" >/dev/null 2>&1; then :
7749
7750 else
7751   ac_cv_header_stdc=no
7752 fi
7753 rm -f conftest*
7754
7755 fi
7756
7757 if test $ac_cv_header_stdc = yes; then
7758   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760 /* end confdefs.h.  */
7761 #include <stdlib.h>
7762
7763 _ACEOF
7764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7765   $EGREP "free" >/dev/null 2>&1; then :
7766
7767 else
7768   ac_cv_header_stdc=no
7769 fi
7770 rm -f conftest*
7771
7772 fi
7773
7774 if test $ac_cv_header_stdc = yes; then
7775   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7776   if test "$cross_compiling" = yes; then :
7777   :
7778 else
7779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h.  */
7781 #include <ctype.h>
7782 #include <stdlib.h>
7783 #if ((' ' & 0x0FF) == 0x020)
7784 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7785 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7786 #else
7787 # define ISLOWER(c) \
7788                    (('a' <= (c) && (c) <= 'i') \
7789                      || ('j' <= (c) && (c) <= 'r') \
7790                      || ('s' <= (c) && (c) <= 'z'))
7791 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7792 #endif
7793
7794 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7795 int
7796 main ()
7797 {
7798   int i;
7799   for (i = 0; i < 256; i++)
7800     if (XOR (islower (i), ISLOWER (i))
7801         || toupper (i) != TOUPPER (i))
7802       return 2;
7803   return 0;
7804 }
7805 _ACEOF
7806 if ac_fn_c_try_run "$LINENO"; then :
7807
7808 else
7809   ac_cv_header_stdc=no
7810 fi
7811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7812   conftest.$ac_objext conftest.beam conftest.$ac_ext
7813 fi
7814
7815 fi
7816 fi
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7818 $as_echo "$ac_cv_header_stdc" >&6; }
7819 if test $ac_cv_header_stdc = yes; then
7820
7821 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7822
7823 fi
7824
7825 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7826 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7827                   inttypes.h stdint.h unistd.h
7828 do :
7829   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7830 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7831 "
7832 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7833   cat >>confdefs.h <<_ACEOF
7834 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7835 _ACEOF
7836
7837 fi
7838
7839 done
7840
7841
7842 for ac_header in dlfcn.h
7843 do :
7844   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7845 "
7846 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7847   cat >>confdefs.h <<_ACEOF
7848 #define HAVE_DLFCN_H 1
7849 _ACEOF
7850
7851 fi
7852
7853 done
7854
7855
7856
7857
7858
7859 # Set options
7860
7861
7862
7863         enable_dlopen=no
7864
7865
7866   enable_win32_dll=no
7867
7868
7869             # Check whether --enable-shared was given.
7870 if test "${enable_shared+set}" = set; then :
7871   enableval=$enable_shared; p=${PACKAGE-default}
7872     case $enableval in
7873     yes) enable_shared=yes ;;
7874     no) enable_shared=no ;;
7875     *)
7876       enable_shared=no
7877       # Look at the argument we got.  We use all the common list separators.
7878       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7879       for pkg in $enableval; do
7880         IFS="$lt_save_ifs"
7881         if test "X$pkg" = "X$p"; then
7882           enable_shared=yes
7883         fi
7884       done
7885       IFS="$lt_save_ifs"
7886       ;;
7887     esac
7888 else
7889   enable_shared=yes
7890 fi
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900   # Check whether --enable-static was given.
7901 if test "${enable_static+set}" = set; then :
7902   enableval=$enable_static; p=${PACKAGE-default}
7903     case $enableval in
7904     yes) enable_static=yes ;;
7905     no) enable_static=no ;;
7906     *)
7907      enable_static=no
7908       # Look at the argument we got.  We use all the common list separators.
7909       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7910       for pkg in $enableval; do
7911         IFS="$lt_save_ifs"
7912         if test "X$pkg" = "X$p"; then
7913           enable_static=yes
7914         fi
7915       done
7916       IFS="$lt_save_ifs"
7917       ;;
7918     esac
7919 else
7920   enable_static=yes
7921 fi
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932 # Check whether --with-pic was given.
7933 if test "${with_pic+set}" = set; then :
7934   withval=$with_pic; pic_mode="$withval"
7935 else
7936   pic_mode=default
7937 fi
7938
7939
7940 test -z "$pic_mode" && pic_mode=default
7941
7942
7943
7944
7945
7946
7947
7948   # Check whether --enable-fast-install was given.
7949 if test "${enable_fast_install+set}" = set; then :
7950   enableval=$enable_fast_install; p=${PACKAGE-default}
7951     case $enableval in
7952     yes) enable_fast_install=yes ;;
7953     no) enable_fast_install=no ;;
7954     *)
7955       enable_fast_install=no
7956       # Look at the argument we got.  We use all the common list separators.
7957       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7958       for pkg in $enableval; do
7959         IFS="$lt_save_ifs"
7960         if test "X$pkg" = "X$p"; then
7961           enable_fast_install=yes
7962         fi
7963       done
7964       IFS="$lt_save_ifs"
7965       ;;
7966     esac
7967 else
7968   enable_fast_install=yes
7969 fi
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981 # This can be used to rebuild libtool when needed
7982 LIBTOOL_DEPS="$ltmain"
7983
7984 # Always use our own libtool.
7985 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012 test -z "$LN_S" && LN_S="ln -s"
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027 if test -n "${ZSH_VERSION+set}" ; then
8028    setopt NO_GLOB_SUBST
8029 fi
8030
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8032 $as_echo_n "checking for objdir... " >&6; }
8033 if ${lt_cv_objdir+:} false; then :
8034   $as_echo_n "(cached) " >&6
8035 else
8036   rm -f .libs 2>/dev/null
8037 mkdir .libs 2>/dev/null
8038 if test -d .libs; then
8039   lt_cv_objdir=.libs
8040 else
8041   # MS-DOS does not allow filenames that begin with a dot.
8042   lt_cv_objdir=_libs
8043 fi
8044 rmdir .libs 2>/dev/null
8045 fi
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8047 $as_echo "$lt_cv_objdir" >&6; }
8048 objdir=$lt_cv_objdir
8049
8050
8051
8052
8053
8054 cat >>confdefs.h <<_ACEOF
8055 #define LT_OBJDIR "$lt_cv_objdir/"
8056 _ACEOF
8057
8058
8059
8060
8061 case $host_os in
8062 aix3*)
8063   # AIX sometimes has problems with the GCC collect2 program.  For some
8064   # reason, if we set the COLLECT_NAMES environment variable, the problems
8065   # vanish in a puff of smoke.
8066   if test "X${COLLECT_NAMES+set}" != Xset; then
8067     COLLECT_NAMES=
8068     export COLLECT_NAMES
8069   fi
8070   ;;
8071 esac
8072
8073 # Global variables:
8074 ofile=libtool
8075 can_build_shared=yes
8076
8077 # All known linkers require a `.a' archive for static linking (except MSVC,
8078 # which needs '.lib').
8079 libext=a
8080
8081 with_gnu_ld="$lt_cv_prog_gnu_ld"
8082
8083 old_CC="$CC"
8084 old_CFLAGS="$CFLAGS"
8085
8086 # Set sane defaults for various variables
8087 test -z "$CC" && CC=cc
8088 test -z "$LTCC" && LTCC=$CC
8089 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8090 test -z "$LD" && LD=ld
8091 test -z "$ac_objext" && ac_objext=o
8092
8093 for cc_temp in $compiler""; do
8094   case $cc_temp in
8095     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8096     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8097     \-*) ;;
8098     *) break;;
8099   esac
8100 done
8101 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8102
8103
8104 # Only perform the check for file, if the check method requires it
8105 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8106 case $deplibs_check_method in
8107 file_magic*)
8108   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8110 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8111 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8112   $as_echo_n "(cached) " >&6
8113 else
8114   case $MAGIC_CMD in
8115 [\\/*] |  ?:[\\/]*)
8116   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8117   ;;
8118 *)
8119   lt_save_MAGIC_CMD="$MAGIC_CMD"
8120   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8121   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8122   for ac_dir in $ac_dummy; do
8123     IFS="$lt_save_ifs"
8124     test -z "$ac_dir" && ac_dir=.
8125     if test -f $ac_dir/${ac_tool_prefix}file; then
8126       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8127       if test -n "$file_magic_test_file"; then
8128         case $deplibs_check_method in
8129         "file_magic "*)
8130           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8131           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8132           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8133             $EGREP "$file_magic_regex" > /dev/null; then
8134             :
8135           else
8136             cat <<_LT_EOF 1>&2
8137
8138 *** Warning: the command libtool uses to detect shared libraries,
8139 *** $file_magic_cmd, produces output that libtool cannot recognize.
8140 *** The result is that libtool may fail to recognize shared libraries
8141 *** as such.  This will affect the creation of libtool libraries that
8142 *** depend on shared libraries, but programs linked with such libtool
8143 *** libraries will work regardless of this problem.  Nevertheless, you
8144 *** may want to report the problem to your system manager and/or to
8145 *** bug-libtool@gnu.org
8146
8147 _LT_EOF
8148           fi ;;
8149         esac
8150       fi
8151       break
8152     fi
8153   done
8154   IFS="$lt_save_ifs"
8155   MAGIC_CMD="$lt_save_MAGIC_CMD"
8156   ;;
8157 esac
8158 fi
8159
8160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8161 if test -n "$MAGIC_CMD"; then
8162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8163 $as_echo "$MAGIC_CMD" >&6; }
8164 else
8165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166 $as_echo "no" >&6; }
8167 fi
8168
8169
8170
8171
8172
8173 if test -z "$lt_cv_path_MAGIC_CMD"; then
8174   if test -n "$ac_tool_prefix"; then
8175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8176 $as_echo_n "checking for file... " >&6; }
8177 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8178   $as_echo_n "(cached) " >&6
8179 else
8180   case $MAGIC_CMD in
8181 [\\/*] |  ?:[\\/]*)
8182   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8183   ;;
8184 *)
8185   lt_save_MAGIC_CMD="$MAGIC_CMD"
8186   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8187   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8188   for ac_dir in $ac_dummy; do
8189     IFS="$lt_save_ifs"
8190     test -z "$ac_dir" && ac_dir=.
8191     if test -f $ac_dir/file; then
8192       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8193       if test -n "$file_magic_test_file"; then
8194         case $deplibs_check_method in
8195         "file_magic "*)
8196           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8197           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8198           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8199             $EGREP "$file_magic_regex" > /dev/null; then
8200             :
8201           else
8202             cat <<_LT_EOF 1>&2
8203
8204 *** Warning: the command libtool uses to detect shared libraries,
8205 *** $file_magic_cmd, produces output that libtool cannot recognize.
8206 *** The result is that libtool may fail to recognize shared libraries
8207 *** as such.  This will affect the creation of libtool libraries that
8208 *** depend on shared libraries, but programs linked with such libtool
8209 *** libraries will work regardless of this problem.  Nevertheless, you
8210 *** may want to report the problem to your system manager and/or to
8211 *** bug-libtool@gnu.org
8212
8213 _LT_EOF
8214           fi ;;
8215         esac
8216       fi
8217       break
8218     fi
8219   done
8220   IFS="$lt_save_ifs"
8221   MAGIC_CMD="$lt_save_MAGIC_CMD"
8222   ;;
8223 esac
8224 fi
8225
8226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8227 if test -n "$MAGIC_CMD"; then
8228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8229 $as_echo "$MAGIC_CMD" >&6; }
8230 else
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233 fi
8234
8235
8236   else
8237     MAGIC_CMD=:
8238   fi
8239 fi
8240
8241   fi
8242   ;;
8243 esac
8244
8245 # Use C for the default configuration in the libtool script
8246
8247 lt_save_CC="$CC"
8248 ac_ext=c
8249 ac_cpp='$CPP $CPPFLAGS'
8250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8253
8254
8255 # Source file extension for C test sources.
8256 ac_ext=c
8257
8258 # Object file extension for compiled C test sources.
8259 objext=o
8260 objext=$objext
8261
8262 # Code to be used in simple compile tests
8263 lt_simple_compile_test_code="int some_variable = 0;"
8264
8265 # Code to be used in simple link tests
8266 lt_simple_link_test_code='int main(){return(0);}'
8267
8268
8269
8270
8271
8272
8273
8274 # If no C compiler was specified, use CC.
8275 LTCC=${LTCC-"$CC"}
8276
8277 # If no C compiler flags were specified, use CFLAGS.
8278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8279
8280 # Allow CC to be a program name with arguments.
8281 compiler=$CC
8282
8283 # Save the default compiler, since it gets overwritten when the other
8284 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8285 compiler_DEFAULT=$CC
8286
8287 # save warnings/boilerplate of simple test code
8288 ac_outfile=conftest.$ac_objext
8289 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8290 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8291 _lt_compiler_boilerplate=`cat conftest.err`
8292 $RM conftest*
8293
8294 ac_outfile=conftest.$ac_objext
8295 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8296 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8297 _lt_linker_boilerplate=`cat conftest.err`
8298 $RM -r conftest*
8299
8300
8301 ## CAVEAT EMPTOR:
8302 ## There is no encapsulation within the following macros, do not change
8303 ## the running order or otherwise move them around unless you know exactly
8304 ## what you are doing...
8305 if test -n "$compiler"; then
8306
8307 lt_prog_compiler_no_builtin_flag=
8308
8309 if test "$GCC" = yes; then
8310   case $cc_basename in
8311   nvcc*)
8312     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8313   *)
8314     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8315   esac
8316
8317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8318 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8319 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8320   $as_echo_n "(cached) " >&6
8321 else
8322   lt_cv_prog_compiler_rtti_exceptions=no
8323    ac_outfile=conftest.$ac_objext
8324    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8325    lt_compiler_flag="-fno-rtti -fno-exceptions"
8326    # Insert the option either (1) after the last *FLAGS variable, or
8327    # (2) before a word containing "conftest.", or (3) at the end.
8328    # Note that $ac_compile itself does not contain backslashes and begins
8329    # with a dollar sign (not a hyphen), so the echo should work correctly.
8330    # The option is referenced via a variable to avoid confusing sed.
8331    lt_compile=`echo "$ac_compile" | $SED \
8332    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8333    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8334    -e 's:$: $lt_compiler_flag:'`
8335    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8336    (eval "$lt_compile" 2>conftest.err)
8337    ac_status=$?
8338    cat conftest.err >&5
8339    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340    if (exit $ac_status) && test -s "$ac_outfile"; then
8341      # The compiler can only warn and ignore the option if not recognized
8342      # So say no if there are warnings other than the usual output.
8343      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8344      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8345      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8346        lt_cv_prog_compiler_rtti_exceptions=yes
8347      fi
8348    fi
8349    $RM conftest*
8350
8351 fi
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8353 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8354
8355 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8356     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8357 else
8358     :
8359 fi
8360
8361 fi
8362
8363
8364
8365
8366
8367
8368   lt_prog_compiler_wl=
8369 lt_prog_compiler_pic=
8370 lt_prog_compiler_static=
8371
8372
8373   if test "$GCC" = yes; then
8374     lt_prog_compiler_wl='-Wl,'
8375     lt_prog_compiler_static='-static'
8376
8377     case $host_os in
8378       aix*)
8379       # All AIX code is PIC.
8380       if test "$host_cpu" = ia64; then
8381         # AIX 5 now supports IA64 processor
8382         lt_prog_compiler_static='-Bstatic'
8383       fi
8384       ;;
8385
8386     amigaos*)
8387       case $host_cpu in
8388       powerpc)
8389             # see comment about AmigaOS4 .so support
8390             lt_prog_compiler_pic='-fPIC'
8391         ;;
8392       m68k)
8393             # FIXME: we need at least 68020 code to build shared libraries, but
8394             # adding the `-m68020' flag to GCC prevents building anything better,
8395             # like `-m68040'.
8396             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8397         ;;
8398       esac
8399       ;;
8400
8401     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8402       # PIC is the default for these OSes.
8403       ;;
8404
8405     mingw* | cygwin* | pw32* | os2* | cegcc*)
8406       # This hack is so that the source file can tell whether it is being
8407       # built for inclusion in a dll (and should export symbols for example).
8408       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8409       # (--disable-auto-import) libraries
8410       lt_prog_compiler_pic='-DDLL_EXPORT'
8411       ;;
8412
8413     darwin* | rhapsody*)
8414       # PIC is the default on this platform
8415       # Common symbols not allowed in MH_DYLIB files
8416       lt_prog_compiler_pic='-fno-common'
8417       ;;
8418
8419     haiku*)
8420       # PIC is the default for Haiku.
8421       # The "-static" flag exists, but is broken.
8422       lt_prog_compiler_static=
8423       ;;
8424
8425     hpux*)
8426       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8427       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8428       # sets the default TLS model and affects inlining.
8429       case $host_cpu in
8430       hppa*64*)
8431         # +Z the default
8432         ;;
8433       *)
8434         lt_prog_compiler_pic='-fPIC'
8435         ;;
8436       esac
8437       ;;
8438
8439     interix[3-9]*)
8440       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8441       # Instead, we relocate shared libraries at runtime.
8442       ;;
8443
8444     msdosdjgpp*)
8445       # Just because we use GCC doesn't mean we suddenly get shared libraries
8446       # on systems that don't support them.
8447       lt_prog_compiler_can_build_shared=no
8448       enable_shared=no
8449       ;;
8450
8451     *nto* | *qnx*)
8452       # QNX uses GNU C++, but need to define -shared option too, otherwise
8453       # it will coredump.
8454       lt_prog_compiler_pic='-fPIC -shared'
8455       ;;
8456
8457     sysv4*MP*)
8458       if test -d /usr/nec; then
8459         lt_prog_compiler_pic=-Kconform_pic
8460       fi
8461       ;;
8462
8463     *)
8464       lt_prog_compiler_pic='-fPIC'
8465       ;;
8466     esac
8467
8468     case $cc_basename in
8469     nvcc*) # Cuda Compiler Driver 2.2
8470       lt_prog_compiler_wl='-Xlinker '
8471       lt_prog_compiler_pic='-Xcompiler -fPIC'
8472       ;;
8473     esac
8474   else
8475     # PORTME Check for flag to pass linker flags through the system compiler.
8476     case $host_os in
8477     aix*)
8478       lt_prog_compiler_wl='-Wl,'
8479       if test "$host_cpu" = ia64; then
8480         # AIX 5 now supports IA64 processor
8481         lt_prog_compiler_static='-Bstatic'
8482       else
8483         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8484       fi
8485       ;;
8486
8487     mingw* | cygwin* | pw32* | os2* | cegcc*)
8488       # This hack is so that the source file can tell whether it is being
8489       # built for inclusion in a dll (and should export symbols for example).
8490       lt_prog_compiler_pic='-DDLL_EXPORT'
8491       ;;
8492
8493     hpux9* | hpux10* | hpux11*)
8494       lt_prog_compiler_wl='-Wl,'
8495       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8496       # not for PA HP-UX.
8497       case $host_cpu in
8498       hppa*64*|ia64*)
8499         # +Z the default
8500         ;;
8501       *)
8502         lt_prog_compiler_pic='+Z'
8503         ;;
8504       esac
8505       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8506       lt_prog_compiler_static='${wl}-a ${wl}archive'
8507       ;;
8508
8509     irix5* | irix6* | nonstopux*)
8510       lt_prog_compiler_wl='-Wl,'
8511       # PIC (with -KPIC) is the default.
8512       lt_prog_compiler_static='-non_shared'
8513       ;;
8514
8515     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8516       case $cc_basename in
8517       # old Intel for x86_64 which still supported -KPIC.
8518       ecc*)
8519         lt_prog_compiler_wl='-Wl,'
8520         lt_prog_compiler_pic='-KPIC'
8521         lt_prog_compiler_static='-static'
8522         ;;
8523       # icc used to be incompatible with GCC.
8524       # ICC 10 doesn't accept -KPIC any more.
8525       icc* | ifort*)
8526         lt_prog_compiler_wl='-Wl,'
8527         lt_prog_compiler_pic='-fPIC'
8528         lt_prog_compiler_static='-static'
8529         ;;
8530       # Lahey Fortran 8.1.
8531       lf95*)
8532         lt_prog_compiler_wl='-Wl,'
8533         lt_prog_compiler_pic='--shared'
8534         lt_prog_compiler_static='--static'
8535         ;;
8536       nagfor*)
8537         # NAG Fortran compiler
8538         lt_prog_compiler_wl='-Wl,-Wl,,'
8539         lt_prog_compiler_pic='-PIC'
8540         lt_prog_compiler_static='-Bstatic'
8541         ;;
8542       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8543         # Portland Group compilers (*not* the Pentium gcc compiler,
8544         # which looks to be a dead project)
8545         lt_prog_compiler_wl='-Wl,'
8546         lt_prog_compiler_pic='-fpic'
8547         lt_prog_compiler_static='-Bstatic'
8548         ;;
8549       ccc*)
8550         lt_prog_compiler_wl='-Wl,'
8551         # All Alpha code is PIC.
8552         lt_prog_compiler_static='-non_shared'
8553         ;;
8554       xl* | bgxl* | bgf* | mpixl*)
8555         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8556         lt_prog_compiler_wl='-Wl,'
8557         lt_prog_compiler_pic='-qpic'
8558         lt_prog_compiler_static='-qstaticlink'
8559         ;;
8560       *)
8561         case `$CC -V 2>&1 | sed 5q` in
8562         *Sun\ F* | *Sun*Fortran*)
8563           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8564           lt_prog_compiler_pic='-KPIC'
8565           lt_prog_compiler_static='-Bstatic'
8566           lt_prog_compiler_wl=''
8567           ;;
8568         *Sun\ C*)
8569           # Sun C 5.9
8570           lt_prog_compiler_pic='-KPIC'
8571           lt_prog_compiler_static='-Bstatic'
8572           lt_prog_compiler_wl='-Wl,'
8573           ;;
8574         esac
8575         ;;
8576       esac
8577       ;;
8578
8579     newsos6)
8580       lt_prog_compiler_pic='-KPIC'
8581       lt_prog_compiler_static='-Bstatic'
8582       ;;
8583
8584     *nto* | *qnx*)
8585       # QNX uses GNU C++, but need to define -shared option too, otherwise
8586       # it will coredump.
8587       lt_prog_compiler_pic='-fPIC -shared'
8588       ;;
8589
8590     osf3* | osf4* | osf5*)
8591       lt_prog_compiler_wl='-Wl,'
8592       # All OSF/1 code is PIC.
8593       lt_prog_compiler_static='-non_shared'
8594       ;;
8595
8596     rdos*)
8597       lt_prog_compiler_static='-non_shared'
8598       ;;
8599
8600     solaris*)
8601       lt_prog_compiler_pic='-KPIC'
8602       lt_prog_compiler_static='-Bstatic'
8603       case $cc_basename in
8604       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8605         lt_prog_compiler_wl='-Qoption ld ';;
8606       *)
8607         lt_prog_compiler_wl='-Wl,';;
8608       esac
8609       ;;
8610
8611     sunos4*)
8612       lt_prog_compiler_wl='-Qoption ld '
8613       lt_prog_compiler_pic='-PIC'
8614       lt_prog_compiler_static='-Bstatic'
8615       ;;
8616
8617     sysv4 | sysv4.2uw2* | sysv4.3*)
8618       lt_prog_compiler_wl='-Wl,'
8619       lt_prog_compiler_pic='-KPIC'
8620       lt_prog_compiler_static='-Bstatic'
8621       ;;
8622
8623     sysv4*MP*)
8624       if test -d /usr/nec ;then
8625         lt_prog_compiler_pic='-Kconform_pic'
8626         lt_prog_compiler_static='-Bstatic'
8627       fi
8628       ;;
8629
8630     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8631       lt_prog_compiler_wl='-Wl,'
8632       lt_prog_compiler_pic='-KPIC'
8633       lt_prog_compiler_static='-Bstatic'
8634       ;;
8635
8636     unicos*)
8637       lt_prog_compiler_wl='-Wl,'
8638       lt_prog_compiler_can_build_shared=no
8639       ;;
8640
8641     uts4*)
8642       lt_prog_compiler_pic='-pic'
8643       lt_prog_compiler_static='-Bstatic'
8644       ;;
8645
8646     *)
8647       lt_prog_compiler_can_build_shared=no
8648       ;;
8649     esac
8650   fi
8651
8652 case $host_os in
8653   # For platforms which do not support PIC, -DPIC is meaningless:
8654   *djgpp*)
8655     lt_prog_compiler_pic=
8656     ;;
8657   *)
8658     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8659     ;;
8660 esac
8661
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8663 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8664 if ${lt_cv_prog_compiler_pic+:} false; then :
8665   $as_echo_n "(cached) " >&6
8666 else
8667   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8668 fi
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8670 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8671 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8672
8673 #
8674 # Check to make sure the PIC flag actually works.
8675 #
8676 if test -n "$lt_prog_compiler_pic"; then
8677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8678 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8679 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8680   $as_echo_n "(cached) " >&6
8681 else
8682   lt_cv_prog_compiler_pic_works=no
8683    ac_outfile=conftest.$ac_objext
8684    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8685    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8686    # Insert the option either (1) after the last *FLAGS variable, or
8687    # (2) before a word containing "conftest.", or (3) at the end.
8688    # Note that $ac_compile itself does not contain backslashes and begins
8689    # with a dollar sign (not a hyphen), so the echo should work correctly.
8690    # The option is referenced via a variable to avoid confusing sed.
8691    lt_compile=`echo "$ac_compile" | $SED \
8692    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8693    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8694    -e 's:$: $lt_compiler_flag:'`
8695    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8696    (eval "$lt_compile" 2>conftest.err)
8697    ac_status=$?
8698    cat conftest.err >&5
8699    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700    if (exit $ac_status) && test -s "$ac_outfile"; then
8701      # The compiler can only warn and ignore the option if not recognized
8702      # So say no if there are warnings other than the usual output.
8703      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8704      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8705      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8706        lt_cv_prog_compiler_pic_works=yes
8707      fi
8708    fi
8709    $RM conftest*
8710
8711 fi
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8713 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8714
8715 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8716     case $lt_prog_compiler_pic in
8717      "" | " "*) ;;
8718      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8719      esac
8720 else
8721     lt_prog_compiler_pic=
8722      lt_prog_compiler_can_build_shared=no
8723 fi
8724
8725 fi
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737 #
8738 # Check to make sure the static flag actually works.
8739 #
8740 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8742 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8743 if ${lt_cv_prog_compiler_static_works+:} false; then :
8744   $as_echo_n "(cached) " >&6
8745 else
8746   lt_cv_prog_compiler_static_works=no
8747    save_LDFLAGS="$LDFLAGS"
8748    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8749    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8750    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8751      # The linker can only warn and ignore the option if not recognized
8752      # So say no if there are warnings
8753      if test -s conftest.err; then
8754        # Append any errors to the config.log.
8755        cat conftest.err 1>&5
8756        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8757        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8758        if diff conftest.exp conftest.er2 >/dev/null; then
8759          lt_cv_prog_compiler_static_works=yes
8760        fi
8761      else
8762        lt_cv_prog_compiler_static_works=yes
8763      fi
8764    fi
8765    $RM -r conftest*
8766    LDFLAGS="$save_LDFLAGS"
8767
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8770 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8771
8772 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8773     :
8774 else
8775     lt_prog_compiler_static=
8776 fi
8777
8778
8779
8780
8781
8782
8783
8784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8785 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8786 if ${lt_cv_prog_compiler_c_o+:} false; then :
8787   $as_echo_n "(cached) " >&6
8788 else
8789   lt_cv_prog_compiler_c_o=no
8790    $RM -r conftest 2>/dev/null
8791    mkdir conftest
8792    cd conftest
8793    mkdir out
8794    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8795
8796    lt_compiler_flag="-o out/conftest2.$ac_objext"
8797    # Insert the option either (1) after the last *FLAGS variable, or
8798    # (2) before a word containing "conftest.", or (3) at the end.
8799    # Note that $ac_compile itself does not contain backslashes and begins
8800    # with a dollar sign (not a hyphen), so the echo should work correctly.
8801    lt_compile=`echo "$ac_compile" | $SED \
8802    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8803    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8804    -e 's:$: $lt_compiler_flag:'`
8805    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8806    (eval "$lt_compile" 2>out/conftest.err)
8807    ac_status=$?
8808    cat out/conftest.err >&5
8809    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8811    then
8812      # The compiler can only warn and ignore the option if not recognized
8813      # So say no if there are warnings
8814      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8815      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8816      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8817        lt_cv_prog_compiler_c_o=yes
8818      fi
8819    fi
8820    chmod u+w . 2>&5
8821    $RM conftest*
8822    # SGI C++ compiler will create directory out/ii_files/ for
8823    # template instantiation
8824    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8825    $RM out/* && rmdir out
8826    cd ..
8827    $RM -r conftest
8828    $RM conftest*
8829
8830 fi
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8832 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8833
8834
8835
8836
8837
8838
8839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8840 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8841 if ${lt_cv_prog_compiler_c_o+:} false; then :
8842   $as_echo_n "(cached) " >&6
8843 else
8844   lt_cv_prog_compiler_c_o=no
8845    $RM -r conftest 2>/dev/null
8846    mkdir conftest
8847    cd conftest
8848    mkdir out
8849    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8850
8851    lt_compiler_flag="-o out/conftest2.$ac_objext"
8852    # Insert the option either (1) after the last *FLAGS variable, or
8853    # (2) before a word containing "conftest.", or (3) at the end.
8854    # Note that $ac_compile itself does not contain backslashes and begins
8855    # with a dollar sign (not a hyphen), so the echo should work correctly.
8856    lt_compile=`echo "$ac_compile" | $SED \
8857    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859    -e 's:$: $lt_compiler_flag:'`
8860    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8861    (eval "$lt_compile" 2>out/conftest.err)
8862    ac_status=$?
8863    cat out/conftest.err >&5
8864    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8866    then
8867      # The compiler can only warn and ignore the option if not recognized
8868      # So say no if there are warnings
8869      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8870      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8871      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8872        lt_cv_prog_compiler_c_o=yes
8873      fi
8874    fi
8875    chmod u+w . 2>&5
8876    $RM conftest*
8877    # SGI C++ compiler will create directory out/ii_files/ for
8878    # template instantiation
8879    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8880    $RM out/* && rmdir out
8881    cd ..
8882    $RM -r conftest
8883    $RM conftest*
8884
8885 fi
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8887 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8888
8889
8890
8891
8892 hard_links="nottested"
8893 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8894   # do not overwrite the value of need_locks provided by the user
8895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8896 $as_echo_n "checking if we can lock with hard links... " >&6; }
8897   hard_links=yes
8898   $RM conftest*
8899   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8900   touch conftest.a
8901   ln conftest.a conftest.b 2>&5 || hard_links=no
8902   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8904 $as_echo "$hard_links" >&6; }
8905   if test "$hard_links" = no; then
8906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8907 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8908     need_locks=warn
8909   fi
8910 else
8911   need_locks=no
8912 fi
8913
8914
8915
8916
8917
8918
8919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8920 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8921
8922   runpath_var=
8923   allow_undefined_flag=
8924   always_export_symbols=no
8925   archive_cmds=
8926   archive_expsym_cmds=
8927   compiler_needs_object=no
8928   enable_shared_with_static_runtimes=no
8929   export_dynamic_flag_spec=
8930   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8931   hardcode_automatic=no
8932   hardcode_direct=no
8933   hardcode_direct_absolute=no
8934   hardcode_libdir_flag_spec=
8935   hardcode_libdir_flag_spec_ld=
8936   hardcode_libdir_separator=
8937   hardcode_minus_L=no
8938   hardcode_shlibpath_var=unsupported
8939   inherit_rpath=no
8940   link_all_deplibs=unknown
8941   module_cmds=
8942   module_expsym_cmds=
8943   old_archive_from_new_cmds=
8944   old_archive_from_expsyms_cmds=
8945   thread_safe_flag_spec=
8946   whole_archive_flag_spec=
8947   # include_expsyms should be a list of space-separated symbols to be *always*
8948   # included in the symbol list
8949   include_expsyms=
8950   # exclude_expsyms can be an extended regexp of symbols to exclude
8951   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8952   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8953   # as well as any symbol that contains `d'.
8954   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8955   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8956   # platforms (ab)use it in PIC code, but their linkers get confused if
8957   # the symbol is explicitly referenced.  Since portable code cannot
8958   # rely on this symbol name, it's probably fine to never include it in
8959   # preloaded symbol tables.
8960   # Exclude shared library initialization/finalization symbols.
8961   extract_expsyms_cmds=
8962
8963   case $host_os in
8964   cygwin* | mingw* | pw32* | cegcc*)
8965     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8966     # When not using gcc, we currently assume that we are using
8967     # Microsoft Visual C++.
8968     if test "$GCC" != yes; then
8969       with_gnu_ld=no
8970     fi
8971     ;;
8972   interix*)
8973     # we just hope/assume this is gcc and not c89 (= MSVC++)
8974     with_gnu_ld=yes
8975     ;;
8976   openbsd*)
8977     with_gnu_ld=no
8978     ;;
8979   esac
8980
8981   ld_shlibs=yes
8982
8983   # On some targets, GNU ld is compatible enough with the native linker
8984   # that we're better off using the native interface for both.
8985   lt_use_gnu_ld_interface=no
8986   if test "$with_gnu_ld" = yes; then
8987     case $host_os in
8988       aix*)
8989         # The AIX port of GNU ld has always aspired to compatibility
8990         # with the native linker.  However, as the warning in the GNU ld
8991         # block says, versions before 2.19.5* couldn't really create working
8992         # shared libraries, regardless of the interface used.
8993         case `$LD -v 2>&1` in
8994           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8995           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8996           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8997           *)
8998             lt_use_gnu_ld_interface=yes
8999             ;;
9000         esac
9001         ;;
9002       *)
9003         lt_use_gnu_ld_interface=yes
9004         ;;
9005     esac
9006   fi
9007
9008   if test "$lt_use_gnu_ld_interface" = yes; then
9009     # If archive_cmds runs LD, not CC, wlarc should be empty
9010     wlarc='${wl}'
9011
9012     # Set some defaults for GNU ld with shared library support. These
9013     # are reset later if shared libraries are not supported. Putting them
9014     # here allows them to be overridden if necessary.
9015     runpath_var=LD_RUN_PATH
9016     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9017     export_dynamic_flag_spec='${wl}--export-dynamic'
9018     # ancient GNU ld didn't support --whole-archive et. al.
9019     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9020       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9021     else
9022       whole_archive_flag_spec=
9023     fi
9024     supports_anon_versioning=no
9025     case `$LD -v 2>&1` in
9026       *GNU\ gold*) supports_anon_versioning=yes ;;
9027       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9028       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9029       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9030       *\ 2.11.*) ;; # other 2.11 versions
9031       *) supports_anon_versioning=yes ;;
9032     esac
9033
9034     # See if GNU ld supports shared libraries.
9035     case $host_os in
9036     aix[3-9]*)
9037       # On AIX/PPC, the GNU linker is very broken
9038       if test "$host_cpu" != ia64; then
9039         ld_shlibs=no
9040         cat <<_LT_EOF 1>&2
9041
9042 *** Warning: the GNU linker, at least up to release 2.19, is reported
9043 *** to be unable to reliably create shared libraries on AIX.
9044 *** Therefore, libtool is disabling shared libraries support.  If you
9045 *** really care for shared libraries, you may want to install binutils
9046 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9047 *** You will then need to restart the configuration process.
9048
9049 _LT_EOF
9050       fi
9051       ;;
9052
9053     amigaos*)
9054       case $host_cpu in
9055       powerpc)
9056             # see comment about AmigaOS4 .so support
9057             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058             archive_expsym_cmds=''
9059         ;;
9060       m68k)
9061             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)'
9062             hardcode_libdir_flag_spec='-L$libdir'
9063             hardcode_minus_L=yes
9064         ;;
9065       esac
9066       ;;
9067
9068     beos*)
9069       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9070         allow_undefined_flag=unsupported
9071         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9072         # support --undefined.  This deserves some investigation.  FIXME
9073         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9074       else
9075         ld_shlibs=no
9076       fi
9077       ;;
9078
9079     cygwin* | mingw* | pw32* | cegcc*)
9080       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9081       # as there is no search path for DLLs.
9082       hardcode_libdir_flag_spec='-L$libdir'
9083       export_dynamic_flag_spec='${wl}--export-all-symbols'
9084       allow_undefined_flag=unsupported
9085       always_export_symbols=no
9086       enable_shared_with_static_runtimes=yes
9087       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9088       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9089
9090       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9091         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9092         # If the export-symbols file already is a .def file (1st line
9093         # is EXPORTS), use it as is; otherwise, prepend...
9094         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9095           cp $export_symbols $output_objdir/$soname.def;
9096         else
9097           echo EXPORTS > $output_objdir/$soname.def;
9098           cat $export_symbols >> $output_objdir/$soname.def;
9099         fi~
9100         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9101       else
9102         ld_shlibs=no
9103       fi
9104       ;;
9105
9106     haiku*)
9107       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108       link_all_deplibs=yes
9109       ;;
9110
9111     interix[3-9]*)
9112       hardcode_direct=no
9113       hardcode_shlibpath_var=no
9114       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9115       export_dynamic_flag_spec='${wl}-E'
9116       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9117       # Instead, shared libraries are loaded at an image base (0x10000000 by
9118       # default) and relocated if they conflict, which is a slow very memory
9119       # consuming and fragmenting process.  To avoid this, we pick a random,
9120       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9121       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9122       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9123       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'
9124       ;;
9125
9126     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9127       tmp_diet=no
9128       if test "$host_os" = linux-dietlibc; then
9129         case $cc_basename in
9130           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9131         esac
9132       fi
9133       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9134          && test "$tmp_diet" = no
9135       then
9136         tmp_addflag=' $pic_flag'
9137         tmp_sharedflag='-shared'
9138         case $cc_basename,$host_cpu in
9139         pgcc*)                          # Portland Group C compiler
9140           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'
9141           tmp_addflag=' $pic_flag'
9142           ;;
9143         pgf77* | pgf90* | pgf95* | pgfortran*)
9144                                         # Portland Group f77 and f90 compilers
9145           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'
9146           tmp_addflag=' $pic_flag -Mnomain' ;;
9147         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9148           tmp_addflag=' -i_dynamic' ;;
9149         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9150           tmp_addflag=' -i_dynamic -nofor_main' ;;
9151         ifc* | ifort*)                  # Intel Fortran compiler
9152           tmp_addflag=' -nofor_main' ;;
9153         lf95*)                          # Lahey Fortran 8.1
9154           whole_archive_flag_spec=
9155           tmp_sharedflag='--shared' ;;
9156         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9157           tmp_sharedflag='-qmkshrobj'
9158           tmp_addflag= ;;
9159         nvcc*)  # Cuda Compiler Driver 2.2
9160           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'
9161           compiler_needs_object=yes
9162           ;;
9163         esac
9164         case `$CC -V 2>&1 | sed 5q` in
9165         *Sun\ C*)                       # Sun C 5.9
9166           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'
9167           compiler_needs_object=yes
9168           tmp_sharedflag='-G' ;;
9169         *Sun\ F*)                       # Sun Fortran 8.3
9170           tmp_sharedflag='-G' ;;
9171         esac
9172         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9173
9174         if test "x$supports_anon_versioning" = xyes; then
9175           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9176             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9177             echo "local: *; };" >> $output_objdir/$libname.ver~
9178             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9179         fi
9180
9181         case $cc_basename in
9182         xlf* | bgf* | bgxlf* | mpixlf*)
9183           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9184           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9185           hardcode_libdir_flag_spec=
9186           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9187           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9188           if test "x$supports_anon_versioning" = xyes; then
9189             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9190               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9191               echo "local: *; };" >> $output_objdir/$libname.ver~
9192               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9193           fi
9194           ;;
9195         esac
9196       else
9197         ld_shlibs=no
9198       fi
9199       ;;
9200
9201     netbsd*)
9202       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9203         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9204         wlarc=
9205       else
9206         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9207         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9208       fi
9209       ;;
9210
9211     solaris*)
9212       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9213         ld_shlibs=no
9214         cat <<_LT_EOF 1>&2
9215
9216 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9217 *** create shared libraries on Solaris systems.  Therefore, libtool
9218 *** is disabling shared libraries support.  We urge you to upgrade GNU
9219 *** binutils to release 2.9.1 or newer.  Another option is to modify
9220 *** your PATH or compiler configuration so that the native linker is
9221 *** used, and then restart.
9222
9223 _LT_EOF
9224       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9225         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9227       else
9228         ld_shlibs=no
9229       fi
9230       ;;
9231
9232     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9233       case `$LD -v 2>&1` in
9234         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9235         ld_shlibs=no
9236         cat <<_LT_EOF 1>&2
9237
9238 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9239 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9240 *** is disabling shared libraries support.  We urge you to upgrade GNU
9241 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9242 *** your PATH or compiler configuration so that the native linker is
9243 *** used, and then restart.
9244
9245 _LT_EOF
9246         ;;
9247         *)
9248           # For security reasons, it is highly recommended that you always
9249           # use absolute paths for naming shared libraries, and exclude the
9250           # DT_RUNPATH tag from executables and libraries.  But doing so
9251           # requires that you compile everything twice, which is a pain.
9252           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9253             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9254             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9255             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9256           else
9257             ld_shlibs=no
9258           fi
9259         ;;
9260       esac
9261       ;;
9262
9263     sunos4*)
9264       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9265       wlarc=
9266       hardcode_direct=yes
9267       hardcode_shlibpath_var=no
9268       ;;
9269
9270     *)
9271       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9272         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9273         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9274       else
9275         ld_shlibs=no
9276       fi
9277       ;;
9278     esac
9279
9280     if test "$ld_shlibs" = no; then
9281       runpath_var=
9282       hardcode_libdir_flag_spec=
9283       export_dynamic_flag_spec=
9284       whole_archive_flag_spec=
9285     fi
9286   else
9287     # PORTME fill in a description of your system's linker (not GNU ld)
9288     case $host_os in
9289     aix3*)
9290       allow_undefined_flag=unsupported
9291       always_export_symbols=yes
9292       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'
9293       # Note: this linker hardcodes the directories in LIBPATH if there
9294       # are no directories specified by -L.
9295       hardcode_minus_L=yes
9296       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9297         # Neither direct hardcoding nor static linking is supported with a
9298         # broken collect2.
9299         hardcode_direct=unsupported
9300       fi
9301       ;;
9302
9303     aix[4-9]*)
9304       if test "$host_cpu" = ia64; then
9305         # On IA64, the linker does run time linking by default, so we don't
9306         # have to do anything special.
9307         aix_use_runtimelinking=no
9308         exp_sym_flag='-Bexport'
9309         no_entry_flag=""
9310       else
9311         # If we're using GNU nm, then we don't want the "-C" option.
9312         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9313         # Also, AIX nm treats weak defined symbols like other global
9314         # defined symbols, whereas GNU nm marks them as "W".
9315         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9316           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'
9317         else
9318           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'
9319         fi
9320         aix_use_runtimelinking=no
9321
9322         # Test if we are trying to use run time linking or normal
9323         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9324         # need to do runtime linking.
9325         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9326           for ld_flag in $LDFLAGS; do
9327           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9328             aix_use_runtimelinking=yes
9329             break
9330           fi
9331           done
9332           ;;
9333         esac
9334
9335         exp_sym_flag='-bexport'
9336         no_entry_flag='-bnoentry'
9337       fi
9338
9339       # When large executables or shared objects are built, AIX ld can
9340       # have problems creating the table of contents.  If linking a library
9341       # or program results in "error TOC overflow" add -mminimal-toc to
9342       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9343       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9344
9345       archive_cmds=''
9346       hardcode_direct=yes
9347       hardcode_direct_absolute=yes
9348       hardcode_libdir_separator=':'
9349       link_all_deplibs=yes
9350       file_list_spec='${wl}-f,'
9351
9352       if test "$GCC" = yes; then
9353         case $host_os in aix4.[012]|aix4.[012].*)
9354         # We only want to do this on AIX 4.2 and lower, the check
9355         # below for broken collect2 doesn't work under 4.3+
9356           collect2name=`${CC} -print-prog-name=collect2`
9357           if test -f "$collect2name" &&
9358            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9359           then
9360           # We have reworked collect2
9361           :
9362           else
9363           # We have old collect2
9364           hardcode_direct=unsupported
9365           # It fails to find uninstalled libraries when the uninstalled
9366           # path is not listed in the libpath.  Setting hardcode_minus_L
9367           # to unsupported forces relinking
9368           hardcode_minus_L=yes
9369           hardcode_libdir_flag_spec='-L$libdir'
9370           hardcode_libdir_separator=
9371           fi
9372           ;;
9373         esac
9374         shared_flag='-shared'
9375         if test "$aix_use_runtimelinking" = yes; then
9376           shared_flag="$shared_flag "'${wl}-G'
9377         fi
9378       else
9379         # not using gcc
9380         if test "$host_cpu" = ia64; then
9381         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9382         # chokes on -Wl,-G. The following line is correct:
9383           shared_flag='-G'
9384         else
9385           if test "$aix_use_runtimelinking" = yes; then
9386             shared_flag='${wl}-G'
9387           else
9388             shared_flag='${wl}-bM:SRE'
9389           fi
9390         fi
9391       fi
9392
9393       export_dynamic_flag_spec='${wl}-bexpall'
9394       # It seems that -bexpall does not export symbols beginning with
9395       # underscore (_), so it is better to generate a list of symbols to export.
9396       always_export_symbols=yes
9397       if test "$aix_use_runtimelinking" = yes; then
9398         # Warning - without using the other runtime loading flags (-brtl),
9399         # -berok will link without error, but may produce a broken library.
9400         allow_undefined_flag='-berok'
9401         # Determine the default libpath from the value encoded in an
9402         # empty executable.
9403         if test "${lt_cv_aix_libpath+set}" = set; then
9404   aix_libpath=$lt_cv_aix_libpath
9405 else
9406   if ${lt_cv_aix_libpath_+:} false; then :
9407   $as_echo_n "(cached) " >&6
9408 else
9409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h.  */
9411
9412 int
9413 main ()
9414 {
9415
9416   ;
9417   return 0;
9418 }
9419 _ACEOF
9420 if ac_fn_c_try_link "$LINENO"; then :
9421
9422   lt_aix_libpath_sed='
9423       /Import File Strings/,/^$/ {
9424           /^0/ {
9425               s/^0  *\([^ ]*\) *$/\1/
9426               p
9427           }
9428       }'
9429   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9430   # Check for a 64-bit object if we didn't find anything.
9431   if test -z "$lt_cv_aix_libpath_"; then
9432     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9433   fi
9434 fi
9435 rm -f core conftest.err conftest.$ac_objext \
9436     conftest$ac_exeext conftest.$ac_ext
9437   if test -z "$lt_cv_aix_libpath_"; then
9438     lt_cv_aix_libpath_="/usr/lib:/lib"
9439   fi
9440
9441 fi
9442
9443   aix_libpath=$lt_cv_aix_libpath_
9444 fi
9445
9446         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9447         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"
9448       else
9449         if test "$host_cpu" = ia64; then
9450           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9451           allow_undefined_flag="-z nodefs"
9452           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"
9453         else
9454          # Determine the default libpath from the value encoded in an
9455          # empty executable.
9456          if test "${lt_cv_aix_libpath+set}" = set; then
9457   aix_libpath=$lt_cv_aix_libpath
9458 else
9459   if ${lt_cv_aix_libpath_+:} false; then :
9460   $as_echo_n "(cached) " >&6
9461 else
9462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h.  */
9464
9465 int
9466 main ()
9467 {
9468
9469   ;
9470   return 0;
9471 }
9472 _ACEOF
9473 if ac_fn_c_try_link "$LINENO"; then :
9474
9475   lt_aix_libpath_sed='
9476       /Import File Strings/,/^$/ {
9477           /^0/ {
9478               s/^0  *\([^ ]*\) *$/\1/
9479               p
9480           }
9481       }'
9482   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9483   # Check for a 64-bit object if we didn't find anything.
9484   if test -z "$lt_cv_aix_libpath_"; then
9485     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9486   fi
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext \
9489     conftest$ac_exeext conftest.$ac_ext
9490   if test -z "$lt_cv_aix_libpath_"; then
9491     lt_cv_aix_libpath_="/usr/lib:/lib"
9492   fi
9493
9494 fi
9495
9496   aix_libpath=$lt_cv_aix_libpath_
9497 fi
9498
9499          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9500           # Warning - without using the other run time loading flags,
9501           # -berok will link without error, but may produce a broken library.
9502           no_undefined_flag=' ${wl}-bernotok'
9503           allow_undefined_flag=' ${wl}-berok'
9504           if test "$with_gnu_ld" = yes; then
9505             # We only use this code for GNU lds that support --whole-archive.
9506             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9507           else
9508             # Exported symbols can be pulled into shared objects from archives
9509             whole_archive_flag_spec='$convenience'
9510           fi
9511           archive_cmds_need_lc=yes
9512           # This is similar to how AIX traditionally builds its shared libraries.
9513           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'
9514         fi
9515       fi
9516       ;;
9517
9518     amigaos*)
9519       case $host_cpu in
9520       powerpc)
9521             # see comment about AmigaOS4 .so support
9522             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9523             archive_expsym_cmds=''
9524         ;;
9525       m68k)
9526             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)'
9527             hardcode_libdir_flag_spec='-L$libdir'
9528             hardcode_minus_L=yes
9529         ;;
9530       esac
9531       ;;
9532
9533     bsdi[45]*)
9534       export_dynamic_flag_spec=-rdynamic
9535       ;;
9536
9537     cygwin* | mingw* | pw32* | cegcc*)
9538       # When not using gcc, we currently assume that we are using
9539       # Microsoft Visual C++.
9540       # hardcode_libdir_flag_spec is actually meaningless, as there is
9541       # no search path for DLLs.
9542       case $cc_basename in
9543       cl*)
9544         # Native MSVC
9545         hardcode_libdir_flag_spec=' '
9546         allow_undefined_flag=unsupported
9547         always_export_symbols=yes
9548         file_list_spec='@'
9549         # Tell ltmain to make .lib files, not .a files.
9550         libext=lib
9551         # Tell ltmain to make .dll files, not .so files.
9552         shrext_cmds=".dll"
9553         # FIXME: Setting linknames here is a bad hack.
9554         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9555         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9556             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9557           else
9558             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9559           fi~
9560           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9561           linknames='
9562         # The linker will not automatically build a static lib if we build a DLL.
9563         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9564         enable_shared_with_static_runtimes=yes
9565         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9566         # Don't use ranlib
9567         old_postinstall_cmds='chmod 644 $oldlib'
9568         postlink_cmds='lt_outputfile="@OUTPUT@"~
9569           lt_tool_outputfile="@TOOL_OUTPUT@"~
9570           case $lt_outputfile in
9571             *.exe|*.EXE) ;;
9572             *)
9573               lt_outputfile="$lt_outputfile.exe"
9574               lt_tool_outputfile="$lt_tool_outputfile.exe"
9575               ;;
9576           esac~
9577           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9578             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9579             $RM "$lt_outputfile.manifest";
9580           fi'
9581         ;;
9582       *)
9583         # Assume MSVC wrapper
9584         hardcode_libdir_flag_spec=' '
9585         allow_undefined_flag=unsupported
9586         # Tell ltmain to make .lib files, not .a files.
9587         libext=lib
9588         # Tell ltmain to make .dll files, not .so files.
9589         shrext_cmds=".dll"
9590         # FIXME: Setting linknames here is a bad hack.
9591         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9592         # The linker will automatically build a .lib file if we build a DLL.
9593         old_archive_from_new_cmds='true'
9594         # FIXME: Should let the user specify the lib program.
9595         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9596         enable_shared_with_static_runtimes=yes
9597         ;;
9598       esac
9599       ;;
9600
9601     darwin* | rhapsody*)
9602
9603
9604   archive_cmds_need_lc=no
9605   hardcode_direct=no
9606   hardcode_automatic=yes
9607   hardcode_shlibpath_var=unsupported
9608   if test "$lt_cv_ld_force_load" = "yes"; then
9609     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\"`'
9610   else
9611     whole_archive_flag_spec=''
9612   fi
9613   link_all_deplibs=yes
9614   allow_undefined_flag="$_lt_dar_allow_undefined"
9615   case $cc_basename in
9616      ifort*) _lt_dar_can_shared=yes ;;
9617      *) _lt_dar_can_shared=$GCC ;;
9618   esac
9619   if test "$_lt_dar_can_shared" = "yes"; then
9620     output_verbose_link_cmd=func_echo_all
9621     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9622     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9623     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}"
9624     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}"
9625
9626   else
9627   ld_shlibs=no
9628   fi
9629
9630       ;;
9631
9632     dgux*)
9633       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9634       hardcode_libdir_flag_spec='-L$libdir'
9635       hardcode_shlibpath_var=no
9636       ;;
9637
9638     freebsd1*)
9639       ld_shlibs=no
9640       ;;
9641
9642     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9643     # support.  Future versions do this automatically, but an explicit c++rt0.o
9644     # does not break anything, and helps significantly (at the cost of a little
9645     # extra space).
9646     freebsd2.2*)
9647       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9648       hardcode_libdir_flag_spec='-R$libdir'
9649       hardcode_direct=yes
9650       hardcode_shlibpath_var=no
9651       ;;
9652
9653     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9654     freebsd2*)
9655       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9656       hardcode_direct=yes
9657       hardcode_minus_L=yes
9658       hardcode_shlibpath_var=no
9659       ;;
9660
9661     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9662     freebsd* | dragonfly*)
9663       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9664       hardcode_libdir_flag_spec='-R$libdir'
9665       hardcode_direct=yes
9666       hardcode_shlibpath_var=no
9667       ;;
9668
9669     hpux9*)
9670       if test "$GCC" = yes; then
9671         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9672       else
9673         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'
9674       fi
9675       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9676       hardcode_libdir_separator=:
9677       hardcode_direct=yes
9678
9679       # hardcode_minus_L: Not really in the search PATH,
9680       # but as the default location of the library.
9681       hardcode_minus_L=yes
9682       export_dynamic_flag_spec='${wl}-E'
9683       ;;
9684
9685     hpux10*)
9686       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9687         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9688       else
9689         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9690       fi
9691       if test "$with_gnu_ld" = no; then
9692         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9693         hardcode_libdir_flag_spec_ld='+b $libdir'
9694         hardcode_libdir_separator=:
9695         hardcode_direct=yes
9696         hardcode_direct_absolute=yes
9697         export_dynamic_flag_spec='${wl}-E'
9698         # hardcode_minus_L: Not really in the search PATH,
9699         # but as the default location of the library.
9700         hardcode_minus_L=yes
9701       fi
9702       ;;
9703
9704     hpux11*)
9705       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9706         case $host_cpu in
9707         hppa*64*)
9708           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9709           ;;
9710         ia64*)
9711           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9712           ;;
9713         *)
9714           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9715           ;;
9716         esac
9717       else
9718         case $host_cpu in
9719         hppa*64*)
9720           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9721           ;;
9722         ia64*)
9723           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9724           ;;
9725         *)
9726
9727           # Older versions of the 11.00 compiler do not understand -b yet
9728           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9729           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9730 $as_echo_n "checking if $CC understands -b... " >&6; }
9731 if ${lt_cv_prog_compiler__b+:} false; then :
9732   $as_echo_n "(cached) " >&6
9733 else
9734   lt_cv_prog_compiler__b=no
9735    save_LDFLAGS="$LDFLAGS"
9736    LDFLAGS="$LDFLAGS -b"
9737    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9738    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9739      # The linker can only warn and ignore the option if not recognized
9740      # So say no if there are warnings
9741      if test -s conftest.err; then
9742        # Append any errors to the config.log.
9743        cat conftest.err 1>&5
9744        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9745        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9746        if diff conftest.exp conftest.er2 >/dev/null; then
9747          lt_cv_prog_compiler__b=yes
9748        fi
9749      else
9750        lt_cv_prog_compiler__b=yes
9751      fi
9752    fi
9753    $RM -r conftest*
9754    LDFLAGS="$save_LDFLAGS"
9755
9756 fi
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9758 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9759
9760 if test x"$lt_cv_prog_compiler__b" = xyes; then
9761     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9762 else
9763     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9764 fi
9765
9766           ;;
9767         esac
9768       fi
9769       if test "$with_gnu_ld" = no; then
9770         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9771         hardcode_libdir_separator=:
9772
9773         case $host_cpu in
9774         hppa*64*|ia64*)
9775           hardcode_direct=no
9776           hardcode_shlibpath_var=no
9777           ;;
9778         *)
9779           hardcode_direct=yes
9780           hardcode_direct_absolute=yes
9781           export_dynamic_flag_spec='${wl}-E'
9782
9783           # hardcode_minus_L: Not really in the search PATH,
9784           # but as the default location of the library.
9785           hardcode_minus_L=yes
9786           ;;
9787         esac
9788       fi
9789       ;;
9790
9791     irix5* | irix6* | nonstopux*)
9792       if test "$GCC" = yes; then
9793         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9794         # Try to use the -exported_symbol ld option, if it does not
9795         # work, assume that -exports_file does not work either and
9796         # implicitly export all symbols.
9797         # This should be the same for all languages, so no per-tag cache variable.
9798         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9799 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9800 if ${lt_cv_irix_exported_symbol+:} false; then :
9801   $as_echo_n "(cached) " >&6
9802 else
9803   save_LDFLAGS="$LDFLAGS"
9804            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9805            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h.  */
9807 int foo (void) { return 0; }
9808 _ACEOF
9809 if ac_fn_c_try_link "$LINENO"; then :
9810   lt_cv_irix_exported_symbol=yes
9811 else
9812   lt_cv_irix_exported_symbol=no
9813 fi
9814 rm -f core conftest.err conftest.$ac_objext \
9815     conftest$ac_exeext conftest.$ac_ext
9816            LDFLAGS="$save_LDFLAGS"
9817 fi
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9819 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9820         if test "$lt_cv_irix_exported_symbol" = yes; then
9821           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9822         fi
9823       else
9824         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'
9825         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'
9826       fi
9827       archive_cmds_need_lc='no'
9828       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9829       hardcode_libdir_separator=:
9830       inherit_rpath=yes
9831       link_all_deplibs=yes
9832       ;;
9833
9834     netbsd*)
9835       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9836         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9837       else
9838         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9839       fi
9840       hardcode_libdir_flag_spec='-R$libdir'
9841       hardcode_direct=yes
9842       hardcode_shlibpath_var=no
9843       ;;
9844
9845     newsos6)
9846       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847       hardcode_direct=yes
9848       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9849       hardcode_libdir_separator=:
9850       hardcode_shlibpath_var=no
9851       ;;
9852
9853     *nto* | *qnx*)
9854       ;;
9855
9856     openbsd*)
9857       if test -f /usr/libexec/ld.so; then
9858         hardcode_direct=yes
9859         hardcode_shlibpath_var=no
9860         hardcode_direct_absolute=yes
9861         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9862           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9863           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9864           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9865           export_dynamic_flag_spec='${wl}-E'
9866         else
9867           case $host_os in
9868            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9869              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9870              hardcode_libdir_flag_spec='-R$libdir'
9871              ;;
9872            *)
9873              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9874              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9875              ;;
9876           esac
9877         fi
9878       else
9879         ld_shlibs=no
9880       fi
9881       ;;
9882
9883     os2*)
9884       hardcode_libdir_flag_spec='-L$libdir'
9885       hardcode_minus_L=yes
9886       allow_undefined_flag=unsupported
9887       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'
9888       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9889       ;;
9890
9891     osf3*)
9892       if test "$GCC" = yes; then
9893         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9894         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'
9895       else
9896         allow_undefined_flag=' -expect_unresolved \*'
9897         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'
9898       fi
9899       archive_cmds_need_lc='no'
9900       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9901       hardcode_libdir_separator=:
9902       ;;
9903
9904     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9905       if test "$GCC" = yes; then
9906         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9907         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9908         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9909       else
9910         allow_undefined_flag=' -expect_unresolved \*'
9911         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'
9912         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~
9913         $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'
9914
9915         # Both c and cxx compiler support -rpath directly
9916         hardcode_libdir_flag_spec='-rpath $libdir'
9917       fi
9918       archive_cmds_need_lc='no'
9919       hardcode_libdir_separator=:
9920       ;;
9921
9922     solaris*)
9923       no_undefined_flag=' -z defs'
9924       if test "$GCC" = yes; then
9925         wlarc='${wl}'
9926         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9927         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9928           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9929       else
9930         case `$CC -V 2>&1` in
9931         *"Compilers 5.0"*)
9932           wlarc=''
9933           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9934           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9935           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9936           ;;
9937         *)
9938           wlarc='${wl}'
9939           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9940           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9941           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9942           ;;
9943         esac
9944       fi
9945       hardcode_libdir_flag_spec='-R$libdir'
9946       hardcode_shlibpath_var=no
9947       case $host_os in
9948       solaris2.[0-5] | solaris2.[0-5].*) ;;
9949       *)
9950         # The compiler driver will combine and reorder linker options,
9951         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9952         # but is careful enough not to reorder.
9953         # Supported since Solaris 2.6 (maybe 2.5.1?)
9954         if test "$GCC" = yes; then
9955           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9956         else
9957           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9958         fi
9959         ;;
9960       esac
9961       link_all_deplibs=yes
9962       ;;
9963
9964     sunos4*)
9965       if test "x$host_vendor" = xsequent; then
9966         # Use $CC to link under sequent, because it throws in some extra .o
9967         # files that make .init and .fini sections work.
9968         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9969       else
9970         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9971       fi
9972       hardcode_libdir_flag_spec='-L$libdir'
9973       hardcode_direct=yes
9974       hardcode_minus_L=yes
9975       hardcode_shlibpath_var=no
9976       ;;
9977
9978     sysv4)
9979       case $host_vendor in
9980         sni)
9981           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9982           hardcode_direct=yes # is this really true???
9983         ;;
9984         siemens)
9985           ## LD is ld it makes a PLAMLIB
9986           ## CC just makes a GrossModule.
9987           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9988           reload_cmds='$CC -r -o $output$reload_objs'
9989           hardcode_direct=no
9990         ;;
9991         motorola)
9992           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9993           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9994         ;;
9995       esac
9996       runpath_var='LD_RUN_PATH'
9997       hardcode_shlibpath_var=no
9998       ;;
9999
10000     sysv4.3*)
10001       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10002       hardcode_shlibpath_var=no
10003       export_dynamic_flag_spec='-Bexport'
10004       ;;
10005
10006     sysv4*MP*)
10007       if test -d /usr/nec; then
10008         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10009         hardcode_shlibpath_var=no
10010         runpath_var=LD_RUN_PATH
10011         hardcode_runpath_var=yes
10012         ld_shlibs=yes
10013       fi
10014       ;;
10015
10016     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10017       no_undefined_flag='${wl}-z,text'
10018       archive_cmds_need_lc=no
10019       hardcode_shlibpath_var=no
10020       runpath_var='LD_RUN_PATH'
10021
10022       if test "$GCC" = yes; then
10023         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10024         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025       else
10026         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10027         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10028       fi
10029       ;;
10030
10031     sysv5* | sco3.2v5* | sco5v6*)
10032       # Note: We can NOT use -z defs as we might desire, because we do not
10033       # link with -lc, and that would cause any symbols used from libc to
10034       # always be unresolved, which means just about no library would
10035       # ever link correctly.  If we're not using GNU ld we use -z text
10036       # though, which does catch some bad symbols but isn't as heavy-handed
10037       # as -z defs.
10038       no_undefined_flag='${wl}-z,text'
10039       allow_undefined_flag='${wl}-z,nodefs'
10040       archive_cmds_need_lc=no
10041       hardcode_shlibpath_var=no
10042       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10043       hardcode_libdir_separator=':'
10044       link_all_deplibs=yes
10045       export_dynamic_flag_spec='${wl}-Bexport'
10046       runpath_var='LD_RUN_PATH'
10047
10048       if test "$GCC" = yes; then
10049         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10050         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10051       else
10052         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10053         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054       fi
10055       ;;
10056
10057     uts4*)
10058       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059       hardcode_libdir_flag_spec='-L$libdir'
10060       hardcode_shlibpath_var=no
10061       ;;
10062
10063     *)
10064       ld_shlibs=no
10065       ;;
10066     esac
10067
10068     if test x$host_vendor = xsni; then
10069       case $host in
10070       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10071         export_dynamic_flag_spec='${wl}-Blargedynsym'
10072         ;;
10073       esac
10074     fi
10075   fi
10076
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10078 $as_echo "$ld_shlibs" >&6; }
10079 test "$ld_shlibs" = no && can_build_shared=no
10080
10081 with_gnu_ld=$with_gnu_ld
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097 #
10098 # Do we need to explicitly link libc?
10099 #
10100 case "x$archive_cmds_need_lc" in
10101 x|xyes)
10102   # Assume -lc should be added
10103   archive_cmds_need_lc=yes
10104
10105   if test "$enable_shared" = yes && test "$GCC" = yes; then
10106     case $archive_cmds in
10107     *'~'*)
10108       # FIXME: we may have to deal with multi-command sequences.
10109       ;;
10110     '$CC '*)
10111       # Test whether the compiler implicitly links with -lc since on some
10112       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10113       # to ld, don't add -lc before -lgcc.
10114       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10115 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10116 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10117   $as_echo_n "(cached) " >&6
10118 else
10119   $RM conftest*
10120         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10121
10122         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10123   (eval $ac_compile) 2>&5
10124   ac_status=$?
10125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10126   test $ac_status = 0; } 2>conftest.err; then
10127           soname=conftest
10128           lib=conftest
10129           libobjs=conftest.$ac_objext
10130           deplibs=
10131           wl=$lt_prog_compiler_wl
10132           pic_flag=$lt_prog_compiler_pic
10133           compiler_flags=-v
10134           linker_flags=-v
10135           verstring=
10136           output_objdir=.
10137           libname=conftest
10138           lt_save_allow_undefined_flag=$allow_undefined_flag
10139           allow_undefined_flag=
10140           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10141   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10142   ac_status=$?
10143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10144   test $ac_status = 0; }
10145           then
10146             lt_cv_archive_cmds_need_lc=no
10147           else
10148             lt_cv_archive_cmds_need_lc=yes
10149           fi
10150           allow_undefined_flag=$lt_save_allow_undefined_flag
10151         else
10152           cat conftest.err 1>&5
10153         fi
10154         $RM conftest*
10155
10156 fi
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10158 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10159       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10160       ;;
10161     esac
10162   fi
10163   ;;
10164 esac
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
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10323 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10324
10325 if test "$GCC" = yes; then
10326   case $host_os in
10327     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10328     *) lt_awk_arg="/^libraries:/" ;;
10329   esac
10330   case $host_os in
10331     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10332     *) lt_sed_strip_eq="s,=/,/,g" ;;
10333   esac
10334   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10335   case $lt_search_path_spec in
10336   *\;*)
10337     # if the path contains ";" then we assume it to be the separator
10338     # otherwise default to the standard path separator (i.e. ":") - it is
10339     # assumed that no part of a normal pathname contains ";" but that should
10340     # okay in the real world where ";" in dirpaths is itself problematic.
10341     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10342     ;;
10343   *)
10344     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10345     ;;
10346   esac
10347   # Ok, now we have the path, separated by spaces, we can step through it
10348   # and add multilib dir if necessary.
10349   lt_tmp_lt_search_path_spec=
10350   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10351   for lt_sys_path in $lt_search_path_spec; do
10352     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10353       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10354     else
10355       test -d "$lt_sys_path" && \
10356         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10357     fi
10358   done
10359   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10360 BEGIN {RS=" "; FS="/|\n";} {
10361   lt_foo="";
10362   lt_count=0;
10363   for (lt_i = NF; lt_i > 0; lt_i--) {
10364     if ($lt_i != "" && $lt_i != ".") {
10365       if ($lt_i == "..") {
10366         lt_count++;
10367       } else {
10368         if (lt_count == 0) {
10369           lt_foo="/" $lt_i lt_foo;
10370         } else {
10371           lt_count--;
10372         }
10373       }
10374     }
10375   }
10376   if (lt_foo != "") { lt_freq[lt_foo]++; }
10377   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10378 }'`
10379   # AWK program above erroneously prepends '/' to C:/dos/paths
10380   # for these hosts.
10381   case $host_os in
10382     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10383       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10384   esac
10385   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10386 else
10387   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10388 fi
10389 library_names_spec=
10390 libname_spec='lib$name'
10391 soname_spec=
10392 shrext_cmds=".so"
10393 postinstall_cmds=
10394 postuninstall_cmds=
10395 finish_cmds=
10396 finish_eval=
10397 shlibpath_var=
10398 shlibpath_overrides_runpath=unknown
10399 version_type=none
10400 dynamic_linker="$host_os ld.so"
10401 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10402 need_lib_prefix=unknown
10403 hardcode_into_libs=no
10404
10405 # when you set need_version to no, make sure it does not cause -set_version
10406 # flags to be left without arguments
10407 need_version=unknown
10408
10409 case $host_os in
10410 aix3*)
10411   version_type=linux
10412   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10413   shlibpath_var=LIBPATH
10414
10415   # AIX 3 has no versioning support, so we append a major version to the name.
10416   soname_spec='${libname}${release}${shared_ext}$major'
10417   ;;
10418
10419 aix[4-9]*)
10420   version_type=linux
10421   need_lib_prefix=no
10422   need_version=no
10423   hardcode_into_libs=yes
10424   if test "$host_cpu" = ia64; then
10425     # AIX 5 supports IA64
10426     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10427     shlibpath_var=LD_LIBRARY_PATH
10428   else
10429     # With GCC up to 2.95.x, collect2 would create an import file
10430     # for dependence libraries.  The import file would start with
10431     # the line `#! .'.  This would cause the generated library to
10432     # depend on `.', always an invalid library.  This was fixed in
10433     # development snapshots of GCC prior to 3.0.
10434     case $host_os in
10435       aix4 | aix4.[01] | aix4.[01].*)
10436       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10437            echo ' yes '
10438            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10439         :
10440       else
10441         can_build_shared=no
10442       fi
10443       ;;
10444     esac
10445     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10446     # soname into executable. Probably we can add versioning support to
10447     # collect2, so additional links can be useful in future.
10448     if test "$aix_use_runtimelinking" = yes; then
10449       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10450       # instead of lib<name>.a to let people know that these are not
10451       # typical AIX shared libraries.
10452       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453     else
10454       # We preserve .a as extension for shared libraries through AIX4.2
10455       # and later when we are not doing run time linking.
10456       library_names_spec='${libname}${release}.a $libname.a'
10457       soname_spec='${libname}${release}${shared_ext}$major'
10458     fi
10459     shlibpath_var=LIBPATH
10460   fi
10461   ;;
10462
10463 amigaos*)
10464   case $host_cpu in
10465   powerpc)
10466     # Since July 2007 AmigaOS4 officially supports .so libraries.
10467     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10469     ;;
10470   m68k)
10471     library_names_spec='$libname.ixlibrary $libname.a'
10472     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10473     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'
10474     ;;
10475   esac
10476   ;;
10477
10478 beos*)
10479   library_names_spec='${libname}${shared_ext}'
10480   dynamic_linker="$host_os ld.so"
10481   shlibpath_var=LIBRARY_PATH
10482   ;;
10483
10484 bsdi[45]*)
10485   version_type=linux
10486   need_version=no
10487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488   soname_spec='${libname}${release}${shared_ext}$major'
10489   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10490   shlibpath_var=LD_LIBRARY_PATH
10491   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10492   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10493   # the default ld.so.conf also contains /usr/contrib/lib and
10494   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10495   # libtool to hard-code these into programs
10496   ;;
10497
10498 cygwin* | mingw* | pw32* | cegcc*)
10499   version_type=windows
10500   shrext_cmds=".dll"
10501   need_version=no
10502   need_lib_prefix=no
10503
10504   case $GCC,$cc_basename in
10505   yes,*)
10506     # gcc
10507     library_names_spec='$libname.dll.a'
10508     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10509     postinstall_cmds='base_file=`basename \${file}`~
10510       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10511       dldir=$destdir/`dirname \$dlpath`~
10512       test -d \$dldir || mkdir -p \$dldir~
10513       $install_prog $dir/$dlname \$dldir/$dlname~
10514       chmod a+x \$dldir/$dlname~
10515       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10516         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10517       fi'
10518     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10519       dlpath=$dir/\$dldll~
10520        $RM \$dlpath'
10521     shlibpath_overrides_runpath=yes
10522
10523     case $host_os in
10524     cygwin*)
10525       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10526       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10527
10528       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10529       ;;
10530     mingw* | cegcc*)
10531       # MinGW DLLs use traditional 'lib' prefix
10532       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10533       ;;
10534     pw32*)
10535       # pw32 DLLs use 'pw' prefix rather than 'lib'
10536       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10537       ;;
10538     esac
10539     dynamic_linker='Win32 ld.exe'
10540     ;;
10541
10542   *,cl*)
10543     # Native MSVC
10544     libname_spec='$name'
10545     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10546     library_names_spec='${libname}.dll.lib'
10547
10548     case $build_os in
10549     mingw*)
10550       sys_lib_search_path_spec=
10551       lt_save_ifs=$IFS
10552       IFS=';'
10553       for lt_path in $LIB
10554       do
10555         IFS=$lt_save_ifs
10556         # Let DOS variable expansion print the short 8.3 style file name.
10557         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10558         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10559       done
10560       IFS=$lt_save_ifs
10561       # Convert to MSYS style.
10562       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10563       ;;
10564     cygwin*)
10565       # Convert to unix form, then to dos form, then back to unix form
10566       # but this time dos style (no spaces!) so that the unix form looks
10567       # like /cygdrive/c/PROGRA~1:/cygdr...
10568       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10569       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10570       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10571       ;;
10572     *)
10573       sys_lib_search_path_spec="$LIB"
10574       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10575         # It is most probably a Windows format PATH.
10576         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10577       else
10578         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10579       fi
10580       # FIXME: find the short name or the path components, as spaces are
10581       # common. (e.g. "Program Files" -> "PROGRA~1")
10582       ;;
10583     esac
10584
10585     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10586     postinstall_cmds='base_file=`basename \${file}`~
10587       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10588       dldir=$destdir/`dirname \$dlpath`~
10589       test -d \$dldir || mkdir -p \$dldir~
10590       $install_prog $dir/$dlname \$dldir/$dlname'
10591     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10592       dlpath=$dir/\$dldll~
10593        $RM \$dlpath'
10594     shlibpath_overrides_runpath=yes
10595     dynamic_linker='Win32 link.exe'
10596     ;;
10597
10598   *)
10599     # Assume MSVC wrapper
10600     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10601     dynamic_linker='Win32 ld.exe'
10602     ;;
10603   esac
10604   # FIXME: first we should search . and the directory the executable is in
10605   shlibpath_var=PATH
10606   ;;
10607
10608 darwin* | rhapsody*)
10609   dynamic_linker="$host_os dyld"
10610   version_type=darwin
10611   need_lib_prefix=no
10612   need_version=no
10613   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10614   soname_spec='${libname}${release}${major}$shared_ext'
10615   shlibpath_overrides_runpath=yes
10616   shlibpath_var=DYLD_LIBRARY_PATH
10617   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10618
10619   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10620   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10621   ;;
10622
10623 dgux*)
10624   version_type=linux
10625   need_lib_prefix=no
10626   need_version=no
10627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10628   soname_spec='${libname}${release}${shared_ext}$major'
10629   shlibpath_var=LD_LIBRARY_PATH
10630   ;;
10631
10632 freebsd1*)
10633   dynamic_linker=no
10634   ;;
10635
10636 freebsd* | dragonfly*)
10637   # DragonFly does not have aout.  When/if they implement a new
10638   # versioning mechanism, adjust this.
10639   if test -x /usr/bin/objformat; then
10640     objformat=`/usr/bin/objformat`
10641   else
10642     case $host_os in
10643     freebsd[123]*) objformat=aout ;;
10644     *) objformat=elf ;;
10645     esac
10646   fi
10647   version_type=freebsd-$objformat
10648   case $version_type in
10649     freebsd-elf*)
10650       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10651       need_version=no
10652       need_lib_prefix=no
10653       ;;
10654     freebsd-*)
10655       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10656       need_version=yes
10657       ;;
10658   esac
10659   shlibpath_var=LD_LIBRARY_PATH
10660   case $host_os in
10661   freebsd2*)
10662     shlibpath_overrides_runpath=yes
10663     ;;
10664   freebsd3.[01]* | freebsdelf3.[01]*)
10665     shlibpath_overrides_runpath=yes
10666     hardcode_into_libs=yes
10667     ;;
10668   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10669   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10670     shlibpath_overrides_runpath=no
10671     hardcode_into_libs=yes
10672     ;;
10673   *) # from 4.6 on, and DragonFly
10674     shlibpath_overrides_runpath=yes
10675     hardcode_into_libs=yes
10676     ;;
10677   esac
10678   ;;
10679
10680 gnu*)
10681   version_type=linux
10682   need_lib_prefix=no
10683   need_version=no
10684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10685   soname_spec='${libname}${release}${shared_ext}$major'
10686   shlibpath_var=LD_LIBRARY_PATH
10687   hardcode_into_libs=yes
10688   ;;
10689
10690 haiku*)
10691   version_type=linux
10692   need_lib_prefix=no
10693   need_version=no
10694   dynamic_linker="$host_os runtime_loader"
10695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10696   soname_spec='${libname}${release}${shared_ext}$major'
10697   shlibpath_var=LIBRARY_PATH
10698   shlibpath_overrides_runpath=yes
10699   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10700   hardcode_into_libs=yes
10701   ;;
10702
10703 hpux9* | hpux10* | hpux11*)
10704   # Give a soname corresponding to the major version so that dld.sl refuses to
10705   # link against other versions.
10706   version_type=sunos
10707   need_lib_prefix=no
10708   need_version=no
10709   case $host_cpu in
10710   ia64*)
10711     shrext_cmds='.so'
10712     hardcode_into_libs=yes
10713     dynamic_linker="$host_os dld.so"
10714     shlibpath_var=LD_LIBRARY_PATH
10715     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717     soname_spec='${libname}${release}${shared_ext}$major'
10718     if test "X$HPUX_IA64_MODE" = X32; then
10719       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10720     else
10721       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10722     fi
10723     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10724     ;;
10725   hppa*64*)
10726     shrext_cmds='.sl'
10727     hardcode_into_libs=yes
10728     dynamic_linker="$host_os dld.sl"
10729     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10730     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732     soname_spec='${libname}${release}${shared_ext}$major'
10733     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10734     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10735     ;;
10736   *)
10737     shrext_cmds='.sl'
10738     dynamic_linker="$host_os dld.sl"
10739     shlibpath_var=SHLIB_PATH
10740     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10741     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10742     soname_spec='${libname}${release}${shared_ext}$major'
10743     ;;
10744   esac
10745   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10746   postinstall_cmds='chmod 555 $lib'
10747   # or fails outright, so override atomically:
10748   install_override_mode=555
10749   ;;
10750
10751 interix[3-9]*)
10752   version_type=linux
10753   need_lib_prefix=no
10754   need_version=no
10755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10756   soname_spec='${libname}${release}${shared_ext}$major'
10757   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10758   shlibpath_var=LD_LIBRARY_PATH
10759   shlibpath_overrides_runpath=no
10760   hardcode_into_libs=yes
10761   ;;
10762
10763 irix5* | irix6* | nonstopux*)
10764   case $host_os in
10765     nonstopux*) version_type=nonstopux ;;
10766     *)
10767         if test "$lt_cv_prog_gnu_ld" = yes; then
10768                 version_type=linux
10769         else
10770                 version_type=irix
10771         fi ;;
10772   esac
10773   need_lib_prefix=no
10774   need_version=no
10775   soname_spec='${libname}${release}${shared_ext}$major'
10776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10777   case $host_os in
10778   irix5* | nonstopux*)
10779     libsuff= shlibsuff=
10780     ;;
10781   *)
10782     case $LD in # libtool.m4 will add one of these switches to LD
10783     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10784       libsuff= shlibsuff= libmagic=32-bit;;
10785     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10786       libsuff=32 shlibsuff=N32 libmagic=N32;;
10787     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10788       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10789     *) libsuff= shlibsuff= libmagic=never-match;;
10790     esac
10791     ;;
10792   esac
10793   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10794   shlibpath_overrides_runpath=no
10795   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10796   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10797   hardcode_into_libs=yes
10798   ;;
10799
10800 # No shared lib support for Linux oldld, aout, or coff.
10801 linux*oldld* | linux*aout* | linux*coff*)
10802   dynamic_linker=no
10803   ;;
10804
10805 # This must be Linux ELF.
10806 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10807   version_type=linux
10808   need_lib_prefix=no
10809   need_version=no
10810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811   soname_spec='${libname}${release}${shared_ext}$major'
10812   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10813   shlibpath_var=LD_LIBRARY_PATH
10814   shlibpath_overrides_runpath=no
10815
10816   # Some binutils ld are patched to set DT_RUNPATH
10817   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10818   $as_echo_n "(cached) " >&6
10819 else
10820   lt_cv_shlibpath_overrides_runpath=no
10821     save_LDFLAGS=$LDFLAGS
10822     save_libdir=$libdir
10823     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10824          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10825     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h.  */
10827
10828 int
10829 main ()
10830 {
10831
10832   ;
10833   return 0;
10834 }
10835 _ACEOF
10836 if ac_fn_c_try_link "$LINENO"; then :
10837   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10838   lt_cv_shlibpath_overrides_runpath=yes
10839 fi
10840 fi
10841 rm -f core conftest.err conftest.$ac_objext \
10842     conftest$ac_exeext conftest.$ac_ext
10843     LDFLAGS=$save_LDFLAGS
10844     libdir=$save_libdir
10845
10846 fi
10847
10848   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10849
10850   # This implies no fast_install, which is unacceptable.
10851   # Some rework will be needed to allow for fast_install
10852   # before this can be enabled.
10853   hardcode_into_libs=yes
10854
10855   # Append ld.so.conf contents to the search path
10856   if test -f /etc/ld.so.conf; then
10857     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' ' '`
10858     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10859   fi
10860
10861   # We used to test for /lib/ld.so.1 and disable shared libraries on
10862   # powerpc, because MkLinux only supported shared libraries with the
10863   # GNU dynamic linker.  Since this was broken with cross compilers,
10864   # most powerpc-linux boxes support dynamic linking these days and
10865   # people can always --disable-shared, the test was removed, and we
10866   # assume the GNU/Linux dynamic linker is in use.
10867   dynamic_linker='GNU/Linux ld.so'
10868   ;;
10869
10870 netbsd*)
10871   version_type=sunos
10872   need_lib_prefix=no
10873   need_version=no
10874   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10875     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10876     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10877     dynamic_linker='NetBSD (a.out) ld.so'
10878   else
10879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10880     soname_spec='${libname}${release}${shared_ext}$major'
10881     dynamic_linker='NetBSD ld.elf_so'
10882   fi
10883   shlibpath_var=LD_LIBRARY_PATH
10884   shlibpath_overrides_runpath=yes
10885   hardcode_into_libs=yes
10886   ;;
10887
10888 newsos6)
10889   version_type=linux
10890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891   shlibpath_var=LD_LIBRARY_PATH
10892   shlibpath_overrides_runpath=yes
10893   ;;
10894
10895 *nto* | *qnx*)
10896   version_type=qnx
10897   need_lib_prefix=no
10898   need_version=no
10899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900   soname_spec='${libname}${release}${shared_ext}$major'
10901   shlibpath_var=LD_LIBRARY_PATH
10902   shlibpath_overrides_runpath=no
10903   hardcode_into_libs=yes
10904   dynamic_linker='ldqnx.so'
10905   ;;
10906
10907 openbsd*)
10908   version_type=sunos
10909   sys_lib_dlsearch_path_spec="/usr/lib"
10910   need_lib_prefix=no
10911   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10912   case $host_os in
10913     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10914     *)                          need_version=no  ;;
10915   esac
10916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10917   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10918   shlibpath_var=LD_LIBRARY_PATH
10919   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10920     case $host_os in
10921       openbsd2.[89] | openbsd2.[89].*)
10922         shlibpath_overrides_runpath=no
10923         ;;
10924       *)
10925         shlibpath_overrides_runpath=yes
10926         ;;
10927       esac
10928   else
10929     shlibpath_overrides_runpath=yes
10930   fi
10931   ;;
10932
10933 os2*)
10934   libname_spec='$name'
10935   shrext_cmds=".dll"
10936   need_lib_prefix=no
10937   library_names_spec='$libname${shared_ext} $libname.a'
10938   dynamic_linker='OS/2 ld.exe'
10939   shlibpath_var=LIBPATH
10940   ;;
10941
10942 osf3* | osf4* | osf5*)
10943   version_type=osf
10944   need_lib_prefix=no
10945   need_version=no
10946   soname_spec='${libname}${release}${shared_ext}$major'
10947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948   shlibpath_var=LD_LIBRARY_PATH
10949   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10950   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10951   ;;
10952
10953 rdos*)
10954   dynamic_linker=no
10955   ;;
10956
10957 solaris*)
10958   version_type=linux
10959   need_lib_prefix=no
10960   need_version=no
10961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962   soname_spec='${libname}${release}${shared_ext}$major'
10963   shlibpath_var=LD_LIBRARY_PATH
10964   shlibpath_overrides_runpath=yes
10965   hardcode_into_libs=yes
10966   # ldd complains unless libraries are executable
10967   postinstall_cmds='chmod +x $lib'
10968   ;;
10969
10970 sunos4*)
10971   version_type=sunos
10972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10973   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10974   shlibpath_var=LD_LIBRARY_PATH
10975   shlibpath_overrides_runpath=yes
10976   if test "$with_gnu_ld" = yes; then
10977     need_lib_prefix=no
10978   fi
10979   need_version=yes
10980   ;;
10981
10982 sysv4 | sysv4.3*)
10983   version_type=linux
10984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985   soname_spec='${libname}${release}${shared_ext}$major'
10986   shlibpath_var=LD_LIBRARY_PATH
10987   case $host_vendor in
10988     sni)
10989       shlibpath_overrides_runpath=no
10990       need_lib_prefix=no
10991       runpath_var=LD_RUN_PATH
10992       ;;
10993     siemens)
10994       need_lib_prefix=no
10995       ;;
10996     motorola)
10997       need_lib_prefix=no
10998       need_version=no
10999       shlibpath_overrides_runpath=no
11000       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11001       ;;
11002   esac
11003   ;;
11004
11005 sysv4*MP*)
11006   if test -d /usr/nec ;then
11007     version_type=linux
11008     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11009     soname_spec='$libname${shared_ext}.$major'
11010     shlibpath_var=LD_LIBRARY_PATH
11011   fi
11012   ;;
11013
11014 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11015   version_type=freebsd-elf
11016   need_lib_prefix=no
11017   need_version=no
11018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11019   soname_spec='${libname}${release}${shared_ext}$major'
11020   shlibpath_var=LD_LIBRARY_PATH
11021   shlibpath_overrides_runpath=yes
11022   hardcode_into_libs=yes
11023   if test "$with_gnu_ld" = yes; then
11024     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11025   else
11026     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11027     case $host_os in
11028       sco3.2v5*)
11029         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11030         ;;
11031     esac
11032   fi
11033   sys_lib_dlsearch_path_spec='/usr/lib'
11034   ;;
11035
11036 tpf*)
11037   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11038   version_type=linux
11039   need_lib_prefix=no
11040   need_version=no
11041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042   shlibpath_var=LD_LIBRARY_PATH
11043   shlibpath_overrides_runpath=no
11044   hardcode_into_libs=yes
11045   ;;
11046
11047 uts4*)
11048   version_type=linux
11049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11050   soname_spec='${libname}${release}${shared_ext}$major'
11051   shlibpath_var=LD_LIBRARY_PATH
11052   ;;
11053
11054 *)
11055   dynamic_linker=no
11056   ;;
11057 esac
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11059 $as_echo "$dynamic_linker" >&6; }
11060 test "$dynamic_linker" = no && can_build_shared=no
11061
11062 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11063 if test "$GCC" = yes; then
11064   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11065 fi
11066
11067 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11068   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11069 fi
11070 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11071   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11072 fi
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11166 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11167 hardcode_action=
11168 if test -n "$hardcode_libdir_flag_spec" ||
11169    test -n "$runpath_var" ||
11170    test "X$hardcode_automatic" = "Xyes" ; then
11171
11172   # We can hardcode non-existent directories.
11173   if test "$hardcode_direct" != no &&
11174      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11175      # have to relink, otherwise we might link with an installed library
11176      # when we should be linking with a yet-to-be-installed one
11177      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11178      test "$hardcode_minus_L" != no; then
11179     # Linking always hardcodes the temporary library directory.
11180     hardcode_action=relink
11181   else
11182     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11183     hardcode_action=immediate
11184   fi
11185 else
11186   # We cannot hardcode anything, or else we can only hardcode existing
11187   # directories.
11188   hardcode_action=unsupported
11189 fi
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11191 $as_echo "$hardcode_action" >&6; }
11192
11193 if test "$hardcode_action" = relink ||
11194    test "$inherit_rpath" = yes; then
11195   # Fast installation is not supported
11196   enable_fast_install=no
11197 elif test "$shlibpath_overrides_runpath" = yes ||
11198      test "$enable_shared" = no; then
11199   # Fast installation is not necessary
11200   enable_fast_install=needless
11201 fi
11202
11203
11204
11205
11206
11207
11208   if test "x$enable_dlopen" != xyes; then
11209   enable_dlopen=unknown
11210   enable_dlopen_self=unknown
11211   enable_dlopen_self_static=unknown
11212 else
11213   lt_cv_dlopen=no
11214   lt_cv_dlopen_libs=
11215
11216   case $host_os in
11217   beos*)
11218     lt_cv_dlopen="load_add_on"
11219     lt_cv_dlopen_libs=
11220     lt_cv_dlopen_self=yes
11221     ;;
11222
11223   mingw* | pw32* | cegcc*)
11224     lt_cv_dlopen="LoadLibrary"
11225     lt_cv_dlopen_libs=
11226     ;;
11227
11228   cygwin*)
11229     lt_cv_dlopen="dlopen"
11230     lt_cv_dlopen_libs=
11231     ;;
11232
11233   darwin*)
11234   # if libdl is installed we need to link against it
11235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11236 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11237 if ${ac_cv_lib_dl_dlopen+:} false; then :
11238   $as_echo_n "(cached) " >&6
11239 else
11240   ac_check_lib_save_LIBS=$LIBS
11241 LIBS="-ldl  $LIBS"
11242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h.  */
11244
11245 /* Override any GCC internal prototype to avoid an error.
11246    Use char because int might match the return type of a GCC
11247    builtin and then its argument prototype would still apply.  */
11248 #ifdef __cplusplus
11249 extern "C"
11250 #endif
11251 char dlopen ();
11252 int
11253 main ()
11254 {
11255 return dlopen ();
11256   ;
11257   return 0;
11258 }
11259 _ACEOF
11260 if ac_fn_c_try_link "$LINENO"; then :
11261   ac_cv_lib_dl_dlopen=yes
11262 else
11263   ac_cv_lib_dl_dlopen=no
11264 fi
11265 rm -f core conftest.err conftest.$ac_objext \
11266     conftest$ac_exeext conftest.$ac_ext
11267 LIBS=$ac_check_lib_save_LIBS
11268 fi
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11270 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11271 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11272   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11273 else
11274
11275     lt_cv_dlopen="dyld"
11276     lt_cv_dlopen_libs=
11277     lt_cv_dlopen_self=yes
11278
11279 fi
11280
11281     ;;
11282
11283   *)
11284     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11285 if test "x$ac_cv_func_shl_load" = xyes; then :
11286   lt_cv_dlopen="shl_load"
11287 else
11288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11289 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11290 if ${ac_cv_lib_dld_shl_load+:} false; then :
11291   $as_echo_n "(cached) " >&6
11292 else
11293   ac_check_lib_save_LIBS=$LIBS
11294 LIBS="-ldld  $LIBS"
11295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h.  */
11297
11298 /* Override any GCC internal prototype to avoid an error.
11299    Use char because int might match the return type of a GCC
11300    builtin and then its argument prototype would still apply.  */
11301 #ifdef __cplusplus
11302 extern "C"
11303 #endif
11304 char shl_load ();
11305 int
11306 main ()
11307 {
11308 return shl_load ();
11309   ;
11310   return 0;
11311 }
11312 _ACEOF
11313 if ac_fn_c_try_link "$LINENO"; then :
11314   ac_cv_lib_dld_shl_load=yes
11315 else
11316   ac_cv_lib_dld_shl_load=no
11317 fi
11318 rm -f core conftest.err conftest.$ac_objext \
11319     conftest$ac_exeext conftest.$ac_ext
11320 LIBS=$ac_check_lib_save_LIBS
11321 fi
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11323 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11324 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11325   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11326 else
11327   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11328 if test "x$ac_cv_func_dlopen" = xyes; then :
11329   lt_cv_dlopen="dlopen"
11330 else
11331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11332 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11333 if ${ac_cv_lib_dl_dlopen+:} false; then :
11334   $as_echo_n "(cached) " >&6
11335 else
11336   ac_check_lib_save_LIBS=$LIBS
11337 LIBS="-ldl  $LIBS"
11338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h.  */
11340
11341 /* Override any GCC internal prototype to avoid an error.
11342    Use char because int might match the return type of a GCC
11343    builtin and then its argument prototype would still apply.  */
11344 #ifdef __cplusplus
11345 extern "C"
11346 #endif
11347 char dlopen ();
11348 int
11349 main ()
11350 {
11351 return dlopen ();
11352   ;
11353   return 0;
11354 }
11355 _ACEOF
11356 if ac_fn_c_try_link "$LINENO"; then :
11357   ac_cv_lib_dl_dlopen=yes
11358 else
11359   ac_cv_lib_dl_dlopen=no
11360 fi
11361 rm -f core conftest.err conftest.$ac_objext \
11362     conftest$ac_exeext conftest.$ac_ext
11363 LIBS=$ac_check_lib_save_LIBS
11364 fi
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11366 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11367 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11368   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11369 else
11370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11371 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11372 if ${ac_cv_lib_svld_dlopen+:} false; then :
11373   $as_echo_n "(cached) " >&6
11374 else
11375   ac_check_lib_save_LIBS=$LIBS
11376 LIBS="-lsvld  $LIBS"
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h.  */
11379
11380 /* Override any GCC internal prototype to avoid an error.
11381    Use char because int might match the return type of a GCC
11382    builtin and then its argument prototype would still apply.  */
11383 #ifdef __cplusplus
11384 extern "C"
11385 #endif
11386 char dlopen ();
11387 int
11388 main ()
11389 {
11390 return dlopen ();
11391   ;
11392   return 0;
11393 }
11394 _ACEOF
11395 if ac_fn_c_try_link "$LINENO"; then :
11396   ac_cv_lib_svld_dlopen=yes
11397 else
11398   ac_cv_lib_svld_dlopen=no
11399 fi
11400 rm -f core conftest.err conftest.$ac_objext \
11401     conftest$ac_exeext conftest.$ac_ext
11402 LIBS=$ac_check_lib_save_LIBS
11403 fi
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11405 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11406 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11407   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11408 else
11409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11410 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11411 if ${ac_cv_lib_dld_dld_link+:} false; then :
11412   $as_echo_n "(cached) " >&6
11413 else
11414   ac_check_lib_save_LIBS=$LIBS
11415 LIBS="-ldld  $LIBS"
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h.  */
11418
11419 /* Override any GCC internal prototype to avoid an error.
11420    Use char because int might match the return type of a GCC
11421    builtin and then its argument prototype would still apply.  */
11422 #ifdef __cplusplus
11423 extern "C"
11424 #endif
11425 char dld_link ();
11426 int
11427 main ()
11428 {
11429 return dld_link ();
11430   ;
11431   return 0;
11432 }
11433 _ACEOF
11434 if ac_fn_c_try_link "$LINENO"; then :
11435   ac_cv_lib_dld_dld_link=yes
11436 else
11437   ac_cv_lib_dld_dld_link=no
11438 fi
11439 rm -f core conftest.err conftest.$ac_objext \
11440     conftest$ac_exeext conftest.$ac_ext
11441 LIBS=$ac_check_lib_save_LIBS
11442 fi
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11444 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11445 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11446   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11447 fi
11448
11449
11450 fi
11451
11452
11453 fi
11454
11455
11456 fi
11457
11458
11459 fi
11460
11461
11462 fi
11463
11464     ;;
11465   esac
11466
11467   if test "x$lt_cv_dlopen" != xno; then
11468     enable_dlopen=yes
11469   else
11470     enable_dlopen=no
11471   fi
11472
11473   case $lt_cv_dlopen in
11474   dlopen)
11475     save_CPPFLAGS="$CPPFLAGS"
11476     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11477
11478     save_LDFLAGS="$LDFLAGS"
11479     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11480
11481     save_LIBS="$LIBS"
11482     LIBS="$lt_cv_dlopen_libs $LIBS"
11483
11484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11485 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11486 if ${lt_cv_dlopen_self+:} false; then :
11487   $as_echo_n "(cached) " >&6
11488 else
11489           if test "$cross_compiling" = yes; then :
11490   lt_cv_dlopen_self=cross
11491 else
11492   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11493   lt_status=$lt_dlunknown
11494   cat > conftest.$ac_ext <<_LT_EOF
11495 #line $LINENO "configure"
11496 #include "confdefs.h"
11497
11498 #if HAVE_DLFCN_H
11499 #include <dlfcn.h>
11500 #endif
11501
11502 #include <stdio.h>
11503
11504 #ifdef RTLD_GLOBAL
11505 #  define LT_DLGLOBAL           RTLD_GLOBAL
11506 #else
11507 #  ifdef DL_GLOBAL
11508 #    define LT_DLGLOBAL         DL_GLOBAL
11509 #  else
11510 #    define LT_DLGLOBAL         0
11511 #  endif
11512 #endif
11513
11514 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11515    find out it does not work in some platform. */
11516 #ifndef LT_DLLAZY_OR_NOW
11517 #  ifdef RTLD_LAZY
11518 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11519 #  else
11520 #    ifdef DL_LAZY
11521 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11522 #    else
11523 #      ifdef RTLD_NOW
11524 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11525 #      else
11526 #        ifdef DL_NOW
11527 #          define LT_DLLAZY_OR_NOW      DL_NOW
11528 #        else
11529 #          define LT_DLLAZY_OR_NOW      0
11530 #        endif
11531 #      endif
11532 #    endif
11533 #  endif
11534 #endif
11535
11536 /* When -fvisbility=hidden is used, assume the code has been annotated
11537    correspondingly for the symbols needed.  */
11538 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11539 int fnord () __attribute__((visibility("default")));
11540 #endif
11541
11542 int fnord () { return 42; }
11543 int main ()
11544 {
11545   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11546   int status = $lt_dlunknown;
11547
11548   if (self)
11549     {
11550       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11551       else
11552         {
11553           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11554           else puts (dlerror ());
11555         }
11556       /* dlclose (self); */
11557     }
11558   else
11559     puts (dlerror ());
11560
11561   return status;
11562 }
11563 _LT_EOF
11564   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11565   (eval $ac_link) 2>&5
11566   ac_status=$?
11567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11568   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11569     (./conftest; exit; ) >&5 2>/dev/null
11570     lt_status=$?
11571     case x$lt_status in
11572       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11573       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11574       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11575     esac
11576   else :
11577     # compilation failed
11578     lt_cv_dlopen_self=no
11579   fi
11580 fi
11581 rm -fr conftest*
11582
11583
11584 fi
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11586 $as_echo "$lt_cv_dlopen_self" >&6; }
11587
11588     if test "x$lt_cv_dlopen_self" = xyes; then
11589       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11590       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11591 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11592 if ${lt_cv_dlopen_self_static+:} false; then :
11593   $as_echo_n "(cached) " >&6
11594 else
11595           if test "$cross_compiling" = yes; then :
11596   lt_cv_dlopen_self_static=cross
11597 else
11598   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11599   lt_status=$lt_dlunknown
11600   cat > conftest.$ac_ext <<_LT_EOF
11601 #line $LINENO "configure"
11602 #include "confdefs.h"
11603
11604 #if HAVE_DLFCN_H
11605 #include <dlfcn.h>
11606 #endif
11607
11608 #include <stdio.h>
11609
11610 #ifdef RTLD_GLOBAL
11611 #  define LT_DLGLOBAL           RTLD_GLOBAL
11612 #else
11613 #  ifdef DL_GLOBAL
11614 #    define LT_DLGLOBAL         DL_GLOBAL
11615 #  else
11616 #    define LT_DLGLOBAL         0
11617 #  endif
11618 #endif
11619
11620 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11621    find out it does not work in some platform. */
11622 #ifndef LT_DLLAZY_OR_NOW
11623 #  ifdef RTLD_LAZY
11624 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11625 #  else
11626 #    ifdef DL_LAZY
11627 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11628 #    else
11629 #      ifdef RTLD_NOW
11630 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11631 #      else
11632 #        ifdef DL_NOW
11633 #          define LT_DLLAZY_OR_NOW      DL_NOW
11634 #        else
11635 #          define LT_DLLAZY_OR_NOW      0
11636 #        endif
11637 #      endif
11638 #    endif
11639 #  endif
11640 #endif
11641
11642 /* When -fvisbility=hidden is used, assume the code has been annotated
11643    correspondingly for the symbols needed.  */
11644 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11645 int fnord () __attribute__((visibility("default")));
11646 #endif
11647
11648 int fnord () { return 42; }
11649 int main ()
11650 {
11651   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11652   int status = $lt_dlunknown;
11653
11654   if (self)
11655     {
11656       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11657       else
11658         {
11659           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11660           else puts (dlerror ());
11661         }
11662       /* dlclose (self); */
11663     }
11664   else
11665     puts (dlerror ());
11666
11667   return status;
11668 }
11669 _LT_EOF
11670   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11671   (eval $ac_link) 2>&5
11672   ac_status=$?
11673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11674   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11675     (./conftest; exit; ) >&5 2>/dev/null
11676     lt_status=$?
11677     case x$lt_status in
11678       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11679       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11680       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11681     esac
11682   else :
11683     # compilation failed
11684     lt_cv_dlopen_self_static=no
11685   fi
11686 fi
11687 rm -fr conftest*
11688
11689
11690 fi
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11692 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11693     fi
11694
11695     CPPFLAGS="$save_CPPFLAGS"
11696     LDFLAGS="$save_LDFLAGS"
11697     LIBS="$save_LIBS"
11698     ;;
11699   esac
11700
11701   case $lt_cv_dlopen_self in
11702   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11703   *) enable_dlopen_self=unknown ;;
11704   esac
11705
11706   case $lt_cv_dlopen_self_static in
11707   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11708   *) enable_dlopen_self_static=unknown ;;
11709   esac
11710 fi
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728 striplib=
11729 old_striplib=
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11731 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11732 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11733   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11734   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11736 $as_echo "yes" >&6; }
11737 else
11738 # FIXME - insert some real tests, host_os isn't really good enough
11739   case $host_os in
11740   darwin*)
11741     if test -n "$STRIP" ; then
11742       striplib="$STRIP -x"
11743       old_striplib="$STRIP -S"
11744       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11745 $as_echo "yes" >&6; }
11746     else
11747       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748 $as_echo "no" >&6; }
11749     fi
11750     ;;
11751   *)
11752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11754     ;;
11755   esac
11756 fi
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769   # Report which library types will actually be built
11770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11771 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11773 $as_echo "$can_build_shared" >&6; }
11774
11775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11776 $as_echo_n "checking whether to build shared libraries... " >&6; }
11777   test "$can_build_shared" = "no" && enable_shared=no
11778
11779   # On AIX, shared libraries and static libraries use the same namespace, and
11780   # are all built from PIC.
11781   case $host_os in
11782   aix3*)
11783     test "$enable_shared" = yes && enable_static=no
11784     if test -n "$RANLIB"; then
11785       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11786       postinstall_cmds='$RANLIB $lib'
11787     fi
11788     ;;
11789
11790   aix[4-9]*)
11791     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11792       test "$enable_shared" = yes && enable_static=no
11793     fi
11794     ;;
11795   esac
11796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11797 $as_echo "$enable_shared" >&6; }
11798
11799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11800 $as_echo_n "checking whether to build static libraries... " >&6; }
11801   # Make sure either enable_shared or enable_static is yes.
11802   test "$enable_shared" = yes || enable_static=yes
11803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11804 $as_echo "$enable_static" >&6; }
11805
11806
11807
11808
11809 fi
11810 ac_ext=c
11811 ac_cpp='$CPP $CPPFLAGS'
11812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11815
11816 CC="$lt_save_CC"
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830         ac_config_commands="$ac_config_commands libtool"
11831
11832
11833
11834
11835 # Only expand once:
11836
11837
11838
11839
11840
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11842 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11843     # Check whether --enable-maintainer-mode was given.
11844 if test "${enable_maintainer_mode+set}" = set; then :
11845   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11846 else
11847   USE_MAINTAINER_MODE=no
11848 fi
11849
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11851 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11852    if test $USE_MAINTAINER_MODE = yes; then
11853   MAINTAINER_MODE_TRUE=
11854   MAINTAINER_MODE_FALSE='#'
11855 else
11856   MAINTAINER_MODE_TRUE='#'
11857   MAINTAINER_MODE_FALSE=
11858 fi
11859
11860   MAINT=$MAINTAINER_MODE_TRUE
11861
11862
11863
11864 for ac_header in sys/mman.h
11865 do :
11866   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11867 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
11868   cat >>confdefs.h <<_ACEOF
11869 #define HAVE_SYS_MMAN_H 1
11870 _ACEOF
11871
11872 fi
11873
11874 done
11875
11876 for ac_func in mmap
11877 do :
11878   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11879 if test "x$ac_cv_func_mmap" = xyes; then :
11880   cat >>confdefs.h <<_ACEOF
11881 #define HAVE_MMAP 1
11882 _ACEOF
11883
11884 fi
11885 done
11886
11887
11888 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11889 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
11890   libffi_header_sys_mman_h=yes
11891 else
11892   libffi_header_sys_mman_h=no
11893 fi
11894
11895
11896 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11897 if test "x$ac_cv_func_mmap" = xyes; then :
11898   libffi_func_mmap=yes
11899 else
11900   libffi_func_mmap=no
11901 fi
11902
11903 if test "$libffi_header_sys_mman_h" != yes \
11904  || test "$libffi_func_mmap" != yes; then
11905    ac_cv_func_mmap_file=no
11906    ac_cv_func_mmap_dev_zero=no
11907    ac_cv_func_mmap_anon=no
11908 else
11909    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11910 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11911 if ${ac_cv_func_mmap_file+:} false; then :
11912   $as_echo_n "(cached) " >&6
11913 else
11914   # Add a system to this blacklist if
11915    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11916    # memory area containing the same data that you'd get if you applied
11917    # read() to the same fd.  The only system known to have a problem here
11918    # is VMS, where text files have record structure.
11919    case "$host_os" in
11920      vms* | ultrix*)
11921         ac_cv_func_mmap_file=no ;;
11922      *)
11923         ac_cv_func_mmap_file=yes;;
11924    esac
11925 fi
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11927 $as_echo "$ac_cv_func_mmap_file" >&6; }
11928    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11929 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11930 if ${ac_cv_func_mmap_dev_zero+:} false; then :
11931   $as_echo_n "(cached) " >&6
11932 else
11933   # Add a system to this blacklist if it has mmap() but /dev/zero
11934    # does not exist, or if mmapping /dev/zero does not give anonymous
11935    # zeroed pages with both the following properties:
11936    # 1. If you map N consecutive pages in with one call, and then
11937    #    unmap any subset of those pages, the pages that were not
11938    #    explicitly unmapped remain accessible.
11939    # 2. If you map two adjacent blocks of memory and then unmap them
11940    #    both at once, they must both go away.
11941    # Systems known to be in this category are Windows (all variants),
11942    # VMS, and Darwin.
11943    case "$host_os" in
11944      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11945         ac_cv_func_mmap_dev_zero=no ;;
11946      *)
11947         ac_cv_func_mmap_dev_zero=yes;;
11948    esac
11949 fi
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11951 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
11952
11953    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11954    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11955 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11956 if ${ac_cv_decl_map_anon+:} false; then :
11957   $as_echo_n "(cached) " >&6
11958 else
11959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h.  */
11961 #include <sys/types.h>
11962 #include <sys/mman.h>
11963 #include <unistd.h>
11964
11965 #ifndef MAP_ANONYMOUS
11966 #define MAP_ANONYMOUS MAP_ANON
11967 #endif
11968
11969 int
11970 main ()
11971 {
11972 int n = MAP_ANONYMOUS;
11973   ;
11974   return 0;
11975 }
11976 _ACEOF
11977 if ac_fn_c_try_compile "$LINENO"; then :
11978   ac_cv_decl_map_anon=yes
11979 else
11980   ac_cv_decl_map_anon=no
11981 fi
11982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11983 fi
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11985 $as_echo "$ac_cv_decl_map_anon" >&6; }
11986
11987    if test $ac_cv_decl_map_anon = no; then
11988      ac_cv_func_mmap_anon=no
11989    else
11990      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11991 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11992 if ${ac_cv_func_mmap_anon+:} false; then :
11993   $as_echo_n "(cached) " >&6
11994 else
11995   # Add a system to this blacklist if it has mmap() and MAP_ANON or
11996    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11997    # doesn't give anonymous zeroed pages with the same properties listed
11998    # above for use of /dev/zero.
11999    # Systems known to be in this category are Windows, VMS, and SCO Unix.
12000    case "$host_os" in
12001      vms* | cygwin* | pe | mingw* | sco* | udk* )
12002         ac_cv_func_mmap_anon=no ;;
12003      *)
12004         ac_cv_func_mmap_anon=yes;;
12005    esac
12006 fi
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
12008 $as_echo "$ac_cv_func_mmap_anon" >&6; }
12009    fi
12010 fi
12011
12012 if test $ac_cv_func_mmap_file = yes; then
12013
12014 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
12015
12016 fi
12017 if test $ac_cv_func_mmap_dev_zero = yes; then
12018
12019 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
12020
12021 fi
12022 if test $ac_cv_func_mmap_anon = yes; then
12023
12024 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
12025
12026 fi
12027
12028
12029  if test -d $srcdir/testsuite; then
12030   TESTSUBDIR_TRUE=
12031   TESTSUBDIR_FALSE='#'
12032 else
12033   TESTSUBDIR_TRUE='#'
12034   TESTSUBDIR_FALSE=
12035 fi
12036
12037
12038 TARGETDIR="unknown"
12039 case "$host" in
12040   alpha*-*-*)
12041         TARGET=ALPHA; TARGETDIR=alpha;
12042         # Support 128-bit long double, changeable via command-line switch.
12043         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
12044         ;;
12045
12046   arm*-*-*)
12047         TARGET=ARM; TARGETDIR=arm
12048         ;;
12049
12050   amd64-*-freebsd* | amd64-*-openbsd*)
12051         TARGET=X86_64; TARGETDIR=x86
12052         ;;
12053
12054   amd64-*-freebsd*)
12055         TARGET=X86_64; TARGETDIR=x86
12056         ;;
12057
12058   avr32*-*-*)
12059         TARGET=AVR32; TARGETDIR=avr32
12060         ;;
12061
12062   cris-*-*)
12063         TARGET=LIBFFI_CRIS; TARGETDIR=cris
12064         ;;
12065
12066   frv-*-*)
12067         TARGET=FRV; TARGETDIR=frv
12068         ;;
12069
12070   hppa*-*-linux* | parisc*-*-linux*)
12071         TARGET=PA_LINUX; TARGETDIR=pa
12072         ;;
12073   hppa*64-*-hpux*)
12074         TARGET=PA64_HPUX; TARGETDIR=pa
12075         ;;
12076   hppa*-*-hpux*)
12077         TARGET=PA_HPUX; TARGETDIR=pa
12078         ;;
12079
12080   i?86-*-freebsd* | i?86-*-openbsd*)
12081         TARGET=X86_FREEBSD; TARGETDIR=x86
12082         ;;
12083   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
12084         TARGET=X86_WIN32; TARGETDIR=x86
12085         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
12086         # We must also check with_cross_host to decide if this is a native
12087         # or cross-build and select where to install dlls appropriately.
12088         if test -n "$with_cross_host" &&
12089            test x"$with_cross_host" != x"no"; then
12090           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
12091         else
12092           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
12093         fi
12094         ;;
12095   i?86-*-darwin*)
12096         TARGET=X86_DARWIN; TARGETDIR=x86
12097         ;;
12098   i?86-*-solaris2.1[0-9]*)
12099         TARGET=X86_64; TARGETDIR=x86
12100         ;;
12101   i?86-*-*)
12102         TARGET=X86; TARGETDIR=x86
12103         ;;
12104
12105   ia64*-*-*)
12106         TARGET=IA64; TARGETDIR=ia64
12107         ;;
12108
12109   m32r*-*-*)
12110         TARGET=M32R; TARGETDIR=m32r
12111         ;;
12112
12113   m68k-*-*)
12114         TARGET=M68K; TARGETDIR=m68k
12115         ;;
12116
12117   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
12118         TARGET=MIPS; TARGETDIR=mips
12119         ;;
12120   mips*-*-linux*)
12121         # Support 128-bit long double for NewABI.
12122         HAVE_LONG_DOUBLE='defined(__mips64)'
12123         TARGET=MIPS; TARGETDIR=mips
12124         ;;
12125
12126   powerpc*-*-linux* | powerpc-*-sysv*)
12127         TARGET=POWERPC; TARGETDIR=powerpc
12128         ;;
12129   powerpc-*-beos*)
12130         TARGET=POWERPC; TARGETDIR=powerpc
12131         ;;
12132   powerpc-*-darwin* | powerpc64-*-darwin*)
12133         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
12134         ;;
12135   powerpc-*-aix* | rs6000-*-aix*)
12136         TARGET=POWERPC_AIX; TARGETDIR=powerpc
12137         ;;
12138   powerpc-*-freebsd*)
12139         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
12140         ;;
12141   powerpc64-*-freebsd*)
12142         TARGET=POWERPC; TARGETDIR=powerpc
12143         ;;
12144   powerpc*-*-rtems*)
12145         TARGET=POWERPC; TARGETDIR=powerpc
12146         ;;
12147
12148   s390-*-* | s390x-*-*)
12149         TARGET=S390; TARGETDIR=s390
12150         ;;
12151
12152   sh-*-* | sh[34]*-*-*)
12153         TARGET=SH; TARGETDIR=sh
12154         ;;
12155   sh64-*-* | sh5*-*-*)
12156         TARGET=SH64; TARGETDIR=sh64
12157         ;;
12158
12159   sparc*-*-*)
12160         TARGET=SPARC; TARGETDIR=sparc
12161         ;;
12162
12163   x86_64-*-darwin*)
12164         TARGET=X86_DARWIN; TARGETDIR=x86
12165         ;;
12166
12167   x86_64-*-cygwin* | x86_64-*-mingw*)
12168         TARGET=X86_WIN64; TARGETDIR=x86
12169         ;;
12170
12171   x86_64-*-*)
12172         TARGET=X86_64; TARGETDIR=x86
12173         ;;
12174 esac
12175
12176
12177
12178
12179 if test $TARGETDIR = unknown; then
12180   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
12181 fi
12182
12183  if test x$TARGET = xMIPS; then
12184   MIPS_TRUE=
12185   MIPS_FALSE='#'
12186 else
12187   MIPS_TRUE='#'
12188   MIPS_FALSE=
12189 fi
12190
12191  if test x$TARGET = xSPARC; then
12192   SPARC_TRUE=
12193   SPARC_FALSE='#'
12194 else
12195   SPARC_TRUE='#'
12196   SPARC_FALSE=
12197 fi
12198
12199  if test x$TARGET = xX86; then
12200   X86_TRUE=
12201   X86_FALSE='#'
12202 else
12203   X86_TRUE='#'
12204   X86_FALSE=
12205 fi
12206
12207  if test x$TARGET = xX86_FREEBSD; then
12208   X86_FREEBSD_TRUE=
12209   X86_FREEBSD_FALSE='#'
12210 else
12211   X86_FREEBSD_TRUE='#'
12212   X86_FREEBSD_FALSE=
12213 fi
12214
12215  if test x$TARGET = xX86_WIN32; then
12216   X86_WIN32_TRUE=
12217   X86_WIN32_FALSE='#'
12218 else
12219   X86_WIN32_TRUE='#'
12220   X86_WIN32_FALSE=
12221 fi
12222
12223  if test x$TARGET = xX86_WIN64; then
12224   X86_WIN64_TRUE=
12225   X86_WIN64_FALSE='#'
12226 else
12227   X86_WIN64_TRUE='#'
12228   X86_WIN64_FALSE=
12229 fi
12230
12231  if test x$TARGET = xX86_DARWIN; then
12232   X86_DARWIN_TRUE=
12233   X86_DARWIN_FALSE='#'
12234 else
12235   X86_DARWIN_TRUE='#'
12236   X86_DARWIN_FALSE=
12237 fi
12238
12239  if test x$TARGET = xALPHA; then
12240   ALPHA_TRUE=
12241   ALPHA_FALSE='#'
12242 else
12243   ALPHA_TRUE='#'
12244   ALPHA_FALSE=
12245 fi
12246
12247  if test x$TARGET = xIA64; then
12248   IA64_TRUE=
12249   IA64_FALSE='#'
12250 else
12251   IA64_TRUE='#'
12252   IA64_FALSE=
12253 fi
12254
12255  if test x$TARGET = xM32R; then
12256   M32R_TRUE=
12257   M32R_FALSE='#'
12258 else
12259   M32R_TRUE='#'
12260   M32R_FALSE=
12261 fi
12262
12263  if test x$TARGET = xM68K; then
12264   M68K_TRUE=
12265   M68K_FALSE='#'
12266 else
12267   M68K_TRUE='#'
12268   M68K_FALSE=
12269 fi
12270
12271  if test x$TARGET = xMOXIE; then
12272   MOXIE_TRUE=
12273   MOXIE_FALSE='#'
12274 else
12275   MOXIE_TRUE='#'
12276   MOXIE_FALSE=
12277 fi
12278
12279  if test x$TARGET = xPOWERPC; then
12280   POWERPC_TRUE=
12281   POWERPC_FALSE='#'
12282 else
12283   POWERPC_TRUE='#'
12284   POWERPC_FALSE=
12285 fi
12286
12287  if test x$TARGET = xPOWERPC_AIX; then
12288   POWERPC_AIX_TRUE=
12289   POWERPC_AIX_FALSE='#'
12290 else
12291   POWERPC_AIX_TRUE='#'
12292   POWERPC_AIX_FALSE=
12293 fi
12294
12295  if test x$TARGET = xPOWERPC_DARWIN; then
12296   POWERPC_DARWIN_TRUE=
12297   POWERPC_DARWIN_FALSE='#'
12298 else
12299   POWERPC_DARWIN_TRUE='#'
12300   POWERPC_DARWIN_FALSE=
12301 fi
12302
12303  if test x$TARGET = xPOWERPC_FREEBSD; then
12304   POWERPC_FREEBSD_TRUE=
12305   POWERPC_FREEBSD_FALSE='#'
12306 else
12307   POWERPC_FREEBSD_TRUE='#'
12308   POWERPC_FREEBSD_FALSE=
12309 fi
12310
12311  if test x$TARGET = xARM; then
12312   ARM_TRUE=
12313   ARM_FALSE='#'
12314 else
12315   ARM_TRUE='#'
12316   ARM_FALSE=
12317 fi
12318
12319  if test x$TARGET = xAVR32; then
12320   AVR32_TRUE=
12321   AVR32_FALSE='#'
12322 else
12323   AVR32_TRUE='#'
12324   AVR32_FALSE=
12325 fi
12326
12327  if test x$TARGET = xLIBFFI_CRIS; then
12328   LIBFFI_CRIS_TRUE=
12329   LIBFFI_CRIS_FALSE='#'
12330 else
12331   LIBFFI_CRIS_TRUE='#'
12332   LIBFFI_CRIS_FALSE=
12333 fi
12334
12335  if test x$TARGET = xFRV; then
12336   FRV_TRUE=
12337   FRV_FALSE='#'
12338 else
12339   FRV_TRUE='#'
12340   FRV_FALSE=
12341 fi
12342
12343  if test x$TARGET = xS390; then
12344   S390_TRUE=
12345   S390_FALSE='#'
12346 else
12347   S390_TRUE='#'
12348   S390_FALSE=
12349 fi
12350
12351  if test x$TARGET = xX86_64; then
12352   X86_64_TRUE=
12353   X86_64_FALSE='#'
12354 else
12355   X86_64_TRUE='#'
12356   X86_64_FALSE=
12357 fi
12358
12359  if test x$TARGET = xSH; then
12360   SH_TRUE=
12361   SH_FALSE='#'
12362 else
12363   SH_TRUE='#'
12364   SH_FALSE=
12365 fi
12366
12367  if test x$TARGET = xSH64; then
12368   SH64_TRUE=
12369   SH64_FALSE='#'
12370 else
12371   SH64_TRUE='#'
12372   SH64_FALSE=
12373 fi
12374
12375  if test x$TARGET = xPA_LINUX; then
12376   PA_LINUX_TRUE=
12377   PA_LINUX_FALSE='#'
12378 else
12379   PA_LINUX_TRUE='#'
12380   PA_LINUX_FALSE=
12381 fi
12382
12383  if test x$TARGET = xPA_HPUX; then
12384   PA_HPUX_TRUE=
12385   PA_HPUX_FALSE='#'
12386 else
12387   PA_HPUX_TRUE='#'
12388   PA_HPUX_FALSE=
12389 fi
12390
12391  if test x$TARGET = xPA64_HPUX; then
12392   PA64_HPUX_TRUE=
12393   PA64_HPUX_FALSE='#'
12394 else
12395   PA64_HPUX_TRUE='#'
12396   PA64_HPUX_FALSE=
12397 fi
12398
12399
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12401 $as_echo_n "checking for ANSI C header files... " >&6; }
12402 if ${ac_cv_header_stdc+:} false; then :
12403   $as_echo_n "(cached) " >&6
12404 else
12405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h.  */
12407 #include <stdlib.h>
12408 #include <stdarg.h>
12409 #include <string.h>
12410 #include <float.h>
12411
12412 int
12413 main ()
12414 {
12415
12416   ;
12417   return 0;
12418 }
12419 _ACEOF
12420 if ac_fn_c_try_compile "$LINENO"; then :
12421   ac_cv_header_stdc=yes
12422 else
12423   ac_cv_header_stdc=no
12424 fi
12425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12426
12427 if test $ac_cv_header_stdc = yes; then
12428   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h.  */
12431 #include <string.h>
12432
12433 _ACEOF
12434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12435   $EGREP "memchr" >/dev/null 2>&1; then :
12436
12437 else
12438   ac_cv_header_stdc=no
12439 fi
12440 rm -f conftest*
12441
12442 fi
12443
12444 if test $ac_cv_header_stdc = yes; then
12445   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h.  */
12448 #include <stdlib.h>
12449
12450 _ACEOF
12451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12452   $EGREP "free" >/dev/null 2>&1; then :
12453
12454 else
12455   ac_cv_header_stdc=no
12456 fi
12457 rm -f conftest*
12458
12459 fi
12460
12461 if test $ac_cv_header_stdc = yes; then
12462   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12463   if test "$cross_compiling" = yes; then :
12464   :
12465 else
12466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h.  */
12468 #include <ctype.h>
12469 #include <stdlib.h>
12470 #if ((' ' & 0x0FF) == 0x020)
12471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12473 #else
12474 # define ISLOWER(c) \
12475                    (('a' <= (c) && (c) <= 'i') \
12476                      || ('j' <= (c) && (c) <= 'r') \
12477                      || ('s' <= (c) && (c) <= 'z'))
12478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12479 #endif
12480
12481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12482 int
12483 main ()
12484 {
12485   int i;
12486   for (i = 0; i < 256; i++)
12487     if (XOR (islower (i), ISLOWER (i))
12488         || toupper (i) != TOUPPER (i))
12489       return 2;
12490   return 0;
12491 }
12492 _ACEOF
12493 if ac_fn_c_try_run "$LINENO"; then :
12494
12495 else
12496   ac_cv_header_stdc=no
12497 fi
12498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12499   conftest.$ac_objext conftest.beam conftest.$ac_ext
12500 fi
12501
12502 fi
12503 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12505 $as_echo "$ac_cv_header_stdc" >&6; }
12506 if test $ac_cv_header_stdc = yes; then
12507
12508 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12509
12510 fi
12511
12512 for ac_func in memcpy
12513 do :
12514   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
12515 if test "x$ac_cv_func_memcpy" = xyes; then :
12516   cat >>confdefs.h <<_ACEOF
12517 #define HAVE_MEMCPY 1
12518 _ACEOF
12519
12520 fi
12521 done
12522
12523 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12524 if test "x$ac_cv_type_size_t" = xyes; then :
12525
12526 else
12527
12528 cat >>confdefs.h <<_ACEOF
12529 #define size_t unsigned int
12530 _ACEOF
12531
12532 fi
12533
12534 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12535 # for constant arguments.  Useless!
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12537 $as_echo_n "checking for working alloca.h... " >&6; }
12538 if ${ac_cv_working_alloca_h+:} false; then :
12539   $as_echo_n "(cached) " >&6
12540 else
12541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h.  */
12543 #include <alloca.h>
12544 int
12545 main ()
12546 {
12547 char *p = (char *) alloca (2 * sizeof (int));
12548                           if (p) return 0;
12549   ;
12550   return 0;
12551 }
12552 _ACEOF
12553 if ac_fn_c_try_link "$LINENO"; then :
12554   ac_cv_working_alloca_h=yes
12555 else
12556   ac_cv_working_alloca_h=no
12557 fi
12558 rm -f core conftest.err conftest.$ac_objext \
12559     conftest$ac_exeext conftest.$ac_ext
12560 fi
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12562 $as_echo "$ac_cv_working_alloca_h" >&6; }
12563 if test $ac_cv_working_alloca_h = yes; then
12564
12565 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12566
12567 fi
12568
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12570 $as_echo_n "checking for alloca... " >&6; }
12571 if ${ac_cv_func_alloca_works+:} false; then :
12572   $as_echo_n "(cached) " >&6
12573 else
12574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h.  */
12576 #ifdef __GNUC__
12577 # define alloca __builtin_alloca
12578 #else
12579 # ifdef _MSC_VER
12580 #  include <malloc.h>
12581 #  define alloca _alloca
12582 # else
12583 #  ifdef HAVE_ALLOCA_H
12584 #   include <alloca.h>
12585 #  else
12586 #   ifdef _AIX
12587  #pragma alloca
12588 #   else
12589 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12590 void *alloca (size_t);
12591 #    endif
12592 #   endif
12593 #  endif
12594 # endif
12595 #endif
12596
12597 int
12598 main ()
12599 {
12600 char *p = (char *) alloca (1);
12601                                     if (p) return 0;
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 if ac_fn_c_try_link "$LINENO"; then :
12607   ac_cv_func_alloca_works=yes
12608 else
12609   ac_cv_func_alloca_works=no
12610 fi
12611 rm -f core conftest.err conftest.$ac_objext \
12612     conftest$ac_exeext conftest.$ac_ext
12613 fi
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12615 $as_echo "$ac_cv_func_alloca_works" >&6; }
12616
12617 if test $ac_cv_func_alloca_works = yes; then
12618
12619 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12620
12621 else
12622   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12623 # that cause trouble.  Some versions do not even contain alloca or
12624 # contain a buggy version.  If you still want to use their alloca,
12625 # use ar to extract alloca.o from them instead of compiling alloca.c.
12626
12627 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12628
12629 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12630
12631
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12633 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12634 if ${ac_cv_os_cray+:} false; then :
12635   $as_echo_n "(cached) " >&6
12636 else
12637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h.  */
12639 #if defined CRAY && ! defined CRAY2
12640 webecray
12641 #else
12642 wenotbecray
12643 #endif
12644
12645 _ACEOF
12646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12647   $EGREP "webecray" >/dev/null 2>&1; then :
12648   ac_cv_os_cray=yes
12649 else
12650   ac_cv_os_cray=no
12651 fi
12652 rm -f conftest*
12653
12654 fi
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12656 $as_echo "$ac_cv_os_cray" >&6; }
12657 if test $ac_cv_os_cray = yes; then
12658   for ac_func in _getb67 GETB67 getb67; do
12659     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12660 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12661 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12662
12663 cat >>confdefs.h <<_ACEOF
12664 #define CRAY_STACKSEG_END $ac_func
12665 _ACEOF
12666
12667     break
12668 fi
12669
12670   done
12671 fi
12672
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12674 $as_echo_n "checking stack direction for C alloca... " >&6; }
12675 if ${ac_cv_c_stack_direction+:} false; then :
12676   $as_echo_n "(cached) " >&6
12677 else
12678   if test "$cross_compiling" = yes; then :
12679   ac_cv_c_stack_direction=0
12680 else
12681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h.  */
12683 $ac_includes_default
12684 int
12685 find_stack_direction ()
12686 {
12687   static char *addr = 0;
12688   auto char dummy;
12689   if (addr == 0)
12690     {
12691       addr = &dummy;
12692       return find_stack_direction ();
12693     }
12694   else
12695     return (&dummy > addr) ? 1 : -1;
12696 }
12697
12698 int
12699 main ()
12700 {
12701   return find_stack_direction () < 0;
12702 }
12703 _ACEOF
12704 if ac_fn_c_try_run "$LINENO"; then :
12705   ac_cv_c_stack_direction=1
12706 else
12707   ac_cv_c_stack_direction=-1
12708 fi
12709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12710   conftest.$ac_objext conftest.beam conftest.$ac_ext
12711 fi
12712
12713 fi
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12715 $as_echo "$ac_cv_c_stack_direction" >&6; }
12716 cat >>confdefs.h <<_ACEOF
12717 #define STACK_DIRECTION $ac_cv_c_stack_direction
12718 _ACEOF
12719
12720
12721 fi
12722
12723
12724 # The cast to long int works around a bug in the HP C Compiler
12725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12727 # This bug is HP SR number 8606223364.
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12729 $as_echo_n "checking size of double... " >&6; }
12730 if ${ac_cv_sizeof_double+:} false; then :
12731   $as_echo_n "(cached) " >&6
12732 else
12733   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
12734
12735 else
12736   if test "$ac_cv_type_double" = yes; then
12737      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12739 as_fn_error 77 "cannot compute sizeof (double)
12740 See \`config.log' for more details" "$LINENO" 5; }
12741    else
12742      ac_cv_sizeof_double=0
12743    fi
12744 fi
12745
12746 fi
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12748 $as_echo "$ac_cv_sizeof_double" >&6; }
12749
12750
12751
12752 cat >>confdefs.h <<_ACEOF
12753 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12754 _ACEOF
12755
12756
12757 # The cast to long int works around a bug in the HP C Compiler
12758 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12759 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12760 # This bug is HP SR number 8606223364.
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12762 $as_echo_n "checking size of long double... " >&6; }
12763 if ${ac_cv_sizeof_long_double+:} false; then :
12764   $as_echo_n "(cached) " >&6
12765 else
12766   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
12767
12768 else
12769   if test "$ac_cv_type_long_double" = yes; then
12770      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12772 as_fn_error 77 "cannot compute sizeof (long double)
12773 See \`config.log' for more details" "$LINENO" 5; }
12774    else
12775      ac_cv_sizeof_long_double=0
12776    fi
12777 fi
12778
12779 fi
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12781 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12782
12783
12784
12785 cat >>confdefs.h <<_ACEOF
12786 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12787 _ACEOF
12788
12789
12790
12791 # Also AC_SUBST this variable for ffi.h.
12792 if test -z "$HAVE_LONG_DOUBLE"; then
12793   HAVE_LONG_DOUBLE=0
12794   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12795     if test $ac_cv_sizeof_long_double != 0; then
12796       HAVE_LONG_DOUBLE=1
12797
12798 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12799
12800     fi
12801   fi
12802 fi
12803
12804
12805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12806 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12807 if ${ac_cv_c_bigendian+:} false; then :
12808   $as_echo_n "(cached) " >&6
12809 else
12810   ac_cv_c_bigendian=unknown
12811     # See if we're dealing with a universal compiler.
12812     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813 /* end confdefs.h.  */
12814 #ifndef __APPLE_CC__
12815                not a universal capable compiler
12816              #endif
12817              typedef int dummy;
12818
12819 _ACEOF
12820 if ac_fn_c_try_compile "$LINENO"; then :
12821
12822         # Check for potential -arch flags.  It is not universal unless
12823         # there are at least two -arch flags with different values.
12824         ac_arch=
12825         ac_prev=
12826         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12827          if test -n "$ac_prev"; then
12828            case $ac_word in
12829              i?86 | x86_64 | ppc | ppc64)
12830                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12831                  ac_arch=$ac_word
12832                else
12833                  ac_cv_c_bigendian=universal
12834                  break
12835                fi
12836                ;;
12837            esac
12838            ac_prev=
12839          elif test "x$ac_word" = "x-arch"; then
12840            ac_prev=arch
12841          fi
12842        done
12843 fi
12844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12845     if test $ac_cv_c_bigendian = unknown; then
12846       # See if sys/param.h defines the BYTE_ORDER macro.
12847       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h.  */
12849 #include <sys/types.h>
12850              #include <sys/param.h>
12851
12852 int
12853 main ()
12854 {
12855 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12856                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12857                      && LITTLE_ENDIAN)
12858               bogus endian macros
12859              #endif
12860
12861   ;
12862   return 0;
12863 }
12864 _ACEOF
12865 if ac_fn_c_try_compile "$LINENO"; then :
12866   # It does; now see whether it defined to BIG_ENDIAN or not.
12867          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h.  */
12869 #include <sys/types.h>
12870                 #include <sys/param.h>
12871
12872 int
12873 main ()
12874 {
12875 #if BYTE_ORDER != BIG_ENDIAN
12876                  not big endian
12877                 #endif
12878
12879   ;
12880   return 0;
12881 }
12882 _ACEOF
12883 if ac_fn_c_try_compile "$LINENO"; then :
12884   ac_cv_c_bigendian=yes
12885 else
12886   ac_cv_c_bigendian=no
12887 fi
12888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12889 fi
12890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891     fi
12892     if test $ac_cv_c_bigendian = unknown; then
12893       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12894       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h.  */
12896 #include <limits.h>
12897
12898 int
12899 main ()
12900 {
12901 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12902               bogus endian macros
12903              #endif
12904
12905   ;
12906   return 0;
12907 }
12908 _ACEOF
12909 if ac_fn_c_try_compile "$LINENO"; then :
12910   # It does; now see whether it defined to _BIG_ENDIAN or not.
12911          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h.  */
12913 #include <limits.h>
12914
12915 int
12916 main ()
12917 {
12918 #ifndef _BIG_ENDIAN
12919                  not big endian
12920                 #endif
12921
12922   ;
12923   return 0;
12924 }
12925 _ACEOF
12926 if ac_fn_c_try_compile "$LINENO"; then :
12927   ac_cv_c_bigendian=yes
12928 else
12929   ac_cv_c_bigendian=no
12930 fi
12931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12932 fi
12933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12934     fi
12935     if test $ac_cv_c_bigendian = unknown; then
12936       # Compile a test program.
12937       if test "$cross_compiling" = yes; then :
12938   # Try to guess by grepping values from an object file.
12939          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h.  */
12941 short int ascii_mm[] =
12942                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12943                 short int ascii_ii[] =
12944                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12945                 int use_ascii (int i) {
12946                   return ascii_mm[i] + ascii_ii[i];
12947                 }
12948                 short int ebcdic_ii[] =
12949                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12950                 short int ebcdic_mm[] =
12951                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12952                 int use_ebcdic (int i) {
12953                   return ebcdic_mm[i] + ebcdic_ii[i];
12954                 }
12955                 extern int foo;
12956
12957 int
12958 main ()
12959 {
12960 return use_ascii (foo) == use_ebcdic (foo);
12961   ;
12962   return 0;
12963 }
12964 _ACEOF
12965 if ac_fn_c_try_compile "$LINENO"; then :
12966   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12967               ac_cv_c_bigendian=yes
12968             fi
12969             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12970               if test "$ac_cv_c_bigendian" = unknown; then
12971                 ac_cv_c_bigendian=no
12972               else
12973                 # finding both strings is unlikely to happen, but who knows?
12974                 ac_cv_c_bigendian=unknown
12975               fi
12976             fi
12977 fi
12978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12979 else
12980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h.  */
12982 $ac_includes_default
12983 int
12984 main ()
12985 {
12986
12987              /* Are we little or big endian?  From Harbison&Steele.  */
12988              union
12989              {
12990                long int l;
12991                char c[sizeof (long int)];
12992              } u;
12993              u.l = 1;
12994              return u.c[sizeof (long int) - 1] == 1;
12995
12996   ;
12997   return 0;
12998 }
12999 _ACEOF
13000 if ac_fn_c_try_run "$LINENO"; then :
13001   ac_cv_c_bigendian=no
13002 else
13003   ac_cv_c_bigendian=yes
13004 fi
13005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13006   conftest.$ac_objext conftest.beam conftest.$ac_ext
13007 fi
13008
13009     fi
13010 fi
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13012 $as_echo "$ac_cv_c_bigendian" >&6; }
13013  case $ac_cv_c_bigendian in #(
13014    yes)
13015      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13016 ;; #(
13017    no)
13018       ;; #(
13019    universal)
13020
13021 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13022
13023      ;; #(
13024    *)
13025      as_fn_error $? "unknown endianness
13026  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13027  esac
13028
13029
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
13031 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
13032 if ${libffi_cv_as_cfi_pseudo_op+:} false; then :
13033   $as_echo_n "(cached) " >&6
13034 else
13035
13036     libffi_cv_as_cfi_pseudo_op=unknown
13037     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h.  */
13039 asm (".cfi_startproc\n\t.cfi_endproc");
13040 int
13041 main ()
13042 {
13043
13044   ;
13045   return 0;
13046 }
13047 _ACEOF
13048 if ac_fn_c_try_compile "$LINENO"; then :
13049   libffi_cv_as_cfi_pseudo_op=yes
13050 else
13051   libffi_cv_as_cfi_pseudo_op=no
13052 fi
13053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13054
13055 fi
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_cfi_pseudo_op" >&5
13057 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
13058 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
13059
13060 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
13061
13062 fi
13063
13064 if test x$TARGET = xSPARC; then
13065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
13066 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
13067 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
13068   $as_echo_n "(cached) " >&6
13069 else
13070
13071         save_CFLAGS="$CFLAGS"
13072         save_LDFLAGS="$LDFLAGS"
13073         CFLAGS="$CFLAGS -fpic"
13074         LDFLAGS="$LDFLAGS -shared"
13075         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h.  */
13077 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
13078 int
13079 main ()
13080 {
13081
13082   ;
13083   return 0;
13084 }
13085 _ACEOF
13086 if ac_fn_c_try_link "$LINENO"; then :
13087   libffi_cv_as_sparc_ua_pcrel=yes
13088 else
13089   libffi_cv_as_sparc_ua_pcrel=no
13090 fi
13091 rm -f core conftest.err conftest.$ac_objext \
13092     conftest$ac_exeext conftest.$ac_ext
13093         CFLAGS="$save_CFLAGS"
13094         LDFLAGS="$save_LDFLAGS"
13095 fi
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
13097 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
13098     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
13099
13100 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
13101
13102     fi
13103
13104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
13105 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
13106 if ${libffi_cv_as_register_pseudo_op+:} false; then :
13107   $as_echo_n "(cached) " >&6
13108 else
13109
13110        libffi_cv_as_register_pseudo_op=unknown
13111        # Check if we have .register
13112        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h.  */
13114 asm (".register %g2, #scratch");
13115 int
13116 main ()
13117 {
13118
13119   ;
13120   return 0;
13121 }
13122 _ACEOF
13123 if ac_fn_c_try_compile "$LINENO"; then :
13124   libffi_cv_as_register_pseudo_op=yes
13125 else
13126   libffi_cv_as_register_pseudo_op=no
13127 fi
13128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13129
13130 fi
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
13132 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
13133     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
13134
13135 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
13136
13137     fi
13138 fi
13139
13140 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
13141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
13142 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
13143 if ${libffi_cv_as_x86_pcrel+:} false; then :
13144   $as_echo_n "(cached) " >&6
13145 else
13146
13147         libffi_cv_as_x86_pcrel=no
13148         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
13149         if $CC $CFLAGS -c conftest.s > /dev/null; then
13150            libffi_cv_as_x86_pcrel=yes
13151         fi
13152
13153 fi
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
13155 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
13156     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
13157
13158 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
13159
13160     fi
13161
13162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
13163 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
13164 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
13165   $as_echo_n "(cached) " >&6
13166 else
13167
13168        libffi_cv_as_ascii_pseudo_op=unknown
13169        # Check if we have .ascii
13170        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h.  */
13172 asm (".ascii \\"string\\"");
13173 int
13174 main ()
13175 {
13176
13177   ;
13178   return 0;
13179 }
13180 _ACEOF
13181 if ac_fn_c_try_compile "$LINENO"; then :
13182   libffi_cv_as_ascii_pseudo_op=yes
13183 else
13184   libffi_cv_as_ascii_pseudo_op=no
13185 fi
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187
13188 fi
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
13190 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
13191     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
13192
13193 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
13194
13195     fi
13196
13197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
13198 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
13199 if ${libffi_cv_as_string_pseudo_op+:} false; then :
13200   $as_echo_n "(cached) " >&6
13201 else
13202
13203        libffi_cv_as_string_pseudo_op=unknown
13204        # Check if we have .string
13205        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h.  */
13207 asm (".string \\"string\\"");
13208 int
13209 main ()
13210 {
13211
13212   ;
13213   return 0;
13214 }
13215 _ACEOF
13216 if ac_fn_c_try_compile "$LINENO"; then :
13217   libffi_cv_as_string_pseudo_op=yes
13218 else
13219   libffi_cv_as_string_pseudo_op=no
13220 fi
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222
13223 fi
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
13225 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
13226     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
13227
13228 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
13229
13230     fi
13231 fi
13232
13233 if test x$TARGET = xX86_WIN64; then
13234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
13235 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
13236 if ${lt_cv_sys_symbol_underscore+:} false; then :
13237   $as_echo_n "(cached) " >&6
13238 else
13239   lt_cv_sys_symbol_underscore=no
13240   cat > conftest.$ac_ext <<_LT_EOF
13241 void nm_test_func(){}
13242 int main(){nm_test_func;return 0;}
13243 _LT_EOF
13244   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13245   (eval $ac_compile) 2>&5
13246   ac_status=$?
13247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13248   test $ac_status = 0; }; then
13249     # Now try to grab the symbols.
13250     ac_nlist=conftest.nm
13251     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
13252   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
13253   ac_status=$?
13254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13255   test $ac_status = 0; } && test -s "$ac_nlist"; then
13256       # See whether the symbols have a leading underscore.
13257       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
13258         lt_cv_sys_symbol_underscore=yes
13259       else
13260         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
13261           :
13262         else
13263           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
13264         fi
13265       fi
13266     else
13267       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
13268     fi
13269   else
13270     echo "configure: failed program was:" >&5
13271     cat conftest.c >&5
13272   fi
13273   rm -rf conftest*
13274
13275 fi
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
13277 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
13278   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
13279
13280
13281     if test "x$sys_symbol_underscore" = xyes; then
13282
13283 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
13284
13285     fi
13286 fi
13287
13288
13289 FFI_EXEC_TRAMPOLINE_TABLE=0
13290 case "$target" in
13291      *arm*-apple-darwin*)
13292        FFI_EXEC_TRAMPOLINE_TABLE=1
13293
13294 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
13295
13296      ;;
13297      *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
13298
13299 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
13300
13301      ;;
13302 esac
13303  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
13304   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
13305   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
13306 else
13307   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
13308   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
13309 fi
13310
13311
13312
13313 if test x$TARGET = xX86_64; then
13314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
13315 $as_echo_n "checking assembler supports unwind section type... " >&6; }
13316 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
13317   $as_echo_n "(cached) " >&6
13318 else
13319
13320         libffi_cv_as_x86_64_unwind_section_type=yes
13321         echo '.section .eh_frame,"a",@unwind' > conftest.s
13322         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
13323             libffi_cv_as_x86_64_unwind_section_type=no
13324         fi
13325
13326 fi
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
13328 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
13329     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
13330
13331 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
13332
13333     fi
13334 fi
13335
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
13337 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
13338 if ${libffi_cv_ro_eh_frame+:} false; then :
13339   $as_echo_n "(cached) " >&6
13340 else
13341
13342         libffi_cv_ro_eh_frame=no
13343         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
13344         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
13345             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
13346                 libffi_cv_ro_eh_frame=yes
13347             elif grep '.section.*eh_frame.*#alloc' conftest.c \
13348                  | grep -v '#write' > /dev/null; then
13349                 libffi_cv_ro_eh_frame=yes
13350             fi
13351         fi
13352         rm -f conftest.*
13353
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
13356 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
13357 if test "x$libffi_cv_ro_eh_frame" = xyes; then
13358
13359 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
13360
13361
13362 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
13363
13364 else
13365
13366 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
13367
13368 fi
13369
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
13371 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
13372 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
13373   $as_echo_n "(cached) " >&6
13374 else
13375
13376         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
13377         libffi_cv_hidden_visibility_attribute=no
13378         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
13379   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13380   (eval $ac_try) 2>&5
13381   ac_status=$?
13382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13383   test $ac_status = 0; }; }; then
13384             if grep '\.hidden.*foo' conftest.s >/dev/null; then
13385                 libffi_cv_hidden_visibility_attribute=yes
13386             fi
13387         fi
13388         rm -f conftest.*
13389
13390 fi
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
13392 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
13393 if test $libffi_cv_hidden_visibility_attribute = yes; then
13394
13395 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
13396
13397 fi
13398
13399
13400
13401
13402
13403
13404
13405
13406 # Check whether --enable-debug was given.
13407 if test "${enable_debug+set}" = set; then :
13408   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
13409
13410 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
13411
13412   fi
13413 fi
13414
13415  if test "$enable_debug" = "yes"; then
13416   FFI_DEBUG_TRUE=
13417   FFI_DEBUG_FALSE='#'
13418 else
13419   FFI_DEBUG_TRUE='#'
13420   FFI_DEBUG_FALSE=
13421 fi
13422
13423
13424 # Check whether --enable-structs was given.
13425 if test "${enable_structs+set}" = set; then :
13426   enableval=$enable_structs; if test "$enable_structs" = "no"; then
13427
13428 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
13429
13430   fi
13431 fi
13432
13433
13434 # Check whether --enable-raw-api was given.
13435 if test "${enable_raw_api+set}" = set; then :
13436   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
13437
13438 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
13439
13440   fi
13441 fi
13442
13443
13444 # Check whether --enable-purify-safety was given.
13445 if test "${enable_purify_safety+set}" = set; then :
13446   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
13447
13448 $as_echo "#define USING_PURIFY 1" >>confdefs.h
13449
13450   fi
13451 fi
13452
13453
13454 if test -n "$with_cross_host" &&
13455    test x"$with_cross_host" != x"no"; then
13456   toolexecdir='$(exec_prefix)/$(target_alias)'
13457   toolexeclibdir='$(toolexecdir)/lib'
13458 else
13459   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
13460   toolexeclibdir='$(libdir)'
13461 fi
13462 multi_os_directory=`$CC -print-multi-os-directory`
13463 case $multi_os_directory in
13464   .) ;; # Avoid trailing /.
13465   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
13466 esac
13467
13468
13469
13470 if test "${multilib}" = "yes"; then
13471   multilib_arg="--enable-multilib"
13472 else
13473   multilib_arg=
13474 fi
13475
13476 ac_config_commands="$ac_config_commands include"
13477
13478 ac_config_commands="$ac_config_commands src"
13479
13480
13481 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
13482
13483
13484 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
13485
13486
13487 cat >confcache <<\_ACEOF
13488 # This file is a shell script that caches the results of configure
13489 # tests run on this system so they can be shared between configure
13490 # scripts and configure runs, see configure's option --config-cache.
13491 # It is not useful on other systems.  If it contains results you don't
13492 # want to keep, you may remove or edit it.
13493 #
13494 # config.status only pays attention to the cache file if you give it
13495 # the --recheck option to rerun configure.
13496 #
13497 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13498 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13499 # following values.
13500
13501 _ACEOF
13502
13503 # The following way of writing the cache mishandles newlines in values,
13504 # but we know of no workaround that is simple, portable, and efficient.
13505 # So, we kill variables containing newlines.
13506 # Ultrix sh set writes to stderr and can't be redirected directly,
13507 # and sets the high bit in the cache file unless we assign to the vars.
13508 (
13509   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13510     eval ac_val=\$$ac_var
13511     case $ac_val in #(
13512     *${as_nl}*)
13513       case $ac_var in #(
13514       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13515 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13516       esac
13517       case $ac_var in #(
13518       _ | IFS | as_nl) ;; #(
13519       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13520       *) { eval $ac_var=; unset $ac_var;} ;;
13521       esac ;;
13522     esac
13523   done
13524
13525   (set) 2>&1 |
13526     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13527     *${as_nl}ac_space=\ *)
13528       # `set' does not quote correctly, so add quotes: double-quote
13529       # substitution turns \\\\ into \\, and sed turns \\ into \.
13530       sed -n \
13531         "s/'/'\\\\''/g;
13532           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13533       ;; #(
13534     *)
13535       # `set' quotes correctly as required by POSIX, so do not add quotes.
13536       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13537       ;;
13538     esac |
13539     sort
13540 ) |
13541   sed '
13542      /^ac_cv_env_/b end
13543      t clear
13544      :clear
13545      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13546      t end
13547      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13548      :end' >>confcache
13549 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13550   if test -w "$cache_file"; then
13551     if test "x$cache_file" != "x/dev/null"; then
13552       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13553 $as_echo "$as_me: updating cache $cache_file" >&6;}
13554       if test ! -f "$cache_file" || test -h "$cache_file"; then
13555         cat confcache >"$cache_file"
13556       else
13557         case $cache_file in #(
13558         */* | ?:*)
13559           mv -f confcache "$cache_file"$$ &&
13560           mv -f "$cache_file"$$ "$cache_file" ;; #(
13561         *)
13562           mv -f confcache "$cache_file" ;;
13563         esac
13564       fi
13565     fi
13566   else
13567     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13568 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13569   fi
13570 fi
13571 rm -f confcache
13572
13573 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13574 # Let make expand exec_prefix.
13575 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13576
13577 DEFS=-DHAVE_CONFIG_H
13578
13579 ac_libobjs=
13580 ac_ltlibobjs=
13581 U=
13582 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13583   # 1. Remove the extension, and $U if already installed.
13584   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13585   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13586   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13587   #    will be set to the directory where LIBOBJS objects are built.
13588   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13589   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13590 done
13591 LIBOBJS=$ac_libobjs
13592
13593 LTLIBOBJS=$ac_ltlibobjs
13594
13595
13596  if test -n "$EXEEXT"; then
13597   am__EXEEXT_TRUE=
13598   am__EXEEXT_FALSE='#'
13599 else
13600   am__EXEEXT_TRUE='#'
13601   am__EXEEXT_FALSE=
13602 fi
13603
13604 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13605   as_fn_error $? "conditional \"AMDEP\" was never defined.
13606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13607 fi
13608 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13609   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13611 fi
13612 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13613   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
13614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13615 fi
13616 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13617   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13619 fi
13620 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
13621   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
13622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13623 fi
13624 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
13625   as_fn_error $? "conditional \"MIPS\" was never defined.
13626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13627 fi
13628 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
13629   as_fn_error $? "conditional \"SPARC\" was never defined.
13630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13631 fi
13632 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
13633   as_fn_error $? "conditional \"X86\" was never defined.
13634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13635 fi
13636 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
13637   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
13638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13639 fi
13640 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
13641   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
13642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13643 fi
13644 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
13645   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
13646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13647 fi
13648 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
13649   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
13650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13651 fi
13652 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
13653   as_fn_error $? "conditional \"ALPHA\" was never defined.
13654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13655 fi
13656 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
13657   as_fn_error $? "conditional \"IA64\" was never defined.
13658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13659 fi
13660 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
13661   as_fn_error $? "conditional \"M32R\" was never defined.
13662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13663 fi
13664 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
13665   as_fn_error $? "conditional \"M68K\" was never defined.
13666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13667 fi
13668 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
13669   as_fn_error $? "conditional \"MOXIE\" was never defined.
13670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13671 fi
13672 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
13673   as_fn_error $? "conditional \"POWERPC\" was never defined.
13674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13675 fi
13676 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
13677   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
13678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13679 fi
13680 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
13681   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
13682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13683 fi
13684 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
13685   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
13686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13687 fi
13688 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
13689   as_fn_error $? "conditional \"ARM\" was never defined.
13690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13691 fi
13692 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
13693   as_fn_error $? "conditional \"AVR32\" was never defined.
13694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13695 fi
13696 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
13697   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
13698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13699 fi
13700 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
13701   as_fn_error $? "conditional \"FRV\" was never defined.
13702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13703 fi
13704 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
13705   as_fn_error $? "conditional \"S390\" was never defined.
13706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13707 fi
13708 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
13709   as_fn_error $? "conditional \"X86_64\" was never defined.
13710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13711 fi
13712 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
13713   as_fn_error $? "conditional \"SH\" was never defined.
13714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13715 fi
13716 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
13717   as_fn_error $? "conditional \"SH64\" was never defined.
13718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13719 fi
13720 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
13721   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
13722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13723 fi
13724 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
13725   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
13726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13727 fi
13728 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
13729   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
13730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13731 fi
13732
13733 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
13734   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
13735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13736 fi
13737 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
13738   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
13739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13740 fi
13741
13742 : "${CONFIG_STATUS=./config.status}"
13743 ac_write_fail=0
13744 ac_clean_files_save=$ac_clean_files
13745 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13747 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13748 as_write_fail=0
13749 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13750 #! $SHELL
13751 # Generated by $as_me.
13752 # Run this file to recreate the current configuration.
13753 # Compiler output produced by configure, useful for debugging
13754 # configure, is in config.log if it exists.
13755
13756 debug=false
13757 ac_cs_recheck=false
13758 ac_cs_silent=false
13759
13760 SHELL=\${CONFIG_SHELL-$SHELL}
13761 export SHELL
13762 _ASEOF
13763 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13764 ## -------------------- ##
13765 ## M4sh Initialization. ##
13766 ## -------------------- ##
13767
13768 # Be more Bourne compatible
13769 DUALCASE=1; export DUALCASE # for MKS sh
13770 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13771   emulate sh
13772   NULLCMD=:
13773   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13774   # is contrary to our usage.  Disable this feature.
13775   alias -g '${1+"$@"}'='"$@"'
13776   setopt NO_GLOB_SUBST
13777 else
13778   case `(set -o) 2>/dev/null` in #(
13779   *posix*) :
13780     set -o posix ;; #(
13781   *) :
13782      ;;
13783 esac
13784 fi
13785
13786
13787 as_nl='
13788 '
13789 export as_nl
13790 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13791 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13792 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13793 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13794 # Prefer a ksh shell builtin over an external printf program on Solaris,
13795 # but without wasting forks for bash or zsh.
13796 if test -z "$BASH_VERSION$ZSH_VERSION" \
13797     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13798   as_echo='print -r --'
13799   as_echo_n='print -rn --'
13800 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13801   as_echo='printf %s\n'
13802   as_echo_n='printf %s'
13803 else
13804   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13805     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13806     as_echo_n='/usr/ucb/echo -n'
13807   else
13808     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13809     as_echo_n_body='eval
13810       arg=$1;
13811       case $arg in #(
13812       *"$as_nl"*)
13813         expr "X$arg" : "X\\(.*\\)$as_nl";
13814         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13815       esac;
13816       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13817     '
13818     export as_echo_n_body
13819     as_echo_n='sh -c $as_echo_n_body as_echo'
13820   fi
13821   export as_echo_body
13822   as_echo='sh -c $as_echo_body as_echo'
13823 fi
13824
13825 # The user is always right.
13826 if test "${PATH_SEPARATOR+set}" != set; then
13827   PATH_SEPARATOR=:
13828   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13829     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13830       PATH_SEPARATOR=';'
13831   }
13832 fi
13833
13834
13835 # IFS
13836 # We need space, tab and new line, in precisely that order.  Quoting is
13837 # there to prevent editors from complaining about space-tab.
13838 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13839 # splitting by setting IFS to empty value.)
13840 IFS=" ""        $as_nl"
13841
13842 # Find who we are.  Look in the path if we contain no directory separator.
13843 as_myself=
13844 case $0 in #((
13845   *[\\/]* ) as_myself=$0 ;;
13846   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13847 for as_dir in $PATH
13848 do
13849   IFS=$as_save_IFS
13850   test -z "$as_dir" && as_dir=.
13851     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13852   done
13853 IFS=$as_save_IFS
13854
13855      ;;
13856 esac
13857 # We did not find ourselves, most probably we were run as `sh COMMAND'
13858 # in which case we are not to be found in the path.
13859 if test "x$as_myself" = x; then
13860   as_myself=$0
13861 fi
13862 if test ! -f "$as_myself"; then
13863   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13864   exit 1
13865 fi
13866
13867 # Unset variables that we do not need and which cause bugs (e.g. in
13868 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13869 # suppresses any "Segmentation fault" message there.  '((' could
13870 # trigger a bug in pdksh 5.2.14.
13871 for as_var in BASH_ENV ENV MAIL MAILPATH
13872 do eval test x\${$as_var+set} = xset \
13873   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13874 done
13875 PS1='$ '
13876 PS2='> '
13877 PS4='+ '
13878
13879 # NLS nuisances.
13880 LC_ALL=C
13881 export LC_ALL
13882 LANGUAGE=C
13883 export LANGUAGE
13884
13885 # CDPATH.
13886 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13887
13888
13889 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13890 # ----------------------------------------
13891 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13892 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13893 # script with STATUS, using 1 if that was 0.
13894 as_fn_error ()
13895 {
13896   as_status=$1; test $as_status -eq 0 && as_status=1
13897   if test "$4"; then
13898     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13899     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13900   fi
13901   $as_echo "$as_me: error: $2" >&2
13902   as_fn_exit $as_status
13903 } # as_fn_error
13904
13905
13906 # as_fn_set_status STATUS
13907 # -----------------------
13908 # Set $? to STATUS, without forking.
13909 as_fn_set_status ()
13910 {
13911   return $1
13912 } # as_fn_set_status
13913
13914 # as_fn_exit STATUS
13915 # -----------------
13916 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13917 as_fn_exit ()
13918 {
13919   set +e
13920   as_fn_set_status $1
13921   exit $1
13922 } # as_fn_exit
13923
13924 # as_fn_unset VAR
13925 # ---------------
13926 # Portably unset VAR.
13927 as_fn_unset ()
13928 {
13929   { eval $1=; unset $1;}
13930 }
13931 as_unset=as_fn_unset
13932 # as_fn_append VAR VALUE
13933 # ----------------------
13934 # Append the text in VALUE to the end of the definition contained in VAR. Take
13935 # advantage of any shell optimizations that allow amortized linear growth over
13936 # repeated appends, instead of the typical quadratic growth present in naive
13937 # implementations.
13938 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13939   eval 'as_fn_append ()
13940   {
13941     eval $1+=\$2
13942   }'
13943 else
13944   as_fn_append ()
13945   {
13946     eval $1=\$$1\$2
13947   }
13948 fi # as_fn_append
13949
13950 # as_fn_arith ARG...
13951 # ------------------
13952 # Perform arithmetic evaluation on the ARGs, and store the result in the
13953 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13954 # must be portable across $(()) and expr.
13955 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13956   eval 'as_fn_arith ()
13957   {
13958     as_val=$(( $* ))
13959   }'
13960 else
13961   as_fn_arith ()
13962   {
13963     as_val=`expr "$@" || test $? -eq 1`
13964   }
13965 fi # as_fn_arith
13966
13967
13968 if expr a : '\(a\)' >/dev/null 2>&1 &&
13969    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13970   as_expr=expr
13971 else
13972   as_expr=false
13973 fi
13974
13975 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13976   as_basename=basename
13977 else
13978   as_basename=false
13979 fi
13980
13981 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13982   as_dirname=dirname
13983 else
13984   as_dirname=false
13985 fi
13986
13987 as_me=`$as_basename -- "$0" ||
13988 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13989          X"$0" : 'X\(//\)$' \| \
13990          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13991 $as_echo X/"$0" |
13992     sed '/^.*\/\([^/][^/]*\)\/*$/{
13993             s//\1/
13994             q
13995           }
13996           /^X\/\(\/\/\)$/{
13997             s//\1/
13998             q
13999           }
14000           /^X\/\(\/\).*/{
14001             s//\1/
14002             q
14003           }
14004           s/.*/./; q'`
14005
14006 # Avoid depending upon Character Ranges.
14007 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14008 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14009 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14010 as_cr_digits='0123456789'
14011 as_cr_alnum=$as_cr_Letters$as_cr_digits
14012
14013 ECHO_C= ECHO_N= ECHO_T=
14014 case `echo -n x` in #(((((
14015 -n*)
14016   case `echo 'xy\c'` in
14017   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14018   xy)  ECHO_C='\c';;
14019   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14020        ECHO_T=' ';;
14021   esac;;
14022 *)
14023   ECHO_N='-n';;
14024 esac
14025
14026 rm -f conf$$ conf$$.exe conf$$.file
14027 if test -d conf$$.dir; then
14028   rm -f conf$$.dir/conf$$.file
14029 else
14030   rm -f conf$$.dir
14031   mkdir conf$$.dir 2>/dev/null
14032 fi
14033 if (echo >conf$$.file) 2>/dev/null; then
14034   if ln -s conf$$.file conf$$ 2>/dev/null; then
14035     as_ln_s='ln -s'
14036     # ... but there are two gotchas:
14037     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14038     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14039     # In both cases, we have to default to `cp -p'.
14040     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14041       as_ln_s='cp -p'
14042   elif ln conf$$.file conf$$ 2>/dev/null; then
14043     as_ln_s=ln
14044   else
14045     as_ln_s='cp -p'
14046   fi
14047 else
14048   as_ln_s='cp -p'
14049 fi
14050 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14051 rmdir conf$$.dir 2>/dev/null
14052
14053
14054 # as_fn_mkdir_p
14055 # -------------
14056 # Create "$as_dir" as a directory, including parents if necessary.
14057 as_fn_mkdir_p ()
14058 {
14059
14060   case $as_dir in #(
14061   -*) as_dir=./$as_dir;;
14062   esac
14063   test -d "$as_dir" || eval $as_mkdir_p || {
14064     as_dirs=
14065     while :; do
14066       case $as_dir in #(
14067       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14068       *) as_qdir=$as_dir;;
14069       esac
14070       as_dirs="'$as_qdir' $as_dirs"
14071       as_dir=`$as_dirname -- "$as_dir" ||
14072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14073          X"$as_dir" : 'X\(//\)[^/]' \| \
14074          X"$as_dir" : 'X\(//\)$' \| \
14075          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14076 $as_echo X"$as_dir" |
14077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14078             s//\1/
14079             q
14080           }
14081           /^X\(\/\/\)[^/].*/{
14082             s//\1/
14083             q
14084           }
14085           /^X\(\/\/\)$/{
14086             s//\1/
14087             q
14088           }
14089           /^X\(\/\).*/{
14090             s//\1/
14091             q
14092           }
14093           s/.*/./; q'`
14094       test -d "$as_dir" && break
14095     done
14096     test -z "$as_dirs" || eval "mkdir $as_dirs"
14097   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14098
14099
14100 } # as_fn_mkdir_p
14101 if mkdir -p . 2>/dev/null; then
14102   as_mkdir_p='mkdir -p "$as_dir"'
14103 else
14104   test -d ./-p && rmdir ./-p
14105   as_mkdir_p=false
14106 fi
14107
14108 if test -x / >/dev/null 2>&1; then
14109   as_test_x='test -x'
14110 else
14111   if ls -dL / >/dev/null 2>&1; then
14112     as_ls_L_option=L
14113   else
14114     as_ls_L_option=
14115   fi
14116   as_test_x='
14117     eval sh -c '\''
14118       if test -d "$1"; then
14119         test -d "$1/.";
14120       else
14121         case $1 in #(
14122         -*)set "./$1";;
14123         esac;
14124         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14125         ???[sx]*):;;*)false;;esac;fi
14126     '\'' sh
14127   '
14128 fi
14129 as_executable_p=$as_test_x
14130
14131 # Sed expression to map a string onto a valid CPP name.
14132 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14133
14134 # Sed expression to map a string onto a valid variable name.
14135 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14136
14137
14138 exec 6>&1
14139 ## ----------------------------------- ##
14140 ## Main body of $CONFIG_STATUS script. ##
14141 ## ----------------------------------- ##
14142 _ASEOF
14143 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14144
14145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14146 # Save the log message, to keep $0 and so on meaningful, and to
14147 # report actual input values of CONFIG_FILES etc. instead of their
14148 # values after options handling.
14149 ac_log="
14150 This file was extended by libffi $as_me 3.0.10rc3, which was
14151 generated by GNU Autoconf 2.68.  Invocation command line was
14152
14153   CONFIG_FILES    = $CONFIG_FILES
14154   CONFIG_HEADERS  = $CONFIG_HEADERS
14155   CONFIG_LINKS    = $CONFIG_LINKS
14156   CONFIG_COMMANDS = $CONFIG_COMMANDS
14157   $ $0 $@
14158
14159 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14160 "
14161
14162 _ACEOF
14163
14164 case $ac_config_files in *"
14165 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14166 esac
14167
14168 case $ac_config_headers in *"
14169 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14170 esac
14171
14172
14173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14174 # Files that config.status was made for.
14175 config_files="$ac_config_files"
14176 config_headers="$ac_config_headers"
14177 config_links="$ac_config_links"
14178 config_commands="$ac_config_commands"
14179
14180 _ACEOF
14181
14182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14183 ac_cs_usage="\
14184 \`$as_me' instantiates files and other configuration actions
14185 from templates according to the current configuration.  Unless the files
14186 and actions are specified as TAGs, all are instantiated by default.
14187
14188 Usage: $0 [OPTION]... [TAG]...
14189
14190   -h, --help       print this help, then exit
14191   -V, --version    print version number and configuration settings, then exit
14192       --config     print configuration, then exit
14193   -q, --quiet, --silent
14194                    do not print progress messages
14195   -d, --debug      don't remove temporary files
14196       --recheck    update $as_me by reconfiguring in the same conditions
14197       --file=FILE[:TEMPLATE]
14198                    instantiate the configuration file FILE
14199       --header=FILE[:TEMPLATE]
14200                    instantiate the configuration header FILE
14201
14202 Configuration files:
14203 $config_files
14204
14205 Configuration headers:
14206 $config_headers
14207
14208 Configuration links:
14209 $config_links
14210
14211 Configuration commands:
14212 $config_commands
14213
14214 Report bugs to <http://sourceware.org/libffi.html>."
14215
14216 _ACEOF
14217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14218 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14219 ac_cs_version="\\
14220 libffi config.status 3.0.10rc3
14221 configured by $0, generated by GNU Autoconf 2.68,
14222   with options \\"\$ac_cs_config\\"
14223
14224 Copyright (C) 2010 Free Software Foundation, Inc.
14225 This config.status script is free software; the Free Software Foundation
14226 gives unlimited permission to copy, distribute and modify it."
14227
14228 ac_pwd='$ac_pwd'
14229 srcdir='$srcdir'
14230 INSTALL='$INSTALL'
14231 MKDIR_P='$MKDIR_P'
14232 AWK='$AWK'
14233 test -n "\$AWK" || AWK=awk
14234 _ACEOF
14235
14236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14237 # The default lists apply if the user does not specify any file.
14238 ac_need_defaults=:
14239 while test $# != 0
14240 do
14241   case $1 in
14242   --*=?*)
14243     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14244     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14245     ac_shift=:
14246     ;;
14247   --*=)
14248     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14249     ac_optarg=
14250     ac_shift=:
14251     ;;
14252   *)
14253     ac_option=$1
14254     ac_optarg=$2
14255     ac_shift=shift
14256     ;;
14257   esac
14258
14259   case $ac_option in
14260   # Handling of the options.
14261   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14262     ac_cs_recheck=: ;;
14263   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14264     $as_echo "$ac_cs_version"; exit ;;
14265   --config | --confi | --conf | --con | --co | --c )
14266     $as_echo "$ac_cs_config"; exit ;;
14267   --debug | --debu | --deb | --de | --d | -d )
14268     debug=: ;;
14269   --file | --fil | --fi | --f )
14270     $ac_shift
14271     case $ac_optarg in
14272     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14273     '') as_fn_error $? "missing file argument" ;;
14274     esac
14275     as_fn_append CONFIG_FILES " '$ac_optarg'"
14276     ac_need_defaults=false;;
14277   --header | --heade | --head | --hea )
14278     $ac_shift
14279     case $ac_optarg in
14280     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14281     esac
14282     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14283     ac_need_defaults=false;;
14284   --he | --h)
14285     # Conflict between --help and --header
14286     as_fn_error $? "ambiguous option: \`$1'
14287 Try \`$0 --help' for more information.";;
14288   --help | --hel | -h )
14289     $as_echo "$ac_cs_usage"; exit ;;
14290   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14291   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14292     ac_cs_silent=: ;;
14293
14294   # This is an error.
14295   -*) as_fn_error $? "unrecognized option: \`$1'
14296 Try \`$0 --help' for more information." ;;
14297
14298   *) as_fn_append ac_config_targets " $1"
14299      ac_need_defaults=false ;;
14300
14301   esac
14302   shift
14303 done
14304
14305 ac_configure_extra_args=
14306
14307 if $ac_cs_silent; then
14308   exec 6>/dev/null
14309   ac_configure_extra_args="$ac_configure_extra_args --silent"
14310 fi
14311
14312 _ACEOF
14313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14314 if \$ac_cs_recheck; then
14315   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14316   shift
14317   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14318   CONFIG_SHELL='$SHELL'
14319   export CONFIG_SHELL
14320   exec "\$@"
14321 fi
14322
14323 _ACEOF
14324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14325 exec 5>>config.log
14326 {
14327   echo
14328   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14329 ## Running $as_me. ##
14330 _ASBOX
14331   $as_echo "$ac_log"
14332 } >&5
14333
14334 _ACEOF
14335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14336 #
14337 # INIT-COMMANDS
14338 #
14339 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14340
14341
14342 # The HP-UX ksh and POSIX shell print the target directory to stdout
14343 # if CDPATH is set.
14344 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14345
14346 sed_quote_subst='$sed_quote_subst'
14347 double_quote_subst='$double_quote_subst'
14348 delay_variable_subst='$delay_variable_subst'
14349 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14350 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14351 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14352 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14353 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14354 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14355 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14356 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14357 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14358 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14359 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14360 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14361 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14362 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14363 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14364 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14365 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14366 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14367 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14368 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14369 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14370 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14371 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14372 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14373 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14374 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14375 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14376 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14377 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14378 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14379 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14380 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14381 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14382 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14383 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14384 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14385 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14386 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14387 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14388 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14389 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14390 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14391 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14392 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14393 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14394 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14395 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14396 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14397 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14398 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14399 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14400 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14401 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14402 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14403 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14404 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"`'
14405 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14406 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14407 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14408 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14409 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14410 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14411 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14412 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14413 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14414 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14415 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14416 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14417 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14418 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14419 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14420 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14421 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14422 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14423 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14424 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14425 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14426 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14427 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14428 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14429 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14430 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14431 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14432 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14433 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14434 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14435 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14436 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14437 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14438 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14439 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14440 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14441 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14442 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14443 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14444 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14445 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14446 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14447 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14448 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14449 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14450 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14451 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14452 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14453 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14454 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14455 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14456 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14457 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14458 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14459 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14460 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14461 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14462 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14463 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14464 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14465 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14466 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14467 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14468 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14469 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14470 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14471 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14472 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14473 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14474 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14475 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14476 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14477 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14478 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14479
14480 LTCC='$LTCC'
14481 LTCFLAGS='$LTCFLAGS'
14482 compiler='$compiler_DEFAULT'
14483
14484 # A function that is used when there is no print builtin or printf.
14485 func_fallback_echo ()
14486 {
14487   eval 'cat <<_LTECHO_EOF
14488 \$1
14489 _LTECHO_EOF'
14490 }
14491
14492 # Quote evaled strings.
14493 for var in SHELL \
14494 ECHO \
14495 SED \
14496 GREP \
14497 EGREP \
14498 FGREP \
14499 LD \
14500 NM \
14501 LN_S \
14502 lt_SP2NL \
14503 lt_NL2SP \
14504 reload_flag \
14505 OBJDUMP \
14506 deplibs_check_method \
14507 file_magic_cmd \
14508 file_magic_glob \
14509 want_nocaseglob \
14510 DLLTOOL \
14511 sharedlib_from_linklib_cmd \
14512 AR \
14513 AR_FLAGS \
14514 archiver_list_spec \
14515 STRIP \
14516 RANLIB \
14517 CC \
14518 CFLAGS \
14519 compiler \
14520 lt_cv_sys_global_symbol_pipe \
14521 lt_cv_sys_global_symbol_to_cdecl \
14522 lt_cv_sys_global_symbol_to_c_name_address \
14523 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14524 nm_file_list_spec \
14525 lt_prog_compiler_no_builtin_flag \
14526 lt_prog_compiler_pic \
14527 lt_prog_compiler_wl \
14528 lt_prog_compiler_static \
14529 lt_cv_prog_compiler_c_o \
14530 need_locks \
14531 MANIFEST_TOOL \
14532 DSYMUTIL \
14533 NMEDIT \
14534 LIPO \
14535 OTOOL \
14536 OTOOL64 \
14537 shrext_cmds \
14538 export_dynamic_flag_spec \
14539 whole_archive_flag_spec \
14540 compiler_needs_object \
14541 with_gnu_ld \
14542 allow_undefined_flag \
14543 no_undefined_flag \
14544 hardcode_libdir_flag_spec \
14545 hardcode_libdir_flag_spec_ld \
14546 hardcode_libdir_separator \
14547 exclude_expsyms \
14548 include_expsyms \
14549 file_list_spec \
14550 variables_saved_for_relink \
14551 libname_spec \
14552 library_names_spec \
14553 soname_spec \
14554 install_override_mode \
14555 finish_eval \
14556 old_striplib \
14557 striplib; do
14558     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14559     *[\\\\\\\`\\"\\\$]*)
14560       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14561       ;;
14562     *)
14563       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14564       ;;
14565     esac
14566 done
14567
14568 # Double-quote double-evaled strings.
14569 for var in reload_cmds \
14570 old_postinstall_cmds \
14571 old_postuninstall_cmds \
14572 old_archive_cmds \
14573 extract_expsyms_cmds \
14574 old_archive_from_new_cmds \
14575 old_archive_from_expsyms_cmds \
14576 archive_cmds \
14577 archive_expsym_cmds \
14578 module_cmds \
14579 module_expsym_cmds \
14580 export_symbols_cmds \
14581 prelink_cmds \
14582 postlink_cmds \
14583 postinstall_cmds \
14584 postuninstall_cmds \
14585 finish_cmds \
14586 sys_lib_search_path_spec \
14587 sys_lib_dlsearch_path_spec; do
14588     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14589     *[\\\\\\\`\\"\\\$]*)
14590       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14591       ;;
14592     *)
14593       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14594       ;;
14595     esac
14596 done
14597
14598 ac_aux_dir='$ac_aux_dir'
14599 xsi_shell='$xsi_shell'
14600 lt_shell_append='$lt_shell_append'
14601
14602 # See if we are running on zsh, and set the options which allow our
14603 # commands through without removal of \ escapes INIT.
14604 if test -n "\${ZSH_VERSION+set}" ; then
14605    setopt NO_GLOB_SUBST
14606 fi
14607
14608
14609     PACKAGE='$PACKAGE'
14610     VERSION='$VERSION'
14611     TIMESTAMP='$TIMESTAMP'
14612     RM='$RM'
14613     ofile='$ofile'
14614
14615
14616
14617 TARGETDIR="$TARGETDIR"
14618
14619 _ACEOF
14620
14621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14622
14623 # Handling of arguments.
14624 for ac_config_target in $ac_config_targets
14625 do
14626   case $ac_config_target in
14627     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
14628     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14629     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14630     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
14631     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
14632     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
14633     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14634     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
14635     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14636     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14637     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14638     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
14639
14640   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14641   esac
14642 done
14643
14644
14645 # If the user did not use the arguments to specify the items to instantiate,
14646 # then the envvar interface is used.  Set only those that are not.
14647 # We use the long form for the default assignment because of an extremely
14648 # bizarre bug on SunOS 4.1.3.
14649 if $ac_need_defaults; then
14650   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14651   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14652   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14653   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14654 fi
14655
14656 # Have a temporary directory for convenience.  Make it in the build tree
14657 # simply because there is no reason against having it here, and in addition,
14658 # creating and moving files from /tmp can sometimes cause problems.
14659 # Hook for its removal unless debugging.
14660 # Note that there is a small window in which the directory will not be cleaned:
14661 # after its creation but before its name has been assigned to `$tmp'.
14662 $debug ||
14663 {
14664   tmp= ac_tmp=
14665   trap 'exit_status=$?
14666   : "${ac_tmp:=$tmp}"
14667   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14668 ' 0
14669   trap 'as_fn_exit 1' 1 2 13 15
14670 }
14671 # Create a (secure) tmp directory for tmp files.
14672
14673 {
14674   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14675   test -d "$tmp"
14676 }  ||
14677 {
14678   tmp=./conf$$-$RANDOM
14679   (umask 077 && mkdir "$tmp")
14680 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14681 ac_tmp=$tmp
14682
14683 # Set up the scripts for CONFIG_FILES section.
14684 # No need to generate them if there are no CONFIG_FILES.
14685 # This happens for instance with `./config.status config.h'.
14686 if test -n "$CONFIG_FILES"; then
14687
14688
14689 ac_cr=`echo X | tr X '\015'`
14690 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14691 # But we know of no other shell where ac_cr would be empty at this
14692 # point, so we can use a bashism as a fallback.
14693 if test "x$ac_cr" = x; then
14694   eval ac_cr=\$\'\\r\'
14695 fi
14696 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14697 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14698   ac_cs_awk_cr='\\r'
14699 else
14700   ac_cs_awk_cr=$ac_cr
14701 fi
14702
14703 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14704 _ACEOF
14705
14706
14707 {
14708   echo "cat >conf$$subs.awk <<_ACEOF" &&
14709   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14710   echo "_ACEOF"
14711 } >conf$$subs.sh ||
14712   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14713 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14714 ac_delim='%!_!# '
14715 for ac_last_try in false false false false false :; do
14716   . ./conf$$subs.sh ||
14717     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14718
14719   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14720   if test $ac_delim_n = $ac_delim_num; then
14721     break
14722   elif $ac_last_try; then
14723     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14724   else
14725     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14726   fi
14727 done
14728 rm -f conf$$subs.sh
14729
14730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14731 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14732 _ACEOF
14733 sed -n '
14734 h
14735 s/^/S["/; s/!.*/"]=/
14736 p
14737 g
14738 s/^[^!]*!//
14739 :repl
14740 t repl
14741 s/'"$ac_delim"'$//
14742 t delim
14743 :nl
14744 h
14745 s/\(.\{148\}\)..*/\1/
14746 t more1
14747 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14748 p
14749 n
14750 b repl
14751 :more1
14752 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14753 p
14754 g
14755 s/.\{148\}//
14756 t nl
14757 :delim
14758 h
14759 s/\(.\{148\}\)..*/\1/
14760 t more2
14761 s/["\\]/\\&/g; s/^/"/; s/$/"/
14762 p
14763 b
14764 :more2
14765 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14766 p
14767 g
14768 s/.\{148\}//
14769 t delim
14770 ' <conf$$subs.awk | sed '
14771 /^[^""]/{
14772   N
14773   s/\n//
14774 }
14775 ' >>$CONFIG_STATUS || ac_write_fail=1
14776 rm -f conf$$subs.awk
14777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14778 _ACAWK
14779 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14780   for (key in S) S_is_set[key] = 1
14781   FS = "\a"
14782
14783 }
14784 {
14785   line = $ 0
14786   nfields = split(line, field, "@")
14787   substed = 0
14788   len = length(field[1])
14789   for (i = 2; i < nfields; i++) {
14790     key = field[i]
14791     keylen = length(key)
14792     if (S_is_set[key]) {
14793       value = S[key]
14794       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14795       len += length(value) + length(field[++i])
14796       substed = 1
14797     } else
14798       len += 1 + keylen
14799   }
14800
14801   print line
14802 }
14803
14804 _ACAWK
14805 _ACEOF
14806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14807 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14808   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14809 else
14810   cat
14811 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14812   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14813 _ACEOF
14814
14815 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14816 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14817 # trailing colons and then remove the whole line if VPATH becomes empty
14818 # (actually we leave an empty line to preserve line numbers).
14819 if test "x$srcdir" = x.; then
14820   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14821 h
14822 s///
14823 s/^/:/
14824 s/[      ]*$/:/
14825 s/:\$(srcdir):/:/g
14826 s/:\${srcdir}:/:/g
14827 s/:@srcdir@:/:/g
14828 s/^:*//
14829 s/:*$//
14830 x
14831 s/\(=[   ]*\).*/\1/
14832 G
14833 s/\n//
14834 s/^[^=]*=[       ]*$//
14835 }'
14836 fi
14837
14838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14839 fi # test -n "$CONFIG_FILES"
14840
14841 # Set up the scripts for CONFIG_HEADERS section.
14842 # No need to generate them if there are no CONFIG_HEADERS.
14843 # This happens for instance with `./config.status Makefile'.
14844 if test -n "$CONFIG_HEADERS"; then
14845 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14846 BEGIN {
14847 _ACEOF
14848
14849 # Transform confdefs.h into an awk script `defines.awk', embedded as
14850 # here-document in config.status, that substitutes the proper values into
14851 # config.h.in to produce config.h.
14852
14853 # Create a delimiter string that does not exist in confdefs.h, to ease
14854 # handling of long lines.
14855 ac_delim='%!_!# '
14856 for ac_last_try in false false :; do
14857   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14858   if test -z "$ac_tt"; then
14859     break
14860   elif $ac_last_try; then
14861     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14862   else
14863     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14864   fi
14865 done
14866
14867 # For the awk script, D is an array of macro values keyed by name,
14868 # likewise P contains macro parameters if any.  Preserve backslash
14869 # newline sequences.
14870
14871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14872 sed -n '
14873 s/.\{148\}/&'"$ac_delim"'/g
14874 t rset
14875 :rset
14876 s/^[     ]*#[    ]*define[       ][      ]*/ /
14877 t def
14878 d
14879 :def
14880 s/\\$//
14881 t bsnl
14882 s/["\\]/\\&/g
14883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14884 D["\1"]=" \3"/p
14885 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14886 d
14887 :bsnl
14888 s/["\\]/\\&/g
14889 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14890 D["\1"]=" \3\\\\\\n"\\/p
14891 t cont
14892 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14893 t cont
14894 d
14895 :cont
14896 n
14897 s/.\{148\}/&'"$ac_delim"'/g
14898 t clear
14899 :clear
14900 s/\\$//
14901 t bsnlc
14902 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14903 d
14904 :bsnlc
14905 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14906 b cont
14907 ' <confdefs.h | sed '
14908 s/'"$ac_delim"'/"\\\
14909 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14910
14911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14912   for (key in D) D_is_set[key] = 1
14913   FS = "\a"
14914 }
14915 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14916   line = \$ 0
14917   split(line, arg, " ")
14918   if (arg[1] == "#") {
14919     defundef = arg[2]
14920     mac1 = arg[3]
14921   } else {
14922     defundef = substr(arg[1], 2)
14923     mac1 = arg[2]
14924   }
14925   split(mac1, mac2, "(") #)
14926   macro = mac2[1]
14927   prefix = substr(line, 1, index(line, defundef) - 1)
14928   if (D_is_set[macro]) {
14929     # Preserve the white space surrounding the "#".
14930     print prefix "define", macro P[macro] D[macro]
14931     next
14932   } else {
14933     # Replace #undef with comments.  This is necessary, for example,
14934     # in the case of _POSIX_SOURCE, which is predefined and required
14935     # on some systems where configure will not decide to define it.
14936     if (defundef == "undef") {
14937       print "/*", prefix defundef, macro, "*/"
14938       next
14939     }
14940   }
14941 }
14942 { print }
14943 _ACAWK
14944 _ACEOF
14945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14946   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14947 fi # test -n "$CONFIG_HEADERS"
14948
14949
14950 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
14951 shift
14952 for ac_tag
14953 do
14954   case $ac_tag in
14955   :[FHLC]) ac_mode=$ac_tag; continue;;
14956   esac
14957   case $ac_mode$ac_tag in
14958   :[FHL]*:*);;
14959   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14960   :[FH]-) ac_tag=-:-;;
14961   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14962   esac
14963   ac_save_IFS=$IFS
14964   IFS=:
14965   set x $ac_tag
14966   IFS=$ac_save_IFS
14967   shift
14968   ac_file=$1
14969   shift
14970
14971   case $ac_mode in
14972   :L) ac_source=$1;;
14973   :[FH])
14974     ac_file_inputs=
14975     for ac_f
14976     do
14977       case $ac_f in
14978       -) ac_f="$ac_tmp/stdin";;
14979       *) # Look for the file first in the build tree, then in the source tree
14980          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14981          # because $ac_f cannot contain `:'.
14982          test -f "$ac_f" ||
14983            case $ac_f in
14984            [\\/$]*) false;;
14985            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14986            esac ||
14987            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14988       esac
14989       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14990       as_fn_append ac_file_inputs " '$ac_f'"
14991     done
14992
14993     # Let's still pretend it is `configure' which instantiates (i.e., don't
14994     # use $as_me), people would be surprised to read:
14995     #    /* config.h.  Generated by config.status.  */
14996     configure_input='Generated from '`
14997           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14998         `' by configure.'
14999     if test x"$ac_file" != x-; then
15000       configure_input="$ac_file.  $configure_input"
15001       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15002 $as_echo "$as_me: creating $ac_file" >&6;}
15003     fi
15004     # Neutralize special characters interpreted by sed in replacement strings.
15005     case $configure_input in #(
15006     *\&* | *\|* | *\\* )
15007        ac_sed_conf_input=`$as_echo "$configure_input" |
15008        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15009     *) ac_sed_conf_input=$configure_input;;
15010     esac
15011
15012     case $ac_tag in
15013     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15014       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15015     esac
15016     ;;
15017   esac
15018
15019   ac_dir=`$as_dirname -- "$ac_file" ||
15020 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15021          X"$ac_file" : 'X\(//\)[^/]' \| \
15022          X"$ac_file" : 'X\(//\)$' \| \
15023          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15024 $as_echo X"$ac_file" |
15025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15026             s//\1/
15027             q
15028           }
15029           /^X\(\/\/\)[^/].*/{
15030             s//\1/
15031             q
15032           }
15033           /^X\(\/\/\)$/{
15034             s//\1/
15035             q
15036           }
15037           /^X\(\/\).*/{
15038             s//\1/
15039             q
15040           }
15041           s/.*/./; q'`
15042   as_dir="$ac_dir"; as_fn_mkdir_p
15043   ac_builddir=.
15044
15045 case "$ac_dir" in
15046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15047 *)
15048   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15049   # A ".." for each directory in $ac_dir_suffix.
15050   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15051   case $ac_top_builddir_sub in
15052   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15053   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15054   esac ;;
15055 esac
15056 ac_abs_top_builddir=$ac_pwd
15057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15058 # for backward compatibility:
15059 ac_top_builddir=$ac_top_build_prefix
15060
15061 case $srcdir in
15062   .)  # We are building in place.
15063     ac_srcdir=.
15064     ac_top_srcdir=$ac_top_builddir_sub
15065     ac_abs_top_srcdir=$ac_pwd ;;
15066   [\\/]* | ?:[\\/]* )  # Absolute name.
15067     ac_srcdir=$srcdir$ac_dir_suffix;
15068     ac_top_srcdir=$srcdir
15069     ac_abs_top_srcdir=$srcdir ;;
15070   *) # Relative name.
15071     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15072     ac_top_srcdir=$ac_top_build_prefix$srcdir
15073     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15074 esac
15075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15076
15077
15078   case $ac_mode in
15079   :F)
15080   #
15081   # CONFIG_FILE
15082   #
15083
15084   case $INSTALL in
15085   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15086   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15087   esac
15088   ac_MKDIR_P=$MKDIR_P
15089   case $MKDIR_P in
15090   [\\/$]* | ?:[\\/]* ) ;;
15091   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15092   esac
15093 _ACEOF
15094
15095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15096 # If the template does not know about datarootdir, expand it.
15097 # FIXME: This hack should be removed a few years after 2.60.
15098 ac_datarootdir_hack=; ac_datarootdir_seen=
15099 ac_sed_dataroot='
15100 /datarootdir/ {
15101   p
15102   q
15103 }
15104 /@datadir@/p
15105 /@docdir@/p
15106 /@infodir@/p
15107 /@localedir@/p
15108 /@mandir@/p'
15109 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15110 *datarootdir*) ac_datarootdir_seen=yes;;
15111 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15112   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15113 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15114 _ACEOF
15115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15116   ac_datarootdir_hack='
15117   s&@datadir@&$datadir&g
15118   s&@docdir@&$docdir&g
15119   s&@infodir@&$infodir&g
15120   s&@localedir@&$localedir&g
15121   s&@mandir@&$mandir&g
15122   s&\\\${datarootdir}&$datarootdir&g' ;;
15123 esac
15124 _ACEOF
15125
15126 # Neutralize VPATH when `$srcdir' = `.'.
15127 # Shell code in configure.ac might set extrasub.
15128 # FIXME: do we really want to maintain this feature?
15129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15130 ac_sed_extra="$ac_vpsub
15131 $extrasub
15132 _ACEOF
15133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15134 :t
15135 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15136 s|@configure_input@|$ac_sed_conf_input|;t t
15137 s&@top_builddir@&$ac_top_builddir_sub&;t t
15138 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15139 s&@srcdir@&$ac_srcdir&;t t
15140 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15141 s&@top_srcdir@&$ac_top_srcdir&;t t
15142 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15143 s&@builddir@&$ac_builddir&;t t
15144 s&@abs_builddir@&$ac_abs_builddir&;t t
15145 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15146 s&@INSTALL@&$ac_INSTALL&;t t
15147 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15148 $ac_datarootdir_hack
15149 "
15150 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15151   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15152
15153 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15154   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15155   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15156       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15157   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15158 which seems to be undefined.  Please make sure it is defined" >&5
15159 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15160 which seems to be undefined.  Please make sure it is defined" >&2;}
15161
15162   rm -f "$ac_tmp/stdin"
15163   case $ac_file in
15164   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15165   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15166   esac \
15167   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15168  ;;
15169   :H)
15170   #
15171   # CONFIG_HEADER
15172   #
15173   if test x"$ac_file" != x-; then
15174     {
15175       $as_echo "/* $configure_input  */" \
15176       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15177     } >"$ac_tmp/config.h" \
15178       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15179     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15180       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15181 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15182     else
15183       rm -f "$ac_file"
15184       mv "$ac_tmp/config.h" "$ac_file" \
15185         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15186     fi
15187   else
15188     $as_echo "/* $configure_input  */" \
15189       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15190       || as_fn_error $? "could not create -" "$LINENO" 5
15191   fi
15192 # Compute "$ac_file"'s index in $config_headers.
15193 _am_arg="$ac_file"
15194 _am_stamp_count=1
15195 for _am_header in $config_headers :; do
15196   case $_am_header in
15197     $_am_arg | $_am_arg:* )
15198       break ;;
15199     * )
15200       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15201   esac
15202 done
15203 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15204 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15205          X"$_am_arg" : 'X\(//\)[^/]' \| \
15206          X"$_am_arg" : 'X\(//\)$' \| \
15207          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15208 $as_echo X"$_am_arg" |
15209     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15210             s//\1/
15211             q
15212           }
15213           /^X\(\/\/\)[^/].*/{
15214             s//\1/
15215             q
15216           }
15217           /^X\(\/\/\)$/{
15218             s//\1/
15219             q
15220           }
15221           /^X\(\/\).*/{
15222             s//\1/
15223             q
15224           }
15225           s/.*/./; q'`/stamp-h$_am_stamp_count
15226  ;;
15227   :L)
15228   #
15229   # CONFIG_LINK
15230   #
15231
15232   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15233     :
15234   else
15235     # Prefer the file from the source tree if names are identical.
15236     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15237       ac_source=$srcdir/$ac_source
15238     fi
15239
15240     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15241 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15242
15243     if test ! -r "$ac_source"; then
15244       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
15245     fi
15246     rm -f "$ac_file"
15247
15248     # Try a relative symlink, then a hard link, then a copy.
15249     case $ac_source in
15250     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15251         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15252     esac
15253     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15254       ln "$ac_source" "$ac_file" 2>/dev/null ||
15255       cp -p "$ac_source" "$ac_file" ||
15256       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15257   fi
15258  ;;
15259   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15260 $as_echo "$as_me: executing $ac_file commands" >&6;}
15261  ;;
15262   esac
15263
15264
15265   case $ac_file$ac_mode in
15266     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15267   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15268   # are listed without --file.  Let's play safe and only enable the eval
15269   # if we detect the quoting.
15270   case $CONFIG_FILES in
15271   *\'*) eval set x "$CONFIG_FILES" ;;
15272   *)   set x $CONFIG_FILES ;;
15273   esac
15274   shift
15275   for mf
15276   do
15277     # Strip MF so we end up with the name of the file.
15278     mf=`echo "$mf" | sed -e 's/:.*$//'`
15279     # Check whether this is an Automake generated Makefile or not.
15280     # We used to match only the files named `Makefile.in', but
15281     # some people rename them; so instead we look at the file content.
15282     # Grep'ing the first line is not enough: some people post-process
15283     # each Makefile.in and add a new line on top of each file to say so.
15284     # Grep'ing the whole file is not good either: AIX grep has a line
15285     # limit of 2048, but all sed's we know have understand at least 4000.
15286     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15287       dirpart=`$as_dirname -- "$mf" ||
15288 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15289          X"$mf" : 'X\(//\)[^/]' \| \
15290          X"$mf" : 'X\(//\)$' \| \
15291          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15292 $as_echo X"$mf" |
15293     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15294             s//\1/
15295             q
15296           }
15297           /^X\(\/\/\)[^/].*/{
15298             s//\1/
15299             q
15300           }
15301           /^X\(\/\/\)$/{
15302             s//\1/
15303             q
15304           }
15305           /^X\(\/\).*/{
15306             s//\1/
15307             q
15308           }
15309           s/.*/./; q'`
15310     else
15311       continue
15312     fi
15313     # Extract the definition of DEPDIR, am__include, and am__quote
15314     # from the Makefile without running `make'.
15315     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15316     test -z "$DEPDIR" && continue
15317     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15318     test -z "am__include" && continue
15319     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15320     # When using ansi2knr, U may be empty or an underscore; expand it
15321     U=`sed -n 's/^U = //p' < "$mf"`
15322     # Find all dependency output files, they are included files with
15323     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15324     # simplest approach to changing $(DEPDIR) to its actual value in the
15325     # expansion.
15326     for file in `sed -n "
15327       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15328          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15329       # Make sure the directory exists.
15330       test -f "$dirpart/$file" && continue
15331       fdir=`$as_dirname -- "$file" ||
15332 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15333          X"$file" : 'X\(//\)[^/]' \| \
15334          X"$file" : 'X\(//\)$' \| \
15335          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15336 $as_echo X"$file" |
15337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15338             s//\1/
15339             q
15340           }
15341           /^X\(\/\/\)[^/].*/{
15342             s//\1/
15343             q
15344           }
15345           /^X\(\/\/\)$/{
15346             s//\1/
15347             q
15348           }
15349           /^X\(\/\).*/{
15350             s//\1/
15351             q
15352           }
15353           s/.*/./; q'`
15354       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15355       # echo "creating $dirpart/$file"
15356       echo '# dummy' > "$dirpart/$file"
15357     done
15358   done
15359 }
15360  ;;
15361     "libtool":C)
15362
15363     # See if we are running on zsh, and set the options which allow our
15364     # commands through without removal of \ escapes.
15365     if test -n "${ZSH_VERSION+set}" ; then
15366       setopt NO_GLOB_SUBST
15367     fi
15368
15369     cfgfile="${ofile}T"
15370     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15371     $RM "$cfgfile"
15372
15373     cat <<_LT_EOF >> "$cfgfile"
15374 #! $SHELL
15375
15376 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15377 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15378 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15379 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15380 #
15381 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15382 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15383 #                 Inc.
15384 #   Written by Gordon Matzigkeit, 1996
15385 #
15386 #   This file is part of GNU Libtool.
15387 #
15388 # GNU Libtool is free software; you can redistribute it and/or
15389 # modify it under the terms of the GNU General Public License as
15390 # published by the Free Software Foundation; either version 2 of
15391 # the License, or (at your option) any later version.
15392 #
15393 # As a special exception to the GNU General Public License,
15394 # if you distribute this file as part of a program or library that
15395 # is built using GNU Libtool, you may include this file under the
15396 # same distribution terms that you use for the rest of that program.
15397 #
15398 # GNU Libtool is distributed in the hope that it will be useful,
15399 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15400 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15401 # GNU General Public License for more details.
15402 #
15403 # You should have received a copy of the GNU General Public License
15404 # along with GNU Libtool; see the file COPYING.  If not, a copy
15405 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15406 # obtained by writing to the Free Software Foundation, Inc.,
15407 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15408
15409
15410 # The names of the tagged configurations supported by this script.
15411 available_tags=""
15412
15413 # ### BEGIN LIBTOOL CONFIG
15414
15415 # Which release of libtool.m4 was used?
15416 macro_version=$macro_version
15417 macro_revision=$macro_revision
15418
15419 # Whether or not to build shared libraries.
15420 build_libtool_libs=$enable_shared
15421
15422 # Whether or not to build static libraries.
15423 build_old_libs=$enable_static
15424
15425 # What type of objects to build.
15426 pic_mode=$pic_mode
15427
15428 # Whether or not to optimize for fast installation.
15429 fast_install=$enable_fast_install
15430
15431 # Shell to use when invoking shell scripts.
15432 SHELL=$lt_SHELL
15433
15434 # An echo program that protects backslashes.
15435 ECHO=$lt_ECHO
15436
15437 # The host system.
15438 host_alias=$host_alias
15439 host=$host
15440 host_os=$host_os
15441
15442 # The build system.
15443 build_alias=$build_alias
15444 build=$build
15445 build_os=$build_os
15446
15447 # A sed program that does not truncate output.
15448 SED=$lt_SED
15449
15450 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15451 Xsed="\$SED -e 1s/^X//"
15452
15453 # A grep program that handles long lines.
15454 GREP=$lt_GREP
15455
15456 # An ERE matcher.
15457 EGREP=$lt_EGREP
15458
15459 # A literal string matcher.
15460 FGREP=$lt_FGREP
15461
15462 # A BSD- or MS-compatible name lister.
15463 NM=$lt_NM
15464
15465 # Whether we need soft or hard links.
15466 LN_S=$lt_LN_S
15467
15468 # What is the maximum length of a command?
15469 max_cmd_len=$max_cmd_len
15470
15471 # Object file suffix (normally "o").
15472 objext=$ac_objext
15473
15474 # Executable file suffix (normally "").
15475 exeext=$exeext
15476
15477 # whether the shell understands "unset".
15478 lt_unset=$lt_unset
15479
15480 # turn spaces into newlines.
15481 SP2NL=$lt_lt_SP2NL
15482
15483 # turn newlines into spaces.
15484 NL2SP=$lt_lt_NL2SP
15485
15486 # convert \$build file names to \$host format.
15487 to_host_file_cmd=$lt_cv_to_host_file_cmd
15488
15489 # convert \$build files to toolchain format.
15490 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15491
15492 # An object symbol dumper.
15493 OBJDUMP=$lt_OBJDUMP
15494
15495 # Method to check whether dependent libraries are shared objects.
15496 deplibs_check_method=$lt_deplibs_check_method
15497
15498 # Command to use when deplibs_check_method = "file_magic".
15499 file_magic_cmd=$lt_file_magic_cmd
15500
15501 # How to find potential files when deplibs_check_method = "file_magic".
15502 file_magic_glob=$lt_file_magic_glob
15503
15504 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15505 want_nocaseglob=$lt_want_nocaseglob
15506
15507 # DLL creation program.
15508 DLLTOOL=$lt_DLLTOOL
15509
15510 # Command to associate shared and link libraries.
15511 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15512
15513 # The archiver.
15514 AR=$lt_AR
15515
15516 # Flags to create an archive.
15517 AR_FLAGS=$lt_AR_FLAGS
15518
15519 # How to feed a file listing to the archiver.
15520 archiver_list_spec=$lt_archiver_list_spec
15521
15522 # A symbol stripping program.
15523 STRIP=$lt_STRIP
15524
15525 # Commands used to install an old-style archive.
15526 RANLIB=$lt_RANLIB
15527 old_postinstall_cmds=$lt_old_postinstall_cmds
15528 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15529
15530 # Whether to use a lock for old archive extraction.
15531 lock_old_archive_extraction=$lock_old_archive_extraction
15532
15533 # A C compiler.
15534 LTCC=$lt_CC
15535
15536 # LTCC compiler flags.
15537 LTCFLAGS=$lt_CFLAGS
15538
15539 # Take the output of nm and produce a listing of raw symbols and C names.
15540 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15541
15542 # Transform the output of nm in a proper C declaration.
15543 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15544
15545 # Transform the output of nm in a C name address pair.
15546 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15547
15548 # Transform the output of nm in a C name address pair when lib prefix is needed.
15549 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15550
15551 # Specify filename containing input files for \$NM.
15552 nm_file_list_spec=$lt_nm_file_list_spec
15553
15554 # The root where to search for dependent libraries,and in which our libraries should be installed.
15555 lt_sysroot=$lt_sysroot
15556
15557 # The name of the directory that contains temporary libtool files.
15558 objdir=$objdir
15559
15560 # Used to examine libraries when file_magic_cmd begins with "file".
15561 MAGIC_CMD=$MAGIC_CMD
15562
15563 # Must we lock files when doing compilation?
15564 need_locks=$lt_need_locks
15565
15566 # Manifest tool.
15567 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15568
15569 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15570 DSYMUTIL=$lt_DSYMUTIL
15571
15572 # Tool to change global to local symbols on Mac OS X.
15573 NMEDIT=$lt_NMEDIT
15574
15575 # Tool to manipulate fat objects and archives on Mac OS X.
15576 LIPO=$lt_LIPO
15577
15578 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15579 OTOOL=$lt_OTOOL
15580
15581 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15582 OTOOL64=$lt_OTOOL64
15583
15584 # Old archive suffix (normally "a").
15585 libext=$libext
15586
15587 # Shared library suffix (normally ".so").
15588 shrext_cmds=$lt_shrext_cmds
15589
15590 # The commands to extract the exported symbol list from a shared archive.
15591 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15592
15593 # Variables whose values should be saved in libtool wrapper scripts and
15594 # restored at link time.
15595 variables_saved_for_relink=$lt_variables_saved_for_relink
15596
15597 # Do we need the "lib" prefix for modules?
15598 need_lib_prefix=$need_lib_prefix
15599
15600 # Do we need a version for libraries?
15601 need_version=$need_version
15602
15603 # Library versioning type.
15604 version_type=$version_type
15605
15606 # Shared library runtime path variable.
15607 runpath_var=$runpath_var
15608
15609 # Shared library path variable.
15610 shlibpath_var=$shlibpath_var
15611
15612 # Is shlibpath searched before the hard-coded library search path?
15613 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15614
15615 # Format of library name prefix.
15616 libname_spec=$lt_libname_spec
15617
15618 # List of archive names.  First name is the real one, the rest are links.
15619 # The last name is the one that the linker finds with -lNAME
15620 library_names_spec=$lt_library_names_spec
15621
15622 # The coded name of the library, if different from the real name.
15623 soname_spec=$lt_soname_spec
15624
15625 # Permission mode override for installation of shared libraries.
15626 install_override_mode=$lt_install_override_mode
15627
15628 # Command to use after installation of a shared archive.
15629 postinstall_cmds=$lt_postinstall_cmds
15630
15631 # Command to use after uninstallation of a shared archive.
15632 postuninstall_cmds=$lt_postuninstall_cmds
15633
15634 # Commands used to finish a libtool library installation in a directory.
15635 finish_cmds=$lt_finish_cmds
15636
15637 # As "finish_cmds", except a single script fragment to be evaled but
15638 # not shown.
15639 finish_eval=$lt_finish_eval
15640
15641 # Whether we should hardcode library paths into libraries.
15642 hardcode_into_libs=$hardcode_into_libs
15643
15644 # Compile-time system search path for libraries.
15645 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15646
15647 # Run-time system search path for libraries.
15648 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15649
15650 # Whether dlopen is supported.
15651 dlopen_support=$enable_dlopen
15652
15653 # Whether dlopen of programs is supported.
15654 dlopen_self=$enable_dlopen_self
15655
15656 # Whether dlopen of statically linked programs is supported.
15657 dlopen_self_static=$enable_dlopen_self_static
15658
15659 # Commands to strip libraries.
15660 old_striplib=$lt_old_striplib
15661 striplib=$lt_striplib
15662
15663
15664 # The linker used to build libraries.
15665 LD=$lt_LD
15666
15667 # How to create reloadable object files.
15668 reload_flag=$lt_reload_flag
15669 reload_cmds=$lt_reload_cmds
15670
15671 # Commands used to build an old-style archive.
15672 old_archive_cmds=$lt_old_archive_cmds
15673
15674 # A language specific compiler.
15675 CC=$lt_compiler
15676
15677 # Is the compiler the GNU compiler?
15678 with_gcc=$GCC
15679
15680 # Compiler flag to turn off builtin functions.
15681 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15682
15683 # Additional compiler flags for building library objects.
15684 pic_flag=$lt_lt_prog_compiler_pic
15685
15686 # How to pass a linker flag through the compiler.
15687 wl=$lt_lt_prog_compiler_wl
15688
15689 # Compiler flag to prevent dynamic linking.
15690 link_static_flag=$lt_lt_prog_compiler_static
15691
15692 # Does compiler simultaneously support -c and -o options?
15693 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15694
15695 # Whether or not to add -lc for building shared libraries.
15696 build_libtool_need_lc=$archive_cmds_need_lc
15697
15698 # Whether or not to disallow shared libs when runtime libs are static.
15699 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15700
15701 # Compiler flag to allow reflexive dlopens.
15702 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15703
15704 # Compiler flag to generate shared objects directly from archives.
15705 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15706
15707 # Whether the compiler copes with passing no objects directly.
15708 compiler_needs_object=$lt_compiler_needs_object
15709
15710 # Create an old-style archive from a shared archive.
15711 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15712
15713 # Create a temporary old-style archive to link instead of a shared archive.
15714 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15715
15716 # Commands used to build a shared archive.
15717 archive_cmds=$lt_archive_cmds
15718 archive_expsym_cmds=$lt_archive_expsym_cmds
15719
15720 # Commands used to build a loadable module if different from building
15721 # a shared archive.
15722 module_cmds=$lt_module_cmds
15723 module_expsym_cmds=$lt_module_expsym_cmds
15724
15725 # Whether we are building with GNU ld or not.
15726 with_gnu_ld=$lt_with_gnu_ld
15727
15728 # Flag that allows shared libraries with undefined symbols to be built.
15729 allow_undefined_flag=$lt_allow_undefined_flag
15730
15731 # Flag that enforces no undefined symbols.
15732 no_undefined_flag=$lt_no_undefined_flag
15733
15734 # Flag to hardcode \$libdir into a binary during linking.
15735 # This must work even if \$libdir does not exist
15736 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15737
15738 # If ld is used when linking, flag to hardcode \$libdir into a binary
15739 # during linking.  This must work even if \$libdir does not exist.
15740 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15741
15742 # Whether we need a single "-rpath" flag with a separated argument.
15743 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15744
15745 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15746 # DIR into the resulting binary.
15747 hardcode_direct=$hardcode_direct
15748
15749 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15750 # DIR into the resulting binary and the resulting library dependency is
15751 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15752 # library is relocated.
15753 hardcode_direct_absolute=$hardcode_direct_absolute
15754
15755 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15756 # into the resulting binary.
15757 hardcode_minus_L=$hardcode_minus_L
15758
15759 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15760 # into the resulting binary.
15761 hardcode_shlibpath_var=$hardcode_shlibpath_var
15762
15763 # Set to "yes" if building a shared library automatically hardcodes DIR
15764 # into the library and all subsequent libraries and executables linked
15765 # against it.
15766 hardcode_automatic=$hardcode_automatic
15767
15768 # Set to yes if linker adds runtime paths of dependent libraries
15769 # to runtime path list.
15770 inherit_rpath=$inherit_rpath
15771
15772 # Whether libtool must link a program against all its dependency libraries.
15773 link_all_deplibs=$link_all_deplibs
15774
15775 # Set to "yes" if exported symbols are required.
15776 always_export_symbols=$always_export_symbols
15777
15778 # The commands to list exported symbols.
15779 export_symbols_cmds=$lt_export_symbols_cmds
15780
15781 # Symbols that should not be listed in the preloaded symbols.
15782 exclude_expsyms=$lt_exclude_expsyms
15783
15784 # Symbols that must always be exported.
15785 include_expsyms=$lt_include_expsyms
15786
15787 # Commands necessary for linking programs (against libraries) with templates.
15788 prelink_cmds=$lt_prelink_cmds
15789
15790 # Commands necessary for finishing linking programs.
15791 postlink_cmds=$lt_postlink_cmds
15792
15793 # Specify filename containing input files.
15794 file_list_spec=$lt_file_list_spec
15795
15796 # How to hardcode a shared library path into an executable.
15797 hardcode_action=$hardcode_action
15798
15799 # ### END LIBTOOL CONFIG
15800
15801 _LT_EOF
15802
15803   case $host_os in
15804   aix3*)
15805     cat <<\_LT_EOF >> "$cfgfile"
15806 # AIX sometimes has problems with the GCC collect2 program.  For some
15807 # reason, if we set the COLLECT_NAMES environment variable, the problems
15808 # vanish in a puff of smoke.
15809 if test "X${COLLECT_NAMES+set}" != Xset; then
15810   COLLECT_NAMES=
15811   export COLLECT_NAMES
15812 fi
15813 _LT_EOF
15814     ;;
15815   esac
15816
15817
15818 ltmain="$ac_aux_dir/ltmain.sh"
15819
15820
15821   # We use sed instead of cat because bash on DJGPP gets confused if
15822   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15823   # text mode, it properly converts lines to CR/LF.  This bash problem
15824   # is reportedly fixed, but why not run on old versions too?
15825   sed '$q' "$ltmain" >> "$cfgfile" \
15826      || (rm -f "$cfgfile"; exit 1)
15827
15828   if test x"$xsi_shell" = xyes; then
15829   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15830 func_dirname ()\
15831 {\
15832 \    case ${1} in\
15833 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15834 \      *  ) func_dirname_result="${3}" ;;\
15835 \    esac\
15836 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15837   && mv -f "$cfgfile.tmp" "$cfgfile" \
15838     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15839 test 0 -eq $? || _lt_function_replace_fail=:
15840
15841
15842   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15843 func_basename ()\
15844 {\
15845 \    func_basename_result="${1##*/}"\
15846 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15847   && mv -f "$cfgfile.tmp" "$cfgfile" \
15848     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15849 test 0 -eq $? || _lt_function_replace_fail=:
15850
15851
15852   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15853 func_dirname_and_basename ()\
15854 {\
15855 \    case ${1} in\
15856 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15857 \      *  ) func_dirname_result="${3}" ;;\
15858 \    esac\
15859 \    func_basename_result="${1##*/}"\
15860 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15861   && mv -f "$cfgfile.tmp" "$cfgfile" \
15862     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15863 test 0 -eq $? || _lt_function_replace_fail=:
15864
15865
15866   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15867 func_stripname ()\
15868 {\
15869 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15870 \    # positional parameters, so assign one to ordinary parameter first.\
15871 \    func_stripname_result=${3}\
15872 \    func_stripname_result=${func_stripname_result#"${1}"}\
15873 \    func_stripname_result=${func_stripname_result%"${2}"}\
15874 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15875   && mv -f "$cfgfile.tmp" "$cfgfile" \
15876     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15877 test 0 -eq $? || _lt_function_replace_fail=:
15878
15879
15880   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15881 func_split_long_opt ()\
15882 {\
15883 \    func_split_long_opt_name=${1%%=*}\
15884 \    func_split_long_opt_arg=${1#*=}\
15885 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15886   && mv -f "$cfgfile.tmp" "$cfgfile" \
15887     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15888 test 0 -eq $? || _lt_function_replace_fail=:
15889
15890
15891   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15892 func_split_short_opt ()\
15893 {\
15894 \    func_split_short_opt_arg=${1#??}\
15895 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15896 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15897   && mv -f "$cfgfile.tmp" "$cfgfile" \
15898     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15899 test 0 -eq $? || _lt_function_replace_fail=:
15900
15901
15902   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15903 func_lo2o ()\
15904 {\
15905 \    case ${1} in\
15906 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15907 \      *)    func_lo2o_result=${1} ;;\
15908 \    esac\
15909 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15910   && mv -f "$cfgfile.tmp" "$cfgfile" \
15911     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15912 test 0 -eq $? || _lt_function_replace_fail=:
15913
15914
15915   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15916 func_xform ()\
15917 {\
15918     func_xform_result=${1%.*}.lo\
15919 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15920   && mv -f "$cfgfile.tmp" "$cfgfile" \
15921     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15922 test 0 -eq $? || _lt_function_replace_fail=:
15923
15924
15925   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15926 func_arith ()\
15927 {\
15928     func_arith_result=$(( $* ))\
15929 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15930   && mv -f "$cfgfile.tmp" "$cfgfile" \
15931     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15932 test 0 -eq $? || _lt_function_replace_fail=:
15933
15934
15935   sed -e '/^func_len ()$/,/^} # func_len /c\
15936 func_len ()\
15937 {\
15938     func_len_result=${#1}\
15939 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15940   && mv -f "$cfgfile.tmp" "$cfgfile" \
15941     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15942 test 0 -eq $? || _lt_function_replace_fail=:
15943
15944 fi
15945
15946 if test x"$lt_shell_append" = xyes; then
15947   sed -e '/^func_append ()$/,/^} # func_append /c\
15948 func_append ()\
15949 {\
15950     eval "${1}+=\\${2}"\
15951 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15952   && mv -f "$cfgfile.tmp" "$cfgfile" \
15953     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15954 test 0 -eq $? || _lt_function_replace_fail=:
15955
15956
15957   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15958 func_append_quoted ()\
15959 {\
15960 \    func_quote_for_eval "${2}"\
15961 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15962 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15963   && mv -f "$cfgfile.tmp" "$cfgfile" \
15964     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15965 test 0 -eq $? || _lt_function_replace_fail=:
15966
15967
15968   # Save a `func_append' function call where possible by direct use of '+='
15969   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15970     && mv -f "$cfgfile.tmp" "$cfgfile" \
15971       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15972   test 0 -eq $? || _lt_function_replace_fail=:
15973 else
15974   # Save a `func_append' function call even when '+=' is not available
15975   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15976     && mv -f "$cfgfile.tmp" "$cfgfile" \
15977       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15978   test 0 -eq $? || _lt_function_replace_fail=:
15979 fi
15980
15981 if test x"$_lt_function_replace_fail" = x":"; then
15982   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15983 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15984 fi
15985
15986
15987    mv -f "$cfgfile" "$ofile" ||
15988     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15989   chmod +x "$ofile"
15990
15991  ;;
15992     "include":C) test -d include || mkdir include ;;
15993     "src":C)
15994 test -d src || mkdir src
15995 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15996  ;;
15997
15998   esac
15999 done # for ac_tag
16000
16001
16002 as_fn_exit 0
16003 _ACEOF
16004 ac_clean_files=$ac_clean_files_save
16005
16006 test $ac_write_fail = 0 ||
16007   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16008
16009
16010 # configure is writing to config.log, and then calls config.status.
16011 # config.status does its own redirection, appending to config.log.
16012 # Unfortunately, on DOS this fails, as config.log is still kept open
16013 # by configure, so config.status won't be able to write to it; its
16014 # output is simply discarded.  So we exec the FD to /dev/null,
16015 # effectively closing config.log, so it can be properly (re)opened and
16016 # appended to by config.status.  When coming back to configure, we
16017 # need to make the FD available again.
16018 if test "$no_create" != yes; then
16019   ac_cs_success=:
16020   ac_config_status_args=
16021   test "$silent" = yes &&
16022     ac_config_status_args="$ac_config_status_args --quiet"
16023   exec 5>/dev/null
16024   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16025   exec 5>>config.log
16026   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16027   # would make configure fail if this is the last instruction.
16028   $ac_cs_success || as_fn_exit 1
16029 fi
16030 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16031   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16032 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16033 fi
16034