TILE-Gx/TILEPro support
[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.11.
4 #
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
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://github.com/atgreen/libffi/issues about your
251 $0: system, 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.11'
574 PACKAGE_STRING='libffi 3.0.11'
575 PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
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 TILE_FALSE
631 TILE_TRUE
632 PA64_HPUX_FALSE
633 PA64_HPUX_TRUE
634 PA_HPUX_FALSE
635 PA_HPUX_TRUE
636 PA_LINUX_FALSE
637 PA_LINUX_TRUE
638 SH64_FALSE
639 SH64_TRUE
640 SH_FALSE
641 SH_TRUE
642 X86_64_FALSE
643 X86_64_TRUE
644 S390_FALSE
645 S390_TRUE
646 FRV_FALSE
647 FRV_TRUE
648 LIBFFI_CRIS_FALSE
649 LIBFFI_CRIS_TRUE
650 AVR32_FALSE
651 AVR32_TRUE
652 ARM_FALSE
653 ARM_TRUE
654 POWERPC_FREEBSD_FALSE
655 POWERPC_FREEBSD_TRUE
656 POWERPC_DARWIN_FALSE
657 POWERPC_DARWIN_TRUE
658 POWERPC_AIX_FALSE
659 POWERPC_AIX_TRUE
660 POWERPC_FALSE
661 POWERPC_TRUE
662 MOXIE_FALSE
663 MOXIE_TRUE
664 M68K_FALSE
665 M68K_TRUE
666 M32R_FALSE
667 M32R_TRUE
668 IA64_FALSE
669 IA64_TRUE
670 ALPHA_FALSE
671 ALPHA_TRUE
672 X86_DARWIN_FALSE
673 X86_DARWIN_TRUE
674 X86_WIN64_FALSE
675 X86_WIN64_TRUE
676 X86_WIN32_FALSE
677 X86_WIN32_TRUE
678 X86_FREEBSD_FALSE
679 X86_FREEBSD_TRUE
680 X86_FALSE
681 X86_TRUE
682 SPARC_FALSE
683 SPARC_TRUE
684 BFIN_FALSE
685 BFIN_TRUE
686 MIPS_FALSE
687 MIPS_TRUE
688 AM_LTLDFLAGS
689 AM_RUNTESTFLAGS
690 TESTSUBDIR_FALSE
691 TESTSUBDIR_TRUE
692 MAINT
693 MAINTAINER_MODE_FALSE
694 MAINTAINER_MODE_TRUE
695 CPP
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 MANIFEST_TOOL
702 RANLIB
703 ac_ct_AR
704 AR
705 DLLTOOL
706 OBJDUMP
707 LN_S
708 NM
709 ac_ct_DUMPBIN
710 DUMPBIN
711 LD
712 FGREP
713 EGREP
714 GREP
715 SED
716 LIBTOOL
717 am__fastdepCCAS_FALSE
718 am__fastdepCCAS_TRUE
719 CCASDEPMODE
720 CCASFLAGS
721 CCAS
722 am__fastdepCC_FALSE
723 am__fastdepCC_TRUE
724 CCDEPMODE
725 am__nodep
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__quote
730 am__include
731 DEPDIR
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
738 CC
739 am__untar
740 am__tar
741 AMTAR
742 am__leading_dot
743 SET_MAKE
744 AWK
745 mkdir_p
746 MKDIR_P
747 INSTALL_STRIP_PROGRAM
748 STRIP
749 install_sh
750 MAKEINFO
751 AUTOHEADER
752 AUTOMAKE
753 AUTOCONF
754 ACLOCAL
755 VERSION
756 PACKAGE
757 CYGPATH_W
758 am__isrc
759 INSTALL_DATA
760 INSTALL_SCRIPT
761 INSTALL_PROGRAM
762 target_os
763 target_vendor
764 target_cpu
765 target
766 host_os
767 host_vendor
768 host_cpu
769 host
770 build_os
771 build_vendor
772 build_cpu
773 build
774 target_alias
775 host_alias
776 build_alias
777 LIBS
778 ECHO_T
779 ECHO_N
780 ECHO_C
781 DEFS
782 mandir
783 localedir
784 libdir
785 psdir
786 pdfdir
787 dvidir
788 htmldir
789 infodir
790 docdir
791 oldincludedir
792 includedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL'
812 ac_subst_files=''
813 ac_user_opts='
814 enable_option_checking
815 enable_dependency_tracking
816 enable_shared
817 enable_static
818 with_pic
819 enable_fast_install
820 with_gnu_ld
821 with_sysroot
822 enable_libtool_lock
823 enable_maintainer_mode
824 enable_debug
825 enable_structs
826 enable_raw_api
827 enable_purify_safety
828 '
829       ac_precious_vars='build_alias
830 host_alias
831 target_alias
832 CCAS
833 CCASFLAGS
834 CPP
835 CPPFLAGS'
836
837
838 # Initialize some variables set by options.
839 ac_init_help=
840 ac_init_version=false
841 ac_unrecognized_opts=
842 ac_unrecognized_sep=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
845 cache_file=/dev/null
846 exec_prefix=NONE
847 no_create=
848 no_recursion=
849 prefix=NONE
850 program_prefix=NONE
851 program_suffix=NONE
852 program_transform_name=s,x,x,
853 silent=
854 site=
855 srcdir=
856 verbose=
857 x_includes=NONE
858 x_libraries=NONE
859
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
878 htmldir='${docdir}'
879 dvidir='${docdir}'
880 pdfdir='${docdir}'
881 psdir='${docdir}'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
885
886 ac_prev=
887 ac_dashdash=
888 for ac_option
889 do
890   # If the previous option needs an argument, assign it.
891   if test -n "$ac_prev"; then
892     eval $ac_prev=\$ac_option
893     ac_prev=
894     continue
895   fi
896
897   case $ac_option in
898   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899   *=)   ac_optarg= ;;
900   *)    ac_optarg=yes ;;
901   esac
902
903   # Accept the important Cygnus configure options, so we can diagnose typos.
904
905   case $ac_dashdash$ac_option in
906   --)
907     ac_dashdash=yes ;;
908
909   -bindir | --bindir | --bindi | --bind | --bin | --bi)
910     ac_prev=bindir ;;
911   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912     bindir=$ac_optarg ;;
913
914   -build | --build | --buil | --bui | --bu)
915     ac_prev=build_alias ;;
916   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917     build_alias=$ac_optarg ;;
918
919   -cache-file | --cache-file | --cache-fil | --cache-fi \
920   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921     ac_prev=cache_file ;;
922   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924     cache_file=$ac_optarg ;;
925
926   --config-cache | -C)
927     cache_file=config.cache ;;
928
929   -datadir | --datadir | --datadi | --datad)
930     ac_prev=datadir ;;
931   -datadir=* | --datadir=* | --datadi=* | --datad=*)
932     datadir=$ac_optarg ;;
933
934   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935   | --dataroo | --dataro | --datar)
936     ac_prev=datarootdir ;;
937   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939     datarootdir=$ac_optarg ;;
940
941   -disable-* | --disable-*)
942     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945       as_fn_error $? "invalid feature name: $ac_useropt"
946     ac_useropt_orig=$ac_useropt
947     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948     case $ac_user_opts in
949       *"
950 "enable_$ac_useropt"
951 "*) ;;
952       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953          ac_unrecognized_sep=', ';;
954     esac
955     eval enable_$ac_useropt=no ;;
956
957   -docdir | --docdir | --docdi | --doc | --do)
958     ac_prev=docdir ;;
959   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960     docdir=$ac_optarg ;;
961
962   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963     ac_prev=dvidir ;;
964   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965     dvidir=$ac_optarg ;;
966
967   -enable-* | --enable-*)
968     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969     # Reject names that are not valid shell variable names.
970     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971       as_fn_error $? "invalid feature name: $ac_useropt"
972     ac_useropt_orig=$ac_useropt
973     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974     case $ac_user_opts in
975       *"
976 "enable_$ac_useropt"
977 "*) ;;
978       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979          ac_unrecognized_sep=', ';;
980     esac
981     eval enable_$ac_useropt=\$ac_optarg ;;
982
983   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985   | --exec | --exe | --ex)
986     ac_prev=exec_prefix ;;
987   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989   | --exec=* | --exe=* | --ex=*)
990     exec_prefix=$ac_optarg ;;
991
992   -gas | --gas | --ga | --g)
993     # Obsolete; use --with-gas.
994     with_gas=yes ;;
995
996   -help | --help | --hel | --he | -h)
997     ac_init_help=long ;;
998   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999     ac_init_help=recursive ;;
1000   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001     ac_init_help=short ;;
1002
1003   -host | --host | --hos | --ho)
1004     ac_prev=host_alias ;;
1005   -host=* | --host=* | --hos=* | --ho=*)
1006     host_alias=$ac_optarg ;;
1007
1008   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009     ac_prev=htmldir ;;
1010   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011   | --ht=*)
1012     htmldir=$ac_optarg ;;
1013
1014   -includedir | --includedir | --includedi | --included | --include \
1015   | --includ | --inclu | --incl | --inc)
1016     ac_prev=includedir ;;
1017   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018   | --includ=* | --inclu=* | --incl=* | --inc=*)
1019     includedir=$ac_optarg ;;
1020
1021   -infodir | --infodir | --infodi | --infod | --info | --inf)
1022     ac_prev=infodir ;;
1023   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024     infodir=$ac_optarg ;;
1025
1026   -libdir | --libdir | --libdi | --libd)
1027     ac_prev=libdir ;;
1028   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029     libdir=$ac_optarg ;;
1030
1031   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032   | --libexe | --libex | --libe)
1033     ac_prev=libexecdir ;;
1034   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035   | --libexe=* | --libex=* | --libe=*)
1036     libexecdir=$ac_optarg ;;
1037
1038   -localedir | --localedir | --localedi | --localed | --locale)
1039     ac_prev=localedir ;;
1040   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041     localedir=$ac_optarg ;;
1042
1043   -localstatedir | --localstatedir | --localstatedi | --localstated \
1044   | --localstate | --localstat | --localsta | --localst | --locals)
1045     ac_prev=localstatedir ;;
1046   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048     localstatedir=$ac_optarg ;;
1049
1050   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051     ac_prev=mandir ;;
1052   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053     mandir=$ac_optarg ;;
1054
1055   -nfp | --nfp | --nf)
1056     # Obsolete; use --without-fp.
1057     with_fp=no ;;
1058
1059   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060   | --no-cr | --no-c | -n)
1061     no_create=yes ;;
1062
1063   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065     no_recursion=yes ;;
1066
1067   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069   | --oldin | --oldi | --old | --ol | --o)
1070     ac_prev=oldincludedir ;;
1071   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074     oldincludedir=$ac_optarg ;;
1075
1076   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077     ac_prev=prefix ;;
1078   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079     prefix=$ac_optarg ;;
1080
1081   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082   | --program-pre | --program-pr | --program-p)
1083     ac_prev=program_prefix ;;
1084   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086     program_prefix=$ac_optarg ;;
1087
1088   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089   | --program-suf | --program-su | --program-s)
1090     ac_prev=program_suffix ;;
1091   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093     program_suffix=$ac_optarg ;;
1094
1095   -program-transform-name | --program-transform-name \
1096   | --program-transform-nam | --program-transform-na \
1097   | --program-transform-n | --program-transform- \
1098   | --program-transform | --program-transfor \
1099   | --program-transfo | --program-transf \
1100   | --program-trans | --program-tran \
1101   | --progr-tra | --program-tr | --program-t)
1102     ac_prev=program_transform_name ;;
1103   -program-transform-name=* | --program-transform-name=* \
1104   | --program-transform-nam=* | --program-transform-na=* \
1105   | --program-transform-n=* | --program-transform-=* \
1106   | --program-transform=* | --program-transfor=* \
1107   | --program-transfo=* | --program-transf=* \
1108   | --program-trans=* | --program-tran=* \
1109   | --progr-tra=* | --program-tr=* | --program-t=*)
1110     program_transform_name=$ac_optarg ;;
1111
1112   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113     ac_prev=pdfdir ;;
1114   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115     pdfdir=$ac_optarg ;;
1116
1117   -psdir | --psdir | --psdi | --psd | --ps)
1118     ac_prev=psdir ;;
1119   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120     psdir=$ac_optarg ;;
1121
1122   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123   | -silent | --silent | --silen | --sile | --sil)
1124     silent=yes ;;
1125
1126   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127     ac_prev=sbindir ;;
1128   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129   | --sbi=* | --sb=*)
1130     sbindir=$ac_optarg ;;
1131
1132   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134   | --sharedst | --shareds | --shared | --share | --shar \
1135   | --sha | --sh)
1136     ac_prev=sharedstatedir ;;
1137   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140   | --sha=* | --sh=*)
1141     sharedstatedir=$ac_optarg ;;
1142
1143   -site | --site | --sit)
1144     ac_prev=site ;;
1145   -site=* | --site=* | --sit=*)
1146     site=$ac_optarg ;;
1147
1148   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149     ac_prev=srcdir ;;
1150   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151     srcdir=$ac_optarg ;;
1152
1153   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154   | --syscon | --sysco | --sysc | --sys | --sy)
1155     ac_prev=sysconfdir ;;
1156   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158     sysconfdir=$ac_optarg ;;
1159
1160   -target | --target | --targe | --targ | --tar | --ta | --t)
1161     ac_prev=target_alias ;;
1162   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163     target_alias=$ac_optarg ;;
1164
1165   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166     verbose=yes ;;
1167
1168   -version | --version | --versio | --versi | --vers | -V)
1169     ac_init_version=: ;;
1170
1171   -with-* | --with-*)
1172     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175       as_fn_error $? "invalid package name: $ac_useropt"
1176     ac_useropt_orig=$ac_useropt
1177     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178     case $ac_user_opts in
1179       *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183          ac_unrecognized_sep=', ';;
1184     esac
1185     eval with_$ac_useropt=\$ac_optarg ;;
1186
1187   -without-* | --without-*)
1188     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191       as_fn_error $? "invalid package name: $ac_useropt"
1192     ac_useropt_orig=$ac_useropt
1193     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194     case $ac_user_opts in
1195       *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199          ac_unrecognized_sep=', ';;
1200     esac
1201     eval with_$ac_useropt=no ;;
1202
1203   --x)
1204     # Obsolete; use --with-x.
1205     with_x=yes ;;
1206
1207   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208   | --x-incl | --x-inc | --x-in | --x-i)
1209     ac_prev=x_includes ;;
1210   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212     x_includes=$ac_optarg ;;
1213
1214   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216     ac_prev=x_libraries ;;
1217   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219     x_libraries=$ac_optarg ;;
1220
1221   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1223     ;;
1224
1225   *=*)
1226     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227     # Reject names that are not valid shell variable names.
1228     case $ac_envvar in #(
1229       '' | [0-9]* | *[!_$as_cr_alnum]* )
1230       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1231     esac
1232     eval $ac_envvar=\$ac_optarg
1233     export $ac_envvar ;;
1234
1235   *)
1236     # FIXME: should be removed in autoconf 3.0.
1237     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1241     ;;
1242
1243   esac
1244 done
1245
1246 if test -n "$ac_prev"; then
1247   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248   as_fn_error $? "missing argument to $ac_option"
1249 fi
1250
1251 if test -n "$ac_unrecognized_opts"; then
1252   case $enable_option_checking in
1253     no) ;;
1254     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256   esac
1257 fi
1258
1259 # Check all directory arguments for consistency.
1260 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261                 datadir sysconfdir sharedstatedir localstatedir includedir \
1262                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263                 libdir localedir mandir
1264 do
1265   eval ac_val=\$$ac_var
1266   # Remove trailing slashes.
1267   case $ac_val in
1268     */ )
1269       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270       eval $ac_var=\$ac_val;;
1271   esac
1272   # Be sure to have absolute directory names.
1273   case $ac_val in
1274     [\\/$]* | ?:[\\/]* )  continue;;
1275     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276   esac
1277   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1279
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1286
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289   if test "x$build_alias" = x; then
1290     cross_compiling=maybe
1291     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1292     If a cross compiler is detected then cross compile mode will be used" >&2
1293   elif test "x$build_alias" != "x$host_alias"; then
1294     cross_compiling=yes
1295   fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307   as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309   as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314   ac_srcdir_defaulted=yes
1315   # Try the directory containing this script, then the parent directory.
1316   ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318          X"$as_myself" : 'X\(//\)[^/]' \| \
1319          X"$as_myself" : 'X\(//\)$' \| \
1320          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\/\)[^/].*/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\/\)$/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\).*/{
1335             s//\1/
1336             q
1337           }
1338           s/.*/./; q'`
1339   srcdir=$ac_confdir
1340   if test ! -r "$srcdir/$ac_unique_file"; then
1341     srcdir=..
1342   fi
1343 else
1344   ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353         pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356   srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_env_${ac_var}_value=\$${ac_var}
1367   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375   # Omit some internal or obsolete options to make the list less imposing.
1376   # This message is too long to be a string in the A/UX 3.1 sh.
1377   cat <<_ACEOF
1378 \`configure' configures libffi 3.0.11 to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388   -h, --help              display this help and exit
1389       --help=short        display options specific to this package
1390       --help=recursive    display the short help of all the included packages
1391   -V, --version           display version information and exit
1392   -q, --quiet, --silent   do not print \`checking ...' messages
1393       --cache-file=FILE   cache test results in FILE [disabled]
1394   -C, --config-cache      alias for \`--cache-file=config.cache'
1395   -n, --no-create         do not create output files
1396       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399   --prefix=PREFIX         install architecture-independent files in PREFIX
1400                           [$ac_default_prefix]
1401   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                           [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412   --bindir=DIR            user executables [EPREFIX/bin]
1413   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1414   --libexecdir=DIR        program executables [EPREFIX/libexec]
1415   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1416   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1417   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1418   --libdir=DIR            object code libraries [EPREFIX/lib]
1419   --includedir=DIR        C header files [PREFIX/include]
1420   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1421   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1422   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1423   --infodir=DIR           info documentation [DATAROOTDIR/info]
1424   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1425   --mandir=DIR            man documentation [DATAROOTDIR/man]
1426   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1427   --htmldir=DIR           html documentation [DOCDIR]
1428   --dvidir=DIR            dvi documentation [DOCDIR]
1429   --pdfdir=DIR            pdf documentation [DOCDIR]
1430   --psdir=DIR             ps documentation [DOCDIR]
1431 _ACEOF
1432
1433   cat <<\_ACEOF
1434
1435 Program names:
1436   --program-prefix=PREFIX            prepend PREFIX to installed program names
1437   --program-suffix=SUFFIX            append SUFFIX to installed program names
1438   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1439
1440 System types:
1441   --build=BUILD     configure for building on BUILD [guessed]
1442   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1443   --target=TARGET   configure for building compilers for TARGET [HOST]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448   case $ac_init_help in
1449      short | recursive ) echo "Configuration of libffi 3.0.11:";;
1450    esac
1451   cat <<\_ACEOF
1452
1453 Optional Features:
1454   --disable-option-checking  ignore unrecognized --enable/--with options
1455   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1456   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1457   --disable-dependency-tracking  speeds up one-time build
1458   --enable-dependency-tracking   do not reject slow dependency extractors
1459   --enable-shared[=PKGS]  build shared libraries [default=yes]
1460   --enable-static[=PKGS]  build static libraries [default=yes]
1461   --enable-fast-install[=PKGS]
1462                           optimize for fast installation [default=yes]
1463   --disable-libtool-lock  avoid locking (might break parallel builds)
1464   --enable-maintainer-mode  enable make rules and dependencies not useful
1465                           (and sometimes confusing) to the casual installer
1466   --enable-debug          debugging mode
1467   --disable-structs       omit code for struct support
1468   --disable-raw-api       make the raw api unavailable
1469   --enable-purify-safety  purify-safe mode
1470
1471 Optional Packages:
1472   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1473   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1474   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1475                           both]
1476   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1477   --with-sysroot=DIR Search for dependent libraries within DIR
1478                         (or the compiler's sysroot if not specified).
1479
1480 Some influential environment variables:
1481   CC          C compiler command
1482   CFLAGS      C compiler flags
1483   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1484               nonstandard directory <lib dir>
1485   LIBS        libraries to pass to the linker, e.g. -l<library>
1486   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487               you have headers in a nonstandard directory <include dir>
1488   CCAS        assembler compiler command (defaults to CC)
1489   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1490   CPP         C preprocessor
1491
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1494
1495 Report bugs to <http://github.com/atgreen/libffi/issues>.
1496 _ACEOF
1497 ac_status=$?
1498 fi
1499
1500 if test "$ac_init_help" = "recursive"; then
1501   # If there are subdirs, report their specific --help.
1502   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503     test -d "$ac_dir" ||
1504       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1505       continue
1506     ac_builddir=.
1507
1508 case "$ac_dir" in
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *)
1511   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1512   # A ".." for each directory in $ac_dir_suffix.
1513   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1514   case $ac_top_builddir_sub in
1515   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517   esac ;;
1518 esac
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1523
1524 case $srcdir in
1525   .)  # We are building in place.
1526     ac_srcdir=.
1527     ac_top_srcdir=$ac_top_builddir_sub
1528     ac_abs_top_srcdir=$ac_pwd ;;
1529   [\\/]* | ?:[\\/]* )  # Absolute name.
1530     ac_srcdir=$srcdir$ac_dir_suffix;
1531     ac_top_srcdir=$srcdir
1532     ac_abs_top_srcdir=$srcdir ;;
1533   *) # Relative name.
1534     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535     ac_top_srcdir=$ac_top_build_prefix$srcdir
1536     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1537 esac
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1539
1540     cd "$ac_dir" || { ac_status=$?; continue; }
1541     # Check for guested configure.
1542     if test -f "$ac_srcdir/configure.gnu"; then
1543       echo &&
1544       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545     elif test -f "$ac_srcdir/configure"; then
1546       echo &&
1547       $SHELL "$ac_srcdir/configure" --help=recursive
1548     else
1549       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1550     fi || ac_status=$?
1551     cd "$ac_pwd" || { ac_status=$?; break; }
1552   done
1553 fi
1554
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1557   cat <<\_ACEOF
1558 libffi configure 3.0.11
1559 generated by GNU Autoconf 2.68
1560
1561 Copyright (C) 2010 Free Software Foundation, Inc.
1562 This configure script is free software; the Free Software Foundation
1563 gives unlimited permission to copy, distribute and modify it.
1564 _ACEOF
1565   exit
1566 fi
1567
1568 ## ------------------------ ##
1569 ## Autoconf initialization. ##
1570 ## ------------------------ ##
1571
1572 # ac_fn_c_try_compile LINENO
1573 # --------------------------
1574 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1575 ac_fn_c_try_compile ()
1576 {
1577   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578   rm -f conftest.$ac_objext
1579   if { { ac_try="$ac_compile"
1580 case "(($ac_try" in
1581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582   *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586   (eval "$ac_compile") 2>conftest.err
1587   ac_status=$?
1588   if test -s conftest.err; then
1589     grep -v '^ *+' conftest.err >conftest.er1
1590     cat conftest.er1 >&5
1591     mv -f conftest.er1 conftest.err
1592   fi
1593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594   test $ac_status = 0; } && {
1595          test -z "$ac_c_werror_flag" ||
1596          test ! -s conftest.err
1597        } && test -s conftest.$ac_objext; then :
1598   ac_retval=0
1599 else
1600   $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1602
1603         ac_retval=1
1604 fi
1605   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606   as_fn_set_status $ac_retval
1607
1608 } # ac_fn_c_try_compile
1609
1610 # ac_fn_c_try_link LINENO
1611 # -----------------------
1612 # Try to link conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_link ()
1614 {
1615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616   rm -f conftest.$ac_objext conftest$ac_exeext
1617   if { { ac_try="$ac_link"
1618 case "(($ac_try" in
1619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620   *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624   (eval "$ac_link") 2>conftest.err
1625   ac_status=$?
1626   if test -s conftest.err; then
1627     grep -v '^ *+' conftest.err >conftest.er1
1628     cat conftest.er1 >&5
1629     mv -f conftest.er1 conftest.err
1630   fi
1631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632   test $ac_status = 0; } && {
1633          test -z "$ac_c_werror_flag" ||
1634          test ! -s conftest.err
1635        } && test -s conftest$ac_exeext && {
1636          test "$cross_compiling" = yes ||
1637          $as_test_x conftest$ac_exeext
1638        }; then :
1639   ac_retval=0
1640 else
1641   $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644         ac_retval=1
1645 fi
1646   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1647   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1648   # interfere with the next link command; also delete a directory that is
1649   # left behind by Apple's compiler.  We do this before executing the actions.
1650   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1651   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652   as_fn_set_status $ac_retval
1653
1654 } # ac_fn_c_try_link
1655
1656 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1657 # -------------------------------------------------------
1658 # Tests whether HEADER exists and can be compiled using the include files in
1659 # INCLUDES, setting the cache variable VAR accordingly.
1660 ac_fn_c_check_header_compile ()
1661 {
1662   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664 $as_echo_n "checking for $2... " >&6; }
1665 if eval \${$3+:} false; then :
1666   $as_echo_n "(cached) " >&6
1667 else
1668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h.  */
1670 $4
1671 #include <$2>
1672 _ACEOF
1673 if ac_fn_c_try_compile "$LINENO"; then :
1674   eval "$3=yes"
1675 else
1676   eval "$3=no"
1677 fi
1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679 fi
1680 eval ac_res=\$$3
1681                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 $as_echo "$ac_res" >&6; }
1683   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684
1685 } # ac_fn_c_check_header_compile
1686
1687 # ac_fn_c_try_cpp LINENO
1688 # ----------------------
1689 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_cpp ()
1691 {
1692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693   if { { ac_try="$ac_cpp conftest.$ac_ext"
1694 case "(($ac_try" in
1695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696   *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1701   ac_status=$?
1702   if test -s conftest.err; then
1703     grep -v '^ *+' conftest.err >conftest.er1
1704     cat conftest.er1 >&5
1705     mv -f conftest.er1 conftest.err
1706   fi
1707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708   test $ac_status = 0; } > conftest.i && {
1709          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1710          test ! -s conftest.err
1711        }; then :
1712   ac_retval=0
1713 else
1714   $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717     ac_retval=1
1718 fi
1719   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720   as_fn_set_status $ac_retval
1721
1722 } # ac_fn_c_try_cpp
1723
1724 # ac_fn_c_try_run LINENO
1725 # ----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1727 # that executables *can* be run.
1728 ac_fn_c_try_run ()
1729 {
1730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731   if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734   *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738   (eval "$ac_link") 2>&5
1739   ac_status=$?
1740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1742   { { case "(($ac_try" in
1743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744   *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748   (eval "$ac_try") 2>&5
1749   ac_status=$?
1750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751   test $ac_status = 0; }; }; then :
1752   ac_retval=0
1753 else
1754   $as_echo "$as_me: program exited with status $ac_status" >&5
1755        $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758        ac_retval=$ac_status
1759 fi
1760   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762   as_fn_set_status $ac_retval
1763
1764 } # ac_fn_c_try_run
1765
1766 # ac_fn_c_check_func LINENO FUNC VAR
1767 # ----------------------------------
1768 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1769 ac_fn_c_check_func ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775   $as_echo_n "(cached) " >&6
1776 else
1777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h.  */
1779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1781 #define $2 innocuous_$2
1782
1783 /* System header to define __stub macros and hopefully few prototypes,
1784     which can conflict with char $2 (); below.
1785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1786     <limits.h> exists even on freestanding compilers.  */
1787
1788 #ifdef __STDC__
1789 # include <limits.h>
1790 #else
1791 # include <assert.h>
1792 #endif
1793
1794 #undef $2
1795
1796 /* Override any GCC internal prototype to avoid an error.
1797    Use char because int might match the return type of a GCC
1798    builtin and then its argument prototype would still apply.  */
1799 #ifdef __cplusplus
1800 extern "C"
1801 #endif
1802 char $2 ();
1803 /* The GNU C library defines this for functions which it implements
1804     to always fail with ENOSYS.  Some functions are actually named
1805     something starting with __ and the normal name is an alias.  */
1806 #if defined __stub_$2 || defined __stub___$2
1807 choke me
1808 #endif
1809
1810 int
1811 main ()
1812 {
1813 return $2 ();
1814   ;
1815   return 0;
1816 }
1817 _ACEOF
1818 if ac_fn_c_try_link "$LINENO"; then :
1819   eval "$3=yes"
1820 else
1821   eval "$3=no"
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext \
1824     conftest$ac_exeext conftest.$ac_ext
1825 fi
1826 eval ac_res=\$$3
1827                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830
1831 } # ac_fn_c_check_func
1832
1833 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1834 # -------------------------------------------------------
1835 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1836 # the include files in INCLUDES and setting the cache variable VAR
1837 # accordingly.
1838 ac_fn_c_check_header_mongrel ()
1839 {
1840   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841   if eval \${$3+:} false; then :
1842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845   $as_echo_n "(cached) " >&6
1846 fi
1847 eval ac_res=\$$3
1848                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850 else
1851   # Is the header compilable?
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1853 $as_echo_n "checking $2 usability... " >&6; }
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h.  */
1856 $4
1857 #include <$2>
1858 _ACEOF
1859 if ac_fn_c_try_compile "$LINENO"; then :
1860   ac_header_compiler=yes
1861 else
1862   ac_header_compiler=no
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1866 $as_echo "$ac_header_compiler" >&6; }
1867
1868 # Is the header present?
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1870 $as_echo_n "checking $2 presence... " >&6; }
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h.  */
1873 #include <$2>
1874 _ACEOF
1875 if ac_fn_c_try_cpp "$LINENO"; then :
1876   ac_header_preproc=yes
1877 else
1878   ac_header_preproc=no
1879 fi
1880 rm -f conftest.err conftest.i conftest.$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1882 $as_echo "$ac_header_preproc" >&6; }
1883
1884 # So?  What about this header?
1885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1886   yes:no: )
1887     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1888 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1889     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1891     ;;
1892   no:yes:* )
1893     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1894 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1895     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1896 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1897     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1898 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1899     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1900 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1901     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1902 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1903 ( $as_echo "## ------------------------------------------------------ ##
1904 ## Report this to http://github.com/atgreen/libffi/issues ##
1905 ## ------------------------------------------------------ ##"
1906      ) | sed "s/^/$as_me: WARNING:     /" >&2
1907     ;;
1908 esac
1909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912   $as_echo_n "(cached) " >&6
1913 else
1914   eval "$3=\$ac_header_compiler"
1915 fi
1916 eval ac_res=\$$3
1917                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 fi
1920   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922 } # ac_fn_c_check_header_mongrel
1923
1924 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1925 # -------------------------------------------
1926 # Tests whether TYPE exists after having included INCLUDES, setting cache
1927 # variable VAR accordingly.
1928 ac_fn_c_check_type ()
1929 {
1930   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if eval \${$3+:} false; then :
1934   $as_echo_n "(cached) " >&6
1935 else
1936   eval "$3=no"
1937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h.  */
1939 $4
1940 int
1941 main ()
1942 {
1943 if (sizeof ($2))
1944          return 0;
1945   ;
1946   return 0;
1947 }
1948 _ACEOF
1949 if ac_fn_c_try_compile "$LINENO"; then :
1950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h.  */
1952 $4
1953 int
1954 main ()
1955 {
1956 if (sizeof (($2)))
1957             return 0;
1958   ;
1959   return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963
1964 else
1965   eval "$3=yes"
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 fi
1971 eval ac_res=\$$3
1972                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976 } # ac_fn_c_check_type
1977
1978 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1979 # --------------------------------------------
1980 # Tries to find the compile-time value of EXPR in a program that includes
1981 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1982 # computed
1983 ac_fn_c_compute_int ()
1984 {
1985   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986   if test "$cross_compiling" = yes; then
1987     # Depending upon the size, compute the lo and hi bounds.
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h.  */
1990 $4
1991 int
1992 main ()
1993 {
1994 static int test_array [1 - 2 * !(($2) >= 0)];
1995 test_array [0] = 0
1996
1997   ;
1998   return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002   ac_lo=0 ac_mid=0
2003   while :; do
2004     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h.  */
2006 $4
2007 int
2008 main ()
2009 {
2010 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2011 test_array [0] = 0
2012
2013   ;
2014   return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018   ac_hi=$ac_mid; break
2019 else
2020   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2021                         if test $ac_lo -le $ac_mid; then
2022                           ac_lo= ac_hi=
2023                           break
2024                         fi
2025                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2026 fi
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028   done
2029 else
2030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h.  */
2032 $4
2033 int
2034 main ()
2035 {
2036 static int test_array [1 - 2 * !(($2) < 0)];
2037 test_array [0] = 0
2038
2039   ;
2040   return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044   ac_hi=-1 ac_mid=-1
2045   while :; do
2046     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h.  */
2048 $4
2049 int
2050 main ()
2051 {
2052 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2053 test_array [0] = 0
2054
2055   ;
2056   return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060   ac_lo=$ac_mid; break
2061 else
2062   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2063                         if test $ac_mid -le $ac_hi; then
2064                           ac_lo= ac_hi=
2065                           break
2066                         fi
2067                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070   done
2071 else
2072   ac_lo= ac_hi=
2073 fi
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 # Binary search between lo and hi bounds.
2078 while test "x$ac_lo" != "x$ac_hi"; do
2079   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h.  */
2082 $4
2083 int
2084 main ()
2085 {
2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087 test_array [0] = 0
2088
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094   ac_hi=$ac_mid
2095 else
2096   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 done
2100 case $ac_lo in #((
2101 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2102 '') ac_retval=1 ;;
2103 esac
2104   else
2105     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h.  */
2107 $4
2108 static long int longval () { return $2; }
2109 static unsigned long int ulongval () { return $2; }
2110 #include <stdio.h>
2111 #include <stdlib.h>
2112 int
2113 main ()
2114 {
2115
2116   FILE *f = fopen ("conftest.val", "w");
2117   if (! f)
2118     return 1;
2119   if (($2) < 0)
2120     {
2121       long int i = longval ();
2122       if (i != ($2))
2123         return 1;
2124       fprintf (f, "%ld", i);
2125     }
2126   else
2127     {
2128       unsigned long int i = ulongval ();
2129       if (i != ($2))
2130         return 1;
2131       fprintf (f, "%lu", i);
2132     }
2133   /* Do not output a trailing newline, as this causes \r\n confusion
2134      on some platforms.  */
2135   return ferror (f) || fclose (f) != 0;
2136
2137   ;
2138   return 0;
2139 }
2140 _ACEOF
2141 if ac_fn_c_try_run "$LINENO"; then :
2142   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2143 else
2144   ac_retval=1
2145 fi
2146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2147   conftest.$ac_objext conftest.beam conftest.$ac_ext
2148 rm -f conftest.val
2149
2150   fi
2151   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152   as_fn_set_status $ac_retval
2153
2154 } # ac_fn_c_compute_int
2155 cat >config.log <<_ACEOF
2156 This file contains any messages produced by compilers while
2157 running configure, to aid debugging if configure makes a mistake.
2158
2159 It was created by libffi $as_me 3.0.11, which was
2160 generated by GNU Autoconf 2.68.  Invocation command line was
2161
2162   $ $0 $@
2163
2164 _ACEOF
2165 exec 5>>config.log
2166 {
2167 cat <<_ASUNAME
2168 ## --------- ##
2169 ## Platform. ##
2170 ## --------- ##
2171
2172 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2173 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2174 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2175 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2176 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2177
2178 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2179 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2180
2181 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2182 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2183 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2184 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2185 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2186 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2187 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2188
2189 _ASUNAME
2190
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2193 do
2194   IFS=$as_save_IFS
2195   test -z "$as_dir" && as_dir=.
2196     $as_echo "PATH: $as_dir"
2197   done
2198 IFS=$as_save_IFS
2199
2200 } >&5
2201
2202 cat >&5 <<_ACEOF
2203
2204
2205 ## ----------- ##
2206 ## Core tests. ##
2207 ## ----------- ##
2208
2209 _ACEOF
2210
2211
2212 # Keep a trace of the command line.
2213 # Strip out --no-create and --no-recursion so they do not pile up.
2214 # Strip out --silent because we don't want to record it for future runs.
2215 # Also quote any args containing shell meta-characters.
2216 # Make two passes to allow for proper duplicate-argument suppression.
2217 ac_configure_args=
2218 ac_configure_args0=
2219 ac_configure_args1=
2220 ac_must_keep_next=false
2221 for ac_pass in 1 2
2222 do
2223   for ac_arg
2224   do
2225     case $ac_arg in
2226     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2227     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2228     | -silent | --silent | --silen | --sile | --sil)
2229       continue ;;
2230     *\'*)
2231       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2232     esac
2233     case $ac_pass in
2234     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2235     2)
2236       as_fn_append ac_configure_args1 " '$ac_arg'"
2237       if test $ac_must_keep_next = true; then
2238         ac_must_keep_next=false # Got value, back to normal.
2239       else
2240         case $ac_arg in
2241           *=* | --config-cache | -C | -disable-* | --disable-* \
2242           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2243           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2244           | -with-* | --with-* | -without-* | --without-* | --x)
2245             case "$ac_configure_args0 " in
2246               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2247             esac
2248             ;;
2249           -* ) ac_must_keep_next=true ;;
2250         esac
2251       fi
2252       as_fn_append ac_configure_args " '$ac_arg'"
2253       ;;
2254     esac
2255   done
2256 done
2257 { ac_configure_args0=; unset ac_configure_args0;}
2258 { ac_configure_args1=; unset ac_configure_args1;}
2259
2260 # When interrupted or exit'd, cleanup temporary files, and complete
2261 # config.log.  We remove comments because anyway the quotes in there
2262 # would cause problems or look ugly.
2263 # WARNING: Use '\'' to represent an apostrophe within the trap.
2264 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2265 trap 'exit_status=$?
2266   # Save into config.log some information that might help in debugging.
2267   {
2268     echo
2269
2270     $as_echo "## ---------------- ##
2271 ## Cache variables. ##
2272 ## ---------------- ##"
2273     echo
2274     # The following way of writing the cache mishandles newlines in values,
2275 (
2276   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2277     eval ac_val=\$$ac_var
2278     case $ac_val in #(
2279     *${as_nl}*)
2280       case $ac_var in #(
2281       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2282 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2283       esac
2284       case $ac_var in #(
2285       _ | IFS | as_nl) ;; #(
2286       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2287       *) { eval $ac_var=; unset $ac_var;} ;;
2288       esac ;;
2289     esac
2290   done
2291   (set) 2>&1 |
2292     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2293     *${as_nl}ac_space=\ *)
2294       sed -n \
2295         "s/'\''/'\''\\\\'\'''\''/g;
2296           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2297       ;; #(
2298     *)
2299       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2300       ;;
2301     esac |
2302     sort
2303 )
2304     echo
2305
2306     $as_echo "## ----------------- ##
2307 ## Output variables. ##
2308 ## ----------------- ##"
2309     echo
2310     for ac_var in $ac_subst_vars
2311     do
2312       eval ac_val=\$$ac_var
2313       case $ac_val in
2314       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2315       esac
2316       $as_echo "$ac_var='\''$ac_val'\''"
2317     done | sort
2318     echo
2319
2320     if test -n "$ac_subst_files"; then
2321       $as_echo "## ------------------- ##
2322 ## File substitutions. ##
2323 ## ------------------- ##"
2324       echo
2325       for ac_var in $ac_subst_files
2326       do
2327         eval ac_val=\$$ac_var
2328         case $ac_val in
2329         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2330         esac
2331         $as_echo "$ac_var='\''$ac_val'\''"
2332       done | sort
2333       echo
2334     fi
2335
2336     if test -s confdefs.h; then
2337       $as_echo "## ----------- ##
2338 ## confdefs.h. ##
2339 ## ----------- ##"
2340       echo
2341       cat confdefs.h
2342       echo
2343     fi
2344     test "$ac_signal" != 0 &&
2345       $as_echo "$as_me: caught signal $ac_signal"
2346     $as_echo "$as_me: exit $exit_status"
2347   } >&5
2348   rm -f core *.core core.conftest.* &&
2349     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2350     exit $exit_status
2351 ' 0
2352 for ac_signal in 1 2 13 15; do
2353   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2354 done
2355 ac_signal=0
2356
2357 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2358 rm -f -r conftest* confdefs.h
2359
2360 $as_echo "/* confdefs.h */" > confdefs.h
2361
2362 # Predefined preprocessor variables.
2363
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_NAME "$PACKAGE_NAME"
2366 _ACEOF
2367
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2370 _ACEOF
2371
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2374 _ACEOF
2375
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_STRING "$PACKAGE_STRING"
2378 _ACEOF
2379
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2382 _ACEOF
2383
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_URL "$PACKAGE_URL"
2386 _ACEOF
2387
2388
2389 # Let the site file select an alternate cache file if it wants to.
2390 # Prefer an explicitly selected file to automatically selected ones.
2391 ac_site_file1=NONE
2392 ac_site_file2=NONE
2393 if test -n "$CONFIG_SITE"; then
2394   # We do not want a PATH search for config.site.
2395   case $CONFIG_SITE in #((
2396     -*)  ac_site_file1=./$CONFIG_SITE;;
2397     */*) ac_site_file1=$CONFIG_SITE;;
2398     *)   ac_site_file1=./$CONFIG_SITE;;
2399   esac
2400 elif test "x$prefix" != xNONE; then
2401   ac_site_file1=$prefix/share/config.site
2402   ac_site_file2=$prefix/etc/config.site
2403 else
2404   ac_site_file1=$ac_default_prefix/share/config.site
2405   ac_site_file2=$ac_default_prefix/etc/config.site
2406 fi
2407 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2408 do
2409   test "x$ac_site_file" = xNONE && continue
2410   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2411     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2412 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2413     sed 's/^/| /' "$ac_site_file" >&5
2414     . "$ac_site_file" \
2415       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2417 as_fn_error $? "failed to load site script $ac_site_file
2418 See \`config.log' for more details" "$LINENO" 5; }
2419   fi
2420 done
2421
2422 if test -r "$cache_file"; then
2423   # Some versions of bash will fail to source /dev/null (special files
2424   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2425   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2426     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2427 $as_echo "$as_me: loading cache $cache_file" >&6;}
2428     case $cache_file in
2429       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2430       *)                      . "./$cache_file";;
2431     esac
2432   fi
2433 else
2434   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2435 $as_echo "$as_me: creating cache $cache_file" >&6;}
2436   >$cache_file
2437 fi
2438
2439 # Check that the precious variables saved in the cache have kept the same
2440 # value.
2441 ac_cache_corrupted=false
2442 for ac_var in $ac_precious_vars; do
2443   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2444   eval ac_new_set=\$ac_env_${ac_var}_set
2445   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2446   eval ac_new_val=\$ac_env_${ac_var}_value
2447   case $ac_old_set,$ac_new_set in
2448     set,)
2449       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2450 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2451       ac_cache_corrupted=: ;;
2452     ,set)
2453       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2454 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2455       ac_cache_corrupted=: ;;
2456     ,);;
2457     *)
2458       if test "x$ac_old_val" != "x$ac_new_val"; then
2459         # differences in whitespace do not lead to failure.
2460         ac_old_val_w=`echo x $ac_old_val`
2461         ac_new_val_w=`echo x $ac_new_val`
2462         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2463           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2464 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2465           ac_cache_corrupted=:
2466         else
2467           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2468 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2469           eval $ac_var=\$ac_old_val
2470         fi
2471         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2472 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2473         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2474 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2475       fi;;
2476   esac
2477   # Pass precious variables to config.status.
2478   if test "$ac_new_set" = set; then
2479     case $ac_new_val in
2480     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2481     *) ac_arg=$ac_var=$ac_new_val ;;
2482     esac
2483     case " $ac_configure_args " in
2484       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2485       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2486     esac
2487   fi
2488 done
2489 if $ac_cache_corrupted; then
2490   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2493 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2494   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2495 fi
2496 ## -------------------- ##
2497 ## Main body of script. ##
2498 ## -------------------- ##
2499
2500 ac_ext=c
2501 ac_cpp='$CPP $CPPFLAGS'
2502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2505
2506
2507 ac_config_headers="$ac_config_headers fficonfig.h"
2508
2509
2510 ac_aux_dir=
2511 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2512   if test -f "$ac_dir/install-sh"; then
2513     ac_aux_dir=$ac_dir
2514     ac_install_sh="$ac_aux_dir/install-sh -c"
2515     break
2516   elif test -f "$ac_dir/install.sh"; then
2517     ac_aux_dir=$ac_dir
2518     ac_install_sh="$ac_aux_dir/install.sh -c"
2519     break
2520   elif test -f "$ac_dir/shtool"; then
2521     ac_aux_dir=$ac_dir
2522     ac_install_sh="$ac_aux_dir/shtool install -c"
2523     break
2524   fi
2525 done
2526 if test -z "$ac_aux_dir"; then
2527   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2528 fi
2529
2530 # These three variables are undocumented and unsupported,
2531 # and are intended to be withdrawn in a future Autoconf release.
2532 # They can cause serious problems if a builder's source tree is in a directory
2533 # whose full name contains unusual characters.
2534 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2535 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2536 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2537
2538
2539 # Make sure we can run config.sub.
2540 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2541   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2542
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2544 $as_echo_n "checking build system type... " >&6; }
2545 if ${ac_cv_build+:} false; then :
2546   $as_echo_n "(cached) " >&6
2547 else
2548   ac_build_alias=$build_alias
2549 test "x$ac_build_alias" = x &&
2550   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2551 test "x$ac_build_alias" = x &&
2552   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2553 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2554   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2555
2556 fi
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2558 $as_echo "$ac_cv_build" >&6; }
2559 case $ac_cv_build in
2560 *-*-*) ;;
2561 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2562 esac
2563 build=$ac_cv_build
2564 ac_save_IFS=$IFS; IFS='-'
2565 set x $ac_cv_build
2566 shift
2567 build_cpu=$1
2568 build_vendor=$2
2569 shift; shift
2570 # Remember, the first character of IFS is used to create $*,
2571 # except with old shells:
2572 build_os=$*
2573 IFS=$ac_save_IFS
2574 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2575
2576
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2578 $as_echo_n "checking host system type... " >&6; }
2579 if ${ac_cv_host+:} false; then :
2580   $as_echo_n "(cached) " >&6
2581 else
2582   if test "x$host_alias" = x; then
2583   ac_cv_host=$ac_cv_build
2584 else
2585   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2586     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2587 fi
2588
2589 fi
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2591 $as_echo "$ac_cv_host" >&6; }
2592 case $ac_cv_host in
2593 *-*-*) ;;
2594 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2595 esac
2596 host=$ac_cv_host
2597 ac_save_IFS=$IFS; IFS='-'
2598 set x $ac_cv_host
2599 shift
2600 host_cpu=$1
2601 host_vendor=$2
2602 shift; shift
2603 # Remember, the first character of IFS is used to create $*,
2604 # except with old shells:
2605 host_os=$*
2606 IFS=$ac_save_IFS
2607 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2608
2609
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2611 $as_echo_n "checking target system type... " >&6; }
2612 if ${ac_cv_target+:} false; then :
2613   $as_echo_n "(cached) " >&6
2614 else
2615   if test "x$target_alias" = x; then
2616   ac_cv_target=$ac_cv_host
2617 else
2618   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2619     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2620 fi
2621
2622 fi
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2624 $as_echo "$ac_cv_target" >&6; }
2625 case $ac_cv_target in
2626 *-*-*) ;;
2627 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2628 esac
2629 target=$ac_cv_target
2630 ac_save_IFS=$IFS; IFS='-'
2631 set x $ac_cv_target
2632 shift
2633 target_cpu=$1
2634 target_vendor=$2
2635 shift; shift
2636 # Remember, the first character of IFS is used to create $*,
2637 # except with old shells:
2638 target_os=$*
2639 IFS=$ac_save_IFS
2640 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2641
2642
2643 # The aliases save the names the user supplied, while $host etc.
2644 # will get canonicalized.
2645 test -n "$target_alias" &&
2646   test "$program_prefix$program_suffix$program_transform_name" = \
2647     NONENONEs,x,x, &&
2648   program_prefix=${target_alias}-
2649
2650 target_alias=${target_alias-$host_alias}
2651
2652 . ${srcdir}/configure.host
2653
2654 AX_ENABLE_BUILDDIR
2655
2656 am__api_version='1.11'
2657
2658 # Find a good install program.  We prefer a C program (faster),
2659 # so one script is as good as another.  But avoid the broken or
2660 # incompatible versions:
2661 # SysV /etc/install, /usr/sbin/install
2662 # SunOS /usr/etc/install
2663 # IRIX /sbin/install
2664 # AIX /bin/install
2665 # AmigaOS /C/install, which installs bootblocks on floppy discs
2666 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2667 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2668 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2669 # OS/2's system install, which has a completely different semantic
2670 # ./install, which can be erroneously created by make from ./install.sh.
2671 # Reject install programs that cannot install multiple files.
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2673 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2674 if test -z "$INSTALL"; then
2675 if ${ac_cv_path_install+:} false; then :
2676   $as_echo_n "(cached) " >&6
2677 else
2678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681   IFS=$as_save_IFS
2682   test -z "$as_dir" && as_dir=.
2683     # Account for people who put trailing slashes in PATH elements.
2684 case $as_dir/ in #((
2685   ./ | .// | /[cC]/* | \
2686   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2687   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2688   /usr/ucb/* ) ;;
2689   *)
2690     # OSF1 and SCO ODT 3.0 have their own names for install.
2691     # Don't use installbsd from OSF since it installs stuff as root
2692     # by default.
2693     for ac_prog in ginstall scoinst install; do
2694       for ac_exec_ext in '' $ac_executable_extensions; do
2695         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2696           if test $ac_prog = install &&
2697             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2698             # AIX install.  It has an incompatible calling convention.
2699             :
2700           elif test $ac_prog = install &&
2701             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702             # program-specific install script used by HP pwplus--don't use.
2703             :
2704           else
2705             rm -rf conftest.one conftest.two conftest.dir
2706             echo one > conftest.one
2707             echo two > conftest.two
2708             mkdir conftest.dir
2709             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2710               test -s conftest.one && test -s conftest.two &&
2711               test -s conftest.dir/conftest.one &&
2712               test -s conftest.dir/conftest.two
2713             then
2714               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2715               break 3
2716             fi
2717           fi
2718         fi
2719       done
2720     done
2721     ;;
2722 esac
2723
2724   done
2725 IFS=$as_save_IFS
2726
2727 rm -rf conftest.one conftest.two conftest.dir
2728
2729 fi
2730   if test "${ac_cv_path_install+set}" = set; then
2731     INSTALL=$ac_cv_path_install
2732   else
2733     # As a last resort, use the slow shell script.  Don't cache a
2734     # value for INSTALL within a source directory, because that will
2735     # break other packages using the cache if that directory is
2736     # removed, or if the value is a relative name.
2737     INSTALL=$ac_install_sh
2738   fi
2739 fi
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2741 $as_echo "$INSTALL" >&6; }
2742
2743 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2744 # It thinks the first close brace ends the variable substitution.
2745 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2746
2747 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2748
2749 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2750
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2752 $as_echo_n "checking whether build environment is sane... " >&6; }
2753 # Just in case
2754 sleep 1
2755 echo timestamp > conftest.file
2756 # Reject unsafe characters in $srcdir or the absolute working directory
2757 # name.  Accept space and tab only in the latter.
2758 am_lf='
2759 '
2760 case `pwd` in
2761   *[\\\"\#\$\&\'\`$am_lf]*)
2762     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2763 esac
2764 case $srcdir in
2765   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2766     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2767 esac
2768
2769 # Do `set' in a subshell so we don't clobber the current shell's
2770 # arguments.  Must try -L first in case configure is actually a
2771 # symlink; some systems play weird games with the mod time of symlinks
2772 # (eg FreeBSD returns the mod time of the symlink's containing
2773 # directory).
2774 if (
2775    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2776    if test "$*" = "X"; then
2777       # -L didn't work.
2778       set X `ls -t "$srcdir/configure" conftest.file`
2779    fi
2780    rm -f conftest.file
2781    if test "$*" != "X $srcdir/configure conftest.file" \
2782       && test "$*" != "X conftest.file $srcdir/configure"; then
2783
2784       # If neither matched, then we have a broken ls.  This can happen
2785       # if, for instance, CONFIG_SHELL is bash and it inherits a
2786       # broken ls alias from the environment.  This has actually
2787       # happened.  Such a system could not be considered "sane".
2788       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2789 alias in your environment" "$LINENO" 5
2790    fi
2791
2792    test "$2" = conftest.file
2793    )
2794 then
2795    # Ok.
2796    :
2797 else
2798    as_fn_error $? "newly created file is older than distributed files!
2799 Check your system clock" "$LINENO" 5
2800 fi
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2802 $as_echo "yes" >&6; }
2803 test "$program_prefix" != NONE &&
2804   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2805 # Use a double $ so make ignores it.
2806 test "$program_suffix" != NONE &&
2807   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2808 # Double any \ or $.
2809 # By default was `s,x,x', remove it if useless.
2810 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2811 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2812
2813 # expand $ac_aux_dir to an absolute path
2814 am_aux_dir=`cd $ac_aux_dir && pwd`
2815
2816 if test x"${MISSING+set}" != xset; then
2817   case $am_aux_dir in
2818   *\ * | *\     *)
2819     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2820   *)
2821     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2822   esac
2823 fi
2824 # Use eval to expand $SHELL
2825 if eval "$MISSING --run true"; then
2826   am_missing_run="$MISSING --run "
2827 else
2828   am_missing_run=
2829   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2830 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2831 fi
2832
2833 if test x"${install_sh}" != xset; then
2834   case $am_aux_dir in
2835   *\ * | *\     *)
2836     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2837   *)
2838     install_sh="\${SHELL} $am_aux_dir/install-sh"
2839   esac
2840 fi
2841
2842 # Installed binaries are usually stripped using `strip' when the user
2843 # run `make install-strip'.  However `strip' might not be the right
2844 # tool to use in cross-compilation environments, therefore Automake
2845 # will honor the `STRIP' environment variable to overrule this program.
2846 if test "$cross_compiling" != no; then
2847   if test -n "$ac_tool_prefix"; then
2848   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2849 set dummy ${ac_tool_prefix}strip; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_STRIP+:} false; then :
2853   $as_echo_n "(cached) " >&6
2854 else
2855   if test -n "$STRIP"; then
2856   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863     for ac_exec_ext in '' $ac_executable_extensions; do
2864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867     break 2
2868   fi
2869 done
2870   done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 STRIP=$ac_cv_prog_STRIP
2876 if test -n "$STRIP"; then
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2878 $as_echo "$STRIP" >&6; }
2879 else
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 fi
2883
2884
2885 fi
2886 if test -z "$ac_cv_prog_STRIP"; then
2887   ac_ct_STRIP=$STRIP
2888   # Extract the first word of "strip", so it can be a program name with args.
2889 set dummy strip; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2893   $as_echo_n "(cached) " >&6
2894 else
2895   if test -n "$ac_ct_STRIP"; then
2896   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901   IFS=$as_save_IFS
2902   test -z "$as_dir" && as_dir=.
2903     for ac_exec_ext in '' $ac_executable_extensions; do
2904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905     ac_cv_prog_ac_ct_STRIP="strip"
2906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907     break 2
2908   fi
2909 done
2910   done
2911 IFS=$as_save_IFS
2912
2913 fi
2914 fi
2915 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2916 if test -n "$ac_ct_STRIP"; then
2917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2918 $as_echo "$ac_ct_STRIP" >&6; }
2919 else
2920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 fi
2923
2924   if test "x$ac_ct_STRIP" = x; then
2925     STRIP=":"
2926   else
2927     case $cross_compiling:$ac_tool_warned in
2928 yes:)
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931 ac_tool_warned=yes ;;
2932 esac
2933     STRIP=$ac_ct_STRIP
2934   fi
2935 else
2936   STRIP="$ac_cv_prog_STRIP"
2937 fi
2938
2939 fi
2940 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2941
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2943 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2944 if test -z "$MKDIR_P"; then
2945   if ${ac_cv_path_mkdir+:} false; then :
2946   $as_echo_n "(cached) " >&6
2947 else
2948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953     for ac_prog in mkdir gmkdir; do
2954          for ac_exec_ext in '' $ac_executable_extensions; do
2955            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2956            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2957              'mkdir (GNU coreutils) '* | \
2958              'mkdir (coreutils) '* | \
2959              'mkdir (fileutils) '4.1*)
2960                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2961                break 3;;
2962            esac
2963          done
2964        done
2965   done
2966 IFS=$as_save_IFS
2967
2968 fi
2969
2970   test -d ./--version && rmdir ./--version
2971   if test "${ac_cv_path_mkdir+set}" = set; then
2972     MKDIR_P="$ac_cv_path_mkdir -p"
2973   else
2974     # As a last resort, use the slow shell script.  Don't cache a
2975     # value for MKDIR_P within a source directory, because that will
2976     # break other packages using the cache if that directory is
2977     # removed, or if the value is a relative name.
2978     MKDIR_P="$ac_install_sh -d"
2979   fi
2980 fi
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2982 $as_echo "$MKDIR_P" >&6; }
2983
2984 mkdir_p="$MKDIR_P"
2985 case $mkdir_p in
2986   [\\/$]* | ?:[\\/]*) ;;
2987   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2988 esac
2989
2990 for ac_prog in gawk mawk nawk awk
2991 do
2992   # Extract the first word of "$ac_prog", so it can be a program name with args.
2993 set dummy $ac_prog; ac_word=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if ${ac_cv_prog_AWK+:} false; then :
2997   $as_echo_n "(cached) " >&6
2998 else
2999   if test -n "$AWK"; then
3000   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3001 else
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3004 do
3005   IFS=$as_save_IFS
3006   test -z "$as_dir" && as_dir=.
3007     for ac_exec_ext in '' $ac_executable_extensions; do
3008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009     ac_cv_prog_AWK="$ac_prog"
3010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011     break 2
3012   fi
3013 done
3014   done
3015 IFS=$as_save_IFS
3016
3017 fi
3018 fi
3019 AWK=$ac_cv_prog_AWK
3020 if test -n "$AWK"; then
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3022 $as_echo "$AWK" >&6; }
3023 else
3024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3026 fi
3027
3028
3029   test -n "$AWK" && break
3030 done
3031
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3033 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3034 set x ${MAKE-make}
3035 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3036 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3037   $as_echo_n "(cached) " >&6
3038 else
3039   cat >conftest.make <<\_ACEOF
3040 SHELL = /bin/sh
3041 all:
3042         @echo '@@@%%%=$(MAKE)=@@@%%%'
3043 _ACEOF
3044 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3045 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3046   *@@@%%%=?*=@@@%%%*)
3047     eval ac_cv_prog_make_${ac_make}_set=yes;;
3048   *)
3049     eval ac_cv_prog_make_${ac_make}_set=no;;
3050 esac
3051 rm -f conftest.make
3052 fi
3053 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3055 $as_echo "yes" >&6; }
3056   SET_MAKE=
3057 else
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3060   SET_MAKE="MAKE=${MAKE-make}"
3061 fi
3062
3063 rm -rf .tst 2>/dev/null
3064 mkdir .tst 2>/dev/null
3065 if test -d .tst; then
3066   am__leading_dot=.
3067 else
3068   am__leading_dot=_
3069 fi
3070 rmdir .tst 2>/dev/null
3071
3072 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3073   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3074   # is not polluted with repeated "-I."
3075   am__isrc=' -I$(srcdir)'
3076   # test to see if srcdir already configured
3077   if test -f $srcdir/config.status; then
3078     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3079   fi
3080 fi
3081
3082 # test whether we have cygpath
3083 if test -z "$CYGPATH_W"; then
3084   if (cygpath --version) >/dev/null 2>/dev/null; then
3085     CYGPATH_W='cygpath -w'
3086   else
3087     CYGPATH_W=echo
3088   fi
3089 fi
3090
3091
3092 # Define the identity of the package.
3093  PACKAGE='libffi'
3094  VERSION='3.0.11'
3095
3096
3097 cat >>confdefs.h <<_ACEOF
3098 #define PACKAGE "$PACKAGE"
3099 _ACEOF
3100
3101
3102 cat >>confdefs.h <<_ACEOF
3103 #define VERSION "$VERSION"
3104 _ACEOF
3105
3106 # Some tools Automake needs.
3107
3108 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3109
3110
3111 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3112
3113
3114 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3115
3116
3117 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3118
3119
3120 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3121
3122 # We need awk for the "check" target.  The system "awk" is bad on
3123 # some platforms.
3124 # Always define AMTAR for backward compatibility.  Yes, it's still used
3125 # in the wild :-(  We should find a proper way to deprecate it ...
3126 AMTAR='$${TAR-tar}'
3127
3128 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3129
3130
3131
3132
3133
3134
3135 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3136 # We must force CC to /not/ be precious variables; otherwise
3137 # the wrong, non-multilib-adjusted value will be used in multilibs.
3138 # As a side effect, we have to subst CFLAGS ourselves.
3139 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3140 # defaults of its own if none are provided.
3141
3142
3143
3144 save_CFLAGS=$CFLAGS
3145 ac_ext=c
3146 ac_cpp='$CPP $CPPFLAGS'
3147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150 if test -n "$ac_tool_prefix"; then
3151   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3152 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_prog_CC+:} false; then :
3156   $as_echo_n "(cached) " >&6
3157 else
3158   if test -n "$CC"; then
3159   ac_cv_prog_CC="$CC" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164   IFS=$as_save_IFS
3165   test -z "$as_dir" && as_dir=.
3166     for ac_exec_ext in '' $ac_executable_extensions; do
3167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3168     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170     break 2
3171   fi
3172 done
3173   done
3174 IFS=$as_save_IFS
3175
3176 fi
3177 fi
3178 CC=$ac_cv_prog_CC
3179 if test -n "$CC"; then
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3182 else
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 fi
3186
3187
3188 fi
3189 if test -z "$ac_cv_prog_CC"; then
3190   ac_ct_CC=$CC
3191   # Extract the first word of "gcc", so it can be a program name with args.
3192 set dummy gcc; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3196   $as_echo_n "(cached) " >&6
3197 else
3198   if test -n "$ac_ct_CC"; then
3199   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3203 do
3204   IFS=$as_save_IFS
3205   test -z "$as_dir" && as_dir=.
3206     for ac_exec_ext in '' $ac_executable_extensions; do
3207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208     ac_cv_prog_ac_ct_CC="gcc"
3209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210     break 2
3211   fi
3212 done
3213   done
3214 IFS=$as_save_IFS
3215
3216 fi
3217 fi
3218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3219 if test -n "$ac_ct_CC"; then
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3221 $as_echo "$ac_ct_CC" >&6; }
3222 else
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 fi
3226
3227   if test "x$ac_ct_CC" = x; then
3228     CC=""
3229   else
3230     case $cross_compiling:$ac_tool_warned in
3231 yes:)
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234 ac_tool_warned=yes ;;
3235 esac
3236     CC=$ac_ct_CC
3237   fi
3238 else
3239   CC="$ac_cv_prog_CC"
3240 fi
3241
3242 if test -z "$CC"; then
3243           if test -n "$ac_tool_prefix"; then
3244     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3245 set dummy ${ac_tool_prefix}cc; ac_word=$2
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if ${ac_cv_prog_CC+:} false; then :
3249   $as_echo_n "(cached) " >&6
3250 else
3251   if test -n "$CC"; then
3252   ac_cv_prog_CC="$CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257   IFS=$as_save_IFS
3258   test -z "$as_dir" && as_dir=.
3259     for ac_exec_ext in '' $ac_executable_extensions; do
3260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261     ac_cv_prog_CC="${ac_tool_prefix}cc"
3262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263     break 2
3264   fi
3265 done
3266   done
3267 IFS=$as_save_IFS
3268
3269 fi
3270 fi
3271 CC=$ac_cv_prog_CC
3272 if test -n "$CC"; then
3273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3274 $as_echo "$CC" >&6; }
3275 else
3276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 fi
3279
3280
3281   fi
3282 fi
3283 if test -z "$CC"; then
3284   # Extract the first word of "cc", so it can be a program name with args.
3285 set dummy cc; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if ${ac_cv_prog_CC+:} false; then :
3289   $as_echo_n "(cached) " >&6
3290 else
3291   if test -n "$CC"; then
3292   ac_cv_prog_CC="$CC" # Let the user override the test.
3293 else
3294   ac_prog_rejected=no
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298   IFS=$as_save_IFS
3299   test -z "$as_dir" && as_dir=.
3300     for ac_exec_ext in '' $ac_executable_extensions; do
3301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3303        ac_prog_rejected=yes
3304        continue
3305      fi
3306     ac_cv_prog_CC="cc"
3307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308     break 2
3309   fi
3310 done
3311   done
3312 IFS=$as_save_IFS
3313
3314 if test $ac_prog_rejected = yes; then
3315   # We found a bogon in the path, so make sure we never use it.
3316   set dummy $ac_cv_prog_CC
3317   shift
3318   if test $# != 0; then
3319     # We chose a different compiler from the bogus one.
3320     # However, it has the same basename, so the bogon will be chosen
3321     # first if we set CC to just the basename; use the full file name.
3322     shift
3323     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3324   fi
3325 fi
3326 fi
3327 fi
3328 CC=$ac_cv_prog_CC
3329 if test -n "$CC"; then
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331 $as_echo "$CC" >&6; }
3332 else
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 fi
3336
3337
3338 fi
3339 if test -z "$CC"; then
3340   if test -n "$ac_tool_prefix"; then
3341   for ac_prog in cl.exe
3342   do
3343     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_CC+:} false; then :
3348   $as_echo_n "(cached) " >&6
3349 else
3350   if test -n "$CC"; then
3351   ac_cv_prog_CC="$CC" # Let the user override the test.
3352 else
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in $PATH
3355 do
3356   IFS=$as_save_IFS
3357   test -z "$as_dir" && as_dir=.
3358     for ac_exec_ext in '' $ac_executable_extensions; do
3359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362     break 2
3363   fi
3364 done
3365   done
3366 IFS=$as_save_IFS
3367
3368 fi
3369 fi
3370 CC=$ac_cv_prog_CC
3371 if test -n "$CC"; then
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3374 else
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 fi
3378
3379
3380     test -n "$CC" && break
3381   done
3382 fi
3383 if test -z "$CC"; then
3384   ac_ct_CC=$CC
3385   for ac_prog in cl.exe
3386 do
3387   # Extract the first word of "$ac_prog", so it can be a program name with args.
3388 set dummy $ac_prog; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3392   $as_echo_n "(cached) " >&6
3393 else
3394   if test -n "$ac_ct_CC"; then
3395   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3399 do
3400   IFS=$as_save_IFS
3401   test -z "$as_dir" && as_dir=.
3402     for ac_exec_ext in '' $ac_executable_extensions; do
3403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404     ac_cv_prog_ac_ct_CC="$ac_prog"
3405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406     break 2
3407   fi
3408 done
3409   done
3410 IFS=$as_save_IFS
3411
3412 fi
3413 fi
3414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3415 if test -n "$ac_ct_CC"; then
3416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3417 $as_echo "$ac_ct_CC" >&6; }
3418 else
3419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3421 fi
3422
3423
3424   test -n "$ac_ct_CC" && break
3425 done
3426
3427   if test "x$ac_ct_CC" = x; then
3428     CC=""
3429   else
3430     case $cross_compiling:$ac_tool_warned in
3431 yes:)
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3434 ac_tool_warned=yes ;;
3435 esac
3436     CC=$ac_ct_CC
3437   fi
3438 fi
3439
3440 fi
3441
3442
3443 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 as_fn_error $? "no acceptable C compiler found in \$PATH
3446 See \`config.log' for more details" "$LINENO" 5; }
3447
3448 # Provide some information about the compiler.
3449 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3450 set X $ac_compile
3451 ac_compiler=$2
3452 for ac_option in --version -v -V -qversion; do
3453   { { ac_try="$ac_compiler $ac_option >&5"
3454 case "(($ac_try" in
3455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456   *) ac_try_echo=$ac_try;;
3457 esac
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3461   ac_status=$?
3462   if test -s conftest.err; then
3463     sed '10a\
3464 ... rest of stderr output deleted ...
3465          10q' conftest.err >conftest.er1
3466     cat conftest.er1 >&5
3467   fi
3468   rm -f conftest.er1 conftest.err
3469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470   test $ac_status = 0; }
3471 done
3472
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 ac_clean_files_save=$ac_clean_files
3485 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3486 # Try to create an executable without -o first, disregard a.out.
3487 # It will help us diagnose broken compilers, and finding out an intuition
3488 # of exeext.
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3490 $as_echo_n "checking whether the C compiler works... " >&6; }
3491 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3492
3493 # The possible output files:
3494 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3495
3496 ac_rmfiles=
3497 for ac_file in $ac_files
3498 do
3499   case $ac_file in
3500     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3501     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3502   esac
3503 done
3504 rm -f $ac_rmfiles
3505
3506 if { { ac_try="$ac_link_default"
3507 case "(($ac_try" in
3508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509   *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513   (eval "$ac_link_default") 2>&5
3514   ac_status=$?
3515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516   test $ac_status = 0; }; then :
3517   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3518 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3519 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3520 # so that the user can short-circuit this test for compilers unknown to
3521 # Autoconf.
3522 for ac_file in $ac_files ''
3523 do
3524   test -f "$ac_file" || continue
3525   case $ac_file in
3526     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3527         ;;
3528     [ab].out )
3529         # We found the default executable, but exeext='' is most
3530         # certainly right.
3531         break;;
3532     *.* )
3533         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3534         then :; else
3535            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536         fi
3537         # We set ac_cv_exeext here because the later test for it is not
3538         # safe: cross compilers may not add the suffix if given an `-o'
3539         # argument, so we may need to know it at that point already.
3540         # Even if this section looks crufty: it has the advantage of
3541         # actually working.
3542         break;;
3543     * )
3544         break;;
3545   esac
3546 done
3547 test "$ac_cv_exeext" = no && ac_cv_exeext=
3548
3549 else
3550   ac_file=''
3551 fi
3552 if test -z "$ac_file"; then :
3553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3555 $as_echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 as_fn_error 77 "C compiler cannot create executables
3561 See \`config.log' for more details" "$LINENO" 5; }
3562 else
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3564 $as_echo "yes" >&6; }
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3567 $as_echo_n "checking for C compiler default output file name... " >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3569 $as_echo "$ac_file" >&6; }
3570 ac_exeext=$ac_cv_exeext
3571
3572 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3573 ac_clean_files=$ac_clean_files_save
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3575 $as_echo_n "checking for suffix of executables... " >&6; }
3576 if { { ac_try="$ac_link"
3577 case "(($ac_try" in
3578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579   *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582 $as_echo "$ac_try_echo"; } >&5
3583   (eval "$ac_link") 2>&5
3584   ac_status=$?
3585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3586   test $ac_status = 0; }; then :
3587   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3588 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3589 # work properly (i.e., refer to `conftest.exe'), while it won't with
3590 # `rm'.
3591 for ac_file in conftest.exe conftest conftest.*; do
3592   test -f "$ac_file" || continue
3593   case $ac_file in
3594     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3595     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3596           break;;
3597     * ) break;;
3598   esac
3599 done
3600 else
3601   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3604 See \`config.log' for more details" "$LINENO" 5; }
3605 fi
3606 rm -f conftest conftest$ac_cv_exeext
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3608 $as_echo "$ac_cv_exeext" >&6; }
3609
3610 rm -f conftest.$ac_ext
3611 EXEEXT=$ac_cv_exeext
3612 ac_exeext=$EXEEXT
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h.  */
3615 #include <stdio.h>
3616 int
3617 main ()
3618 {
3619 FILE *f = fopen ("conftest.out", "w");
3620  return ferror (f) || fclose (f) != 0;
3621
3622   ;
3623   return 0;
3624 }
3625 _ACEOF
3626 ac_clean_files="$ac_clean_files conftest.out"
3627 # Check that the compiler produces executables we can run.  If not, either
3628 # the compiler is broken, or we cross compile.
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3630 $as_echo_n "checking whether we are cross compiling... " >&6; }
3631 if test "$cross_compiling" != yes; then
3632   { { ac_try="$ac_link"
3633 case "(($ac_try" in
3634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635   *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639   (eval "$ac_link") 2>&5
3640   ac_status=$?
3641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642   test $ac_status = 0; }
3643   if { ac_try='./conftest$ac_cv_exeext'
3644   { { case "(($ac_try" in
3645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646   *) ac_try_echo=$ac_try;;
3647 esac
3648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649 $as_echo "$ac_try_echo"; } >&5
3650   (eval "$ac_try") 2>&5
3651   ac_status=$?
3652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653   test $ac_status = 0; }; }; then
3654     cross_compiling=no
3655   else
3656     if test "$cross_compiling" = maybe; then
3657         cross_compiling=yes
3658     else
3659         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 as_fn_error $? "cannot run C compiled programs.
3662 If you meant to cross compile, use \`--host'.
3663 See \`config.log' for more details" "$LINENO" 5; }
3664     fi
3665   fi
3666 fi
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3668 $as_echo "$cross_compiling" >&6; }
3669
3670 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3671 ac_clean_files=$ac_clean_files_save
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3673 $as_echo_n "checking for suffix of object files... " >&6; }
3674 if ${ac_cv_objext+:} false; then :
3675   $as_echo_n "(cached) " >&6
3676 else
3677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h.  */
3679
3680 int
3681 main ()
3682 {
3683
3684   ;
3685   return 0;
3686 }
3687 _ACEOF
3688 rm -f conftest.o conftest.obj
3689 if { { ac_try="$ac_compile"
3690 case "(($ac_try" in
3691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692   *) ac_try_echo=$ac_try;;
3693 esac
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696   (eval "$ac_compile") 2>&5
3697   ac_status=$?
3698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699   test $ac_status = 0; }; then :
3700   for ac_file in conftest.o conftest.obj conftest.*; do
3701   test -f "$ac_file" || continue;
3702   case $ac_file in
3703     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3704     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3705        break;;
3706   esac
3707 done
3708 else
3709   $as_echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error $? "cannot compute suffix of object files: cannot compile
3715 See \`config.log' for more details" "$LINENO" 5; }
3716 fi
3717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3718 fi
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3720 $as_echo "$ac_cv_objext" >&6; }
3721 OBJEXT=$ac_cv_objext
3722 ac_objext=$OBJEXT
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3724 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3725 if ${ac_cv_c_compiler_gnu+:} false; then :
3726   $as_echo_n "(cached) " >&6
3727 else
3728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h.  */
3730
3731 int
3732 main ()
3733 {
3734 #ifndef __GNUC__
3735        choke me
3736 #endif
3737
3738   ;
3739   return 0;
3740 }
3741 _ACEOF
3742 if ac_fn_c_try_compile "$LINENO"; then :
3743   ac_compiler_gnu=yes
3744 else
3745   ac_compiler_gnu=no
3746 fi
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3749
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3752 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3753 if test $ac_compiler_gnu = yes; then
3754   GCC=yes
3755 else
3756   GCC=
3757 fi
3758 ac_test_CFLAGS=${CFLAGS+set}
3759 ac_save_CFLAGS=$CFLAGS
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3761 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3762 if ${ac_cv_prog_cc_g+:} false; then :
3763   $as_echo_n "(cached) " >&6
3764 else
3765   ac_save_c_werror_flag=$ac_c_werror_flag
3766    ac_c_werror_flag=yes
3767    ac_cv_prog_cc_g=no
3768    CFLAGS="-g"
3769    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h.  */
3771
3772 int
3773 main ()
3774 {
3775
3776   ;
3777   return 0;
3778 }
3779 _ACEOF
3780 if ac_fn_c_try_compile "$LINENO"; then :
3781   ac_cv_prog_cc_g=yes
3782 else
3783   CFLAGS=""
3784       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h.  */
3786
3787 int
3788 main ()
3789 {
3790
3791   ;
3792   return 0;
3793 }
3794 _ACEOF
3795 if ac_fn_c_try_compile "$LINENO"; then :
3796
3797 else
3798   ac_c_werror_flag=$ac_save_c_werror_flag
3799          CFLAGS="-g"
3800          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h.  */
3802
3803 int
3804 main ()
3805 {
3806
3807   ;
3808   return 0;
3809 }
3810 _ACEOF
3811 if ac_fn_c_try_compile "$LINENO"; then :
3812   ac_cv_prog_cc_g=yes
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 fi
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 fi
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819    ac_c_werror_flag=$ac_save_c_werror_flag
3820 fi
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3822 $as_echo "$ac_cv_prog_cc_g" >&6; }
3823 if test "$ac_test_CFLAGS" = set; then
3824   CFLAGS=$ac_save_CFLAGS
3825 elif test $ac_cv_prog_cc_g = yes; then
3826   if test "$GCC" = yes; then
3827     CFLAGS="-g -O2"
3828   else
3829     CFLAGS="-g"
3830   fi
3831 else
3832   if test "$GCC" = yes; then
3833     CFLAGS="-O2"
3834   else
3835     CFLAGS=
3836   fi
3837 fi
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3839 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3840 if ${ac_cv_prog_cc_c89+:} false; then :
3841   $as_echo_n "(cached) " >&6
3842 else
3843   ac_cv_prog_cc_c89=no
3844 ac_save_CC=$CC
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h.  */
3847 #include <stdarg.h>
3848 #include <stdio.h>
3849 #include <sys/types.h>
3850 #include <sys/stat.h>
3851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3852 struct buf { int x; };
3853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3854 static char *e (p, i)
3855      char **p;
3856      int i;
3857 {
3858   return p[i];
3859 }
3860 static char *f (char * (*g) (char **, int), char **p, ...)
3861 {
3862   char *s;
3863   va_list v;
3864   va_start (v,p);
3865   s = g (p, va_arg (v,int));
3866   va_end (v);
3867   return s;
3868 }
3869
3870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3871    function prototypes and stuff, but not '\xHH' hex character constants.
3872    These don't provoke an error unfortunately, instead are silently treated
3873    as 'x'.  The following induces an error, until -std is added to get
3874    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3875    array size at least.  It's necessary to write '\x00'==0 to get something
3876    that's true only with -std.  */
3877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3878
3879 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3880    inside strings and character constants.  */
3881 #define FOO(x) 'x'
3882 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3883
3884 int test (int i, double x);
3885 struct s1 {int (*f) (int a);};
3886 struct s2 {int (*f) (double a);};
3887 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3888 int argc;
3889 char **argv;
3890 int
3891 main ()
3892 {
3893 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3894   ;
3895   return 0;
3896 }
3897 _ACEOF
3898 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3899         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3900 do
3901   CC="$ac_save_CC $ac_arg"
3902   if ac_fn_c_try_compile "$LINENO"; then :
3903   ac_cv_prog_cc_c89=$ac_arg
3904 fi
3905 rm -f core conftest.err conftest.$ac_objext
3906   test "x$ac_cv_prog_cc_c89" != "xno" && break
3907 done
3908 rm -f conftest.$ac_ext
3909 CC=$ac_save_CC
3910
3911 fi
3912 # AC_CACHE_VAL
3913 case "x$ac_cv_prog_cc_c89" in
3914   x)
3915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3916 $as_echo "none needed" >&6; } ;;
3917   xno)
3918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3919 $as_echo "unsupported" >&6; } ;;
3920   *)
3921     CC="$CC $ac_cv_prog_cc_c89"
3922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3923 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3924 esac
3925 if test "x$ac_cv_prog_cc_c89" != xno; then :
3926
3927 fi
3928
3929 ac_ext=c
3930 ac_cpp='$CPP $CPPFLAGS'
3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3934 DEPDIR="${am__leading_dot}deps"
3935
3936 ac_config_commands="$ac_config_commands depfiles"
3937
3938
3939 am_make=${MAKE-make}
3940 cat > confinc << 'END'
3941 am__doit:
3942         @echo this is the am__doit target
3943 .PHONY: am__doit
3944 END
3945 # If we don't find an include directive, just comment out the code.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3947 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3948 am__include="#"
3949 am__quote=
3950 _am_result=none
3951 # First try GNU make style include.
3952 echo "include confinc" > confmf
3953 # Ignore all kinds of additional output from `make'.
3954 case `$am_make -s -f confmf 2> /dev/null` in #(
3955 *the\ am__doit\ target*)
3956   am__include=include
3957   am__quote=
3958   _am_result=GNU
3959   ;;
3960 esac
3961 # Now try BSD make style include.
3962 if test "$am__include" = "#"; then
3963    echo '.include "confinc"' > confmf
3964    case `$am_make -s -f confmf 2> /dev/null` in #(
3965    *the\ am__doit\ target*)
3966      am__include=.include
3967      am__quote="\""
3968      _am_result=BSD
3969      ;;
3970    esac
3971 fi
3972
3973
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3975 $as_echo "$_am_result" >&6; }
3976 rm -f confinc confmf
3977
3978 # Check whether --enable-dependency-tracking was given.
3979 if test "${enable_dependency_tracking+set}" = set; then :
3980   enableval=$enable_dependency_tracking;
3981 fi
3982
3983 if test "x$enable_dependency_tracking" != xno; then
3984   am_depcomp="$ac_aux_dir/depcomp"
3985   AMDEPBACKSLASH='\'
3986   am__nodep='_no'
3987 fi
3988  if test "x$enable_dependency_tracking" != xno; then
3989   AMDEP_TRUE=
3990   AMDEP_FALSE='#'
3991 else
3992   AMDEP_TRUE='#'
3993   AMDEP_FALSE=
3994 fi
3995
3996
3997
3998 depcc="$CC"   am_compiler_list=
3999
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4001 $as_echo_n "checking dependency style of $depcc... " >&6; }
4002 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4003   $as_echo_n "(cached) " >&6
4004 else
4005   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4006   # We make a subdir and do the tests there.  Otherwise we can end up
4007   # making bogus files that we don't know about and never remove.  For
4008   # instance it was reported that on HP-UX the gcc test will end up
4009   # making a dummy file named `D' -- because `-MD' means `put the output
4010   # in D'.
4011   rm -rf conftest.dir
4012   mkdir conftest.dir
4013   # Copy depcomp to subdir because otherwise we won't find it if we're
4014   # using a relative directory.
4015   cp "$am_depcomp" conftest.dir
4016   cd conftest.dir
4017   # We will build objects and dependencies in a subdirectory because
4018   # it helps to detect inapplicable dependency modes.  For instance
4019   # both Tru64's cc and ICC support -MD to output dependencies as a
4020   # side effect of compilation, but ICC will put the dependencies in
4021   # the current directory while Tru64 will put them in the object
4022   # directory.
4023   mkdir sub
4024
4025   am_cv_CC_dependencies_compiler_type=none
4026   if test "$am_compiler_list" = ""; then
4027      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4028   fi
4029   am__universal=false
4030   case " $depcc " in #(
4031      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4032      esac
4033
4034   for depmode in $am_compiler_list; do
4035     # Setup a source with many dependencies, because some compilers
4036     # like to wrap large dependency lists on column 80 (with \), and
4037     # we should not choose a depcomp mode which is confused by this.
4038     #
4039     # We need to recreate these files for each test, as the compiler may
4040     # overwrite some of them when testing with obscure command lines.
4041     # This happens at least with the AIX C compiler.
4042     : > sub/conftest.c
4043     for i in 1 2 3 4 5 6; do
4044       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4045       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4046       # Solaris 8's {/usr,}/bin/sh.
4047       touch sub/conftst$i.h
4048     done
4049     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4050
4051     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4052     # mode.  It turns out that the SunPro C++ compiler does not properly
4053     # handle `-M -o', and we need to detect this.  Also, some Intel
4054     # versions had trouble with output in subdirs
4055     am__obj=sub/conftest.${OBJEXT-o}
4056     am__minus_obj="-o $am__obj"
4057     case $depmode in
4058     gcc)
4059       # This depmode causes a compiler race in universal mode.
4060       test "$am__universal" = false || continue
4061       ;;
4062     nosideeffect)
4063       # after this tag, mechanisms are not by side-effect, so they'll
4064       # only be used when explicitly requested
4065       if test "x$enable_dependency_tracking" = xyes; then
4066         continue
4067       else
4068         break
4069       fi
4070       ;;
4071     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4072       # This compiler won't grok `-c -o', but also, the minuso test has
4073       # not run yet.  These depmodes are late enough in the game, and
4074       # so weak that their functioning should not be impacted.
4075       am__obj=conftest.${OBJEXT-o}
4076       am__minus_obj=
4077       ;;
4078     none) break ;;
4079     esac
4080     if depmode=$depmode \
4081        source=sub/conftest.c object=$am__obj \
4082        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4083        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4084          >/dev/null 2>conftest.err &&
4085        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4086        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4087        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4088        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4089       # icc doesn't choke on unknown options, it will just issue warnings
4090       # or remarks (even with -Werror).  So we grep stderr for any message
4091       # that says an option was ignored or not supported.
4092       # When given -MP, icc 7.0 and 7.1 complain thusly:
4093       #   icc: Command line warning: ignoring option '-M'; no argument required
4094       # The diagnosis changed in icc 8.0:
4095       #   icc: Command line remark: option '-MP' not supported
4096       if (grep 'ignoring option' conftest.err ||
4097           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4098         am_cv_CC_dependencies_compiler_type=$depmode
4099         break
4100       fi
4101     fi
4102   done
4103
4104   cd ..
4105   rm -rf conftest.dir
4106 else
4107   am_cv_CC_dependencies_compiler_type=none
4108 fi
4109
4110 fi
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4112 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4113 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4114
4115  if
4116   test "x$enable_dependency_tracking" != xno \
4117   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4118   am__fastdepCC_TRUE=
4119   am__fastdepCC_FALSE='#'
4120 else
4121   am__fastdepCC_TRUE='#'
4122   am__fastdepCC_FALSE=
4123 fi
4124
4125
4126 CFLAGS=$save_CFLAGS
4127
4128
4129
4130
4131
4132 # By default we simply use the C compiler to build assembly code.
4133
4134 test "${CCAS+set}" = set || CCAS=$CC
4135 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4136
4137
4138
4139 depcc="$CCAS"   am_compiler_list=
4140
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4142 $as_echo_n "checking dependency style of $depcc... " >&6; }
4143 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4144   $as_echo_n "(cached) " >&6
4145 else
4146   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4147   # We make a subdir and do the tests there.  Otherwise we can end up
4148   # making bogus files that we don't know about and never remove.  For
4149   # instance it was reported that on HP-UX the gcc test will end up
4150   # making a dummy file named `D' -- because `-MD' means `put the output
4151   # in D'.
4152   rm -rf conftest.dir
4153   mkdir conftest.dir
4154   # Copy depcomp to subdir because otherwise we won't find it if we're
4155   # using a relative directory.
4156   cp "$am_depcomp" conftest.dir
4157   cd conftest.dir
4158   # We will build objects and dependencies in a subdirectory because
4159   # it helps to detect inapplicable dependency modes.  For instance
4160   # both Tru64's cc and ICC support -MD to output dependencies as a
4161   # side effect of compilation, but ICC will put the dependencies in
4162   # the current directory while Tru64 will put them in the object
4163   # directory.
4164   mkdir sub
4165
4166   am_cv_CCAS_dependencies_compiler_type=none
4167   if test "$am_compiler_list" = ""; then
4168      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4169   fi
4170   am__universal=false
4171
4172
4173   for depmode in $am_compiler_list; do
4174     # Setup a source with many dependencies, because some compilers
4175     # like to wrap large dependency lists on column 80 (with \), and
4176     # we should not choose a depcomp mode which is confused by this.
4177     #
4178     # We need to recreate these files for each test, as the compiler may
4179     # overwrite some of them when testing with obscure command lines.
4180     # This happens at least with the AIX C compiler.
4181     : > sub/conftest.c
4182     for i in 1 2 3 4 5 6; do
4183       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4184       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4185       # Solaris 8's {/usr,}/bin/sh.
4186       touch sub/conftst$i.h
4187     done
4188     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4189
4190     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4191     # mode.  It turns out that the SunPro C++ compiler does not properly
4192     # handle `-M -o', and we need to detect this.  Also, some Intel
4193     # versions had trouble with output in subdirs
4194     am__obj=sub/conftest.${OBJEXT-o}
4195     am__minus_obj="-o $am__obj"
4196     case $depmode in
4197     gcc)
4198       # This depmode causes a compiler race in universal mode.
4199       test "$am__universal" = false || continue
4200       ;;
4201     nosideeffect)
4202       # after this tag, mechanisms are not by side-effect, so they'll
4203       # only be used when explicitly requested
4204       if test "x$enable_dependency_tracking" = xyes; then
4205         continue
4206       else
4207         break
4208       fi
4209       ;;
4210     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4211       # This compiler won't grok `-c -o', but also, the minuso test has
4212       # not run yet.  These depmodes are late enough in the game, and
4213       # so weak that their functioning should not be impacted.
4214       am__obj=conftest.${OBJEXT-o}
4215       am__minus_obj=
4216       ;;
4217     none) break ;;
4218     esac
4219     if depmode=$depmode \
4220        source=sub/conftest.c object=$am__obj \
4221        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4222        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4223          >/dev/null 2>conftest.err &&
4224        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4225        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4226        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4227        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4228       # icc doesn't choke on unknown options, it will just issue warnings
4229       # or remarks (even with -Werror).  So we grep stderr for any message
4230       # that says an option was ignored or not supported.
4231       # When given -MP, icc 7.0 and 7.1 complain thusly:
4232       #   icc: Command line warning: ignoring option '-M'; no argument required
4233       # The diagnosis changed in icc 8.0:
4234       #   icc: Command line remark: option '-MP' not supported
4235       if (grep 'ignoring option' conftest.err ||
4236           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4237         am_cv_CCAS_dependencies_compiler_type=$depmode
4238         break
4239       fi
4240     fi
4241   done
4242
4243   cd ..
4244   rm -rf conftest.dir
4245 else
4246   am_cv_CCAS_dependencies_compiler_type=none
4247 fi
4248
4249 fi
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4251 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4252 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4253
4254  if
4255   test "x$enable_dependency_tracking" != xno \
4256   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4257   am__fastdepCCAS_TRUE=
4258   am__fastdepCCAS_FALSE='#'
4259 else
4260   am__fastdepCCAS_TRUE='#'
4261   am__fastdepCCAS_FALSE=
4262 fi
4263
4264
4265 if test "x$CC" != xcc; then
4266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4267 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4268 else
4269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4270 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4271 fi
4272 set dummy $CC; ac_cc=`$as_echo "$2" |
4273                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4274 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4275   $as_echo_n "(cached) " >&6
4276 else
4277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h.  */
4279
4280 int
4281 main ()
4282 {
4283
4284   ;
4285   return 0;
4286 }
4287 _ACEOF
4288 # Make sure it works both with $CC and with simple cc.
4289 # We do the test twice because some compilers refuse to overwrite an
4290 # existing .o file with -o, though they will create one.
4291 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4292 rm -f conftest2.*
4293 if { { 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    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305   *) ac_try_echo=$ac_try;;
4306 esac
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309   (eval "$ac_try") 2>&5
4310   ac_status=$?
4311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312   test $ac_status = 0; };
4313 then
4314   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4315   if test "x$CC" != xcc; then
4316     # Test first that cc exists at all.
4317     if { ac_try='cc -c conftest.$ac_ext >&5'
4318   { { case "(($ac_try" in
4319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320   *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324   (eval "$ac_try") 2>&5
4325   ac_status=$?
4326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327   test $ac_status = 0; }; }; then
4328       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4329       rm -f conftest2.*
4330       if { { 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          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342   *) ac_try_echo=$ac_try;;
4343 esac
4344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4345 $as_echo "$ac_try_echo"; } >&5
4346   (eval "$ac_try") 2>&5
4347   ac_status=$?
4348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349   test $ac_status = 0; };
4350       then
4351         # cc works too.
4352         :
4353       else
4354         # cc exists but doesn't like -o.
4355         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4356       fi
4357     fi
4358   fi
4359 else
4360   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4361 fi
4362 rm -f core conftest*
4363
4364 fi
4365 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367 $as_echo "yes" >&6; }
4368 else
4369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4371
4372 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4373
4374 fi
4375
4376 # FIXME: we rely on the cache variable name because
4377 # there is no other way.
4378 set dummy $CC
4379 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4380 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4381 if test "$am_t" != yes; then
4382    # Losing compiler, so override with the script.
4383    # FIXME: It is wrong to rewrite CC.
4384    # But if we don't then we get into trouble of one sort or another.
4385    # A longer-term fix would be to have automake use am__CC in this case,
4386    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4387    CC="$am_aux_dir/compile $CC"
4388 fi
4389
4390
4391 case `pwd` in
4392   *\ * | *\     *)
4393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4394 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4395 esac
4396
4397
4398
4399 macro_version='2.4.2'
4400 macro_revision='1.3337'
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414 ltmain="$ac_aux_dir/ltmain.sh"
4415
4416 # Backslashify metacharacters that are still active within
4417 # double-quoted strings.
4418 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4419
4420 # Same as above, but do not quote variable references.
4421 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4422
4423 # Sed substitution to delay expansion of an escaped shell variable in a
4424 # double_quote_subst'ed string.
4425 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4426
4427 # Sed substitution to delay expansion of an escaped single quote.
4428 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4429
4430 # Sed substitution to avoid accidental globbing in evaled expressions
4431 no_glob_subst='s/\*/\\\*/g'
4432
4433 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4435 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4436
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4438 $as_echo_n "checking how to print strings... " >&6; }
4439 # Test print first, because it will be a builtin if present.
4440 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4441    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4442   ECHO='print -r --'
4443 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4444   ECHO='printf %s\n'
4445 else
4446   # Use this function as a fallback that always works.
4447   func_fallback_echo ()
4448   {
4449     eval 'cat <<_LTECHO_EOF
4450 $1
4451 _LTECHO_EOF'
4452   }
4453   ECHO='func_fallback_echo'
4454 fi
4455
4456 # func_echo_all arg...
4457 # Invoke $ECHO with all args, space-separated.
4458 func_echo_all ()
4459 {
4460     $ECHO ""
4461 }
4462
4463 case "$ECHO" in
4464   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4465 $as_echo "printf" >&6; } ;;
4466   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4467 $as_echo "print -r" >&6; } ;;
4468   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4469 $as_echo "cat" >&6; } ;;
4470 esac
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4486 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4487 if ${ac_cv_path_SED+:} false; then :
4488   $as_echo_n "(cached) " >&6
4489 else
4490             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4491      for ac_i in 1 2 3 4 5 6 7; do
4492        ac_script="$ac_script$as_nl$ac_script"
4493      done
4494      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4495      { ac_script=; unset ac_script;}
4496      if test -z "$SED"; then
4497   ac_path_SED_found=false
4498   # Loop through the user's path and test for each of PROGNAME-LIST
4499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4501 do
4502   IFS=$as_save_IFS
4503   test -z "$as_dir" && as_dir=.
4504     for ac_prog in sed gsed; do
4505     for ac_exec_ext in '' $ac_executable_extensions; do
4506       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4507       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4508 # Check for GNU ac_path_SED and select it if it is found.
4509   # Check for GNU $ac_path_SED
4510 case `"$ac_path_SED" --version 2>&1` in
4511 *GNU*)
4512   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4513 *)
4514   ac_count=0
4515   $as_echo_n 0123456789 >"conftest.in"
4516   while :
4517   do
4518     cat "conftest.in" "conftest.in" >"conftest.tmp"
4519     mv "conftest.tmp" "conftest.in"
4520     cp "conftest.in" "conftest.nl"
4521     $as_echo '' >> "conftest.nl"
4522     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4523     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4524     as_fn_arith $ac_count + 1 && ac_count=$as_val
4525     if test $ac_count -gt ${ac_path_SED_max-0}; then
4526       # Best one so far, save it but keep looking for a better one
4527       ac_cv_path_SED="$ac_path_SED"
4528       ac_path_SED_max=$ac_count
4529     fi
4530     # 10*(2^10) chars as input seems more than enough
4531     test $ac_count -gt 10 && break
4532   done
4533   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4534 esac
4535
4536       $ac_path_SED_found && break 3
4537     done
4538   done
4539   done
4540 IFS=$as_save_IFS
4541   if test -z "$ac_cv_path_SED"; then
4542     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4543   fi
4544 else
4545   ac_cv_path_SED=$SED
4546 fi
4547
4548 fi
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4550 $as_echo "$ac_cv_path_SED" >&6; }
4551  SED="$ac_cv_path_SED"
4552   rm -f conftest.sed
4553
4554 test -z "$SED" && SED=sed
4555 Xsed="$SED -e 1s/^X//"
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4568 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4569 if ${ac_cv_path_GREP+:} false; then :
4570   $as_echo_n "(cached) " >&6
4571 else
4572   if test -z "$GREP"; then
4573   ac_path_GREP_found=false
4574   # Loop through the user's path and test for each of PROGNAME-LIST
4575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4577 do
4578   IFS=$as_save_IFS
4579   test -z "$as_dir" && as_dir=.
4580     for ac_prog in grep ggrep; do
4581     for ac_exec_ext in '' $ac_executable_extensions; do
4582       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4583       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4584 # Check for GNU ac_path_GREP and select it if it is found.
4585   # Check for GNU $ac_path_GREP
4586 case `"$ac_path_GREP" --version 2>&1` in
4587 *GNU*)
4588   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4589 *)
4590   ac_count=0
4591   $as_echo_n 0123456789 >"conftest.in"
4592   while :
4593   do
4594     cat "conftest.in" "conftest.in" >"conftest.tmp"
4595     mv "conftest.tmp" "conftest.in"
4596     cp "conftest.in" "conftest.nl"
4597     $as_echo 'GREP' >> "conftest.nl"
4598     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4599     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4600     as_fn_arith $ac_count + 1 && ac_count=$as_val
4601     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4602       # Best one so far, save it but keep looking for a better one
4603       ac_cv_path_GREP="$ac_path_GREP"
4604       ac_path_GREP_max=$ac_count
4605     fi
4606     # 10*(2^10) chars as input seems more than enough
4607     test $ac_count -gt 10 && break
4608   done
4609   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4610 esac
4611
4612       $ac_path_GREP_found && break 3
4613     done
4614   done
4615   done
4616 IFS=$as_save_IFS
4617   if test -z "$ac_cv_path_GREP"; then
4618     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4619   fi
4620 else
4621   ac_cv_path_GREP=$GREP
4622 fi
4623
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4626 $as_echo "$ac_cv_path_GREP" >&6; }
4627  GREP="$ac_cv_path_GREP"
4628
4629
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4631 $as_echo_n "checking for egrep... " >&6; }
4632 if ${ac_cv_path_EGREP+:} false; then :
4633   $as_echo_n "(cached) " >&6
4634 else
4635   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4636    then ac_cv_path_EGREP="$GREP -E"
4637    else
4638      if test -z "$EGREP"; then
4639   ac_path_EGREP_found=false
4640   # Loop through the user's path and test for each of PROGNAME-LIST
4641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4643 do
4644   IFS=$as_save_IFS
4645   test -z "$as_dir" && as_dir=.
4646     for ac_prog in egrep; do
4647     for ac_exec_ext in '' $ac_executable_extensions; do
4648       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4649       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4650 # Check for GNU ac_path_EGREP and select it if it is found.
4651   # Check for GNU $ac_path_EGREP
4652 case `"$ac_path_EGREP" --version 2>&1` in
4653 *GNU*)
4654   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4655 *)
4656   ac_count=0
4657   $as_echo_n 0123456789 >"conftest.in"
4658   while :
4659   do
4660     cat "conftest.in" "conftest.in" >"conftest.tmp"
4661     mv "conftest.tmp" "conftest.in"
4662     cp "conftest.in" "conftest.nl"
4663     $as_echo 'EGREP' >> "conftest.nl"
4664     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4665     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4666     as_fn_arith $ac_count + 1 && ac_count=$as_val
4667     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4668       # Best one so far, save it but keep looking for a better one
4669       ac_cv_path_EGREP="$ac_path_EGREP"
4670       ac_path_EGREP_max=$ac_count
4671     fi
4672     # 10*(2^10) chars as input seems more than enough
4673     test $ac_count -gt 10 && break
4674   done
4675   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4676 esac
4677
4678       $ac_path_EGREP_found && break 3
4679     done
4680   done
4681   done
4682 IFS=$as_save_IFS
4683   if test -z "$ac_cv_path_EGREP"; then
4684     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4685   fi
4686 else
4687   ac_cv_path_EGREP=$EGREP
4688 fi
4689
4690    fi
4691 fi
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4693 $as_echo "$ac_cv_path_EGREP" >&6; }
4694  EGREP="$ac_cv_path_EGREP"
4695
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4698 $as_echo_n "checking for fgrep... " >&6; }
4699 if ${ac_cv_path_FGREP+:} false; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4703    then ac_cv_path_FGREP="$GREP -F"
4704    else
4705      if test -z "$FGREP"; then
4706   ac_path_FGREP_found=false
4707   # Loop through the user's path and test for each of PROGNAME-LIST
4708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4710 do
4711   IFS=$as_save_IFS
4712   test -z "$as_dir" && as_dir=.
4713     for ac_prog in fgrep; do
4714     for ac_exec_ext in '' $ac_executable_extensions; do
4715       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4716       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4717 # Check for GNU ac_path_FGREP and select it if it is found.
4718   # Check for GNU $ac_path_FGREP
4719 case `"$ac_path_FGREP" --version 2>&1` in
4720 *GNU*)
4721   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4722 *)
4723   ac_count=0
4724   $as_echo_n 0123456789 >"conftest.in"
4725   while :
4726   do
4727     cat "conftest.in" "conftest.in" >"conftest.tmp"
4728     mv "conftest.tmp" "conftest.in"
4729     cp "conftest.in" "conftest.nl"
4730     $as_echo 'FGREP' >> "conftest.nl"
4731     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4732     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4733     as_fn_arith $ac_count + 1 && ac_count=$as_val
4734     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4735       # Best one so far, save it but keep looking for a better one
4736       ac_cv_path_FGREP="$ac_path_FGREP"
4737       ac_path_FGREP_max=$ac_count
4738     fi
4739     # 10*(2^10) chars as input seems more than enough
4740     test $ac_count -gt 10 && break
4741   done
4742   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4743 esac
4744
4745       $ac_path_FGREP_found && break 3
4746     done
4747   done
4748   done
4749 IFS=$as_save_IFS
4750   if test -z "$ac_cv_path_FGREP"; then
4751     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4752   fi
4753 else
4754   ac_cv_path_FGREP=$FGREP
4755 fi
4756
4757    fi
4758 fi
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4760 $as_echo "$ac_cv_path_FGREP" >&6; }
4761  FGREP="$ac_cv_path_FGREP"
4762
4763
4764 test -z "$GREP" && GREP=grep
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784 # Check whether --with-gnu-ld was given.
4785 if test "${with_gnu_ld+set}" = set; then :
4786   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4787 else
4788   with_gnu_ld=no
4789 fi
4790
4791 ac_prog=ld
4792 if test "$GCC" = yes; then
4793   # Check if gcc -print-prog-name=ld gives a path.
4794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4795 $as_echo_n "checking for ld used by $CC... " >&6; }
4796   case $host in
4797   *-*-mingw*)
4798     # gcc leaves a trailing carriage return which upsets mingw
4799     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4800   *)
4801     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4802   esac
4803   case $ac_prog in
4804     # Accept absolute paths.
4805     [\\/]* | ?:[\\/]*)
4806       re_direlt='/[^/][^/]*/\.\./'
4807       # Canonicalize the pathname of ld
4808       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4809       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4810         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4811       done
4812       test -z "$LD" && LD="$ac_prog"
4813       ;;
4814   "")
4815     # If it fails, then pretend we aren't using GCC.
4816     ac_prog=ld
4817     ;;
4818   *)
4819     # If it is relative, then search for the first ld in PATH.
4820     with_gnu_ld=unknown
4821     ;;
4822   esac
4823 elif test "$with_gnu_ld" = yes; then
4824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4825 $as_echo_n "checking for GNU ld... " >&6; }
4826 else
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4828 $as_echo_n "checking for non-GNU ld... " >&6; }
4829 fi
4830 if ${lt_cv_path_LD+:} false; then :
4831   $as_echo_n "(cached) " >&6
4832 else
4833   if test -z "$LD"; then
4834   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4835   for ac_dir in $PATH; do
4836     IFS="$lt_save_ifs"
4837     test -z "$ac_dir" && ac_dir=.
4838     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4839       lt_cv_path_LD="$ac_dir/$ac_prog"
4840       # Check to see if the program is GNU ld.  I'd rather use --version,
4841       # but apparently some variants of GNU ld only accept -v.
4842       # Break only if it was the GNU/non-GNU ld that we prefer.
4843       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4844       *GNU* | *'with BFD'*)
4845         test "$with_gnu_ld" != no && break
4846         ;;
4847       *)
4848         test "$with_gnu_ld" != yes && break
4849         ;;
4850       esac
4851     fi
4852   done
4853   IFS="$lt_save_ifs"
4854 else
4855   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4856 fi
4857 fi
4858
4859 LD="$lt_cv_path_LD"
4860 if test -n "$LD"; then
4861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4862 $as_echo "$LD" >&6; }
4863 else
4864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4866 fi
4867 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4869 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4870 if ${lt_cv_prog_gnu_ld+:} false; then :
4871   $as_echo_n "(cached) " >&6
4872 else
4873   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4874 case `$LD -v 2>&1 </dev/null` in
4875 *GNU* | *'with BFD'*)
4876   lt_cv_prog_gnu_ld=yes
4877   ;;
4878 *)
4879   lt_cv_prog_gnu_ld=no
4880   ;;
4881 esac
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4884 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4885 with_gnu_ld=$lt_cv_prog_gnu_ld
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4896 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4897 if ${lt_cv_path_NM+:} false; then :
4898   $as_echo_n "(cached) " >&6
4899 else
4900   if test -n "$NM"; then
4901   # Let the user override the test.
4902   lt_cv_path_NM="$NM"
4903 else
4904   lt_nm_to_check="${ac_tool_prefix}nm"
4905   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4906     lt_nm_to_check="$lt_nm_to_check nm"
4907   fi
4908   for lt_tmp_nm in $lt_nm_to_check; do
4909     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4910     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4911       IFS="$lt_save_ifs"
4912       test -z "$ac_dir" && ac_dir=.
4913       tmp_nm="$ac_dir/$lt_tmp_nm"
4914       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4915         # Check to see if the nm accepts a BSD-compat flag.
4916         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4917         #   nm: unknown option "B" ignored
4918         # Tru64's nm complains that /dev/null is an invalid object file
4919         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4920         */dev/null* | *'Invalid file or object type'*)
4921           lt_cv_path_NM="$tmp_nm -B"
4922           break
4923           ;;
4924         *)
4925           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4926           */dev/null*)
4927             lt_cv_path_NM="$tmp_nm -p"
4928             break
4929             ;;
4930           *)
4931             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4932             continue # so that we can try to find one that supports BSD flags
4933             ;;
4934           esac
4935           ;;
4936         esac
4937       fi
4938     done
4939     IFS="$lt_save_ifs"
4940   done
4941   : ${lt_cv_path_NM=no}
4942 fi
4943 fi
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4945 $as_echo "$lt_cv_path_NM" >&6; }
4946 if test "$lt_cv_path_NM" != "no"; then
4947   NM="$lt_cv_path_NM"
4948 else
4949   # Didn't find any BSD compatible name lister, look for dumpbin.
4950   if test -n "$DUMPBIN"; then :
4951     # Let the user override the test.
4952   else
4953     if test -n "$ac_tool_prefix"; then
4954   for ac_prog in dumpbin "link -dump"
4955   do
4956     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_DUMPBIN+:} false; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   if test -n "$DUMPBIN"; then
4964   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971     for ac_exec_ext in '' $ac_executable_extensions; do
4972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975     break 2
4976   fi
4977 done
4978   done
4979 IFS=$as_save_IFS
4980
4981 fi
4982 fi
4983 DUMPBIN=$ac_cv_prog_DUMPBIN
4984 if test -n "$DUMPBIN"; then
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4986 $as_echo "$DUMPBIN" >&6; }
4987 else
4988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4990 fi
4991
4992
4993     test -n "$DUMPBIN" && break
4994   done
4995 fi
4996 if test -z "$DUMPBIN"; then
4997   ac_ct_DUMPBIN=$DUMPBIN
4998   for ac_prog in dumpbin "link -dump"
4999 do
5000   # Extract the first word of "$ac_prog", so it can be a program name with args.
5001 set dummy $ac_prog; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5005   $as_echo_n "(cached) " >&6
5006 else
5007   if test -n "$ac_ct_DUMPBIN"; then
5008   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013   IFS=$as_save_IFS
5014   test -z "$as_dir" && as_dir=.
5015     for ac_exec_ext in '' $ac_executable_extensions; do
5016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019     break 2
5020   fi
5021 done
5022   done
5023 IFS=$as_save_IFS
5024
5025 fi
5026 fi
5027 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5028 if test -n "$ac_ct_DUMPBIN"; then
5029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5030 $as_echo "$ac_ct_DUMPBIN" >&6; }
5031 else
5032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5034 fi
5035
5036
5037   test -n "$ac_ct_DUMPBIN" && break
5038 done
5039
5040   if test "x$ac_ct_DUMPBIN" = x; then
5041     DUMPBIN=":"
5042   else
5043     case $cross_compiling:$ac_tool_warned in
5044 yes:)
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047 ac_tool_warned=yes ;;
5048 esac
5049     DUMPBIN=$ac_ct_DUMPBIN
5050   fi
5051 fi
5052
5053     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5054     *COFF*)
5055       DUMPBIN="$DUMPBIN -symbols"
5056       ;;
5057     *)
5058       DUMPBIN=:
5059       ;;
5060     esac
5061   fi
5062
5063   if test "$DUMPBIN" != ":"; then
5064     NM="$DUMPBIN"
5065   fi
5066 fi
5067 test -z "$NM" && NM=nm
5068
5069
5070
5071
5072
5073
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5075 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5076 if ${lt_cv_nm_interface+:} false; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   lt_cv_nm_interface="BSD nm"
5080   echo "int some_variable = 0;" > conftest.$ac_ext
5081   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5082   (eval "$ac_compile" 2>conftest.err)
5083   cat conftest.err >&5
5084   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5085   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5086   cat conftest.err >&5
5087   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5088   cat conftest.out >&5
5089   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5090     lt_cv_nm_interface="MS dumpbin"
5091   fi
5092   rm -f conftest*
5093 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5095 $as_echo "$lt_cv_nm_interface" >&6; }
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5098 $as_echo_n "checking whether ln -s works... " >&6; }
5099 LN_S=$as_ln_s
5100 if test "$LN_S" = "ln -s"; then
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5102 $as_echo "yes" >&6; }
5103 else
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5105 $as_echo "no, using $LN_S" >&6; }
5106 fi
5107
5108 # find the maximum length of command line arguments
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5110 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5111 if ${lt_cv_sys_max_cmd_len+:} false; then :
5112   $as_echo_n "(cached) " >&6
5113 else
5114     i=0
5115   teststring="ABCD"
5116
5117   case $build_os in
5118   msdosdjgpp*)
5119     # On DJGPP, this test can blow up pretty badly due to problems in libc
5120     # (any single argument exceeding 2000 bytes causes a buffer overrun
5121     # during glob expansion).  Even if it were fixed, the result of this
5122     # check would be larger than it should be.
5123     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5124     ;;
5125
5126   gnu*)
5127     # Under GNU Hurd, this test is not required because there is
5128     # no limit to the length of command line arguments.
5129     # Libtool will interpret -1 as no limit whatsoever
5130     lt_cv_sys_max_cmd_len=-1;
5131     ;;
5132
5133   cygwin* | mingw* | cegcc*)
5134     # On Win9x/ME, this test blows up -- it succeeds, but takes
5135     # about 5 minutes as the teststring grows exponentially.
5136     # Worse, since 9x/ME are not pre-emptively multitasking,
5137     # you end up with a "frozen" computer, even though with patience
5138     # the test eventually succeeds (with a max line length of 256k).
5139     # Instead, let's just punt: use the minimum linelength reported by
5140     # all of the supported platforms: 8192 (on NT/2K/XP).
5141     lt_cv_sys_max_cmd_len=8192;
5142     ;;
5143
5144   mint*)
5145     # On MiNT this can take a long time and run out of memory.
5146     lt_cv_sys_max_cmd_len=8192;
5147     ;;
5148
5149   amigaos*)
5150     # On AmigaOS with pdksh, this test takes hours, literally.
5151     # So we just punt and use a minimum line length of 8192.
5152     lt_cv_sys_max_cmd_len=8192;
5153     ;;
5154
5155   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5156     # This has been around since 386BSD, at least.  Likely further.
5157     if test -x /sbin/sysctl; then
5158       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5159     elif test -x /usr/sbin/sysctl; then
5160       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5161     else
5162       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5163     fi
5164     # And add a safety zone
5165     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5166     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5167     ;;
5168
5169   interix*)
5170     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5171     lt_cv_sys_max_cmd_len=196608
5172     ;;
5173
5174   os2*)
5175     # The test takes a long time on OS/2.
5176     lt_cv_sys_max_cmd_len=8192
5177     ;;
5178
5179   osf*)
5180     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5181     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5182     # nice to cause kernel panics so lets avoid the loop below.
5183     # First set a reasonable default.
5184     lt_cv_sys_max_cmd_len=16384
5185     #
5186     if test -x /sbin/sysconfig; then
5187       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5188         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5189       esac
5190     fi
5191     ;;
5192   sco3.2v5*)
5193     lt_cv_sys_max_cmd_len=102400
5194     ;;
5195   sysv5* | sco5v6* | sysv4.2uw2*)
5196     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5197     if test -n "$kargmax"; then
5198       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5199     else
5200       lt_cv_sys_max_cmd_len=32768
5201     fi
5202     ;;
5203   *)
5204     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5205     if test -n "$lt_cv_sys_max_cmd_len"; then
5206       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5207       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5208     else
5209       # Make teststring a little bigger before we do anything with it.
5210       # a 1K string should be a reasonable start.
5211       for i in 1 2 3 4 5 6 7 8 ; do
5212         teststring=$teststring$teststring
5213       done
5214       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5215       # If test is not a shell built-in, we'll probably end up computing a
5216       # maximum length that is only half of the actual maximum length, but
5217       # we can't tell.
5218       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5219                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5220               test $i != 17 # 1/2 MB should be enough
5221       do
5222         i=`expr $i + 1`
5223         teststring=$teststring$teststring
5224       done
5225       # Only check the string length outside the loop.
5226       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5227       teststring=
5228       # Add a significant safety factor because C++ compilers can tack on
5229       # massive amounts of additional arguments before passing them to the
5230       # linker.  It appears as though 1/2 is a usable value.
5231       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5232     fi
5233     ;;
5234   esac
5235
5236 fi
5237
5238 if test -n $lt_cv_sys_max_cmd_len ; then
5239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5240 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5241 else
5242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5243 $as_echo "none" >&6; }
5244 fi
5245 max_cmd_len=$lt_cv_sys_max_cmd_len
5246
5247
5248
5249
5250
5251
5252 : ${CP="cp -f"}
5253 : ${MV="mv -f"}
5254 : ${RM="rm -f"}
5255
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5257 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5258 # Try some XSI features
5259 xsi_shell=no
5260 ( _lt_dummy="a/b/c"
5261   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5262       = c,a/b,b/c, \
5263     && eval 'test $(( 1 + 1 )) -eq 2 \
5264     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5265   && xsi_shell=yes
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5267 $as_echo "$xsi_shell" >&6; }
5268
5269
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5271 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5272 lt_shell_append=no
5273 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5274     >/dev/null 2>&1 \
5275   && lt_shell_append=yes
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5277 $as_echo "$lt_shell_append" >&6; }
5278
5279
5280 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5281   lt_unset=unset
5282 else
5283   lt_unset=false
5284 fi
5285
5286
5287
5288
5289
5290 # test EBCDIC or ASCII
5291 case `echo X|tr X '\101'` in
5292  A) # ASCII based system
5293     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5294   lt_SP2NL='tr \040 \012'
5295   lt_NL2SP='tr \015\012 \040\040'
5296   ;;
5297  *) # EBCDIC based system
5298   lt_SP2NL='tr \100 \n'
5299   lt_NL2SP='tr \r\n \100\100'
5300   ;;
5301 esac
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5312 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5313 if ${lt_cv_to_host_file_cmd+:} false; then :
5314   $as_echo_n "(cached) " >&6
5315 else
5316   case $host in
5317   *-*-mingw* )
5318     case $build in
5319       *-*-mingw* ) # actually msys
5320         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5321         ;;
5322       *-*-cygwin* )
5323         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5324         ;;
5325       * ) # otherwise, assume *nix
5326         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5327         ;;
5328     esac
5329     ;;
5330   *-*-cygwin* )
5331     case $build in
5332       *-*-mingw* ) # actually msys
5333         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5334         ;;
5335       *-*-cygwin* )
5336         lt_cv_to_host_file_cmd=func_convert_file_noop
5337         ;;
5338       * ) # otherwise, assume *nix
5339         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5340         ;;
5341     esac
5342     ;;
5343   * ) # unhandled hosts (and "normal" native builds)
5344     lt_cv_to_host_file_cmd=func_convert_file_noop
5345     ;;
5346 esac
5347
5348 fi
5349
5350 to_host_file_cmd=$lt_cv_to_host_file_cmd
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5352 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5353
5354
5355
5356
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5359 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5360 if ${lt_cv_to_tool_file_cmd+:} false; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363   #assume ordinary cross tools, or native build.
5364 lt_cv_to_tool_file_cmd=func_convert_file_noop
5365 case $host in
5366   *-*-mingw* )
5367     case $build in
5368       *-*-mingw* ) # actually msys
5369         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5370         ;;
5371     esac
5372     ;;
5373 esac
5374
5375 fi
5376
5377 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5379 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5380
5381
5382
5383
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5386 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5387 if ${lt_cv_ld_reload_flag+:} false; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   lt_cv_ld_reload_flag='-r'
5391 fi
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5393 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5394 reload_flag=$lt_cv_ld_reload_flag
5395 case $reload_flag in
5396 "" | " "*) ;;
5397 *) reload_flag=" $reload_flag" ;;
5398 esac
5399 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5400 case $host_os in
5401   cygwin* | mingw* | pw32* | cegcc*)
5402     if test "$GCC" != yes; then
5403       reload_cmds=false
5404     fi
5405     ;;
5406   darwin*)
5407     if test "$GCC" = yes; then
5408       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5409     else
5410       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5411     fi
5412     ;;
5413 esac
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423 if test -n "$ac_tool_prefix"; then
5424   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5425 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if ${ac_cv_prog_OBJDUMP+:} false; then :
5429   $as_echo_n "(cached) " >&6
5430 else
5431   if test -n "$OBJDUMP"; then
5432   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5436 do
5437   IFS=$as_save_IFS
5438   test -z "$as_dir" && as_dir=.
5439     for ac_exec_ext in '' $ac_executable_extensions; do
5440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5441     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443     break 2
5444   fi
5445 done
5446   done
5447 IFS=$as_save_IFS
5448
5449 fi
5450 fi
5451 OBJDUMP=$ac_cv_prog_OBJDUMP
5452 if test -n "$OBJDUMP"; then
5453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5454 $as_echo "$OBJDUMP" >&6; }
5455 else
5456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5458 fi
5459
5460
5461 fi
5462 if test -z "$ac_cv_prog_OBJDUMP"; then
5463   ac_ct_OBJDUMP=$OBJDUMP
5464   # Extract the first word of "objdump", so it can be a program name with args.
5465 set dummy objdump; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5469   $as_echo_n "(cached) " >&6
5470 else
5471   if test -n "$ac_ct_OBJDUMP"; then
5472   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477   IFS=$as_save_IFS
5478   test -z "$as_dir" && as_dir=.
5479     for ac_exec_ext in '' $ac_executable_extensions; do
5480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5481     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483     break 2
5484   fi
5485 done
5486   done
5487 IFS=$as_save_IFS
5488
5489 fi
5490 fi
5491 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5492 if test -n "$ac_ct_OBJDUMP"; then
5493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5494 $as_echo "$ac_ct_OBJDUMP" >&6; }
5495 else
5496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5498 fi
5499
5500   if test "x$ac_ct_OBJDUMP" = x; then
5501     OBJDUMP="false"
5502   else
5503     case $cross_compiling:$ac_tool_warned in
5504 yes:)
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507 ac_tool_warned=yes ;;
5508 esac
5509     OBJDUMP=$ac_ct_OBJDUMP
5510   fi
5511 else
5512   OBJDUMP="$ac_cv_prog_OBJDUMP"
5513 fi
5514
5515 test -z "$OBJDUMP" && OBJDUMP=objdump
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5526 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5527 if ${lt_cv_deplibs_check_method+:} false; then :
5528   $as_echo_n "(cached) " >&6
5529 else
5530   lt_cv_file_magic_cmd='$MAGIC_CMD'
5531 lt_cv_file_magic_test_file=
5532 lt_cv_deplibs_check_method='unknown'
5533 # Need to set the preceding variable on all platforms that support
5534 # interlibrary dependencies.
5535 # 'none' -- dependencies not supported.
5536 # `unknown' -- same as none, but documents that we really don't know.
5537 # 'pass_all' -- all dependencies passed with no checks.
5538 # 'test_compile' -- check by making test program.
5539 # 'file_magic [[regex]]' -- check by looking for files in library path
5540 # which responds to the $file_magic_cmd with a given extended regex.
5541 # If you have `file' or equivalent on your system and you're not sure
5542 # whether `pass_all' will *always* work, you probably want this one.
5543
5544 case $host_os in
5545 aix[4-9]*)
5546   lt_cv_deplibs_check_method=pass_all
5547   ;;
5548
5549 beos*)
5550   lt_cv_deplibs_check_method=pass_all
5551   ;;
5552
5553 bsdi[45]*)
5554   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5555   lt_cv_file_magic_cmd='/usr/bin/file -L'
5556   lt_cv_file_magic_test_file=/shlib/libc.so
5557   ;;
5558
5559 cygwin*)
5560   # func_win32_libid is a shell function defined in ltmain.sh
5561   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5562   lt_cv_file_magic_cmd='func_win32_libid'
5563   ;;
5564
5565 mingw* | pw32*)
5566   # Base MSYS/MinGW do not provide the 'file' command needed by
5567   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5568   # unless we find 'file', for example because we are cross-compiling.
5569   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5570   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5571     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5572     lt_cv_file_magic_cmd='func_win32_libid'
5573   else
5574     # Keep this pattern in sync with the one in func_win32_libid.
5575     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5576     lt_cv_file_magic_cmd='$OBJDUMP -f'
5577   fi
5578   ;;
5579
5580 cegcc*)
5581   # use the weaker test based on 'objdump'. See mingw*.
5582   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5583   lt_cv_file_magic_cmd='$OBJDUMP -f'
5584   ;;
5585
5586 darwin* | rhapsody*)
5587   lt_cv_deplibs_check_method=pass_all
5588   ;;
5589
5590 freebsd* | dragonfly*)
5591   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5592     case $host_cpu in
5593     i*86 )
5594       # Not sure whether the presence of OpenBSD here was a mistake.
5595       # Let's accept both of them until this is cleared up.
5596       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5597       lt_cv_file_magic_cmd=/usr/bin/file
5598       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5599       ;;
5600     esac
5601   else
5602     lt_cv_deplibs_check_method=pass_all
5603   fi
5604   ;;
5605
5606 gnu*)
5607   lt_cv_deplibs_check_method=pass_all
5608   ;;
5609
5610 haiku*)
5611   lt_cv_deplibs_check_method=pass_all
5612   ;;
5613
5614 hpux10.20* | hpux11*)
5615   lt_cv_file_magic_cmd=/usr/bin/file
5616   case $host_cpu in
5617   ia64*)
5618     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5619     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5620     ;;
5621   hppa*64*)
5622     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]'
5623     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5624     ;;
5625   *)
5626     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5627     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5628     ;;
5629   esac
5630   ;;
5631
5632 interix[3-9]*)
5633   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5634   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5635   ;;
5636
5637 irix5* | irix6* | nonstopux*)
5638   case $LD in
5639   *-32|*"-32 ") libmagic=32-bit;;
5640   *-n32|*"-n32 ") libmagic=N32;;
5641   *-64|*"-64 ") libmagic=64-bit;;
5642   *) libmagic=never-match;;
5643   esac
5644   lt_cv_deplibs_check_method=pass_all
5645   ;;
5646
5647 # This must be glibc/ELF.
5648 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5649   lt_cv_deplibs_check_method=pass_all
5650   ;;
5651
5652 netbsd*)
5653   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5654     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5655   else
5656     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5657   fi
5658   ;;
5659
5660 newos6*)
5661   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5662   lt_cv_file_magic_cmd=/usr/bin/file
5663   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5664   ;;
5665
5666 *nto* | *qnx*)
5667   lt_cv_deplibs_check_method=pass_all
5668   ;;
5669
5670 openbsd*)
5671   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5672     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5673   else
5674     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5675   fi
5676   ;;
5677
5678 osf3* | osf4* | osf5*)
5679   lt_cv_deplibs_check_method=pass_all
5680   ;;
5681
5682 rdos*)
5683   lt_cv_deplibs_check_method=pass_all
5684   ;;
5685
5686 solaris*)
5687   lt_cv_deplibs_check_method=pass_all
5688   ;;
5689
5690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5691   lt_cv_deplibs_check_method=pass_all
5692   ;;
5693
5694 sysv4 | sysv4.3*)
5695   case $host_vendor in
5696   motorola)
5697     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]'
5698     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5699     ;;
5700   ncr)
5701     lt_cv_deplibs_check_method=pass_all
5702     ;;
5703   sequent)
5704     lt_cv_file_magic_cmd='/bin/file'
5705     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5706     ;;
5707   sni)
5708     lt_cv_file_magic_cmd='/bin/file'
5709     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5710     lt_cv_file_magic_test_file=/lib/libc.so
5711     ;;
5712   siemens)
5713     lt_cv_deplibs_check_method=pass_all
5714     ;;
5715   pc)
5716     lt_cv_deplibs_check_method=pass_all
5717     ;;
5718   esac
5719   ;;
5720
5721 tpf*)
5722   lt_cv_deplibs_check_method=pass_all
5723   ;;
5724 esac
5725
5726 fi
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5728 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5729
5730 file_magic_glob=
5731 want_nocaseglob=no
5732 if test "$build" = "$host"; then
5733   case $host_os in
5734   mingw* | pw32*)
5735     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5736       want_nocaseglob=yes
5737     else
5738       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5739     fi
5740     ;;
5741   esac
5742 fi
5743
5744 file_magic_cmd=$lt_cv_file_magic_cmd
5745 deplibs_check_method=$lt_cv_deplibs_check_method
5746 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769 if test -n "$ac_tool_prefix"; then
5770   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5771 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if ${ac_cv_prog_DLLTOOL+:} false; then :
5775   $as_echo_n "(cached) " >&6
5776 else
5777   if test -n "$DLLTOOL"; then
5778   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5779 else
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5782 do
5783   IFS=$as_save_IFS
5784   test -z "$as_dir" && as_dir=.
5785     for ac_exec_ext in '' $ac_executable_extensions; do
5786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5787     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789     break 2
5790   fi
5791 done
5792   done
5793 IFS=$as_save_IFS
5794
5795 fi
5796 fi
5797 DLLTOOL=$ac_cv_prog_DLLTOOL
5798 if test -n "$DLLTOOL"; then
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5800 $as_echo "$DLLTOOL" >&6; }
5801 else
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5804 fi
5805
5806
5807 fi
5808 if test -z "$ac_cv_prog_DLLTOOL"; then
5809   ac_ct_DLLTOOL=$DLLTOOL
5810   # Extract the first word of "dlltool", so it can be a program name with args.
5811 set dummy dlltool; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5815   $as_echo_n "(cached) " >&6
5816 else
5817   if test -n "$ac_ct_DLLTOOL"; then
5818   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5822 do
5823   IFS=$as_save_IFS
5824   test -z "$as_dir" && as_dir=.
5825     for ac_exec_ext in '' $ac_executable_extensions; do
5826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829     break 2
5830   fi
5831 done
5832   done
5833 IFS=$as_save_IFS
5834
5835 fi
5836 fi
5837 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5838 if test -n "$ac_ct_DLLTOOL"; then
5839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5840 $as_echo "$ac_ct_DLLTOOL" >&6; }
5841 else
5842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5844 fi
5845
5846   if test "x$ac_ct_DLLTOOL" = x; then
5847     DLLTOOL="false"
5848   else
5849     case $cross_compiling:$ac_tool_warned in
5850 yes:)
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5853 ac_tool_warned=yes ;;
5854 esac
5855     DLLTOOL=$ac_ct_DLLTOOL
5856   fi
5857 else
5858   DLLTOOL="$ac_cv_prog_DLLTOOL"
5859 fi
5860
5861 test -z "$DLLTOOL" && DLLTOOL=dlltool
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5873 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5874 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5875   $as_echo_n "(cached) " >&6
5876 else
5877   lt_cv_sharedlib_from_linklib_cmd='unknown'
5878
5879 case $host_os in
5880 cygwin* | mingw* | pw32* | cegcc*)
5881   # two different shell functions defined in ltmain.sh
5882   # decide which to use based on capabilities of $DLLTOOL
5883   case `$DLLTOOL --help 2>&1` in
5884   *--identify-strict*)
5885     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5886     ;;
5887   *)
5888     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5889     ;;
5890   esac
5891   ;;
5892 *)
5893   # fallback: assume linklib IS sharedlib
5894   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5895   ;;
5896 esac
5897
5898 fi
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5900 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5901 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5902 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5903
5904
5905
5906
5907
5908
5909
5910
5911 if test -n "$ac_tool_prefix"; then
5912   for ac_prog in ar
5913   do
5914     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_AR+:} false; then :
5919   $as_echo_n "(cached) " >&6
5920 else
5921   if test -n "$AR"; then
5922   ac_cv_prog_AR="$AR" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927   IFS=$as_save_IFS
5928   test -z "$as_dir" && as_dir=.
5929     for ac_exec_ext in '' $ac_executable_extensions; do
5930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933     break 2
5934   fi
5935 done
5936   done
5937 IFS=$as_save_IFS
5938
5939 fi
5940 fi
5941 AR=$ac_cv_prog_AR
5942 if test -n "$AR"; then
5943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5944 $as_echo "$AR" >&6; }
5945 else
5946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5948 fi
5949
5950
5951     test -n "$AR" && break
5952   done
5953 fi
5954 if test -z "$AR"; then
5955   ac_ct_AR=$AR
5956   for ac_prog in ar
5957 do
5958   # Extract the first word of "$ac_prog", so it can be a program name with args.
5959 set dummy $ac_prog; ac_word=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5963   $as_echo_n "(cached) " >&6
5964 else
5965   if test -n "$ac_ct_AR"; then
5966   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971   IFS=$as_save_IFS
5972   test -z "$as_dir" && as_dir=.
5973     for ac_exec_ext in '' $ac_executable_extensions; do
5974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975     ac_cv_prog_ac_ct_AR="$ac_prog"
5976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977     break 2
5978   fi
5979 done
5980   done
5981 IFS=$as_save_IFS
5982
5983 fi
5984 fi
5985 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5986 if test -n "$ac_ct_AR"; then
5987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5988 $as_echo "$ac_ct_AR" >&6; }
5989 else
5990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5992 fi
5993
5994
5995   test -n "$ac_ct_AR" && break
5996 done
5997
5998   if test "x$ac_ct_AR" = x; then
5999     AR="false"
6000   else
6001     case $cross_compiling:$ac_tool_warned in
6002 yes:)
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6005 ac_tool_warned=yes ;;
6006 esac
6007     AR=$ac_ct_AR
6008   fi
6009 fi
6010
6011 : ${AR=ar}
6012 : ${AR_FLAGS=cru}
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6025 $as_echo_n "checking for archiver @FILE support... " >&6; }
6026 if ${lt_cv_ar_at_file+:} false; then :
6027   $as_echo_n "(cached) " >&6
6028 else
6029   lt_cv_ar_at_file=no
6030    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h.  */
6032
6033 int
6034 main ()
6035 {
6036
6037   ;
6038   return 0;
6039 }
6040 _ACEOF
6041 if ac_fn_c_try_compile "$LINENO"; then :
6042   echo conftest.$ac_objext > conftest.lst
6043       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6044       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6045   (eval $lt_ar_try) 2>&5
6046   ac_status=$?
6047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6048   test $ac_status = 0; }
6049       if test "$ac_status" -eq 0; then
6050         # Ensure the archiver fails upon bogus file names.
6051         rm -f conftest.$ac_objext libconftest.a
6052         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6053   (eval $lt_ar_try) 2>&5
6054   ac_status=$?
6055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6056   test $ac_status = 0; }
6057         if test "$ac_status" -ne 0; then
6058           lt_cv_ar_at_file=@
6059         fi
6060       fi
6061       rm -f conftest.* libconftest.a
6062
6063 fi
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065
6066 fi
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6068 $as_echo "$lt_cv_ar_at_file" >&6; }
6069
6070 if test "x$lt_cv_ar_at_file" = xno; then
6071   archiver_list_spec=
6072 else
6073   archiver_list_spec=$lt_cv_ar_at_file
6074 fi
6075
6076
6077
6078
6079
6080
6081
6082 if test -n "$ac_tool_prefix"; then
6083   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6084 set dummy ${ac_tool_prefix}strip; ac_word=$2
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 $as_echo_n "checking for $ac_word... " >&6; }
6087 if ${ac_cv_prog_STRIP+:} false; then :
6088   $as_echo_n "(cached) " >&6
6089 else
6090   if test -n "$STRIP"; then
6091   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6092 else
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6095 do
6096   IFS=$as_save_IFS
6097   test -z "$as_dir" && as_dir=.
6098     for ac_exec_ext in '' $ac_executable_extensions; do
6099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6100     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102     break 2
6103   fi
6104 done
6105   done
6106 IFS=$as_save_IFS
6107
6108 fi
6109 fi
6110 STRIP=$ac_cv_prog_STRIP
6111 if test -n "$STRIP"; then
6112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6113 $as_echo "$STRIP" >&6; }
6114 else
6115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 $as_echo "no" >&6; }
6117 fi
6118
6119
6120 fi
6121 if test -z "$ac_cv_prog_STRIP"; then
6122   ac_ct_STRIP=$STRIP
6123   # Extract the first word of "strip", so it can be a program name with args.
6124 set dummy strip; ac_word=$2
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 $as_echo_n "checking for $ac_word... " >&6; }
6127 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6128   $as_echo_n "(cached) " >&6
6129 else
6130   if test -n "$ac_ct_STRIP"; then
6131   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6132 else
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6135 do
6136   IFS=$as_save_IFS
6137   test -z "$as_dir" && as_dir=.
6138     for ac_exec_ext in '' $ac_executable_extensions; do
6139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6140     ac_cv_prog_ac_ct_STRIP="strip"
6141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142     break 2
6143   fi
6144 done
6145   done
6146 IFS=$as_save_IFS
6147
6148 fi
6149 fi
6150 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6151 if test -n "$ac_ct_STRIP"; then
6152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6153 $as_echo "$ac_ct_STRIP" >&6; }
6154 else
6155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6157 fi
6158
6159   if test "x$ac_ct_STRIP" = x; then
6160     STRIP=":"
6161   else
6162     case $cross_compiling:$ac_tool_warned in
6163 yes:)
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6166 ac_tool_warned=yes ;;
6167 esac
6168     STRIP=$ac_ct_STRIP
6169   fi
6170 else
6171   STRIP="$ac_cv_prog_STRIP"
6172 fi
6173
6174 test -z "$STRIP" && STRIP=:
6175
6176
6177
6178
6179
6180
6181 if test -n "$ac_tool_prefix"; then
6182   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6183 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if ${ac_cv_prog_RANLIB+:} false; then :
6187   $as_echo_n "(cached) " >&6
6188 else
6189   if test -n "$RANLIB"; then
6190   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195   IFS=$as_save_IFS
6196   test -z "$as_dir" && as_dir=.
6197     for ac_exec_ext in '' $ac_executable_extensions; do
6198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201     break 2
6202   fi
6203 done
6204   done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 RANLIB=$ac_cv_prog_RANLIB
6210 if test -n "$RANLIB"; then
6211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6212 $as_echo "$RANLIB" >&6; }
6213 else
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6216 fi
6217
6218
6219 fi
6220 if test -z "$ac_cv_prog_RANLIB"; then
6221   ac_ct_RANLIB=$RANLIB
6222   # Extract the first word of "ranlib", so it can be a program name with args.
6223 set dummy ranlib; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6227   $as_echo_n "(cached) " >&6
6228 else
6229   if test -n "$ac_ct_RANLIB"; then
6230   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235   IFS=$as_save_IFS
6236   test -z "$as_dir" && as_dir=.
6237     for ac_exec_ext in '' $ac_executable_extensions; do
6238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239     ac_cv_prog_ac_ct_RANLIB="ranlib"
6240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241     break 2
6242   fi
6243 done
6244   done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6250 if test -n "$ac_ct_RANLIB"; then
6251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6252 $as_echo "$ac_ct_RANLIB" >&6; }
6253 else
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 fi
6257
6258   if test "x$ac_ct_RANLIB" = x; then
6259     RANLIB=":"
6260   else
6261     case $cross_compiling:$ac_tool_warned in
6262 yes:)
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265 ac_tool_warned=yes ;;
6266 esac
6267     RANLIB=$ac_ct_RANLIB
6268   fi
6269 else
6270   RANLIB="$ac_cv_prog_RANLIB"
6271 fi
6272
6273 test -z "$RANLIB" && RANLIB=:
6274
6275
6276
6277
6278
6279
6280 # Determine commands to create old-style static archives.
6281 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6282 old_postinstall_cmds='chmod 644 $oldlib'
6283 old_postuninstall_cmds=
6284
6285 if test -n "$RANLIB"; then
6286   case $host_os in
6287   openbsd*)
6288     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6289     ;;
6290   *)
6291     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6292     ;;
6293   esac
6294   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6295 fi
6296
6297 case $host_os in
6298   darwin*)
6299     lock_old_archive_extraction=yes ;;
6300   *)
6301     lock_old_archive_extraction=no ;;
6302 esac
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
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342 # If no C compiler was specified, use CC.
6343 LTCC=${LTCC-"$CC"}
6344
6345 # If no C compiler flags were specified, use CFLAGS.
6346 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6347
6348 # Allow CC to be a program name with arguments.
6349 compiler=$CC
6350
6351
6352 # Check for command to grab the raw symbol name followed by C symbol from nm.
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6354 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6355 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6356   $as_echo_n "(cached) " >&6
6357 else
6358
6359 # These are sane defaults that work on at least a few old systems.
6360 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6361
6362 # Character class describing NM global symbol codes.
6363 symcode='[BCDEGRST]'
6364
6365 # Regexp to match symbols that can be accessed directly from C.
6366 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6367
6368 # Define system-specific variables.
6369 case $host_os in
6370 aix*)
6371   symcode='[BCDT]'
6372   ;;
6373 cygwin* | mingw* | pw32* | cegcc*)
6374   symcode='[ABCDGISTW]'
6375   ;;
6376 hpux*)
6377   if test "$host_cpu" = ia64; then
6378     symcode='[ABCDEGRST]'
6379   fi
6380   ;;
6381 irix* | nonstopux*)
6382   symcode='[BCDEGRST]'
6383   ;;
6384 osf*)
6385   symcode='[BCDEGQRST]'
6386   ;;
6387 solaris*)
6388   symcode='[BDRT]'
6389   ;;
6390 sco3.2v5*)
6391   symcode='[DT]'
6392   ;;
6393 sysv4.2uw2*)
6394   symcode='[DT]'
6395   ;;
6396 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6397   symcode='[ABDT]'
6398   ;;
6399 sysv4)
6400   symcode='[DFNSTU]'
6401   ;;
6402 esac
6403
6404 # If we're using GNU nm, then use its standard symbol codes.
6405 case `$NM -V 2>&1` in
6406 *GNU* | *'with BFD'*)
6407   symcode='[ABCDGIRSTW]' ;;
6408 esac
6409
6410 # Transform an extracted symbol line into a proper C declaration.
6411 # Some systems (esp. on ia64) link data and code symbols differently,
6412 # so use this general approach.
6413 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6414
6415 # Transform an extracted symbol line into symbol name and symbol address
6416 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6417 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'"
6418
6419 # Handle CRLF in mingw tool chain
6420 opt_cr=
6421 case $build_os in
6422 mingw*)
6423   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6424   ;;
6425 esac
6426
6427 # Try without a prefix underscore, then with it.
6428 for ac_symprfx in "" "_"; do
6429
6430   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6431   symxfrm="\\1 $ac_symprfx\\2 \\2"
6432
6433   # Write the raw and C identifiers.
6434   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6435     # Fake it for dumpbin and say T for any non-static function
6436     # and D for any global variable.
6437     # Also find C++ and __fastcall symbols from MSVC++,
6438     # which start with @ or ?.
6439     lt_cv_sys_global_symbol_pipe="$AWK '"\
6440 "     {last_section=section; section=\$ 3};"\
6441 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6442 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6443 "     \$ 0!~/External *\|/{next};"\
6444 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6445 "     {if(hide[section]) next};"\
6446 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6447 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6448 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6449 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6450 "     ' prfx=^$ac_symprfx"
6451   else
6452     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6453   fi
6454   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6455
6456   # Check to see that the pipe works correctly.
6457   pipe_works=no
6458
6459   rm -f conftest*
6460   cat > conftest.$ac_ext <<_LT_EOF
6461 #ifdef __cplusplus
6462 extern "C" {
6463 #endif
6464 char nm_test_var;
6465 void nm_test_func(void);
6466 void nm_test_func(void){}
6467 #ifdef __cplusplus
6468 }
6469 #endif
6470 int main(){nm_test_var='a';nm_test_func();return(0);}
6471 _LT_EOF
6472
6473   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6474   (eval $ac_compile) 2>&5
6475   ac_status=$?
6476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6477   test $ac_status = 0; }; then
6478     # Now try to grab the symbols.
6479     nlist=conftest.nm
6480     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6481   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6482   ac_status=$?
6483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6484   test $ac_status = 0; } && test -s "$nlist"; then
6485       # Try sorting and uniquifying the output.
6486       if sort "$nlist" | uniq > "$nlist"T; then
6487         mv -f "$nlist"T "$nlist"
6488       else
6489         rm -f "$nlist"T
6490       fi
6491
6492       # Make sure that we snagged all the symbols we need.
6493       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6494         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6495           cat <<_LT_EOF > conftest.$ac_ext
6496 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6497 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6498 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6499    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6500 # define LT_DLSYM_CONST
6501 #elif defined(__osf__)
6502 /* This system does not cope well with relocations in const data.  */
6503 # define LT_DLSYM_CONST
6504 #else
6505 # define LT_DLSYM_CONST const
6506 #endif
6507
6508 #ifdef __cplusplus
6509 extern "C" {
6510 #endif
6511
6512 _LT_EOF
6513           # Now generate the symbol file.
6514           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6515
6516           cat <<_LT_EOF >> conftest.$ac_ext
6517
6518 /* The mapping between symbol names and symbols.  */
6519 LT_DLSYM_CONST struct {
6520   const char *name;
6521   void       *address;
6522 }
6523 lt__PROGRAM__LTX_preloaded_symbols[] =
6524 {
6525   { "@PROGRAM@", (void *) 0 },
6526 _LT_EOF
6527           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6528           cat <<\_LT_EOF >> conftest.$ac_ext
6529   {0, (void *) 0}
6530 };
6531
6532 /* This works around a problem in FreeBSD linker */
6533 #ifdef FREEBSD_WORKAROUND
6534 static const void *lt_preloaded_setup() {
6535   return lt__PROGRAM__LTX_preloaded_symbols;
6536 }
6537 #endif
6538
6539 #ifdef __cplusplus
6540 }
6541 #endif
6542 _LT_EOF
6543           # Now try linking the two files.
6544           mv conftest.$ac_objext conftstm.$ac_objext
6545           lt_globsym_save_LIBS=$LIBS
6546           lt_globsym_save_CFLAGS=$CFLAGS
6547           LIBS="conftstm.$ac_objext"
6548           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6549           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6550   (eval $ac_link) 2>&5
6551   ac_status=$?
6552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6553   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6554             pipe_works=yes
6555           fi
6556           LIBS=$lt_globsym_save_LIBS
6557           CFLAGS=$lt_globsym_save_CFLAGS
6558         else
6559           echo "cannot find nm_test_func in $nlist" >&5
6560         fi
6561       else
6562         echo "cannot find nm_test_var in $nlist" >&5
6563       fi
6564     else
6565       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6566     fi
6567   else
6568     echo "$progname: failed program was:" >&5
6569     cat conftest.$ac_ext >&5
6570   fi
6571   rm -rf conftest* conftst*
6572
6573   # Do not use the global_symbol_pipe unless it works.
6574   if test "$pipe_works" = yes; then
6575     break
6576   else
6577     lt_cv_sys_global_symbol_pipe=
6578   fi
6579 done
6580
6581 fi
6582
6583 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6584   lt_cv_sys_global_symbol_to_cdecl=
6585 fi
6586 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6588 $as_echo "failed" >&6; }
6589 else
6590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6591 $as_echo "ok" >&6; }
6592 fi
6593
6594 # Response file support.
6595 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6596   nm_file_list_spec='@'
6597 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6598   nm_file_list_spec='@'
6599 fi
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6628 $as_echo_n "checking for sysroot... " >&6; }
6629
6630 # Check whether --with-sysroot was given.
6631 if test "${with_sysroot+set}" = set; then :
6632   withval=$with_sysroot;
6633 else
6634   with_sysroot=no
6635 fi
6636
6637
6638 lt_sysroot=
6639 case ${with_sysroot} in #(
6640  yes)
6641    if test "$GCC" = yes; then
6642      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6643    fi
6644    ;; #(
6645  /*)
6646    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6647    ;; #(
6648  no|'')
6649    ;; #(
6650  *)
6651    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6652 $as_echo "${with_sysroot}" >&6; }
6653    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6654    ;;
6655 esac
6656
6657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6658 $as_echo "${lt_sysroot:-no}" >&6; }
6659
6660
6661
6662
6663
6664 # Check whether --enable-libtool-lock was given.
6665 if test "${enable_libtool_lock+set}" = set; then :
6666   enableval=$enable_libtool_lock;
6667 fi
6668
6669 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6670
6671 # Some flags need to be propagated to the compiler or linker for good
6672 # libtool support.
6673 case $host in
6674 ia64-*-hpux*)
6675   # Find out which ABI we are using.
6676   echo 'int i;' > conftest.$ac_ext
6677   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678   (eval $ac_compile) 2>&5
6679   ac_status=$?
6680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681   test $ac_status = 0; }; then
6682     case `/usr/bin/file conftest.$ac_objext` in
6683       *ELF-32*)
6684         HPUX_IA64_MODE="32"
6685         ;;
6686       *ELF-64*)
6687         HPUX_IA64_MODE="64"
6688         ;;
6689     esac
6690   fi
6691   rm -rf conftest*
6692   ;;
6693 *-*-irix6*)
6694   # Find out which ABI we are using.
6695   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6696   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6697   (eval $ac_compile) 2>&5
6698   ac_status=$?
6699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6700   test $ac_status = 0; }; then
6701     if test "$lt_cv_prog_gnu_ld" = yes; then
6702       case `/usr/bin/file conftest.$ac_objext` in
6703         *32-bit*)
6704           LD="${LD-ld} -melf32bsmip"
6705           ;;
6706         *N32*)
6707           LD="${LD-ld} -melf32bmipn32"
6708           ;;
6709         *64-bit*)
6710           LD="${LD-ld} -melf64bmip"
6711         ;;
6712       esac
6713     else
6714       case `/usr/bin/file conftest.$ac_objext` in
6715         *32-bit*)
6716           LD="${LD-ld} -32"
6717           ;;
6718         *N32*)
6719           LD="${LD-ld} -n32"
6720           ;;
6721         *64-bit*)
6722           LD="${LD-ld} -64"
6723           ;;
6724       esac
6725     fi
6726   fi
6727   rm -rf conftest*
6728   ;;
6729
6730 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6731 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6732   # Find out which ABI we are using.
6733   echo 'int i;' > conftest.$ac_ext
6734   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6735   (eval $ac_compile) 2>&5
6736   ac_status=$?
6737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738   test $ac_status = 0; }; then
6739     case `/usr/bin/file conftest.o` in
6740       *32-bit*)
6741         case $host in
6742           x86_64-*kfreebsd*-gnu)
6743             LD="${LD-ld} -m elf_i386_fbsd"
6744             ;;
6745           x86_64-*linux*)
6746             LD="${LD-ld} -m elf_i386"
6747             ;;
6748           ppc64-*linux*|powerpc64-*linux*)
6749             LD="${LD-ld} -m elf32ppclinux"
6750             ;;
6751           s390x-*linux*)
6752             LD="${LD-ld} -m elf_s390"
6753             ;;
6754           sparc64-*linux*)
6755             LD="${LD-ld} -m elf32_sparc"
6756             ;;
6757         esac
6758         ;;
6759       *64-bit*)
6760         case $host in
6761           x86_64-*kfreebsd*-gnu)
6762             LD="${LD-ld} -m elf_x86_64_fbsd"
6763             ;;
6764           x86_64-*linux*)
6765             LD="${LD-ld} -m elf_x86_64"
6766             ;;
6767           ppc*-*linux*|powerpc*-*linux*)
6768             LD="${LD-ld} -m elf64ppc"
6769             ;;
6770           s390*-*linux*|s390*-*tpf*)
6771             LD="${LD-ld} -m elf64_s390"
6772             ;;
6773           sparc*-*linux*)
6774             LD="${LD-ld} -m elf64_sparc"
6775             ;;
6776         esac
6777         ;;
6778     esac
6779   fi
6780   rm -rf conftest*
6781   ;;
6782
6783 *-*-sco3.2v5*)
6784   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6785   SAVE_CFLAGS="$CFLAGS"
6786   CFLAGS="$CFLAGS -belf"
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6788 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6789 if ${lt_cv_cc_needs_belf+:} false; then :
6790   $as_echo_n "(cached) " >&6
6791 else
6792   ac_ext=c
6793 ac_cpp='$CPP $CPPFLAGS'
6794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6797
6798      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h.  */
6800
6801 int
6802 main ()
6803 {
6804
6805   ;
6806   return 0;
6807 }
6808 _ACEOF
6809 if ac_fn_c_try_link "$LINENO"; then :
6810   lt_cv_cc_needs_belf=yes
6811 else
6812   lt_cv_cc_needs_belf=no
6813 fi
6814 rm -f core conftest.err conftest.$ac_objext \
6815     conftest$ac_exeext conftest.$ac_ext
6816      ac_ext=c
6817 ac_cpp='$CPP $CPPFLAGS'
6818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6821
6822 fi
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6824 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6825   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6826     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6827     CFLAGS="$SAVE_CFLAGS"
6828   fi
6829   ;;
6830 *-*solaris*)
6831   # Find out which ABI we are using.
6832   echo 'int i;' > conftest.$ac_ext
6833   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6834   (eval $ac_compile) 2>&5
6835   ac_status=$?
6836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6837   test $ac_status = 0; }; then
6838     case `/usr/bin/file conftest.o` in
6839     *64-bit*)
6840       case $lt_cv_prog_gnu_ld in
6841       yes*)
6842         case $host in
6843         i?86-*-solaris*)
6844           LD="${LD-ld} -m elf_x86_64"
6845           ;;
6846         sparc*-*-solaris*)
6847           LD="${LD-ld} -m elf64_sparc"
6848           ;;
6849         esac
6850         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6851         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6852           LD="${LD-ld}_sol2"
6853         fi
6854         ;;
6855       *)
6856         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6857           LD="${LD-ld} -64"
6858         fi
6859         ;;
6860       esac
6861       ;;
6862     esac
6863   fi
6864   rm -rf conftest*
6865   ;;
6866 esac
6867
6868 need_locks="$enable_libtool_lock"
6869
6870 if test -n "$ac_tool_prefix"; then
6871   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}mt; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6876   $as_echo_n "(cached) " >&6
6877 else
6878   if test -n "$MANIFEST_TOOL"; then
6879   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884   IFS=$as_save_IFS
6885   test -z "$as_dir" && as_dir=.
6886     for ac_exec_ext in '' $ac_executable_extensions; do
6887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893   done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6899 if test -n "$MANIFEST_TOOL"; then
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6901 $as_echo "$MANIFEST_TOOL" >&6; }
6902 else
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 fi
6906
6907
6908 fi
6909 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6910   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6911   # Extract the first word of "mt", so it can be a program name with args.
6912 set dummy mt; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918   if test -n "$ac_ct_MANIFEST_TOOL"; then
6919   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926     for ac_exec_ext in '' $ac_executable_extensions; do
6927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933   done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6939 if test -n "$ac_ct_MANIFEST_TOOL"; then
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6941 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6942 else
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6945 fi
6946
6947   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6948     MANIFEST_TOOL=":"
6949   else
6950     case $cross_compiling:$ac_tool_warned in
6951 yes:)
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954 ac_tool_warned=yes ;;
6955 esac
6956     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6957   fi
6958 else
6959   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6960 fi
6961
6962 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6964 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6965 if ${lt_cv_path_mainfest_tool+:} false; then :
6966   $as_echo_n "(cached) " >&6
6967 else
6968   lt_cv_path_mainfest_tool=no
6969   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6970   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6971   cat conftest.err >&5
6972   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6973     lt_cv_path_mainfest_tool=yes
6974   fi
6975   rm -f conftest*
6976 fi
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6978 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6979 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6980   MANIFEST_TOOL=:
6981 fi
6982
6983
6984
6985
6986
6987
6988   case $host_os in
6989     rhapsody* | darwin*)
6990     if test -n "$ac_tool_prefix"; then
6991   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6992 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6996   $as_echo_n "(cached) " >&6
6997 else
6998   if test -n "$DSYMUTIL"; then
6999   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004   IFS=$as_save_IFS
7005   test -z "$as_dir" && as_dir=.
7006     for ac_exec_ext in '' $ac_executable_extensions; do
7007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010     break 2
7011   fi
7012 done
7013   done
7014 IFS=$as_save_IFS
7015
7016 fi
7017 fi
7018 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7019 if test -n "$DSYMUTIL"; then
7020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7021 $as_echo "$DSYMUTIL" >&6; }
7022 else
7023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7025 fi
7026
7027
7028 fi
7029 if test -z "$ac_cv_prog_DSYMUTIL"; then
7030   ac_ct_DSYMUTIL=$DSYMUTIL
7031   # Extract the first word of "dsymutil", so it can be a program name with args.
7032 set dummy dsymutil; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7036   $as_echo_n "(cached) " >&6
7037 else
7038   if test -n "$ac_ct_DSYMUTIL"; then
7039   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044   IFS=$as_save_IFS
7045   test -z "$as_dir" && as_dir=.
7046     for ac_exec_ext in '' $ac_executable_extensions; do
7047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050     break 2
7051   fi
7052 done
7053   done
7054 IFS=$as_save_IFS
7055
7056 fi
7057 fi
7058 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7059 if test -n "$ac_ct_DSYMUTIL"; then
7060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7061 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7062 else
7063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7065 fi
7066
7067   if test "x$ac_ct_DSYMUTIL" = x; then
7068     DSYMUTIL=":"
7069   else
7070     case $cross_compiling:$ac_tool_warned in
7071 yes:)
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7074 ac_tool_warned=yes ;;
7075 esac
7076     DSYMUTIL=$ac_ct_DSYMUTIL
7077   fi
7078 else
7079   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7080 fi
7081
7082     if test -n "$ac_tool_prefix"; then
7083   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7084 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if ${ac_cv_prog_NMEDIT+:} false; then :
7088   $as_echo_n "(cached) " >&6
7089 else
7090   if test -n "$NMEDIT"; then
7091   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096   IFS=$as_save_IFS
7097   test -z "$as_dir" && as_dir=.
7098     for ac_exec_ext in '' $ac_executable_extensions; do
7099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7100     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102     break 2
7103   fi
7104 done
7105   done
7106 IFS=$as_save_IFS
7107
7108 fi
7109 fi
7110 NMEDIT=$ac_cv_prog_NMEDIT
7111 if test -n "$NMEDIT"; then
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7113 $as_echo "$NMEDIT" >&6; }
7114 else
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117 fi
7118
7119
7120 fi
7121 if test -z "$ac_cv_prog_NMEDIT"; then
7122   ac_ct_NMEDIT=$NMEDIT
7123   # Extract the first word of "nmedit", so it can be a program name with args.
7124 set dummy nmedit; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7128   $as_echo_n "(cached) " >&6
7129 else
7130   if test -n "$ac_ct_NMEDIT"; then
7131   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136   IFS=$as_save_IFS
7137   test -z "$as_dir" && as_dir=.
7138     for ac_exec_ext in '' $ac_executable_extensions; do
7139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7140     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142     break 2
7143   fi
7144 done
7145   done
7146 IFS=$as_save_IFS
7147
7148 fi
7149 fi
7150 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7151 if test -n "$ac_ct_NMEDIT"; then
7152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7153 $as_echo "$ac_ct_NMEDIT" >&6; }
7154 else
7155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7157 fi
7158
7159   if test "x$ac_ct_NMEDIT" = x; then
7160     NMEDIT=":"
7161   else
7162     case $cross_compiling:$ac_tool_warned in
7163 yes:)
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7166 ac_tool_warned=yes ;;
7167 esac
7168     NMEDIT=$ac_ct_NMEDIT
7169   fi
7170 else
7171   NMEDIT="$ac_cv_prog_NMEDIT"
7172 fi
7173
7174     if test -n "$ac_tool_prefix"; then
7175   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7176 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if ${ac_cv_prog_LIPO+:} false; then :
7180   $as_echo_n "(cached) " >&6
7181 else
7182   if test -n "$LIPO"; then
7183   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7184 else
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188   IFS=$as_save_IFS
7189   test -z "$as_dir" && as_dir=.
7190     for ac_exec_ext in '' $ac_executable_extensions; do
7191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7192     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194     break 2
7195   fi
7196 done
7197   done
7198 IFS=$as_save_IFS
7199
7200 fi
7201 fi
7202 LIPO=$ac_cv_prog_LIPO
7203 if test -n "$LIPO"; then
7204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7205 $as_echo "$LIPO" >&6; }
7206 else
7207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7209 fi
7210
7211
7212 fi
7213 if test -z "$ac_cv_prog_LIPO"; then
7214   ac_ct_LIPO=$LIPO
7215   # Extract the first word of "lipo", so it can be a program name with args.
7216 set dummy lipo; ac_word=$2
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7220   $as_echo_n "(cached) " >&6
7221 else
7222   if test -n "$ac_ct_LIPO"; then
7223   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7224 else
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in $PATH
7227 do
7228   IFS=$as_save_IFS
7229   test -z "$as_dir" && as_dir=.
7230     for ac_exec_ext in '' $ac_executable_extensions; do
7231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7232     ac_cv_prog_ac_ct_LIPO="lipo"
7233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234     break 2
7235   fi
7236 done
7237   done
7238 IFS=$as_save_IFS
7239
7240 fi
7241 fi
7242 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7243 if test -n "$ac_ct_LIPO"; then
7244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7245 $as_echo "$ac_ct_LIPO" >&6; }
7246 else
7247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248 $as_echo "no" >&6; }
7249 fi
7250
7251   if test "x$ac_ct_LIPO" = x; then
7252     LIPO=":"
7253   else
7254     case $cross_compiling:$ac_tool_warned in
7255 yes:)
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7258 ac_tool_warned=yes ;;
7259 esac
7260     LIPO=$ac_ct_LIPO
7261   fi
7262 else
7263   LIPO="$ac_cv_prog_LIPO"
7264 fi
7265
7266     if test -n "$ac_tool_prefix"; then
7267   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7268 set dummy ${ac_tool_prefix}otool; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_prog_OTOOL+:} false; then :
7272   $as_echo_n "(cached) " >&6
7273 else
7274   if test -n "$OTOOL"; then
7275   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280   IFS=$as_save_IFS
7281   test -z "$as_dir" && as_dir=.
7282     for ac_exec_ext in '' $ac_executable_extensions; do
7283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7284     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286     break 2
7287   fi
7288 done
7289   done
7290 IFS=$as_save_IFS
7291
7292 fi
7293 fi
7294 OTOOL=$ac_cv_prog_OTOOL
7295 if test -n "$OTOOL"; then
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7297 $as_echo "$OTOOL" >&6; }
7298 else
7299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7301 fi
7302
7303
7304 fi
7305 if test -z "$ac_cv_prog_OTOOL"; then
7306   ac_ct_OTOOL=$OTOOL
7307   # Extract the first word of "otool", so it can be a program name with args.
7308 set dummy otool; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7312   $as_echo_n "(cached) " >&6
7313 else
7314   if test -n "$ac_ct_OTOOL"; then
7315   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7319 do
7320   IFS=$as_save_IFS
7321   test -z "$as_dir" && as_dir=.
7322     for ac_exec_ext in '' $ac_executable_extensions; do
7323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7324     ac_cv_prog_ac_ct_OTOOL="otool"
7325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326     break 2
7327   fi
7328 done
7329   done
7330 IFS=$as_save_IFS
7331
7332 fi
7333 fi
7334 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7335 if test -n "$ac_ct_OTOOL"; then
7336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7337 $as_echo "$ac_ct_OTOOL" >&6; }
7338 else
7339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7341 fi
7342
7343   if test "x$ac_ct_OTOOL" = x; then
7344     OTOOL=":"
7345   else
7346     case $cross_compiling:$ac_tool_warned in
7347 yes:)
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7350 ac_tool_warned=yes ;;
7351 esac
7352     OTOOL=$ac_ct_OTOOL
7353   fi
7354 else
7355   OTOOL="$ac_cv_prog_OTOOL"
7356 fi
7357
7358     if test -n "$ac_tool_prefix"; then
7359   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7360 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if ${ac_cv_prog_OTOOL64+:} false; then :
7364   $as_echo_n "(cached) " >&6
7365 else
7366   if test -n "$OTOOL64"; then
7367   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7368 else
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7371 do
7372   IFS=$as_save_IFS
7373   test -z "$as_dir" && as_dir=.
7374     for ac_exec_ext in '' $ac_executable_extensions; do
7375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7376     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378     break 2
7379   fi
7380 done
7381   done
7382 IFS=$as_save_IFS
7383
7384 fi
7385 fi
7386 OTOOL64=$ac_cv_prog_OTOOL64
7387 if test -n "$OTOOL64"; then
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7389 $as_echo "$OTOOL64" >&6; }
7390 else
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7393 fi
7394
7395
7396 fi
7397 if test -z "$ac_cv_prog_OTOOL64"; then
7398   ac_ct_OTOOL64=$OTOOL64
7399   # Extract the first word of "otool64", so it can be a program name with args.
7400 set dummy otool64; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7404   $as_echo_n "(cached) " >&6
7405 else
7406   if test -n "$ac_ct_OTOOL64"; then
7407   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7408 else
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7411 do
7412   IFS=$as_save_IFS
7413   test -z "$as_dir" && as_dir=.
7414     for ac_exec_ext in '' $ac_executable_extensions; do
7415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7416     ac_cv_prog_ac_ct_OTOOL64="otool64"
7417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418     break 2
7419   fi
7420 done
7421   done
7422 IFS=$as_save_IFS
7423
7424 fi
7425 fi
7426 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7427 if test -n "$ac_ct_OTOOL64"; then
7428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7429 $as_echo "$ac_ct_OTOOL64" >&6; }
7430 else
7431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7433 fi
7434
7435   if test "x$ac_ct_OTOOL64" = x; then
7436     OTOOL64=":"
7437   else
7438     case $cross_compiling:$ac_tool_warned in
7439 yes:)
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7442 ac_tool_warned=yes ;;
7443 esac
7444     OTOOL64=$ac_ct_OTOOL64
7445   fi
7446 else
7447   OTOOL64="$ac_cv_prog_OTOOL64"
7448 fi
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7477 $as_echo_n "checking for -single_module linker flag... " >&6; }
7478 if ${lt_cv_apple_cc_single_mod+:} false; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   lt_cv_apple_cc_single_mod=no
7482       if test -z "${LT_MULTI_MODULE}"; then
7483         # By default we will add the -single_module flag. You can override
7484         # by either setting the environment variable LT_MULTI_MODULE
7485         # non-empty at configure time, or by adding -multi_module to the
7486         # link flags.
7487         rm -rf libconftest.dylib*
7488         echo "int foo(void){return 1;}" > conftest.c
7489         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7490 -dynamiclib -Wl,-single_module conftest.c" >&5
7491         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7492           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7493         _lt_result=$?
7494         # If there is a non-empty error log, and "single_module"
7495         # appears in it, assume the flag caused a linker warning
7496         if test -s conftest.err && $GREP single_module conftest.err; then
7497           cat conftest.err >&5
7498         # Otherwise, if the output was created with a 0 exit code from
7499         # the compiler, it worked.
7500         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7501           lt_cv_apple_cc_single_mod=yes
7502         else
7503           cat conftest.err >&5
7504         fi
7505         rm -rf libconftest.dylib*
7506         rm -f conftest.*
7507       fi
7508 fi
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7510 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7511
7512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7513 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7514 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7515   $as_echo_n "(cached) " >&6
7516 else
7517   lt_cv_ld_exported_symbols_list=no
7518       save_LDFLAGS=$LDFLAGS
7519       echo "_main" > conftest.sym
7520       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7521       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h.  */
7523
7524 int
7525 main ()
7526 {
7527
7528   ;
7529   return 0;
7530 }
7531 _ACEOF
7532 if ac_fn_c_try_link "$LINENO"; then :
7533   lt_cv_ld_exported_symbols_list=yes
7534 else
7535   lt_cv_ld_exported_symbols_list=no
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext \
7538     conftest$ac_exeext conftest.$ac_ext
7539         LDFLAGS="$save_LDFLAGS"
7540
7541 fi
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7543 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7544
7545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7546 $as_echo_n "checking for -force_load linker flag... " >&6; }
7547 if ${lt_cv_ld_force_load+:} false; then :
7548   $as_echo_n "(cached) " >&6
7549 else
7550   lt_cv_ld_force_load=no
7551       cat > conftest.c << _LT_EOF
7552 int forced_loaded() { return 2;}
7553 _LT_EOF
7554       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7555       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7556       echo "$AR cru libconftest.a conftest.o" >&5
7557       $AR cru libconftest.a conftest.o 2>&5
7558       echo "$RANLIB libconftest.a" >&5
7559       $RANLIB libconftest.a 2>&5
7560       cat > conftest.c << _LT_EOF
7561 int main() { return 0;}
7562 _LT_EOF
7563       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7564       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7565       _lt_result=$?
7566       if test -s conftest.err && $GREP force_load conftest.err; then
7567         cat conftest.err >&5
7568       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7569         lt_cv_ld_force_load=yes
7570       else
7571         cat conftest.err >&5
7572       fi
7573         rm -f conftest.err libconftest.a conftest conftest.c
7574         rm -rf conftest.dSYM
7575
7576 fi
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7578 $as_echo "$lt_cv_ld_force_load" >&6; }
7579     case $host_os in
7580     rhapsody* | darwin1.[012])
7581       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7582     darwin1.*)
7583       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7584     darwin*) # darwin 5.x on
7585       # if running on 10.5 or later, the deployment target defaults
7586       # to the OS version, if on x86, and 10.4, the deployment
7587       # target defaults to 10.4. Don't you love it?
7588       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7589         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7590           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7591         10.[012]*)
7592           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7593         10.*)
7594           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7595       esac
7596     ;;
7597   esac
7598     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7599       _lt_dar_single_mod='$single_module'
7600     fi
7601     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7602       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7603     else
7604       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7605     fi
7606     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7607       _lt_dsymutil='~$DSYMUTIL $lib || :'
7608     else
7609       _lt_dsymutil=
7610     fi
7611     ;;
7612   esac
7613
7614 ac_ext=c
7615 ac_cpp='$CPP $CPPFLAGS'
7616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7620 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7621 # On Suns, sometimes $CPP names a directory.
7622 if test -n "$CPP" && test -d "$CPP"; then
7623   CPP=
7624 fi
7625 if test -z "$CPP"; then
7626   if ${ac_cv_prog_CPP+:} false; then :
7627   $as_echo_n "(cached) " >&6
7628 else
7629       # Double quotes because CPP needs to be expanded
7630     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7631     do
7632       ac_preproc_ok=false
7633 for ac_c_preproc_warn_flag in '' yes
7634 do
7635   # Use a header file that comes with gcc, so configuring glibc
7636   # with a fresh cross-compiler works.
7637   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7638   # <limits.h> exists even on freestanding compilers.
7639   # On the NeXT, cc -E runs the code through the compiler's parser,
7640   # not just through cpp. "Syntax error" is here to catch this case.
7641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h.  */
7643 #ifdef __STDC__
7644 # include <limits.h>
7645 #else
7646 # include <assert.h>
7647 #endif
7648                      Syntax error
7649 _ACEOF
7650 if ac_fn_c_try_cpp "$LINENO"; then :
7651
7652 else
7653   # Broken: fails on valid input.
7654 continue
7655 fi
7656 rm -f conftest.err conftest.i conftest.$ac_ext
7657
7658   # OK, works on sane cases.  Now check whether nonexistent headers
7659   # can be detected and how.
7660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h.  */
7662 #include <ac_nonexistent.h>
7663 _ACEOF
7664 if ac_fn_c_try_cpp "$LINENO"; then :
7665   # Broken: success on invalid input.
7666 continue
7667 else
7668   # Passes both tests.
7669 ac_preproc_ok=:
7670 break
7671 fi
7672 rm -f conftest.err conftest.i conftest.$ac_ext
7673
7674 done
7675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7676 rm -f conftest.i conftest.err conftest.$ac_ext
7677 if $ac_preproc_ok; then :
7678   break
7679 fi
7680
7681     done
7682     ac_cv_prog_CPP=$CPP
7683
7684 fi
7685   CPP=$ac_cv_prog_CPP
7686 else
7687   ac_cv_prog_CPP=$CPP
7688 fi
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7690 $as_echo "$CPP" >&6; }
7691 ac_preproc_ok=false
7692 for ac_c_preproc_warn_flag in '' yes
7693 do
7694   # Use a header file that comes with gcc, so configuring glibc
7695   # with a fresh cross-compiler works.
7696   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7697   # <limits.h> exists even on freestanding compilers.
7698   # On the NeXT, cc -E runs the code through the compiler's parser,
7699   # not just through cpp. "Syntax error" is here to catch this case.
7700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h.  */
7702 #ifdef __STDC__
7703 # include <limits.h>
7704 #else
7705 # include <assert.h>
7706 #endif
7707                      Syntax error
7708 _ACEOF
7709 if ac_fn_c_try_cpp "$LINENO"; then :
7710
7711 else
7712   # Broken: fails on valid input.
7713 continue
7714 fi
7715 rm -f conftest.err conftest.i conftest.$ac_ext
7716
7717   # OK, works on sane cases.  Now check whether nonexistent headers
7718   # can be detected and how.
7719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h.  */
7721 #include <ac_nonexistent.h>
7722 _ACEOF
7723 if ac_fn_c_try_cpp "$LINENO"; then :
7724   # Broken: success on invalid input.
7725 continue
7726 else
7727   # Passes both tests.
7728 ac_preproc_ok=:
7729 break
7730 fi
7731 rm -f conftest.err conftest.i conftest.$ac_ext
7732
7733 done
7734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7735 rm -f conftest.i conftest.err conftest.$ac_ext
7736 if $ac_preproc_ok; then :
7737
7738 else
7739   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7741 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7742 See \`config.log' for more details" "$LINENO" 5; }
7743 fi
7744
7745 ac_ext=c
7746 ac_cpp='$CPP $CPPFLAGS'
7747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750
7751
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7753 $as_echo_n "checking for ANSI C header files... " >&6; }
7754 if ${ac_cv_header_stdc+:} false; then :
7755   $as_echo_n "(cached) " >&6
7756 else
7757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h.  */
7759 #include <stdlib.h>
7760 #include <stdarg.h>
7761 #include <string.h>
7762 #include <float.h>
7763
7764 int
7765 main ()
7766 {
7767
7768   ;
7769   return 0;
7770 }
7771 _ACEOF
7772 if ac_fn_c_try_compile "$LINENO"; then :
7773   ac_cv_header_stdc=yes
7774 else
7775   ac_cv_header_stdc=no
7776 fi
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778
7779 if test $ac_cv_header_stdc = yes; then
7780   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h.  */
7783 #include <string.h>
7784
7785 _ACEOF
7786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7787   $EGREP "memchr" >/dev/null 2>&1; then :
7788
7789 else
7790   ac_cv_header_stdc=no
7791 fi
7792 rm -f conftest*
7793
7794 fi
7795
7796 if test $ac_cv_header_stdc = yes; then
7797   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h.  */
7800 #include <stdlib.h>
7801
7802 _ACEOF
7803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7804   $EGREP "free" >/dev/null 2>&1; then :
7805
7806 else
7807   ac_cv_header_stdc=no
7808 fi
7809 rm -f conftest*
7810
7811 fi
7812
7813 if test $ac_cv_header_stdc = yes; then
7814   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7815   if test "$cross_compiling" = yes; then :
7816   :
7817 else
7818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h.  */
7820 #include <ctype.h>
7821 #include <stdlib.h>
7822 #if ((' ' & 0x0FF) == 0x020)
7823 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7824 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7825 #else
7826 # define ISLOWER(c) \
7827                    (('a' <= (c) && (c) <= 'i') \
7828                      || ('j' <= (c) && (c) <= 'r') \
7829                      || ('s' <= (c) && (c) <= 'z'))
7830 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7831 #endif
7832
7833 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7834 int
7835 main ()
7836 {
7837   int i;
7838   for (i = 0; i < 256; i++)
7839     if (XOR (islower (i), ISLOWER (i))
7840         || toupper (i) != TOUPPER (i))
7841       return 2;
7842   return 0;
7843 }
7844 _ACEOF
7845 if ac_fn_c_try_run "$LINENO"; then :
7846
7847 else
7848   ac_cv_header_stdc=no
7849 fi
7850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7851   conftest.$ac_objext conftest.beam conftest.$ac_ext
7852 fi
7853
7854 fi
7855 fi
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7857 $as_echo "$ac_cv_header_stdc" >&6; }
7858 if test $ac_cv_header_stdc = yes; then
7859
7860 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7861
7862 fi
7863
7864 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7865 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7866                   inttypes.h stdint.h unistd.h
7867 do :
7868   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7869 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7870 "
7871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7872   cat >>confdefs.h <<_ACEOF
7873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7874 _ACEOF
7875
7876 fi
7877
7878 done
7879
7880
7881 for ac_header in dlfcn.h
7882 do :
7883   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7884 "
7885 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7886   cat >>confdefs.h <<_ACEOF
7887 #define HAVE_DLFCN_H 1
7888 _ACEOF
7889
7890 fi
7891
7892 done
7893
7894
7895
7896
7897
7898 # Set options
7899
7900
7901
7902         enable_dlopen=no
7903
7904
7905   enable_win32_dll=no
7906
7907
7908             # Check whether --enable-shared was given.
7909 if test "${enable_shared+set}" = set; then :
7910   enableval=$enable_shared; p=${PACKAGE-default}
7911     case $enableval in
7912     yes) enable_shared=yes ;;
7913     no) enable_shared=no ;;
7914     *)
7915       enable_shared=no
7916       # Look at the argument we got.  We use all the common list separators.
7917       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7918       for pkg in $enableval; do
7919         IFS="$lt_save_ifs"
7920         if test "X$pkg" = "X$p"; then
7921           enable_shared=yes
7922         fi
7923       done
7924       IFS="$lt_save_ifs"
7925       ;;
7926     esac
7927 else
7928   enable_shared=yes
7929 fi
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939   # Check whether --enable-static was given.
7940 if test "${enable_static+set}" = set; then :
7941   enableval=$enable_static; p=${PACKAGE-default}
7942     case $enableval in
7943     yes) enable_static=yes ;;
7944     no) enable_static=no ;;
7945     *)
7946      enable_static=no
7947       # Look at the argument we got.  We use all the common list separators.
7948       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7949       for pkg in $enableval; do
7950         IFS="$lt_save_ifs"
7951         if test "X$pkg" = "X$p"; then
7952           enable_static=yes
7953         fi
7954       done
7955       IFS="$lt_save_ifs"
7956       ;;
7957     esac
7958 else
7959   enable_static=yes
7960 fi
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971 # Check whether --with-pic was given.
7972 if test "${with_pic+set}" = set; then :
7973   withval=$with_pic; lt_p=${PACKAGE-default}
7974     case $withval in
7975     yes|no) pic_mode=$withval ;;
7976     *)
7977       pic_mode=default
7978       # Look at the argument we got.  We use all the common list separators.
7979       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7980       for lt_pkg in $withval; do
7981         IFS="$lt_save_ifs"
7982         if test "X$lt_pkg" = "X$lt_p"; then
7983           pic_mode=yes
7984         fi
7985       done
7986       IFS="$lt_save_ifs"
7987       ;;
7988     esac
7989 else
7990   pic_mode=default
7991 fi
7992
7993
7994 test -z "$pic_mode" && pic_mode=default
7995
7996
7997
7998
7999
8000
8001
8002   # Check whether --enable-fast-install was given.
8003 if test "${enable_fast_install+set}" = set; then :
8004   enableval=$enable_fast_install; p=${PACKAGE-default}
8005     case $enableval in
8006     yes) enable_fast_install=yes ;;
8007     no) enable_fast_install=no ;;
8008     *)
8009       enable_fast_install=no
8010       # Look at the argument we got.  We use all the common list separators.
8011       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8012       for pkg in $enableval; do
8013         IFS="$lt_save_ifs"
8014         if test "X$pkg" = "X$p"; then
8015           enable_fast_install=yes
8016         fi
8017       done
8018       IFS="$lt_save_ifs"
8019       ;;
8020     esac
8021 else
8022   enable_fast_install=yes
8023 fi
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035 # This can be used to rebuild libtool when needed
8036 LIBTOOL_DEPS="$ltmain"
8037
8038 # Always use our own libtool.
8039 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070 test -z "$LN_S" && LN_S="ln -s"
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085 if test -n "${ZSH_VERSION+set}" ; then
8086    setopt NO_GLOB_SUBST
8087 fi
8088
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8090 $as_echo_n "checking for objdir... " >&6; }
8091 if ${lt_cv_objdir+:} false; then :
8092   $as_echo_n "(cached) " >&6
8093 else
8094   rm -f .libs 2>/dev/null
8095 mkdir .libs 2>/dev/null
8096 if test -d .libs; then
8097   lt_cv_objdir=.libs
8098 else
8099   # MS-DOS does not allow filenames that begin with a dot.
8100   lt_cv_objdir=_libs
8101 fi
8102 rmdir .libs 2>/dev/null
8103 fi
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8105 $as_echo "$lt_cv_objdir" >&6; }
8106 objdir=$lt_cv_objdir
8107
8108
8109
8110
8111
8112 cat >>confdefs.h <<_ACEOF
8113 #define LT_OBJDIR "$lt_cv_objdir/"
8114 _ACEOF
8115
8116
8117
8118
8119 case $host_os in
8120 aix3*)
8121   # AIX sometimes has problems with the GCC collect2 program.  For some
8122   # reason, if we set the COLLECT_NAMES environment variable, the problems
8123   # vanish in a puff of smoke.
8124   if test "X${COLLECT_NAMES+set}" != Xset; then
8125     COLLECT_NAMES=
8126     export COLLECT_NAMES
8127   fi
8128   ;;
8129 esac
8130
8131 # Global variables:
8132 ofile=libtool
8133 can_build_shared=yes
8134
8135 # All known linkers require a `.a' archive for static linking (except MSVC,
8136 # which needs '.lib').
8137 libext=a
8138
8139 with_gnu_ld="$lt_cv_prog_gnu_ld"
8140
8141 old_CC="$CC"
8142 old_CFLAGS="$CFLAGS"
8143
8144 # Set sane defaults for various variables
8145 test -z "$CC" && CC=cc
8146 test -z "$LTCC" && LTCC=$CC
8147 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8148 test -z "$LD" && LD=ld
8149 test -z "$ac_objext" && ac_objext=o
8150
8151 for cc_temp in $compiler""; do
8152   case $cc_temp in
8153     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8154     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8155     \-*) ;;
8156     *) break;;
8157   esac
8158 done
8159 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8160
8161
8162 # Only perform the check for file, if the check method requires it
8163 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8164 case $deplibs_check_method in
8165 file_magic*)
8166   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8168 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8169 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8170   $as_echo_n "(cached) " >&6
8171 else
8172   case $MAGIC_CMD in
8173 [\\/*] |  ?:[\\/]*)
8174   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8175   ;;
8176 *)
8177   lt_save_MAGIC_CMD="$MAGIC_CMD"
8178   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8179   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8180   for ac_dir in $ac_dummy; do
8181     IFS="$lt_save_ifs"
8182     test -z "$ac_dir" && ac_dir=.
8183     if test -f $ac_dir/${ac_tool_prefix}file; then
8184       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8185       if test -n "$file_magic_test_file"; then
8186         case $deplibs_check_method in
8187         "file_magic "*)
8188           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8189           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8190           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8191             $EGREP "$file_magic_regex" > /dev/null; then
8192             :
8193           else
8194             cat <<_LT_EOF 1>&2
8195
8196 *** Warning: the command libtool uses to detect shared libraries,
8197 *** $file_magic_cmd, produces output that libtool cannot recognize.
8198 *** The result is that libtool may fail to recognize shared libraries
8199 *** as such.  This will affect the creation of libtool libraries that
8200 *** depend on shared libraries, but programs linked with such libtool
8201 *** libraries will work regardless of this problem.  Nevertheless, you
8202 *** may want to report the problem to your system manager and/or to
8203 *** bug-libtool@gnu.org
8204
8205 _LT_EOF
8206           fi ;;
8207         esac
8208       fi
8209       break
8210     fi
8211   done
8212   IFS="$lt_save_ifs"
8213   MAGIC_CMD="$lt_save_MAGIC_CMD"
8214   ;;
8215 esac
8216 fi
8217
8218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8219 if test -n "$MAGIC_CMD"; then
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8221 $as_echo "$MAGIC_CMD" >&6; }
8222 else
8223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8225 fi
8226
8227
8228
8229
8230
8231 if test -z "$lt_cv_path_MAGIC_CMD"; then
8232   if test -n "$ac_tool_prefix"; then
8233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8234 $as_echo_n "checking for file... " >&6; }
8235 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8236   $as_echo_n "(cached) " >&6
8237 else
8238   case $MAGIC_CMD in
8239 [\\/*] |  ?:[\\/]*)
8240   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8241   ;;
8242 *)
8243   lt_save_MAGIC_CMD="$MAGIC_CMD"
8244   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8245   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8246   for ac_dir in $ac_dummy; do
8247     IFS="$lt_save_ifs"
8248     test -z "$ac_dir" && ac_dir=.
8249     if test -f $ac_dir/file; then
8250       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8251       if test -n "$file_magic_test_file"; then
8252         case $deplibs_check_method in
8253         "file_magic "*)
8254           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8255           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8256           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8257             $EGREP "$file_magic_regex" > /dev/null; then
8258             :
8259           else
8260             cat <<_LT_EOF 1>&2
8261
8262 *** Warning: the command libtool uses to detect shared libraries,
8263 *** $file_magic_cmd, produces output that libtool cannot recognize.
8264 *** The result is that libtool may fail to recognize shared libraries
8265 *** as such.  This will affect the creation of libtool libraries that
8266 *** depend on shared libraries, but programs linked with such libtool
8267 *** libraries will work regardless of this problem.  Nevertheless, you
8268 *** may want to report the problem to your system manager and/or to
8269 *** bug-libtool@gnu.org
8270
8271 _LT_EOF
8272           fi ;;
8273         esac
8274       fi
8275       break
8276     fi
8277   done
8278   IFS="$lt_save_ifs"
8279   MAGIC_CMD="$lt_save_MAGIC_CMD"
8280   ;;
8281 esac
8282 fi
8283
8284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8285 if test -n "$MAGIC_CMD"; then
8286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8287 $as_echo "$MAGIC_CMD" >&6; }
8288 else
8289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8291 fi
8292
8293
8294   else
8295     MAGIC_CMD=:
8296   fi
8297 fi
8298
8299   fi
8300   ;;
8301 esac
8302
8303 # Use C for the default configuration in the libtool script
8304
8305 lt_save_CC="$CC"
8306 ac_ext=c
8307 ac_cpp='$CPP $CPPFLAGS'
8308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8311
8312
8313 # Source file extension for C test sources.
8314 ac_ext=c
8315
8316 # Object file extension for compiled C test sources.
8317 objext=o
8318 objext=$objext
8319
8320 # Code to be used in simple compile tests
8321 lt_simple_compile_test_code="int some_variable = 0;"
8322
8323 # Code to be used in simple link tests
8324 lt_simple_link_test_code='int main(){return(0);}'
8325
8326
8327
8328
8329
8330
8331
8332 # If no C compiler was specified, use CC.
8333 LTCC=${LTCC-"$CC"}
8334
8335 # If no C compiler flags were specified, use CFLAGS.
8336 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8337
8338 # Allow CC to be a program name with arguments.
8339 compiler=$CC
8340
8341 # Save the default compiler, since it gets overwritten when the other
8342 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8343 compiler_DEFAULT=$CC
8344
8345 # save warnings/boilerplate of simple test code
8346 ac_outfile=conftest.$ac_objext
8347 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8349 _lt_compiler_boilerplate=`cat conftest.err`
8350 $RM conftest*
8351
8352 ac_outfile=conftest.$ac_objext
8353 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8355 _lt_linker_boilerplate=`cat conftest.err`
8356 $RM -r conftest*
8357
8358
8359 if test -n "$compiler"; then
8360
8361 lt_prog_compiler_no_builtin_flag=
8362
8363 if test "$GCC" = yes; then
8364   case $cc_basename in
8365   nvcc*)
8366     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8367   *)
8368     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8369   esac
8370
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8372 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8373 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8374   $as_echo_n "(cached) " >&6
8375 else
8376   lt_cv_prog_compiler_rtti_exceptions=no
8377    ac_outfile=conftest.$ac_objext
8378    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8379    lt_compiler_flag="-fno-rtti -fno-exceptions"
8380    # Insert the option either (1) after the last *FLAGS variable, or
8381    # (2) before a word containing "conftest.", or (3) at the end.
8382    # Note that $ac_compile itself does not contain backslashes and begins
8383    # with a dollar sign (not a hyphen), so the echo should work correctly.
8384    # The option is referenced via a variable to avoid confusing sed.
8385    lt_compile=`echo "$ac_compile" | $SED \
8386    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8387    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8388    -e 's:$: $lt_compiler_flag:'`
8389    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8390    (eval "$lt_compile" 2>conftest.err)
8391    ac_status=$?
8392    cat conftest.err >&5
8393    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394    if (exit $ac_status) && test -s "$ac_outfile"; then
8395      # The compiler can only warn and ignore the option if not recognized
8396      # So say no if there are warnings other than the usual output.
8397      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8398      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8399      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8400        lt_cv_prog_compiler_rtti_exceptions=yes
8401      fi
8402    fi
8403    $RM conftest*
8404
8405 fi
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8407 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8408
8409 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8410     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8411 else
8412     :
8413 fi
8414
8415 fi
8416
8417
8418
8419
8420
8421
8422   lt_prog_compiler_wl=
8423 lt_prog_compiler_pic=
8424 lt_prog_compiler_static=
8425
8426
8427   if test "$GCC" = yes; then
8428     lt_prog_compiler_wl='-Wl,'
8429     lt_prog_compiler_static='-static'
8430
8431     case $host_os in
8432       aix*)
8433       # All AIX code is PIC.
8434       if test "$host_cpu" = ia64; then
8435         # AIX 5 now supports IA64 processor
8436         lt_prog_compiler_static='-Bstatic'
8437       fi
8438       ;;
8439
8440     amigaos*)
8441       case $host_cpu in
8442       powerpc)
8443             # see comment about AmigaOS4 .so support
8444             lt_prog_compiler_pic='-fPIC'
8445         ;;
8446       m68k)
8447             # FIXME: we need at least 68020 code to build shared libraries, but
8448             # adding the `-m68020' flag to GCC prevents building anything better,
8449             # like `-m68040'.
8450             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8451         ;;
8452       esac
8453       ;;
8454
8455     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8456       # PIC is the default for these OSes.
8457       ;;
8458
8459     mingw* | cygwin* | pw32* | os2* | cegcc*)
8460       # This hack is so that the source file can tell whether it is being
8461       # built for inclusion in a dll (and should export symbols for example).
8462       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8463       # (--disable-auto-import) libraries
8464       lt_prog_compiler_pic='-DDLL_EXPORT'
8465       ;;
8466
8467     darwin* | rhapsody*)
8468       # PIC is the default on this platform
8469       # Common symbols not allowed in MH_DYLIB files
8470       lt_prog_compiler_pic='-fno-common'
8471       ;;
8472
8473     haiku*)
8474       # PIC is the default for Haiku.
8475       # The "-static" flag exists, but is broken.
8476       lt_prog_compiler_static=
8477       ;;
8478
8479     hpux*)
8480       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8481       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8482       # sets the default TLS model and affects inlining.
8483       case $host_cpu in
8484       hppa*64*)
8485         # +Z the default
8486         ;;
8487       *)
8488         lt_prog_compiler_pic='-fPIC'
8489         ;;
8490       esac
8491       ;;
8492
8493     interix[3-9]*)
8494       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8495       # Instead, we relocate shared libraries at runtime.
8496       ;;
8497
8498     msdosdjgpp*)
8499       # Just because we use GCC doesn't mean we suddenly get shared libraries
8500       # on systems that don't support them.
8501       lt_prog_compiler_can_build_shared=no
8502       enable_shared=no
8503       ;;
8504
8505     *nto* | *qnx*)
8506       # QNX uses GNU C++, but need to define -shared option too, otherwise
8507       # it will coredump.
8508       lt_prog_compiler_pic='-fPIC -shared'
8509       ;;
8510
8511     sysv4*MP*)
8512       if test -d /usr/nec; then
8513         lt_prog_compiler_pic=-Kconform_pic
8514       fi
8515       ;;
8516
8517     *)
8518       lt_prog_compiler_pic='-fPIC'
8519       ;;
8520     esac
8521
8522     case $cc_basename in
8523     nvcc*) # Cuda Compiler Driver 2.2
8524       lt_prog_compiler_wl='-Xlinker '
8525       if test -n "$lt_prog_compiler_pic"; then
8526         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8527       fi
8528       ;;
8529     esac
8530   else
8531     # PORTME Check for flag to pass linker flags through the system compiler.
8532     case $host_os in
8533     aix*)
8534       lt_prog_compiler_wl='-Wl,'
8535       if test "$host_cpu" = ia64; then
8536         # AIX 5 now supports IA64 processor
8537         lt_prog_compiler_static='-Bstatic'
8538       else
8539         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8540       fi
8541       ;;
8542
8543     mingw* | cygwin* | pw32* | os2* | cegcc*)
8544       # This hack is so that the source file can tell whether it is being
8545       # built for inclusion in a dll (and should export symbols for example).
8546       lt_prog_compiler_pic='-DDLL_EXPORT'
8547       ;;
8548
8549     hpux9* | hpux10* | hpux11*)
8550       lt_prog_compiler_wl='-Wl,'
8551       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8552       # not for PA HP-UX.
8553       case $host_cpu in
8554       hppa*64*|ia64*)
8555         # +Z the default
8556         ;;
8557       *)
8558         lt_prog_compiler_pic='+Z'
8559         ;;
8560       esac
8561       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8562       lt_prog_compiler_static='${wl}-a ${wl}archive'
8563       ;;
8564
8565     irix5* | irix6* | nonstopux*)
8566       lt_prog_compiler_wl='-Wl,'
8567       # PIC (with -KPIC) is the default.
8568       lt_prog_compiler_static='-non_shared'
8569       ;;
8570
8571     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8572       case $cc_basename in
8573       # old Intel for x86_64 which still supported -KPIC.
8574       ecc*)
8575         lt_prog_compiler_wl='-Wl,'
8576         lt_prog_compiler_pic='-KPIC'
8577         lt_prog_compiler_static='-static'
8578         ;;
8579       # icc used to be incompatible with GCC.
8580       # ICC 10 doesn't accept -KPIC any more.
8581       icc* | ifort*)
8582         lt_prog_compiler_wl='-Wl,'
8583         lt_prog_compiler_pic='-fPIC'
8584         lt_prog_compiler_static='-static'
8585         ;;
8586       # Lahey Fortran 8.1.
8587       lf95*)
8588         lt_prog_compiler_wl='-Wl,'
8589         lt_prog_compiler_pic='--shared'
8590         lt_prog_compiler_static='--static'
8591         ;;
8592       nagfor*)
8593         # NAG Fortran compiler
8594         lt_prog_compiler_wl='-Wl,-Wl,,'
8595         lt_prog_compiler_pic='-PIC'
8596         lt_prog_compiler_static='-Bstatic'
8597         ;;
8598       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8599         # Portland Group compilers (*not* the Pentium gcc compiler,
8600         # which looks to be a dead project)
8601         lt_prog_compiler_wl='-Wl,'
8602         lt_prog_compiler_pic='-fpic'
8603         lt_prog_compiler_static='-Bstatic'
8604         ;;
8605       ccc*)
8606         lt_prog_compiler_wl='-Wl,'
8607         # All Alpha code is PIC.
8608         lt_prog_compiler_static='-non_shared'
8609         ;;
8610       xl* | bgxl* | bgf* | mpixl*)
8611         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8612         lt_prog_compiler_wl='-Wl,'
8613         lt_prog_compiler_pic='-qpic'
8614         lt_prog_compiler_static='-qstaticlink'
8615         ;;
8616       *)
8617         case `$CC -V 2>&1 | sed 5q` in
8618         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8619           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8620           lt_prog_compiler_pic='-KPIC'
8621           lt_prog_compiler_static='-Bstatic'
8622           lt_prog_compiler_wl=''
8623           ;;
8624         *Sun\ F* | *Sun*Fortran*)
8625           lt_prog_compiler_pic='-KPIC'
8626           lt_prog_compiler_static='-Bstatic'
8627           lt_prog_compiler_wl='-Qoption ld '
8628           ;;
8629         *Sun\ C*)
8630           # Sun C 5.9
8631           lt_prog_compiler_pic='-KPIC'
8632           lt_prog_compiler_static='-Bstatic'
8633           lt_prog_compiler_wl='-Wl,'
8634           ;;
8635         *Intel*\ [CF]*Compiler*)
8636           lt_prog_compiler_wl='-Wl,'
8637           lt_prog_compiler_pic='-fPIC'
8638           lt_prog_compiler_static='-static'
8639           ;;
8640         *Portland\ Group*)
8641           lt_prog_compiler_wl='-Wl,'
8642           lt_prog_compiler_pic='-fpic'
8643           lt_prog_compiler_static='-Bstatic'
8644           ;;
8645         esac
8646         ;;
8647       esac
8648       ;;
8649
8650     newsos6)
8651       lt_prog_compiler_pic='-KPIC'
8652       lt_prog_compiler_static='-Bstatic'
8653       ;;
8654
8655     *nto* | *qnx*)
8656       # QNX uses GNU C++, but need to define -shared option too, otherwise
8657       # it will coredump.
8658       lt_prog_compiler_pic='-fPIC -shared'
8659       ;;
8660
8661     osf3* | osf4* | osf5*)
8662       lt_prog_compiler_wl='-Wl,'
8663       # All OSF/1 code is PIC.
8664       lt_prog_compiler_static='-non_shared'
8665       ;;
8666
8667     rdos*)
8668       lt_prog_compiler_static='-non_shared'
8669       ;;
8670
8671     solaris*)
8672       lt_prog_compiler_pic='-KPIC'
8673       lt_prog_compiler_static='-Bstatic'
8674       case $cc_basename in
8675       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8676         lt_prog_compiler_wl='-Qoption ld ';;
8677       *)
8678         lt_prog_compiler_wl='-Wl,';;
8679       esac
8680       ;;
8681
8682     sunos4*)
8683       lt_prog_compiler_wl='-Qoption ld '
8684       lt_prog_compiler_pic='-PIC'
8685       lt_prog_compiler_static='-Bstatic'
8686       ;;
8687
8688     sysv4 | sysv4.2uw2* | sysv4.3*)
8689       lt_prog_compiler_wl='-Wl,'
8690       lt_prog_compiler_pic='-KPIC'
8691       lt_prog_compiler_static='-Bstatic'
8692       ;;
8693
8694     sysv4*MP*)
8695       if test -d /usr/nec ;then
8696         lt_prog_compiler_pic='-Kconform_pic'
8697         lt_prog_compiler_static='-Bstatic'
8698       fi
8699       ;;
8700
8701     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8702       lt_prog_compiler_wl='-Wl,'
8703       lt_prog_compiler_pic='-KPIC'
8704       lt_prog_compiler_static='-Bstatic'
8705       ;;
8706
8707     unicos*)
8708       lt_prog_compiler_wl='-Wl,'
8709       lt_prog_compiler_can_build_shared=no
8710       ;;
8711
8712     uts4*)
8713       lt_prog_compiler_pic='-pic'
8714       lt_prog_compiler_static='-Bstatic'
8715       ;;
8716
8717     *)
8718       lt_prog_compiler_can_build_shared=no
8719       ;;
8720     esac
8721   fi
8722
8723 case $host_os in
8724   # For platforms which do not support PIC, -DPIC is meaningless:
8725   *djgpp*)
8726     lt_prog_compiler_pic=
8727     ;;
8728   *)
8729     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8730     ;;
8731 esac
8732
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8734 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8735 if ${lt_cv_prog_compiler_pic+:} false; then :
8736   $as_echo_n "(cached) " >&6
8737 else
8738   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8739 fi
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8741 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8742 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8743
8744 #
8745 # Check to make sure the PIC flag actually works.
8746 #
8747 if test -n "$lt_prog_compiler_pic"; then
8748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8749 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8750 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8751   $as_echo_n "(cached) " >&6
8752 else
8753   lt_cv_prog_compiler_pic_works=no
8754    ac_outfile=conftest.$ac_objext
8755    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8756    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8757    # Insert the option either (1) after the last *FLAGS variable, or
8758    # (2) before a word containing "conftest.", or (3) at the end.
8759    # Note that $ac_compile itself does not contain backslashes and begins
8760    # with a dollar sign (not a hyphen), so the echo should work correctly.
8761    # The option is referenced via a variable to avoid confusing sed.
8762    lt_compile=`echo "$ac_compile" | $SED \
8763    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8764    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8765    -e 's:$: $lt_compiler_flag:'`
8766    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8767    (eval "$lt_compile" 2>conftest.err)
8768    ac_status=$?
8769    cat conftest.err >&5
8770    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771    if (exit $ac_status) && test -s "$ac_outfile"; then
8772      # The compiler can only warn and ignore the option if not recognized
8773      # So say no if there are warnings other than the usual output.
8774      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8775      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8776      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8777        lt_cv_prog_compiler_pic_works=yes
8778      fi
8779    fi
8780    $RM conftest*
8781
8782 fi
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8784 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8785
8786 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8787     case $lt_prog_compiler_pic in
8788      "" | " "*) ;;
8789      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8790      esac
8791 else
8792     lt_prog_compiler_pic=
8793      lt_prog_compiler_can_build_shared=no
8794 fi
8795
8796 fi
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808 #
8809 # Check to make sure the static flag actually works.
8810 #
8811 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8813 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8814 if ${lt_cv_prog_compiler_static_works+:} false; then :
8815   $as_echo_n "(cached) " >&6
8816 else
8817   lt_cv_prog_compiler_static_works=no
8818    save_LDFLAGS="$LDFLAGS"
8819    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8820    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8821    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8822      # The linker can only warn and ignore the option if not recognized
8823      # So say no if there are warnings
8824      if test -s conftest.err; then
8825        # Append any errors to the config.log.
8826        cat conftest.err 1>&5
8827        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8828        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8829        if diff conftest.exp conftest.er2 >/dev/null; then
8830          lt_cv_prog_compiler_static_works=yes
8831        fi
8832      else
8833        lt_cv_prog_compiler_static_works=yes
8834      fi
8835    fi
8836    $RM -r conftest*
8837    LDFLAGS="$save_LDFLAGS"
8838
8839 fi
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8841 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8842
8843 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8844     :
8845 else
8846     lt_prog_compiler_static=
8847 fi
8848
8849
8850
8851
8852
8853
8854
8855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8856 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8857 if ${lt_cv_prog_compiler_c_o+:} false; then :
8858   $as_echo_n "(cached) " >&6
8859 else
8860   lt_cv_prog_compiler_c_o=no
8861    $RM -r conftest 2>/dev/null
8862    mkdir conftest
8863    cd conftest
8864    mkdir out
8865    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8866
8867    lt_compiler_flag="-o out/conftest2.$ac_objext"
8868    # Insert the option either (1) after the last *FLAGS variable, or
8869    # (2) before a word containing "conftest.", or (3) at the end.
8870    # Note that $ac_compile itself does not contain backslashes and begins
8871    # with a dollar sign (not a hyphen), so the echo should work correctly.
8872    lt_compile=`echo "$ac_compile" | $SED \
8873    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8874    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8875    -e 's:$: $lt_compiler_flag:'`
8876    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8877    (eval "$lt_compile" 2>out/conftest.err)
8878    ac_status=$?
8879    cat out/conftest.err >&5
8880    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8882    then
8883      # The compiler can only warn and ignore the option if not recognized
8884      # So say no if there are warnings
8885      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8886      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8887      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8888        lt_cv_prog_compiler_c_o=yes
8889      fi
8890    fi
8891    chmod u+w . 2>&5
8892    $RM conftest*
8893    # SGI C++ compiler will create directory out/ii_files/ for
8894    # template instantiation
8895    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8896    $RM out/* && rmdir out
8897    cd ..
8898    $RM -r conftest
8899    $RM conftest*
8900
8901 fi
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8903 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8904
8905
8906
8907
8908
8909
8910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8911 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8912 if ${lt_cv_prog_compiler_c_o+:} false; then :
8913   $as_echo_n "(cached) " >&6
8914 else
8915   lt_cv_prog_compiler_c_o=no
8916    $RM -r conftest 2>/dev/null
8917    mkdir conftest
8918    cd conftest
8919    mkdir out
8920    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8921
8922    lt_compiler_flag="-o out/conftest2.$ac_objext"
8923    # Insert the option either (1) after the last *FLAGS variable, or
8924    # (2) before a word containing "conftest.", or (3) at the end.
8925    # Note that $ac_compile itself does not contain backslashes and begins
8926    # with a dollar sign (not a hyphen), so the echo should work correctly.
8927    lt_compile=`echo "$ac_compile" | $SED \
8928    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8929    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8930    -e 's:$: $lt_compiler_flag:'`
8931    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8932    (eval "$lt_compile" 2>out/conftest.err)
8933    ac_status=$?
8934    cat out/conftest.err >&5
8935    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8937    then
8938      # The compiler can only warn and ignore the option if not recognized
8939      # So say no if there are warnings
8940      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8941      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8942      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8943        lt_cv_prog_compiler_c_o=yes
8944      fi
8945    fi
8946    chmod u+w . 2>&5
8947    $RM conftest*
8948    # SGI C++ compiler will create directory out/ii_files/ for
8949    # template instantiation
8950    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8951    $RM out/* && rmdir out
8952    cd ..
8953    $RM -r conftest
8954    $RM conftest*
8955
8956 fi
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8958 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8959
8960
8961
8962
8963 hard_links="nottested"
8964 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8965   # do not overwrite the value of need_locks provided by the user
8966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8967 $as_echo_n "checking if we can lock with hard links... " >&6; }
8968   hard_links=yes
8969   $RM conftest*
8970   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8971   touch conftest.a
8972   ln conftest.a conftest.b 2>&5 || hard_links=no
8973   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8975 $as_echo "$hard_links" >&6; }
8976   if test "$hard_links" = no; then
8977     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8978 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8979     need_locks=warn
8980   fi
8981 else
8982   need_locks=no
8983 fi
8984
8985
8986
8987
8988
8989
8990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8991 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8992
8993   runpath_var=
8994   allow_undefined_flag=
8995   always_export_symbols=no
8996   archive_cmds=
8997   archive_expsym_cmds=
8998   compiler_needs_object=no
8999   enable_shared_with_static_runtimes=no
9000   export_dynamic_flag_spec=
9001   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9002   hardcode_automatic=no
9003   hardcode_direct=no
9004   hardcode_direct_absolute=no
9005   hardcode_libdir_flag_spec=
9006   hardcode_libdir_separator=
9007   hardcode_minus_L=no
9008   hardcode_shlibpath_var=unsupported
9009   inherit_rpath=no
9010   link_all_deplibs=unknown
9011   module_cmds=
9012   module_expsym_cmds=
9013   old_archive_from_new_cmds=
9014   old_archive_from_expsyms_cmds=
9015   thread_safe_flag_spec=
9016   whole_archive_flag_spec=
9017   # include_expsyms should be a list of space-separated symbols to be *always*
9018   # included in the symbol list
9019   include_expsyms=
9020   # exclude_expsyms can be an extended regexp of symbols to exclude
9021   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9022   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9023   # as well as any symbol that contains `d'.
9024   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9025   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9026   # platforms (ab)use it in PIC code, but their linkers get confused if
9027   # the symbol is explicitly referenced.  Since portable code cannot
9028   # rely on this symbol name, it's probably fine to never include it in
9029   # preloaded symbol tables.
9030   # Exclude shared library initialization/finalization symbols.
9031   extract_expsyms_cmds=
9032
9033   case $host_os in
9034   cygwin* | mingw* | pw32* | cegcc*)
9035     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9036     # When not using gcc, we currently assume that we are using
9037     # Microsoft Visual C++.
9038     if test "$GCC" != yes; then
9039       with_gnu_ld=no
9040     fi
9041     ;;
9042   interix*)
9043     # we just hope/assume this is gcc and not c89 (= MSVC++)
9044     with_gnu_ld=yes
9045     ;;
9046   openbsd*)
9047     with_gnu_ld=no
9048     ;;
9049   esac
9050
9051   ld_shlibs=yes
9052
9053   # On some targets, GNU ld is compatible enough with the native linker
9054   # that we're better off using the native interface for both.
9055   lt_use_gnu_ld_interface=no
9056   if test "$with_gnu_ld" = yes; then
9057     case $host_os in
9058       aix*)
9059         # The AIX port of GNU ld has always aspired to compatibility
9060         # with the native linker.  However, as the warning in the GNU ld
9061         # block says, versions before 2.19.5* couldn't really create working
9062         # shared libraries, regardless of the interface used.
9063         case `$LD -v 2>&1` in
9064           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9065           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9066           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9067           *)
9068             lt_use_gnu_ld_interface=yes
9069             ;;
9070         esac
9071         ;;
9072       *)
9073         lt_use_gnu_ld_interface=yes
9074         ;;
9075     esac
9076   fi
9077
9078   if test "$lt_use_gnu_ld_interface" = yes; then
9079     # If archive_cmds runs LD, not CC, wlarc should be empty
9080     wlarc='${wl}'
9081
9082     # Set some defaults for GNU ld with shared library support. These
9083     # are reset later if shared libraries are not supported. Putting them
9084     # here allows them to be overridden if necessary.
9085     runpath_var=LD_RUN_PATH
9086     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9087     export_dynamic_flag_spec='${wl}--export-dynamic'
9088     # ancient GNU ld didn't support --whole-archive et. al.
9089     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9090       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9091     else
9092       whole_archive_flag_spec=
9093     fi
9094     supports_anon_versioning=no
9095     case `$LD -v 2>&1` in
9096       *GNU\ gold*) supports_anon_versioning=yes ;;
9097       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9098       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9099       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9100       *\ 2.11.*) ;; # other 2.11 versions
9101       *) supports_anon_versioning=yes ;;
9102     esac
9103
9104     # See if GNU ld supports shared libraries.
9105     case $host_os in
9106     aix[3-9]*)
9107       # On AIX/PPC, the GNU linker is very broken
9108       if test "$host_cpu" != ia64; then
9109         ld_shlibs=no
9110         cat <<_LT_EOF 1>&2
9111
9112 *** Warning: the GNU linker, at least up to release 2.19, is reported
9113 *** to be unable to reliably create shared libraries on AIX.
9114 *** Therefore, libtool is disabling shared libraries support.  If you
9115 *** really care for shared libraries, you may want to install binutils
9116 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9117 *** You will then need to restart the configuration process.
9118
9119 _LT_EOF
9120       fi
9121       ;;
9122
9123     amigaos*)
9124       case $host_cpu in
9125       powerpc)
9126             # see comment about AmigaOS4 .so support
9127             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9128             archive_expsym_cmds=''
9129         ;;
9130       m68k)
9131             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)'
9132             hardcode_libdir_flag_spec='-L$libdir'
9133             hardcode_minus_L=yes
9134         ;;
9135       esac
9136       ;;
9137
9138     beos*)
9139       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9140         allow_undefined_flag=unsupported
9141         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9142         # support --undefined.  This deserves some investigation.  FIXME
9143         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9144       else
9145         ld_shlibs=no
9146       fi
9147       ;;
9148
9149     cygwin* | mingw* | pw32* | cegcc*)
9150       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9151       # as there is no search path for DLLs.
9152       hardcode_libdir_flag_spec='-L$libdir'
9153       export_dynamic_flag_spec='${wl}--export-all-symbols'
9154       allow_undefined_flag=unsupported
9155       always_export_symbols=no
9156       enable_shared_with_static_runtimes=yes
9157       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'
9158       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9159
9160       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9161         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9162         # If the export-symbols file already is a .def file (1st line
9163         # is EXPORTS), use it as is; otherwise, prepend...
9164         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9165           cp $export_symbols $output_objdir/$soname.def;
9166         else
9167           echo EXPORTS > $output_objdir/$soname.def;
9168           cat $export_symbols >> $output_objdir/$soname.def;
9169         fi~
9170         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9171       else
9172         ld_shlibs=no
9173       fi
9174       ;;
9175
9176     haiku*)
9177       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9178       link_all_deplibs=yes
9179       ;;
9180
9181     interix[3-9]*)
9182       hardcode_direct=no
9183       hardcode_shlibpath_var=no
9184       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9185       export_dynamic_flag_spec='${wl}-E'
9186       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9187       # Instead, shared libraries are loaded at an image base (0x10000000 by
9188       # default) and relocated if they conflict, which is a slow very memory
9189       # consuming and fragmenting process.  To avoid this, we pick a random,
9190       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9191       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9192       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9193       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'
9194       ;;
9195
9196     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9197       tmp_diet=no
9198       if test "$host_os" = linux-dietlibc; then
9199         case $cc_basename in
9200           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9201         esac
9202       fi
9203       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9204          && test "$tmp_diet" = no
9205       then
9206         tmp_addflag=' $pic_flag'
9207         tmp_sharedflag='-shared'
9208         case $cc_basename,$host_cpu in
9209         pgcc*)                          # Portland Group C compiler
9210           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'
9211           tmp_addflag=' $pic_flag'
9212           ;;
9213         pgf77* | pgf90* | pgf95* | pgfortran*)
9214                                         # Portland Group f77 and f90 compilers
9215           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'
9216           tmp_addflag=' $pic_flag -Mnomain' ;;
9217         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9218           tmp_addflag=' -i_dynamic' ;;
9219         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9220           tmp_addflag=' -i_dynamic -nofor_main' ;;
9221         ifc* | ifort*)                  # Intel Fortran compiler
9222           tmp_addflag=' -nofor_main' ;;
9223         lf95*)                          # Lahey Fortran 8.1
9224           whole_archive_flag_spec=
9225           tmp_sharedflag='--shared' ;;
9226         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9227           tmp_sharedflag='-qmkshrobj'
9228           tmp_addflag= ;;
9229         nvcc*)  # Cuda Compiler Driver 2.2
9230           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'
9231           compiler_needs_object=yes
9232           ;;
9233         esac
9234         case `$CC -V 2>&1 | sed 5q` in
9235         *Sun\ C*)                       # Sun C 5.9
9236           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'
9237           compiler_needs_object=yes
9238           tmp_sharedflag='-G' ;;
9239         *Sun\ F*)                       # Sun Fortran 8.3
9240           tmp_sharedflag='-G' ;;
9241         esac
9242         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9243
9244         if test "x$supports_anon_versioning" = xyes; then
9245           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9246             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9247             echo "local: *; };" >> $output_objdir/$libname.ver~
9248             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9249         fi
9250
9251         case $cc_basename in
9252         xlf* | bgf* | bgxlf* | mpixlf*)
9253           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9254           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9255           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9256           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9257           if test "x$supports_anon_versioning" = xyes; then
9258             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9259               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9260               echo "local: *; };" >> $output_objdir/$libname.ver~
9261               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9262           fi
9263           ;;
9264         esac
9265       else
9266         ld_shlibs=no
9267       fi
9268       ;;
9269
9270     netbsd*)
9271       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9272         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9273         wlarc=
9274       else
9275         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9277       fi
9278       ;;
9279
9280     solaris*)
9281       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9282         ld_shlibs=no
9283         cat <<_LT_EOF 1>&2
9284
9285 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9286 *** create shared libraries on Solaris systems.  Therefore, libtool
9287 *** is disabling shared libraries support.  We urge you to upgrade GNU
9288 *** binutils to release 2.9.1 or newer.  Another option is to modify
9289 *** your PATH or compiler configuration so that the native linker is
9290 *** used, and then restart.
9291
9292 _LT_EOF
9293       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9294         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9296       else
9297         ld_shlibs=no
9298       fi
9299       ;;
9300
9301     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9302       case `$LD -v 2>&1` in
9303         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9304         ld_shlibs=no
9305         cat <<_LT_EOF 1>&2
9306
9307 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9308 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9309 *** is disabling shared libraries support.  We urge you to upgrade GNU
9310 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9311 *** your PATH or compiler configuration so that the native linker is
9312 *** used, and then restart.
9313
9314 _LT_EOF
9315         ;;
9316         *)
9317           # For security reasons, it is highly recommended that you always
9318           # use absolute paths for naming shared libraries, and exclude the
9319           # DT_RUNPATH tag from executables and libraries.  But doing so
9320           # requires that you compile everything twice, which is a pain.
9321           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9322             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9323             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9325           else
9326             ld_shlibs=no
9327           fi
9328         ;;
9329       esac
9330       ;;
9331
9332     sunos4*)
9333       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9334       wlarc=
9335       hardcode_direct=yes
9336       hardcode_shlibpath_var=no
9337       ;;
9338
9339     *)
9340       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9341         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9342         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9343       else
9344         ld_shlibs=no
9345       fi
9346       ;;
9347     esac
9348
9349     if test "$ld_shlibs" = no; then
9350       runpath_var=
9351       hardcode_libdir_flag_spec=
9352       export_dynamic_flag_spec=
9353       whole_archive_flag_spec=
9354     fi
9355   else
9356     # PORTME fill in a description of your system's linker (not GNU ld)
9357     case $host_os in
9358     aix3*)
9359       allow_undefined_flag=unsupported
9360       always_export_symbols=yes
9361       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'
9362       # Note: this linker hardcodes the directories in LIBPATH if there
9363       # are no directories specified by -L.
9364       hardcode_minus_L=yes
9365       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9366         # Neither direct hardcoding nor static linking is supported with a
9367         # broken collect2.
9368         hardcode_direct=unsupported
9369       fi
9370       ;;
9371
9372     aix[4-9]*)
9373       if test "$host_cpu" = ia64; then
9374         # On IA64, the linker does run time linking by default, so we don't
9375         # have to do anything special.
9376         aix_use_runtimelinking=no
9377         exp_sym_flag='-Bexport'
9378         no_entry_flag=""
9379       else
9380         # If we're using GNU nm, then we don't want the "-C" option.
9381         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9382         # Also, AIX nm treats weak defined symbols like other global
9383         # defined symbols, whereas GNU nm marks them as "W".
9384         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9385           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'
9386         else
9387           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'
9388         fi
9389         aix_use_runtimelinking=no
9390
9391         # Test if we are trying to use run time linking or normal
9392         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9393         # need to do runtime linking.
9394         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9395           for ld_flag in $LDFLAGS; do
9396           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9397             aix_use_runtimelinking=yes
9398             break
9399           fi
9400           done
9401           ;;
9402         esac
9403
9404         exp_sym_flag='-bexport'
9405         no_entry_flag='-bnoentry'
9406       fi
9407
9408       # When large executables or shared objects are built, AIX ld can
9409       # have problems creating the table of contents.  If linking a library
9410       # or program results in "error TOC overflow" add -mminimal-toc to
9411       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9412       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9413
9414       archive_cmds=''
9415       hardcode_direct=yes
9416       hardcode_direct_absolute=yes
9417       hardcode_libdir_separator=':'
9418       link_all_deplibs=yes
9419       file_list_spec='${wl}-f,'
9420
9421       if test "$GCC" = yes; then
9422         case $host_os in aix4.[012]|aix4.[012].*)
9423         # We only want to do this on AIX 4.2 and lower, the check
9424         # below for broken collect2 doesn't work under 4.3+
9425           collect2name=`${CC} -print-prog-name=collect2`
9426           if test -f "$collect2name" &&
9427            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9428           then
9429           # We have reworked collect2
9430           :
9431           else
9432           # We have old collect2
9433           hardcode_direct=unsupported
9434           # It fails to find uninstalled libraries when the uninstalled
9435           # path is not listed in the libpath.  Setting hardcode_minus_L
9436           # to unsupported forces relinking
9437           hardcode_minus_L=yes
9438           hardcode_libdir_flag_spec='-L$libdir'
9439           hardcode_libdir_separator=
9440           fi
9441           ;;
9442         esac
9443         shared_flag='-shared'
9444         if test "$aix_use_runtimelinking" = yes; then
9445           shared_flag="$shared_flag "'${wl}-G'
9446         fi
9447       else
9448         # not using gcc
9449         if test "$host_cpu" = ia64; then
9450         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9451         # chokes on -Wl,-G. The following line is correct:
9452           shared_flag='-G'
9453         else
9454           if test "$aix_use_runtimelinking" = yes; then
9455             shared_flag='${wl}-G'
9456           else
9457             shared_flag='${wl}-bM:SRE'
9458           fi
9459         fi
9460       fi
9461
9462       export_dynamic_flag_spec='${wl}-bexpall'
9463       # It seems that -bexpall does not export symbols beginning with
9464       # underscore (_), so it is better to generate a list of symbols to export.
9465       always_export_symbols=yes
9466       if test "$aix_use_runtimelinking" = yes; then
9467         # Warning - without using the other runtime loading flags (-brtl),
9468         # -berok will link without error, but may produce a broken library.
9469         allow_undefined_flag='-berok'
9470         # Determine the default libpath from the value encoded in an
9471         # empty executable.
9472         if test "${lt_cv_aix_libpath+set}" = set; then
9473   aix_libpath=$lt_cv_aix_libpath
9474 else
9475   if ${lt_cv_aix_libpath_+:} false; then :
9476   $as_echo_n "(cached) " >&6
9477 else
9478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h.  */
9480
9481 int
9482 main ()
9483 {
9484
9485   ;
9486   return 0;
9487 }
9488 _ACEOF
9489 if ac_fn_c_try_link "$LINENO"; then :
9490
9491   lt_aix_libpath_sed='
9492       /Import File Strings/,/^$/ {
9493           /^0/ {
9494               s/^0  *\([^ ]*\) *$/\1/
9495               p
9496           }
9497       }'
9498   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9499   # Check for a 64-bit object if we didn't find anything.
9500   if test -z "$lt_cv_aix_libpath_"; then
9501     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9502   fi
9503 fi
9504 rm -f core conftest.err conftest.$ac_objext \
9505     conftest$ac_exeext conftest.$ac_ext
9506   if test -z "$lt_cv_aix_libpath_"; then
9507     lt_cv_aix_libpath_="/usr/lib:/lib"
9508   fi
9509
9510 fi
9511
9512   aix_libpath=$lt_cv_aix_libpath_
9513 fi
9514
9515         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9516         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"
9517       else
9518         if test "$host_cpu" = ia64; then
9519           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9520           allow_undefined_flag="-z nodefs"
9521           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"
9522         else
9523          # Determine the default libpath from the value encoded in an
9524          # empty executable.
9525          if test "${lt_cv_aix_libpath+set}" = set; then
9526   aix_libpath=$lt_cv_aix_libpath
9527 else
9528   if ${lt_cv_aix_libpath_+:} false; then :
9529   $as_echo_n "(cached) " >&6
9530 else
9531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h.  */
9533
9534 int
9535 main ()
9536 {
9537
9538   ;
9539   return 0;
9540 }
9541 _ACEOF
9542 if ac_fn_c_try_link "$LINENO"; then :
9543
9544   lt_aix_libpath_sed='
9545       /Import File Strings/,/^$/ {
9546           /^0/ {
9547               s/^0  *\([^ ]*\) *$/\1/
9548               p
9549           }
9550       }'
9551   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9552   # Check for a 64-bit object if we didn't find anything.
9553   if test -z "$lt_cv_aix_libpath_"; then
9554     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9555   fi
9556 fi
9557 rm -f core conftest.err conftest.$ac_objext \
9558     conftest$ac_exeext conftest.$ac_ext
9559   if test -z "$lt_cv_aix_libpath_"; then
9560     lt_cv_aix_libpath_="/usr/lib:/lib"
9561   fi
9562
9563 fi
9564
9565   aix_libpath=$lt_cv_aix_libpath_
9566 fi
9567
9568          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9569           # Warning - without using the other run time loading flags,
9570           # -berok will link without error, but may produce a broken library.
9571           no_undefined_flag=' ${wl}-bernotok'
9572           allow_undefined_flag=' ${wl}-berok'
9573           if test "$with_gnu_ld" = yes; then
9574             # We only use this code for GNU lds that support --whole-archive.
9575             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9576           else
9577             # Exported symbols can be pulled into shared objects from archives
9578             whole_archive_flag_spec='$convenience'
9579           fi
9580           archive_cmds_need_lc=yes
9581           # This is similar to how AIX traditionally builds its shared libraries.
9582           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'
9583         fi
9584       fi
9585       ;;
9586
9587     amigaos*)
9588       case $host_cpu in
9589       powerpc)
9590             # see comment about AmigaOS4 .so support
9591             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9592             archive_expsym_cmds=''
9593         ;;
9594       m68k)
9595             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)'
9596             hardcode_libdir_flag_spec='-L$libdir'
9597             hardcode_minus_L=yes
9598         ;;
9599       esac
9600       ;;
9601
9602     bsdi[45]*)
9603       export_dynamic_flag_spec=-rdynamic
9604       ;;
9605
9606     cygwin* | mingw* | pw32* | cegcc*)
9607       # When not using gcc, we currently assume that we are using
9608       # Microsoft Visual C++.
9609       # hardcode_libdir_flag_spec is actually meaningless, as there is
9610       # no search path for DLLs.
9611       case $cc_basename in
9612       cl*)
9613         # Native MSVC
9614         hardcode_libdir_flag_spec=' '
9615         allow_undefined_flag=unsupported
9616         always_export_symbols=yes
9617         file_list_spec='@'
9618         # Tell ltmain to make .lib files, not .a files.
9619         libext=lib
9620         # Tell ltmain to make .dll files, not .so files.
9621         shrext_cmds=".dll"
9622         # FIXME: Setting linknames here is a bad hack.
9623         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9624         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9625             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9626           else
9627             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9628           fi~
9629           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9630           linknames='
9631         # The linker will not automatically build a static lib if we build a DLL.
9632         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9633         enable_shared_with_static_runtimes=yes
9634         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9635         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9636         # Don't use ranlib
9637         old_postinstall_cmds='chmod 644 $oldlib'
9638         postlink_cmds='lt_outputfile="@OUTPUT@"~
9639           lt_tool_outputfile="@TOOL_OUTPUT@"~
9640           case $lt_outputfile in
9641             *.exe|*.EXE) ;;
9642             *)
9643               lt_outputfile="$lt_outputfile.exe"
9644               lt_tool_outputfile="$lt_tool_outputfile.exe"
9645               ;;
9646           esac~
9647           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9648             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9649             $RM "$lt_outputfile.manifest";
9650           fi'
9651         ;;
9652       *)
9653         # Assume MSVC wrapper
9654         hardcode_libdir_flag_spec=' '
9655         allow_undefined_flag=unsupported
9656         # Tell ltmain to make .lib files, not .a files.
9657         libext=lib
9658         # Tell ltmain to make .dll files, not .so files.
9659         shrext_cmds=".dll"
9660         # FIXME: Setting linknames here is a bad hack.
9661         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9662         # The linker will automatically build a .lib file if we build a DLL.
9663         old_archive_from_new_cmds='true'
9664         # FIXME: Should let the user specify the lib program.
9665         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9666         enable_shared_with_static_runtimes=yes
9667         ;;
9668       esac
9669       ;;
9670
9671     darwin* | rhapsody*)
9672
9673
9674   archive_cmds_need_lc=no
9675   hardcode_direct=no
9676   hardcode_automatic=yes
9677   hardcode_shlibpath_var=unsupported
9678   if test "$lt_cv_ld_force_load" = "yes"; then
9679     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\"`'
9680
9681   else
9682     whole_archive_flag_spec=''
9683   fi
9684   link_all_deplibs=yes
9685   allow_undefined_flag="$_lt_dar_allow_undefined"
9686   case $cc_basename in
9687      ifort*) _lt_dar_can_shared=yes ;;
9688      *) _lt_dar_can_shared=$GCC ;;
9689   esac
9690   if test "$_lt_dar_can_shared" = "yes"; then
9691     output_verbose_link_cmd=func_echo_all
9692     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9693     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9694     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}"
9695     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}"
9696
9697   else
9698   ld_shlibs=no
9699   fi
9700
9701       ;;
9702
9703     dgux*)
9704       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705       hardcode_libdir_flag_spec='-L$libdir'
9706       hardcode_shlibpath_var=no
9707       ;;
9708
9709     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9710     # support.  Future versions do this automatically, but an explicit c++rt0.o
9711     # does not break anything, and helps significantly (at the cost of a little
9712     # extra space).
9713     freebsd2.2*)
9714       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9715       hardcode_libdir_flag_spec='-R$libdir'
9716       hardcode_direct=yes
9717       hardcode_shlibpath_var=no
9718       ;;
9719
9720     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9721     freebsd2.*)
9722       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9723       hardcode_direct=yes
9724       hardcode_minus_L=yes
9725       hardcode_shlibpath_var=no
9726       ;;
9727
9728     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9729     freebsd* | dragonfly*)
9730       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9731       hardcode_libdir_flag_spec='-R$libdir'
9732       hardcode_direct=yes
9733       hardcode_shlibpath_var=no
9734       ;;
9735
9736     hpux9*)
9737       if test "$GCC" = yes; then
9738         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'
9739       else
9740         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'
9741       fi
9742       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9743       hardcode_libdir_separator=:
9744       hardcode_direct=yes
9745
9746       # hardcode_minus_L: Not really in the search PATH,
9747       # but as the default location of the library.
9748       hardcode_minus_L=yes
9749       export_dynamic_flag_spec='${wl}-E'
9750       ;;
9751
9752     hpux10*)
9753       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9754         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9755       else
9756         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9757       fi
9758       if test "$with_gnu_ld" = no; then
9759         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9760         hardcode_libdir_separator=:
9761         hardcode_direct=yes
9762         hardcode_direct_absolute=yes
9763         export_dynamic_flag_spec='${wl}-E'
9764         # hardcode_minus_L: Not really in the search PATH,
9765         # but as the default location of the library.
9766         hardcode_minus_L=yes
9767       fi
9768       ;;
9769
9770     hpux11*)
9771       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9772         case $host_cpu in
9773         hppa*64*)
9774           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9775           ;;
9776         ia64*)
9777           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9778           ;;
9779         *)
9780           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9781           ;;
9782         esac
9783       else
9784         case $host_cpu in
9785         hppa*64*)
9786           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9787           ;;
9788         ia64*)
9789           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9790           ;;
9791         *)
9792
9793           # Older versions of the 11.00 compiler do not understand -b yet
9794           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9795           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9796 $as_echo_n "checking if $CC understands -b... " >&6; }
9797 if ${lt_cv_prog_compiler__b+:} false; then :
9798   $as_echo_n "(cached) " >&6
9799 else
9800   lt_cv_prog_compiler__b=no
9801    save_LDFLAGS="$LDFLAGS"
9802    LDFLAGS="$LDFLAGS -b"
9803    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9804    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9805      # The linker can only warn and ignore the option if not recognized
9806      # So say no if there are warnings
9807      if test -s conftest.err; then
9808        # Append any errors to the config.log.
9809        cat conftest.err 1>&5
9810        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9811        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9812        if diff conftest.exp conftest.er2 >/dev/null; then
9813          lt_cv_prog_compiler__b=yes
9814        fi
9815      else
9816        lt_cv_prog_compiler__b=yes
9817      fi
9818    fi
9819    $RM -r conftest*
9820    LDFLAGS="$save_LDFLAGS"
9821
9822 fi
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9824 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9825
9826 if test x"$lt_cv_prog_compiler__b" = xyes; then
9827     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9828 else
9829     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9830 fi
9831
9832           ;;
9833         esac
9834       fi
9835       if test "$with_gnu_ld" = no; then
9836         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9837         hardcode_libdir_separator=:
9838
9839         case $host_cpu in
9840         hppa*64*|ia64*)
9841           hardcode_direct=no
9842           hardcode_shlibpath_var=no
9843           ;;
9844         *)
9845           hardcode_direct=yes
9846           hardcode_direct_absolute=yes
9847           export_dynamic_flag_spec='${wl}-E'
9848
9849           # hardcode_minus_L: Not really in the search PATH,
9850           # but as the default location of the library.
9851           hardcode_minus_L=yes
9852           ;;
9853         esac
9854       fi
9855       ;;
9856
9857     irix5* | irix6* | nonstopux*)
9858       if test "$GCC" = yes; then
9859         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'
9860         # Try to use the -exported_symbol ld option, if it does not
9861         # work, assume that -exports_file does not work either and
9862         # implicitly export all symbols.
9863         # This should be the same for all languages, so no per-tag cache variable.
9864         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9865 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9866 if ${lt_cv_irix_exported_symbol+:} false; then :
9867   $as_echo_n "(cached) " >&6
9868 else
9869   save_LDFLAGS="$LDFLAGS"
9870            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9871            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h.  */
9873 int foo (void) { return 0; }
9874 _ACEOF
9875 if ac_fn_c_try_link "$LINENO"; then :
9876   lt_cv_irix_exported_symbol=yes
9877 else
9878   lt_cv_irix_exported_symbol=no
9879 fi
9880 rm -f core conftest.err conftest.$ac_objext \
9881     conftest$ac_exeext conftest.$ac_ext
9882            LDFLAGS="$save_LDFLAGS"
9883 fi
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9885 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9886         if test "$lt_cv_irix_exported_symbol" = yes; then
9887           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'
9888         fi
9889       else
9890         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'
9891         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'
9892       fi
9893       archive_cmds_need_lc='no'
9894       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9895       hardcode_libdir_separator=:
9896       inherit_rpath=yes
9897       link_all_deplibs=yes
9898       ;;
9899
9900     netbsd*)
9901       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9902         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9903       else
9904         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9905       fi
9906       hardcode_libdir_flag_spec='-R$libdir'
9907       hardcode_direct=yes
9908       hardcode_shlibpath_var=no
9909       ;;
9910
9911     newsos6)
9912       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9913       hardcode_direct=yes
9914       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9915       hardcode_libdir_separator=:
9916       hardcode_shlibpath_var=no
9917       ;;
9918
9919     *nto* | *qnx*)
9920       ;;
9921
9922     openbsd*)
9923       if test -f /usr/libexec/ld.so; then
9924         hardcode_direct=yes
9925         hardcode_shlibpath_var=no
9926         hardcode_direct_absolute=yes
9927         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9928           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9929           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9930           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9931           export_dynamic_flag_spec='${wl}-E'
9932         else
9933           case $host_os in
9934            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9935              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9936              hardcode_libdir_flag_spec='-R$libdir'
9937              ;;
9938            *)
9939              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9940              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9941              ;;
9942           esac
9943         fi
9944       else
9945         ld_shlibs=no
9946       fi
9947       ;;
9948
9949     os2*)
9950       hardcode_libdir_flag_spec='-L$libdir'
9951       hardcode_minus_L=yes
9952       allow_undefined_flag=unsupported
9953       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'
9954       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9955       ;;
9956
9957     osf3*)
9958       if test "$GCC" = yes; then
9959         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9960         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'
9961       else
9962         allow_undefined_flag=' -expect_unresolved \*'
9963         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'
9964       fi
9965       archive_cmds_need_lc='no'
9966       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9967       hardcode_libdir_separator=:
9968       ;;
9969
9970     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9971       if test "$GCC" = yes; then
9972         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9973         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'
9974         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9975       else
9976         allow_undefined_flag=' -expect_unresolved \*'
9977         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'
9978         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~
9979         $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'
9980
9981         # Both c and cxx compiler support -rpath directly
9982         hardcode_libdir_flag_spec='-rpath $libdir'
9983       fi
9984       archive_cmds_need_lc='no'
9985       hardcode_libdir_separator=:
9986       ;;
9987
9988     solaris*)
9989       no_undefined_flag=' -z defs'
9990       if test "$GCC" = yes; then
9991         wlarc='${wl}'
9992         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9993         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9994           $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'
9995       else
9996         case `$CC -V 2>&1` in
9997         *"Compilers 5.0"*)
9998           wlarc=''
9999           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10001           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10002           ;;
10003         *)
10004           wlarc='${wl}'
10005           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10006           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10007           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10008           ;;
10009         esac
10010       fi
10011       hardcode_libdir_flag_spec='-R$libdir'
10012       hardcode_shlibpath_var=no
10013       case $host_os in
10014       solaris2.[0-5] | solaris2.[0-5].*) ;;
10015       *)
10016         # The compiler driver will combine and reorder linker options,
10017         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10018         # but is careful enough not to reorder.
10019         # Supported since Solaris 2.6 (maybe 2.5.1?)
10020         if test "$GCC" = yes; then
10021           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10022         else
10023           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10024         fi
10025         ;;
10026       esac
10027       link_all_deplibs=yes
10028       ;;
10029
10030     sunos4*)
10031       if test "x$host_vendor" = xsequent; then
10032         # Use $CC to link under sequent, because it throws in some extra .o
10033         # files that make .init and .fini sections work.
10034         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10035       else
10036         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10037       fi
10038       hardcode_libdir_flag_spec='-L$libdir'
10039       hardcode_direct=yes
10040       hardcode_minus_L=yes
10041       hardcode_shlibpath_var=no
10042       ;;
10043
10044     sysv4)
10045       case $host_vendor in
10046         sni)
10047           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10048           hardcode_direct=yes # is this really true???
10049         ;;
10050         siemens)
10051           ## LD is ld it makes a PLAMLIB
10052           ## CC just makes a GrossModule.
10053           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10054           reload_cmds='$CC -r -o $output$reload_objs'
10055           hardcode_direct=no
10056         ;;
10057         motorola)
10058           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10060         ;;
10061       esac
10062       runpath_var='LD_RUN_PATH'
10063       hardcode_shlibpath_var=no
10064       ;;
10065
10066     sysv4.3*)
10067       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068       hardcode_shlibpath_var=no
10069       export_dynamic_flag_spec='-Bexport'
10070       ;;
10071
10072     sysv4*MP*)
10073       if test -d /usr/nec; then
10074         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075         hardcode_shlibpath_var=no
10076         runpath_var=LD_RUN_PATH
10077         hardcode_runpath_var=yes
10078         ld_shlibs=yes
10079       fi
10080       ;;
10081
10082     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10083       no_undefined_flag='${wl}-z,text'
10084       archive_cmds_need_lc=no
10085       hardcode_shlibpath_var=no
10086       runpath_var='LD_RUN_PATH'
10087
10088       if test "$GCC" = yes; then
10089         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091       else
10092         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094       fi
10095       ;;
10096
10097     sysv5* | sco3.2v5* | sco5v6*)
10098       # Note: We can NOT use -z defs as we might desire, because we do not
10099       # link with -lc, and that would cause any symbols used from libc to
10100       # always be unresolved, which means just about no library would
10101       # ever link correctly.  If we're not using GNU ld we use -z text
10102       # though, which does catch some bad symbols but isn't as heavy-handed
10103       # as -z defs.
10104       no_undefined_flag='${wl}-z,text'
10105       allow_undefined_flag='${wl}-z,nodefs'
10106       archive_cmds_need_lc=no
10107       hardcode_shlibpath_var=no
10108       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10109       hardcode_libdir_separator=':'
10110       link_all_deplibs=yes
10111       export_dynamic_flag_spec='${wl}-Bexport'
10112       runpath_var='LD_RUN_PATH'
10113
10114       if test "$GCC" = yes; then
10115         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117       else
10118         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120       fi
10121       ;;
10122
10123     uts4*)
10124       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10125       hardcode_libdir_flag_spec='-L$libdir'
10126       hardcode_shlibpath_var=no
10127       ;;
10128
10129     *)
10130       ld_shlibs=no
10131       ;;
10132     esac
10133
10134     if test x$host_vendor = xsni; then
10135       case $host in
10136       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10137         export_dynamic_flag_spec='${wl}-Blargedynsym'
10138         ;;
10139       esac
10140     fi
10141   fi
10142
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10144 $as_echo "$ld_shlibs" >&6; }
10145 test "$ld_shlibs" = no && can_build_shared=no
10146
10147 with_gnu_ld=$with_gnu_ld
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163 #
10164 # Do we need to explicitly link libc?
10165 #
10166 case "x$archive_cmds_need_lc" in
10167 x|xyes)
10168   # Assume -lc should be added
10169   archive_cmds_need_lc=yes
10170
10171   if test "$enable_shared" = yes && test "$GCC" = yes; then
10172     case $archive_cmds in
10173     *'~'*)
10174       # FIXME: we may have to deal with multi-command sequences.
10175       ;;
10176     '$CC '*)
10177       # Test whether the compiler implicitly links with -lc since on some
10178       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10179       # to ld, don't add -lc before -lgcc.
10180       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10181 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10182 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10183   $as_echo_n "(cached) " >&6
10184 else
10185   $RM conftest*
10186         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10187
10188         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10189   (eval $ac_compile) 2>&5
10190   ac_status=$?
10191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10192   test $ac_status = 0; } 2>conftest.err; then
10193           soname=conftest
10194           lib=conftest
10195           libobjs=conftest.$ac_objext
10196           deplibs=
10197           wl=$lt_prog_compiler_wl
10198           pic_flag=$lt_prog_compiler_pic
10199           compiler_flags=-v
10200           linker_flags=-v
10201           verstring=
10202           output_objdir=.
10203           libname=conftest
10204           lt_save_allow_undefined_flag=$allow_undefined_flag
10205           allow_undefined_flag=
10206           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10207   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10208   ac_status=$?
10209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10210   test $ac_status = 0; }
10211           then
10212             lt_cv_archive_cmds_need_lc=no
10213           else
10214             lt_cv_archive_cmds_need_lc=yes
10215           fi
10216           allow_undefined_flag=$lt_save_allow_undefined_flag
10217         else
10218           cat conftest.err 1>&5
10219         fi
10220         $RM conftest*
10221
10222 fi
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10224 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10225       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10226       ;;
10227     esac
10228   fi
10229   ;;
10230 esac
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
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10384 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10385
10386 if test "$GCC" = yes; then
10387   case $host_os in
10388     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10389     *) lt_awk_arg="/^libraries:/" ;;
10390   esac
10391   case $host_os in
10392     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10393     *) lt_sed_strip_eq="s,=/,/,g" ;;
10394   esac
10395   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10396   case $lt_search_path_spec in
10397   *\;*)
10398     # if the path contains ";" then we assume it to be the separator
10399     # otherwise default to the standard path separator (i.e. ":") - it is
10400     # assumed that no part of a normal pathname contains ";" but that should
10401     # okay in the real world where ";" in dirpaths is itself problematic.
10402     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10403     ;;
10404   *)
10405     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10406     ;;
10407   esac
10408   # Ok, now we have the path, separated by spaces, we can step through it
10409   # and add multilib dir if necessary.
10410   lt_tmp_lt_search_path_spec=
10411   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10412   for lt_sys_path in $lt_search_path_spec; do
10413     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10414       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10415     else
10416       test -d "$lt_sys_path" && \
10417         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10418     fi
10419   done
10420   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10421 BEGIN {RS=" "; FS="/|\n";} {
10422   lt_foo="";
10423   lt_count=0;
10424   for (lt_i = NF; lt_i > 0; lt_i--) {
10425     if ($lt_i != "" && $lt_i != ".") {
10426       if ($lt_i == "..") {
10427         lt_count++;
10428       } else {
10429         if (lt_count == 0) {
10430           lt_foo="/" $lt_i lt_foo;
10431         } else {
10432           lt_count--;
10433         }
10434       }
10435     }
10436   }
10437   if (lt_foo != "") { lt_freq[lt_foo]++; }
10438   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10439 }'`
10440   # AWK program above erroneously prepends '/' to C:/dos/paths
10441   # for these hosts.
10442   case $host_os in
10443     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10444       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10445   esac
10446   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10447 else
10448   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10449 fi
10450 library_names_spec=
10451 libname_spec='lib$name'
10452 soname_spec=
10453 shrext_cmds=".so"
10454 postinstall_cmds=
10455 postuninstall_cmds=
10456 finish_cmds=
10457 finish_eval=
10458 shlibpath_var=
10459 shlibpath_overrides_runpath=unknown
10460 version_type=none
10461 dynamic_linker="$host_os ld.so"
10462 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10463 need_lib_prefix=unknown
10464 hardcode_into_libs=no
10465
10466 # when you set need_version to no, make sure it does not cause -set_version
10467 # flags to be left without arguments
10468 need_version=unknown
10469
10470 case $host_os in
10471 aix3*)
10472   version_type=linux # correct to gnu/linux during the next big refactor
10473   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10474   shlibpath_var=LIBPATH
10475
10476   # AIX 3 has no versioning support, so we append a major version to the name.
10477   soname_spec='${libname}${release}${shared_ext}$major'
10478   ;;
10479
10480 aix[4-9]*)
10481   version_type=linux # correct to gnu/linux during the next big refactor
10482   need_lib_prefix=no
10483   need_version=no
10484   hardcode_into_libs=yes
10485   if test "$host_cpu" = ia64; then
10486     # AIX 5 supports IA64
10487     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10488     shlibpath_var=LD_LIBRARY_PATH
10489   else
10490     # With GCC up to 2.95.x, collect2 would create an import file
10491     # for dependence libraries.  The import file would start with
10492     # the line `#! .'.  This would cause the generated library to
10493     # depend on `.', always an invalid library.  This was fixed in
10494     # development snapshots of GCC prior to 3.0.
10495     case $host_os in
10496       aix4 | aix4.[01] | aix4.[01].*)
10497       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10498            echo ' yes '
10499            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10500         :
10501       else
10502         can_build_shared=no
10503       fi
10504       ;;
10505     esac
10506     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10507     # soname into executable. Probably we can add versioning support to
10508     # collect2, so additional links can be useful in future.
10509     if test "$aix_use_runtimelinking" = yes; then
10510       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10511       # instead of lib<name>.a to let people know that these are not
10512       # typical AIX shared libraries.
10513       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514     else
10515       # We preserve .a as extension for shared libraries through AIX4.2
10516       # and later when we are not doing run time linking.
10517       library_names_spec='${libname}${release}.a $libname.a'
10518       soname_spec='${libname}${release}${shared_ext}$major'
10519     fi
10520     shlibpath_var=LIBPATH
10521   fi
10522   ;;
10523
10524 amigaos*)
10525   case $host_cpu in
10526   powerpc)
10527     # Since July 2007 AmigaOS4 officially supports .so libraries.
10528     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10530     ;;
10531   m68k)
10532     library_names_spec='$libname.ixlibrary $libname.a'
10533     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10534     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'
10535     ;;
10536   esac
10537   ;;
10538
10539 beos*)
10540   library_names_spec='${libname}${shared_ext}'
10541   dynamic_linker="$host_os ld.so"
10542   shlibpath_var=LIBRARY_PATH
10543   ;;
10544
10545 bsdi[45]*)
10546   version_type=linux # correct to gnu/linux during the next big refactor
10547   need_version=no
10548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10549   soname_spec='${libname}${release}${shared_ext}$major'
10550   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10551   shlibpath_var=LD_LIBRARY_PATH
10552   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10553   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10554   # the default ld.so.conf also contains /usr/contrib/lib and
10555   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10556   # libtool to hard-code these into programs
10557   ;;
10558
10559 cygwin* | mingw* | pw32* | cegcc*)
10560   version_type=windows
10561   shrext_cmds=".dll"
10562   need_version=no
10563   need_lib_prefix=no
10564
10565   case $GCC,$cc_basename in
10566   yes,*)
10567     # gcc
10568     library_names_spec='$libname.dll.a'
10569     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10570     postinstall_cmds='base_file=`basename \${file}`~
10571       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10572       dldir=$destdir/`dirname \$dlpath`~
10573       test -d \$dldir || mkdir -p \$dldir~
10574       $install_prog $dir/$dlname \$dldir/$dlname~
10575       chmod a+x \$dldir/$dlname~
10576       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10577         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10578       fi'
10579     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10580       dlpath=$dir/\$dldll~
10581        $RM \$dlpath'
10582     shlibpath_overrides_runpath=yes
10583
10584     case $host_os in
10585     cygwin*)
10586       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10587       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10588
10589       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10590       ;;
10591     mingw* | cegcc*)
10592       # MinGW DLLs use traditional 'lib' prefix
10593       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10594       ;;
10595     pw32*)
10596       # pw32 DLLs use 'pw' prefix rather than 'lib'
10597       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10598       ;;
10599     esac
10600     dynamic_linker='Win32 ld.exe'
10601     ;;
10602
10603   *,cl*)
10604     # Native MSVC
10605     libname_spec='$name'
10606     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10607     library_names_spec='${libname}.dll.lib'
10608
10609     case $build_os in
10610     mingw*)
10611       sys_lib_search_path_spec=
10612       lt_save_ifs=$IFS
10613       IFS=';'
10614       for lt_path in $LIB
10615       do
10616         IFS=$lt_save_ifs
10617         # Let DOS variable expansion print the short 8.3 style file name.
10618         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10619         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10620       done
10621       IFS=$lt_save_ifs
10622       # Convert to MSYS style.
10623       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10624       ;;
10625     cygwin*)
10626       # Convert to unix form, then to dos form, then back to unix form
10627       # but this time dos style (no spaces!) so that the unix form looks
10628       # like /cygdrive/c/PROGRA~1:/cygdr...
10629       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10630       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10631       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10632       ;;
10633     *)
10634       sys_lib_search_path_spec="$LIB"
10635       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10636         # It is most probably a Windows format PATH.
10637         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10638       else
10639         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10640       fi
10641       # FIXME: find the short name or the path components, as spaces are
10642       # common. (e.g. "Program Files" -> "PROGRA~1")
10643       ;;
10644     esac
10645
10646     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10647     postinstall_cmds='base_file=`basename \${file}`~
10648       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10649       dldir=$destdir/`dirname \$dlpath`~
10650       test -d \$dldir || mkdir -p \$dldir~
10651       $install_prog $dir/$dlname \$dldir/$dlname'
10652     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10653       dlpath=$dir/\$dldll~
10654        $RM \$dlpath'
10655     shlibpath_overrides_runpath=yes
10656     dynamic_linker='Win32 link.exe'
10657     ;;
10658
10659   *)
10660     # Assume MSVC wrapper
10661     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10662     dynamic_linker='Win32 ld.exe'
10663     ;;
10664   esac
10665   # FIXME: first we should search . and the directory the executable is in
10666   shlibpath_var=PATH
10667   ;;
10668
10669 darwin* | rhapsody*)
10670   dynamic_linker="$host_os dyld"
10671   version_type=darwin
10672   need_lib_prefix=no
10673   need_version=no
10674   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10675   soname_spec='${libname}${release}${major}$shared_ext'
10676   shlibpath_overrides_runpath=yes
10677   shlibpath_var=DYLD_LIBRARY_PATH
10678   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10679
10680   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10681   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10682   ;;
10683
10684 dgux*)
10685   version_type=linux # correct to gnu/linux during the next big refactor
10686   need_lib_prefix=no
10687   need_version=no
10688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10689   soname_spec='${libname}${release}${shared_ext}$major'
10690   shlibpath_var=LD_LIBRARY_PATH
10691   ;;
10692
10693 freebsd* | dragonfly*)
10694   # DragonFly does not have aout.  When/if they implement a new
10695   # versioning mechanism, adjust this.
10696   if test -x /usr/bin/objformat; then
10697     objformat=`/usr/bin/objformat`
10698   else
10699     case $host_os in
10700     freebsd[23].*) objformat=aout ;;
10701     *) objformat=elf ;;
10702     esac
10703   fi
10704   version_type=freebsd-$objformat
10705   case $version_type in
10706     freebsd-elf*)
10707       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10708       need_version=no
10709       need_lib_prefix=no
10710       ;;
10711     freebsd-*)
10712       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10713       need_version=yes
10714       ;;
10715   esac
10716   shlibpath_var=LD_LIBRARY_PATH
10717   case $host_os in
10718   freebsd2.*)
10719     shlibpath_overrides_runpath=yes
10720     ;;
10721   freebsd3.[01]* | freebsdelf3.[01]*)
10722     shlibpath_overrides_runpath=yes
10723     hardcode_into_libs=yes
10724     ;;
10725   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10726   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10727     shlibpath_overrides_runpath=no
10728     hardcode_into_libs=yes
10729     ;;
10730   *) # from 4.6 on, and DragonFly
10731     shlibpath_overrides_runpath=yes
10732     hardcode_into_libs=yes
10733     ;;
10734   esac
10735   ;;
10736
10737 gnu*)
10738   version_type=linux # correct to gnu/linux during the next big refactor
10739   need_lib_prefix=no
10740   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
10744   shlibpath_overrides_runpath=no
10745   hardcode_into_libs=yes
10746   ;;
10747
10748 haiku*)
10749   version_type=linux # correct to gnu/linux during the next big refactor
10750   need_lib_prefix=no
10751   need_version=no
10752   dynamic_linker="$host_os runtime_loader"
10753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10754   soname_spec='${libname}${release}${shared_ext}$major'
10755   shlibpath_var=LIBRARY_PATH
10756   shlibpath_overrides_runpath=yes
10757   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10758   hardcode_into_libs=yes
10759   ;;
10760
10761 hpux9* | hpux10* | hpux11*)
10762   # Give a soname corresponding to the major version so that dld.sl refuses to
10763   # link against other versions.
10764   version_type=sunos
10765   need_lib_prefix=no
10766   need_version=no
10767   case $host_cpu in
10768   ia64*)
10769     shrext_cmds='.so'
10770     hardcode_into_libs=yes
10771     dynamic_linker="$host_os dld.so"
10772     shlibpath_var=LD_LIBRARY_PATH
10773     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10774     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775     soname_spec='${libname}${release}${shared_ext}$major'
10776     if test "X$HPUX_IA64_MODE" = X32; then
10777       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10778     else
10779       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10780     fi
10781     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10782     ;;
10783   hppa*64*)
10784     shrext_cmds='.sl'
10785     hardcode_into_libs=yes
10786     dynamic_linker="$host_os dld.sl"
10787     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10788     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790     soname_spec='${libname}${release}${shared_ext}$major'
10791     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10792     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10793     ;;
10794   *)
10795     shrext_cmds='.sl'
10796     dynamic_linker="$host_os dld.sl"
10797     shlibpath_var=SHLIB_PATH
10798     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10799     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10800     soname_spec='${libname}${release}${shared_ext}$major'
10801     ;;
10802   esac
10803   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10804   postinstall_cmds='chmod 555 $lib'
10805   # or fails outright, so override atomically:
10806   install_override_mode=555
10807   ;;
10808
10809 interix[3-9]*)
10810   version_type=linux # correct to gnu/linux during the next big refactor
10811   need_lib_prefix=no
10812   need_version=no
10813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10814   soname_spec='${libname}${release}${shared_ext}$major'
10815   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10816   shlibpath_var=LD_LIBRARY_PATH
10817   shlibpath_overrides_runpath=no
10818   hardcode_into_libs=yes
10819   ;;
10820
10821 irix5* | irix6* | nonstopux*)
10822   case $host_os in
10823     nonstopux*) version_type=nonstopux ;;
10824     *)
10825         if test "$lt_cv_prog_gnu_ld" = yes; then
10826                 version_type=linux # correct to gnu/linux during the next big refactor
10827         else
10828                 version_type=irix
10829         fi ;;
10830   esac
10831   need_lib_prefix=no
10832   need_version=no
10833   soname_spec='${libname}${release}${shared_ext}$major'
10834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10835   case $host_os in
10836   irix5* | nonstopux*)
10837     libsuff= shlibsuff=
10838     ;;
10839   *)
10840     case $LD in # libtool.m4 will add one of these switches to LD
10841     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10842       libsuff= shlibsuff= libmagic=32-bit;;
10843     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10844       libsuff=32 shlibsuff=N32 libmagic=N32;;
10845     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10846       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10847     *) libsuff= shlibsuff= libmagic=never-match;;
10848     esac
10849     ;;
10850   esac
10851   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10852   shlibpath_overrides_runpath=no
10853   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10854   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10855   hardcode_into_libs=yes
10856   ;;
10857
10858 # No shared lib support for Linux oldld, aout, or coff.
10859 linux*oldld* | linux*aout* | linux*coff*)
10860   dynamic_linker=no
10861   ;;
10862
10863 # This must be glibc/ELF.
10864 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10865   version_type=linux # correct to gnu/linux during the next big refactor
10866   need_lib_prefix=no
10867   need_version=no
10868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869   soname_spec='${libname}${release}${shared_ext}$major'
10870   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10871   shlibpath_var=LD_LIBRARY_PATH
10872   shlibpath_overrides_runpath=no
10873
10874   # Some binutils ld are patched to set DT_RUNPATH
10875   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10876   $as_echo_n "(cached) " >&6
10877 else
10878   lt_cv_shlibpath_overrides_runpath=no
10879     save_LDFLAGS=$LDFLAGS
10880     save_libdir=$libdir
10881     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10882          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10883     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h.  */
10885
10886 int
10887 main ()
10888 {
10889
10890   ;
10891   return 0;
10892 }
10893 _ACEOF
10894 if ac_fn_c_try_link "$LINENO"; then :
10895   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10896   lt_cv_shlibpath_overrides_runpath=yes
10897 fi
10898 fi
10899 rm -f core conftest.err conftest.$ac_objext \
10900     conftest$ac_exeext conftest.$ac_ext
10901     LDFLAGS=$save_LDFLAGS
10902     libdir=$save_libdir
10903
10904 fi
10905
10906   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10907
10908   # This implies no fast_install, which is unacceptable.
10909   # Some rework will be needed to allow for fast_install
10910   # before this can be enabled.
10911   hardcode_into_libs=yes
10912
10913   # Add ABI-specific directories to the system library path.
10914   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10915
10916   # Append ld.so.conf contents to the search path
10917   if test -f /etc/ld.so.conf; then
10918     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' ' '`
10919     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10920
10921   fi
10922
10923   # We used to test for /lib/ld.so.1 and disable shared libraries on
10924   # powerpc, because MkLinux only supported shared libraries with the
10925   # GNU dynamic linker.  Since this was broken with cross compilers,
10926   # most powerpc-linux boxes support dynamic linking these days and
10927   # people can always --disable-shared, the test was removed, and we
10928   # assume the GNU/Linux dynamic linker is in use.
10929   dynamic_linker='GNU/Linux ld.so'
10930   ;;
10931
10932 netbsd*)
10933   version_type=sunos
10934   need_lib_prefix=no
10935   need_version=no
10936   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10938     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10939     dynamic_linker='NetBSD (a.out) ld.so'
10940   else
10941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10942     soname_spec='${libname}${release}${shared_ext}$major'
10943     dynamic_linker='NetBSD ld.elf_so'
10944   fi
10945   shlibpath_var=LD_LIBRARY_PATH
10946   shlibpath_overrides_runpath=yes
10947   hardcode_into_libs=yes
10948   ;;
10949
10950 newsos6)
10951   version_type=linux # correct to gnu/linux during the next big refactor
10952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953   shlibpath_var=LD_LIBRARY_PATH
10954   shlibpath_overrides_runpath=yes
10955   ;;
10956
10957 *nto* | *qnx*)
10958   version_type=qnx
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=no
10965   hardcode_into_libs=yes
10966   dynamic_linker='ldqnx.so'
10967   ;;
10968
10969 openbsd*)
10970   version_type=sunos
10971   sys_lib_dlsearch_path_spec="/usr/lib"
10972   need_lib_prefix=no
10973   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10974   case $host_os in
10975     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10976     *)                          need_version=no  ;;
10977   esac
10978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10979   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10980   shlibpath_var=LD_LIBRARY_PATH
10981   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10982     case $host_os in
10983       openbsd2.[89] | openbsd2.[89].*)
10984         shlibpath_overrides_runpath=no
10985         ;;
10986       *)
10987         shlibpath_overrides_runpath=yes
10988         ;;
10989       esac
10990   else
10991     shlibpath_overrides_runpath=yes
10992   fi
10993   ;;
10994
10995 os2*)
10996   libname_spec='$name'
10997   shrext_cmds=".dll"
10998   need_lib_prefix=no
10999   library_names_spec='$libname${shared_ext} $libname.a'
11000   dynamic_linker='OS/2 ld.exe'
11001   shlibpath_var=LIBPATH
11002   ;;
11003
11004 osf3* | osf4* | osf5*)
11005   version_type=osf
11006   need_lib_prefix=no
11007   need_version=no
11008   soname_spec='${libname}${release}${shared_ext}$major'
11009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11010   shlibpath_var=LD_LIBRARY_PATH
11011   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11012   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11013   ;;
11014
11015 rdos*)
11016   dynamic_linker=no
11017   ;;
11018
11019 solaris*)
11020   version_type=linux # correct to gnu/linux during the next big refactor
11021   need_lib_prefix=no
11022   need_version=no
11023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024   soname_spec='${libname}${release}${shared_ext}$major'
11025   shlibpath_var=LD_LIBRARY_PATH
11026   shlibpath_overrides_runpath=yes
11027   hardcode_into_libs=yes
11028   # ldd complains unless libraries are executable
11029   postinstall_cmds='chmod +x $lib'
11030   ;;
11031
11032 sunos4*)
11033   version_type=sunos
11034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11035   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11036   shlibpath_var=LD_LIBRARY_PATH
11037   shlibpath_overrides_runpath=yes
11038   if test "$with_gnu_ld" = yes; then
11039     need_lib_prefix=no
11040   fi
11041   need_version=yes
11042   ;;
11043
11044 sysv4 | sysv4.3*)
11045   version_type=linux # correct to gnu/linux during the next big refactor
11046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047   soname_spec='${libname}${release}${shared_ext}$major'
11048   shlibpath_var=LD_LIBRARY_PATH
11049   case $host_vendor in
11050     sni)
11051       shlibpath_overrides_runpath=no
11052       need_lib_prefix=no
11053       runpath_var=LD_RUN_PATH
11054       ;;
11055     siemens)
11056       need_lib_prefix=no
11057       ;;
11058     motorola)
11059       need_lib_prefix=no
11060       need_version=no
11061       shlibpath_overrides_runpath=no
11062       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11063       ;;
11064   esac
11065   ;;
11066
11067 sysv4*MP*)
11068   if test -d /usr/nec ;then
11069     version_type=linux # correct to gnu/linux during the next big refactor
11070     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11071     soname_spec='$libname${shared_ext}.$major'
11072     shlibpath_var=LD_LIBRARY_PATH
11073   fi
11074   ;;
11075
11076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11077   version_type=freebsd-elf
11078   need_lib_prefix=no
11079   need_version=no
11080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11081   soname_spec='${libname}${release}${shared_ext}$major'
11082   shlibpath_var=LD_LIBRARY_PATH
11083   shlibpath_overrides_runpath=yes
11084   hardcode_into_libs=yes
11085   if test "$with_gnu_ld" = yes; then
11086     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11087   else
11088     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11089     case $host_os in
11090       sco3.2v5*)
11091         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11092         ;;
11093     esac
11094   fi
11095   sys_lib_dlsearch_path_spec='/usr/lib'
11096   ;;
11097
11098 tpf*)
11099   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11100   version_type=linux # correct to gnu/linux during the next big refactor
11101   need_lib_prefix=no
11102   need_version=no
11103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104   shlibpath_var=LD_LIBRARY_PATH
11105   shlibpath_overrides_runpath=no
11106   hardcode_into_libs=yes
11107   ;;
11108
11109 uts4*)
11110   version_type=linux # correct to gnu/linux during the next big refactor
11111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112   soname_spec='${libname}${release}${shared_ext}$major'
11113   shlibpath_var=LD_LIBRARY_PATH
11114   ;;
11115
11116 *)
11117   dynamic_linker=no
11118   ;;
11119 esac
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11121 $as_echo "$dynamic_linker" >&6; }
11122 test "$dynamic_linker" = no && can_build_shared=no
11123
11124 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11125 if test "$GCC" = yes; then
11126   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11127 fi
11128
11129 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11130   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11131 fi
11132 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11133   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11134 fi
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
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11228 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11229 hardcode_action=
11230 if test -n "$hardcode_libdir_flag_spec" ||
11231    test -n "$runpath_var" ||
11232    test "X$hardcode_automatic" = "Xyes" ; then
11233
11234   # We can hardcode non-existent directories.
11235   if test "$hardcode_direct" != no &&
11236      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11237      # have to relink, otherwise we might link with an installed library
11238      # when we should be linking with a yet-to-be-installed one
11239      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11240      test "$hardcode_minus_L" != no; then
11241     # Linking always hardcodes the temporary library directory.
11242     hardcode_action=relink
11243   else
11244     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11245     hardcode_action=immediate
11246   fi
11247 else
11248   # We cannot hardcode anything, or else we can only hardcode existing
11249   # directories.
11250   hardcode_action=unsupported
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11253 $as_echo "$hardcode_action" >&6; }
11254
11255 if test "$hardcode_action" = relink ||
11256    test "$inherit_rpath" = yes; then
11257   # Fast installation is not supported
11258   enable_fast_install=no
11259 elif test "$shlibpath_overrides_runpath" = yes ||
11260      test "$enable_shared" = no; then
11261   # Fast installation is not necessary
11262   enable_fast_install=needless
11263 fi
11264
11265
11266
11267
11268
11269
11270   if test "x$enable_dlopen" != xyes; then
11271   enable_dlopen=unknown
11272   enable_dlopen_self=unknown
11273   enable_dlopen_self_static=unknown
11274 else
11275   lt_cv_dlopen=no
11276   lt_cv_dlopen_libs=
11277
11278   case $host_os in
11279   beos*)
11280     lt_cv_dlopen="load_add_on"
11281     lt_cv_dlopen_libs=
11282     lt_cv_dlopen_self=yes
11283     ;;
11284
11285   mingw* | pw32* | cegcc*)
11286     lt_cv_dlopen="LoadLibrary"
11287     lt_cv_dlopen_libs=
11288     ;;
11289
11290   cygwin*)
11291     lt_cv_dlopen="dlopen"
11292     lt_cv_dlopen_libs=
11293     ;;
11294
11295   darwin*)
11296   # if libdl is installed we need to link against it
11297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11298 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11299 if ${ac_cv_lib_dl_dlopen+:} false; then :
11300   $as_echo_n "(cached) " >&6
11301 else
11302   ac_check_lib_save_LIBS=$LIBS
11303 LIBS="-ldl  $LIBS"
11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h.  */
11306
11307 /* Override any GCC internal prototype to avoid an error.
11308    Use char because int might match the return type of a GCC
11309    builtin and then its argument prototype would still apply.  */
11310 #ifdef __cplusplus
11311 extern "C"
11312 #endif
11313 char dlopen ();
11314 int
11315 main ()
11316 {
11317 return dlopen ();
11318   ;
11319   return 0;
11320 }
11321 _ACEOF
11322 if ac_fn_c_try_link "$LINENO"; then :
11323   ac_cv_lib_dl_dlopen=yes
11324 else
11325   ac_cv_lib_dl_dlopen=no
11326 fi
11327 rm -f core conftest.err conftest.$ac_objext \
11328     conftest$ac_exeext conftest.$ac_ext
11329 LIBS=$ac_check_lib_save_LIBS
11330 fi
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11332 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11333 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11334   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11335 else
11336
11337     lt_cv_dlopen="dyld"
11338     lt_cv_dlopen_libs=
11339     lt_cv_dlopen_self=yes
11340
11341 fi
11342
11343     ;;
11344
11345   *)
11346     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11347 if test "x$ac_cv_func_shl_load" = xyes; then :
11348   lt_cv_dlopen="shl_load"
11349 else
11350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11351 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11352 if ${ac_cv_lib_dld_shl_load+:} false; then :
11353   $as_echo_n "(cached) " >&6
11354 else
11355   ac_check_lib_save_LIBS=$LIBS
11356 LIBS="-ldld  $LIBS"
11357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h.  */
11359
11360 /* Override any GCC internal prototype to avoid an error.
11361    Use char because int might match the return type of a GCC
11362    builtin and then its argument prototype would still apply.  */
11363 #ifdef __cplusplus
11364 extern "C"
11365 #endif
11366 char shl_load ();
11367 int
11368 main ()
11369 {
11370 return shl_load ();
11371   ;
11372   return 0;
11373 }
11374 _ACEOF
11375 if ac_fn_c_try_link "$LINENO"; then :
11376   ac_cv_lib_dld_shl_load=yes
11377 else
11378   ac_cv_lib_dld_shl_load=no
11379 fi
11380 rm -f core conftest.err conftest.$ac_objext \
11381     conftest$ac_exeext conftest.$ac_ext
11382 LIBS=$ac_check_lib_save_LIBS
11383 fi
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11385 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11386 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11387   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11388 else
11389   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11390 if test "x$ac_cv_func_dlopen" = xyes; then :
11391   lt_cv_dlopen="dlopen"
11392 else
11393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11394 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11395 if ${ac_cv_lib_dl_dlopen+:} false; then :
11396   $as_echo_n "(cached) " >&6
11397 else
11398   ac_check_lib_save_LIBS=$LIBS
11399 LIBS="-ldl  $LIBS"
11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h.  */
11402
11403 /* Override any GCC internal prototype to avoid an error.
11404    Use char because int might match the return type of a GCC
11405    builtin and then its argument prototype would still apply.  */
11406 #ifdef __cplusplus
11407 extern "C"
11408 #endif
11409 char dlopen ();
11410 int
11411 main ()
11412 {
11413 return dlopen ();
11414   ;
11415   return 0;
11416 }
11417 _ACEOF
11418 if ac_fn_c_try_link "$LINENO"; then :
11419   ac_cv_lib_dl_dlopen=yes
11420 else
11421   ac_cv_lib_dl_dlopen=no
11422 fi
11423 rm -f core conftest.err conftest.$ac_objext \
11424     conftest$ac_exeext conftest.$ac_ext
11425 LIBS=$ac_check_lib_save_LIBS
11426 fi
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11428 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11429 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11430   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11431 else
11432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11433 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11434 if ${ac_cv_lib_svld_dlopen+:} false; then :
11435   $as_echo_n "(cached) " >&6
11436 else
11437   ac_check_lib_save_LIBS=$LIBS
11438 LIBS="-lsvld  $LIBS"
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h.  */
11441
11442 /* Override any GCC internal prototype to avoid an error.
11443    Use char because int might match the return type of a GCC
11444    builtin and then its argument prototype would still apply.  */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 char dlopen ();
11449 int
11450 main ()
11451 {
11452 return dlopen ();
11453   ;
11454   return 0;
11455 }
11456 _ACEOF
11457 if ac_fn_c_try_link "$LINENO"; then :
11458   ac_cv_lib_svld_dlopen=yes
11459 else
11460   ac_cv_lib_svld_dlopen=no
11461 fi
11462 rm -f core conftest.err conftest.$ac_objext \
11463     conftest$ac_exeext conftest.$ac_ext
11464 LIBS=$ac_check_lib_save_LIBS
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11467 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11468 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11469   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11470 else
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11472 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11473 if ${ac_cv_lib_dld_dld_link+:} false; then :
11474   $as_echo_n "(cached) " >&6
11475 else
11476   ac_check_lib_save_LIBS=$LIBS
11477 LIBS="-ldld  $LIBS"
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h.  */
11480
11481 /* Override any GCC internal prototype to avoid an error.
11482    Use char because int might match the return type of a GCC
11483    builtin and then its argument prototype would still apply.  */
11484 #ifdef __cplusplus
11485 extern "C"
11486 #endif
11487 char dld_link ();
11488 int
11489 main ()
11490 {
11491 return dld_link ();
11492   ;
11493   return 0;
11494 }
11495 _ACEOF
11496 if ac_fn_c_try_link "$LINENO"; then :
11497   ac_cv_lib_dld_dld_link=yes
11498 else
11499   ac_cv_lib_dld_dld_link=no
11500 fi
11501 rm -f core conftest.err conftest.$ac_objext \
11502     conftest$ac_exeext conftest.$ac_ext
11503 LIBS=$ac_check_lib_save_LIBS
11504 fi
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11506 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11507 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11508   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11509 fi
11510
11511
11512 fi
11513
11514
11515 fi
11516
11517
11518 fi
11519
11520
11521 fi
11522
11523
11524 fi
11525
11526     ;;
11527   esac
11528
11529   if test "x$lt_cv_dlopen" != xno; then
11530     enable_dlopen=yes
11531   else
11532     enable_dlopen=no
11533   fi
11534
11535   case $lt_cv_dlopen in
11536   dlopen)
11537     save_CPPFLAGS="$CPPFLAGS"
11538     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11539
11540     save_LDFLAGS="$LDFLAGS"
11541     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11542
11543     save_LIBS="$LIBS"
11544     LIBS="$lt_cv_dlopen_libs $LIBS"
11545
11546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11547 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11548 if ${lt_cv_dlopen_self+:} false; then :
11549   $as_echo_n "(cached) " >&6
11550 else
11551           if test "$cross_compiling" = yes; then :
11552   lt_cv_dlopen_self=cross
11553 else
11554   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11555   lt_status=$lt_dlunknown
11556   cat > conftest.$ac_ext <<_LT_EOF
11557 #line $LINENO "configure"
11558 #include "confdefs.h"
11559
11560 #if HAVE_DLFCN_H
11561 #include <dlfcn.h>
11562 #endif
11563
11564 #include <stdio.h>
11565
11566 #ifdef RTLD_GLOBAL
11567 #  define LT_DLGLOBAL           RTLD_GLOBAL
11568 #else
11569 #  ifdef DL_GLOBAL
11570 #    define LT_DLGLOBAL         DL_GLOBAL
11571 #  else
11572 #    define LT_DLGLOBAL         0
11573 #  endif
11574 #endif
11575
11576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11577    find out it does not work in some platform. */
11578 #ifndef LT_DLLAZY_OR_NOW
11579 #  ifdef RTLD_LAZY
11580 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11581 #  else
11582 #    ifdef DL_LAZY
11583 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11584 #    else
11585 #      ifdef RTLD_NOW
11586 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11587 #      else
11588 #        ifdef DL_NOW
11589 #          define LT_DLLAZY_OR_NOW      DL_NOW
11590 #        else
11591 #          define LT_DLLAZY_OR_NOW      0
11592 #        endif
11593 #      endif
11594 #    endif
11595 #  endif
11596 #endif
11597
11598 /* When -fvisbility=hidden is used, assume the code has been annotated
11599    correspondingly for the symbols needed.  */
11600 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11601 int fnord () __attribute__((visibility("default")));
11602 #endif
11603
11604 int fnord () { return 42; }
11605 int main ()
11606 {
11607   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11608   int status = $lt_dlunknown;
11609
11610   if (self)
11611     {
11612       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11613       else
11614         {
11615           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11616           else puts (dlerror ());
11617         }
11618       /* dlclose (self); */
11619     }
11620   else
11621     puts (dlerror ());
11622
11623   return status;
11624 }
11625 _LT_EOF
11626   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11627   (eval $ac_link) 2>&5
11628   ac_status=$?
11629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11630   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11631     (./conftest; exit; ) >&5 2>/dev/null
11632     lt_status=$?
11633     case x$lt_status in
11634       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11635       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11636       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11637     esac
11638   else :
11639     # compilation failed
11640     lt_cv_dlopen_self=no
11641   fi
11642 fi
11643 rm -fr conftest*
11644
11645
11646 fi
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11648 $as_echo "$lt_cv_dlopen_self" >&6; }
11649
11650     if test "x$lt_cv_dlopen_self" = xyes; then
11651       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11652       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11653 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11654 if ${lt_cv_dlopen_self_static+:} false; then :
11655   $as_echo_n "(cached) " >&6
11656 else
11657           if test "$cross_compiling" = yes; then :
11658   lt_cv_dlopen_self_static=cross
11659 else
11660   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11661   lt_status=$lt_dlunknown
11662   cat > conftest.$ac_ext <<_LT_EOF
11663 #line $LINENO "configure"
11664 #include "confdefs.h"
11665
11666 #if HAVE_DLFCN_H
11667 #include <dlfcn.h>
11668 #endif
11669
11670 #include <stdio.h>
11671
11672 #ifdef RTLD_GLOBAL
11673 #  define LT_DLGLOBAL           RTLD_GLOBAL
11674 #else
11675 #  ifdef DL_GLOBAL
11676 #    define LT_DLGLOBAL         DL_GLOBAL
11677 #  else
11678 #    define LT_DLGLOBAL         0
11679 #  endif
11680 #endif
11681
11682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11683    find out it does not work in some platform. */
11684 #ifndef LT_DLLAZY_OR_NOW
11685 #  ifdef RTLD_LAZY
11686 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11687 #  else
11688 #    ifdef DL_LAZY
11689 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11690 #    else
11691 #      ifdef RTLD_NOW
11692 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11693 #      else
11694 #        ifdef DL_NOW
11695 #          define LT_DLLAZY_OR_NOW      DL_NOW
11696 #        else
11697 #          define LT_DLLAZY_OR_NOW      0
11698 #        endif
11699 #      endif
11700 #    endif
11701 #  endif
11702 #endif
11703
11704 /* When -fvisbility=hidden is used, assume the code has been annotated
11705    correspondingly for the symbols needed.  */
11706 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11707 int fnord () __attribute__((visibility("default")));
11708 #endif
11709
11710 int fnord () { return 42; }
11711 int main ()
11712 {
11713   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11714   int status = $lt_dlunknown;
11715
11716   if (self)
11717     {
11718       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11719       else
11720         {
11721           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11722           else puts (dlerror ());
11723         }
11724       /* dlclose (self); */
11725     }
11726   else
11727     puts (dlerror ());
11728
11729   return status;
11730 }
11731 _LT_EOF
11732   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11733   (eval $ac_link) 2>&5
11734   ac_status=$?
11735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11736   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11737     (./conftest; exit; ) >&5 2>/dev/null
11738     lt_status=$?
11739     case x$lt_status in
11740       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11741       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11742       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11743     esac
11744   else :
11745     # compilation failed
11746     lt_cv_dlopen_self_static=no
11747   fi
11748 fi
11749 rm -fr conftest*
11750
11751
11752 fi
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11754 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11755     fi
11756
11757     CPPFLAGS="$save_CPPFLAGS"
11758     LDFLAGS="$save_LDFLAGS"
11759     LIBS="$save_LIBS"
11760     ;;
11761   esac
11762
11763   case $lt_cv_dlopen_self in
11764   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11765   *) enable_dlopen_self=unknown ;;
11766   esac
11767
11768   case $lt_cv_dlopen_self_static in
11769   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11770   *) enable_dlopen_self_static=unknown ;;
11771   esac
11772 fi
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790 striplib=
11791 old_striplib=
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11793 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11794 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11795   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11796   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11798 $as_echo "yes" >&6; }
11799 else
11800 # FIXME - insert some real tests, host_os isn't really good enough
11801   case $host_os in
11802   darwin*)
11803     if test -n "$STRIP" ; then
11804       striplib="$STRIP -x"
11805       old_striplib="$STRIP -S"
11806       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11807 $as_echo "yes" >&6; }
11808     else
11809       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; }
11811     fi
11812     ;;
11813   *)
11814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11816     ;;
11817   esac
11818 fi
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831   # Report which library types will actually be built
11832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11833 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11835 $as_echo "$can_build_shared" >&6; }
11836
11837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11838 $as_echo_n "checking whether to build shared libraries... " >&6; }
11839   test "$can_build_shared" = "no" && enable_shared=no
11840
11841   # On AIX, shared libraries and static libraries use the same namespace, and
11842   # are all built from PIC.
11843   case $host_os in
11844   aix3*)
11845     test "$enable_shared" = yes && enable_static=no
11846     if test -n "$RANLIB"; then
11847       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11848       postinstall_cmds='$RANLIB $lib'
11849     fi
11850     ;;
11851
11852   aix[4-9]*)
11853     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11854       test "$enable_shared" = yes && enable_static=no
11855     fi
11856     ;;
11857   esac
11858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11859 $as_echo "$enable_shared" >&6; }
11860
11861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11862 $as_echo_n "checking whether to build static libraries... " >&6; }
11863   # Make sure either enable_shared or enable_static is yes.
11864   test "$enable_shared" = yes || enable_static=yes
11865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11866 $as_echo "$enable_static" >&6; }
11867
11868
11869
11870
11871 fi
11872 ac_ext=c
11873 ac_cpp='$CPP $CPPFLAGS'
11874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11877
11878 CC="$lt_save_CC"
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894         ac_config_commands="$ac_config_commands libtool"
11895
11896
11897
11898
11899 # Only expand once:
11900
11901
11902
11903
11904 AX_CC_MAXOPT
11905 AX_CFLAGS_WARN_ALL
11906 if test "x$GCC" = "xyes"; then
11907   CFLAGS="$CFLAGS -fexceptions"
11908 fi
11909
11910
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11912 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11913     # Check whether --enable-maintainer-mode was given.
11914 if test "${enable_maintainer_mode+set}" = set; then :
11915   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11916 else
11917   USE_MAINTAINER_MODE=no
11918 fi
11919
11920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11921 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11922    if test $USE_MAINTAINER_MODE = yes; then
11923   MAINTAINER_MODE_TRUE=
11924   MAINTAINER_MODE_FALSE='#'
11925 else
11926   MAINTAINER_MODE_TRUE='#'
11927   MAINTAINER_MODE_FALSE=
11928 fi
11929
11930   MAINT=$MAINTAINER_MODE_TRUE
11931
11932
11933
11934 for ac_header in sys/mman.h
11935 do :
11936   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11937 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
11938   cat >>confdefs.h <<_ACEOF
11939 #define HAVE_SYS_MMAN_H 1
11940 _ACEOF
11941
11942 fi
11943
11944 done
11945
11946 for ac_func in mmap
11947 do :
11948   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11949 if test "x$ac_cv_func_mmap" = xyes; then :
11950   cat >>confdefs.h <<_ACEOF
11951 #define HAVE_MMAP 1
11952 _ACEOF
11953
11954 fi
11955 done
11956
11957
11958 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11959 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
11960   libffi_header_sys_mman_h=yes
11961 else
11962   libffi_header_sys_mman_h=no
11963 fi
11964
11965
11966 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11967 if test "x$ac_cv_func_mmap" = xyes; then :
11968   libffi_func_mmap=yes
11969 else
11970   libffi_func_mmap=no
11971 fi
11972
11973 if test "$libffi_header_sys_mman_h" != yes \
11974  || test "$libffi_func_mmap" != yes; then
11975    ac_cv_func_mmap_file=no
11976    ac_cv_func_mmap_dev_zero=no
11977    ac_cv_func_mmap_anon=no
11978 else
11979    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11980 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11981 if ${ac_cv_func_mmap_file+:} false; then :
11982   $as_echo_n "(cached) " >&6
11983 else
11984   # Add a system to this blacklist if
11985    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11986    # memory area containing the same data that you'd get if you applied
11987    # read() to the same fd.  The only system known to have a problem here
11988    # is VMS, where text files have record structure.
11989    case "$host_os" in
11990      vms* | ultrix*)
11991         ac_cv_func_mmap_file=no ;;
11992      *)
11993         ac_cv_func_mmap_file=yes;;
11994    esac
11995 fi
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11997 $as_echo "$ac_cv_func_mmap_file" >&6; }
11998    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11999 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
12000 if ${ac_cv_func_mmap_dev_zero+:} false; then :
12001   $as_echo_n "(cached) " >&6
12002 else
12003   # Add a system to this blacklist if it has mmap() but /dev/zero
12004    # does not exist, or if mmapping /dev/zero does not give anonymous
12005    # zeroed pages with both the following properties:
12006    # 1. If you map N consecutive pages in with one call, and then
12007    #    unmap any subset of those pages, the pages that were not
12008    #    explicitly unmapped remain accessible.
12009    # 2. If you map two adjacent blocks of memory and then unmap them
12010    #    both at once, they must both go away.
12011    # Systems known to be in this category are Windows (all variants),
12012    # VMS, and Darwin.
12013    case "$host_os" in
12014      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
12015         ac_cv_func_mmap_dev_zero=no ;;
12016      *)
12017         ac_cv_func_mmap_dev_zero=yes;;
12018    esac
12019 fi
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
12021 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
12022
12023    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
12024    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
12025 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
12026 if ${ac_cv_decl_map_anon+:} false; then :
12027   $as_echo_n "(cached) " >&6
12028 else
12029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h.  */
12031 #include <sys/types.h>
12032 #include <sys/mman.h>
12033 #include <unistd.h>
12034
12035 #ifndef MAP_ANONYMOUS
12036 #define MAP_ANONYMOUS MAP_ANON
12037 #endif
12038
12039 int
12040 main ()
12041 {
12042 int n = MAP_ANONYMOUS;
12043   ;
12044   return 0;
12045 }
12046 _ACEOF
12047 if ac_fn_c_try_compile "$LINENO"; then :
12048   ac_cv_decl_map_anon=yes
12049 else
12050   ac_cv_decl_map_anon=no
12051 fi
12052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12053 fi
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
12055 $as_echo "$ac_cv_decl_map_anon" >&6; }
12056
12057    if test $ac_cv_decl_map_anon = no; then
12058      ac_cv_func_mmap_anon=no
12059    else
12060      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
12061 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
12062 if ${ac_cv_func_mmap_anon+:} false; then :
12063   $as_echo_n "(cached) " >&6
12064 else
12065   # Add a system to this blacklist if it has mmap() and MAP_ANON or
12066    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
12067    # doesn't give anonymous zeroed pages with the same properties listed
12068    # above for use of /dev/zero.
12069    # Systems known to be in this category are Windows, VMS, and SCO Unix.
12070    case "$host_os" in
12071      vms* | cygwin* | pe | mingw* | sco* | udk* )
12072         ac_cv_func_mmap_anon=no ;;
12073      *)
12074         ac_cv_func_mmap_anon=yes;;
12075    esac
12076 fi
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
12078 $as_echo "$ac_cv_func_mmap_anon" >&6; }
12079    fi
12080 fi
12081
12082 if test $ac_cv_func_mmap_file = yes; then
12083
12084 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
12085
12086 fi
12087 if test $ac_cv_func_mmap_dev_zero = yes; then
12088
12089 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
12090
12091 fi
12092 if test $ac_cv_func_mmap_anon = yes; then
12093
12094 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
12095
12096 fi
12097
12098
12099  if test -d $srcdir/testsuite; then
12100   TESTSUBDIR_TRUE=
12101   TESTSUBDIR_FALSE='#'
12102 else
12103   TESTSUBDIR_TRUE='#'
12104   TESTSUBDIR_FALSE=
12105 fi
12106
12107
12108 TARGETDIR="unknown"
12109 case "$host" in
12110   alpha*-*-*)
12111         TARGET=ALPHA; TARGETDIR=alpha;
12112         # Support 128-bit long double, changeable via command-line switch.
12113         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
12114         ;;
12115
12116   arm*-*-*)
12117         TARGET=ARM; TARGETDIR=arm
12118         ;;
12119
12120   amd64-*-freebsd* | amd64-*-openbsd*)
12121         TARGET=X86_64; TARGETDIR=x86
12122         ;;
12123
12124   amd64-*-freebsd*)
12125         TARGET=X86_64; TARGETDIR=x86
12126         ;;
12127
12128   avr32*-*-*)
12129         TARGET=AVR32; TARGETDIR=avr32
12130         ;;
12131
12132   bfin*)
12133         TARGET=BFIN; TARGETDIR=bfin
12134         ;;
12135
12136   cris-*-*)
12137         TARGET=LIBFFI_CRIS; TARGETDIR=cris
12138         ;;
12139
12140   frv-*-*)
12141         TARGET=FRV; TARGETDIR=frv
12142         ;;
12143
12144   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
12145         TARGET=PA_LINUX; TARGETDIR=pa
12146         ;;
12147   hppa*64-*-hpux*)
12148         TARGET=PA64_HPUX; TARGETDIR=pa
12149         ;;
12150   hppa*-*-hpux*)
12151         TARGET=PA_HPUX; TARGETDIR=pa
12152         ;;
12153
12154   i?86-*-freebsd* | i?86-*-openbsd*)
12155         TARGET=X86_FREEBSD; TARGETDIR=x86
12156         ;;
12157   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
12158         TARGET=X86_WIN32; TARGETDIR=x86
12159         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
12160         # We must also check with_cross_host to decide if this is a native
12161         # or cross-build and select where to install dlls appropriately.
12162         if test -n "$with_cross_host" &&
12163            test x"$with_cross_host" != x"no"; then
12164           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
12165         else
12166           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
12167         fi
12168         ;;
12169   i?86-*-darwin*)
12170         TARGET=X86_DARWIN; TARGETDIR=x86
12171         ;;
12172   i?86-*-solaris2.1[0-9]*)
12173         TARGET=X86_64; TARGETDIR=x86
12174         ;;
12175   i?86-*-*)
12176         TARGET=X86_64; TARGETDIR=x86
12177         ;;
12178
12179   ia64*-*-*)
12180         TARGET=IA64; TARGETDIR=ia64
12181         ;;
12182
12183   m32r*-*-*)
12184         TARGET=M32R; TARGETDIR=m32r
12185         ;;
12186
12187   m68k-*-*)
12188         TARGET=M68K; TARGETDIR=m68k
12189         ;;
12190
12191   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
12192         TARGET=MIPS; TARGETDIR=mips
12193         ;;
12194   mips*-*-linux* | mips*-*-openbsd*)
12195         # Support 128-bit long double for NewABI.
12196         HAVE_LONG_DOUBLE='defined(__mips64)'
12197         TARGET=MIPS; TARGETDIR=mips
12198         ;;
12199
12200   moxie-*-*)
12201         TARGET=MOXIE; TARGETDIR=moxie
12202         ;;
12203
12204   powerpc*-*-linux* | powerpc-*-sysv*)
12205         TARGET=POWERPC; TARGETDIR=powerpc
12206         ;;
12207   powerpc-*-amigaos*)
12208         TARGET=POWERPC; TARGETDIR=powerpc
12209         ;;
12210   powerpc-*-beos*)
12211         TARGET=POWERPC; TARGETDIR=powerpc
12212         ;;
12213   powerpc-*-darwin* | powerpc64-*-darwin*)
12214         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
12215         ;;
12216   powerpc-*-aix* | rs6000-*-aix*)
12217         TARGET=POWERPC_AIX; TARGETDIR=powerpc
12218         ;;
12219   powerpc-*-freebsd* | powerpc-*-openbsd*)
12220         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
12221         ;;
12222   powerpc64-*-freebsd*)
12223         TARGET=POWERPC; TARGETDIR=powerpc
12224         ;;
12225   powerpc*-*-rtems*)
12226         TARGET=POWERPC; TARGETDIR=powerpc
12227         ;;
12228
12229   s390-*-* | s390x-*-*)
12230         TARGET=S390; TARGETDIR=s390
12231         ;;
12232
12233   sh-*-* | sh[34]*-*-*)
12234         TARGET=SH; TARGETDIR=sh
12235         ;;
12236   sh64-*-* | sh5*-*-*)
12237         TARGET=SH64; TARGETDIR=sh64
12238         ;;
12239
12240   sparc*-*-*)
12241         TARGET=SPARC; TARGETDIR=sparc
12242         ;;
12243
12244   tile*-*)
12245         TARGET=TILE; TARGETDIR=tile
12246         ;;
12247
12248   x86_64-*-darwin*)
12249         TARGET=X86_DARWIN; TARGETDIR=x86
12250         ;;
12251
12252   x86_64-*-cygwin* | x86_64-*-mingw*)
12253         TARGET=X86_WIN64; TARGETDIR=x86
12254         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
12255         # We must also check with_cross_host to decide if this is a native
12256         # or cross-build and select where to install dlls appropriately.
12257         if test -n "$with_cross_host" &&
12258            test x"$with_cross_host" != x"no"; then
12259           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
12260         else
12261           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
12262         fi
12263         ;;
12264
12265   x86_64-*-*)
12266         TARGET=X86_64; TARGETDIR=x86
12267         ;;
12268 esac
12269
12270
12271
12272
12273 if test $TARGETDIR = unknown; then
12274   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
12275 fi
12276
12277  if test x$TARGET = xMIPS; then
12278   MIPS_TRUE=
12279   MIPS_FALSE='#'
12280 else
12281   MIPS_TRUE='#'
12282   MIPS_FALSE=
12283 fi
12284
12285  if test x$TARGET = xBFIN; then
12286   BFIN_TRUE=
12287   BFIN_FALSE='#'
12288 else
12289   BFIN_TRUE='#'
12290   BFIN_FALSE=
12291 fi
12292
12293  if test x$TARGET = xSPARC; then
12294   SPARC_TRUE=
12295   SPARC_FALSE='#'
12296 else
12297   SPARC_TRUE='#'
12298   SPARC_FALSE=
12299 fi
12300
12301  if test x$TARGET = xX86; then
12302   X86_TRUE=
12303   X86_FALSE='#'
12304 else
12305   X86_TRUE='#'
12306   X86_FALSE=
12307 fi
12308
12309  if test x$TARGET = xX86_FREEBSD; then
12310   X86_FREEBSD_TRUE=
12311   X86_FREEBSD_FALSE='#'
12312 else
12313   X86_FREEBSD_TRUE='#'
12314   X86_FREEBSD_FALSE=
12315 fi
12316
12317  if test x$TARGET = xX86_WIN32; then
12318   X86_WIN32_TRUE=
12319   X86_WIN32_FALSE='#'
12320 else
12321   X86_WIN32_TRUE='#'
12322   X86_WIN32_FALSE=
12323 fi
12324
12325  if test x$TARGET = xX86_WIN64; then
12326   X86_WIN64_TRUE=
12327   X86_WIN64_FALSE='#'
12328 else
12329   X86_WIN64_TRUE='#'
12330   X86_WIN64_FALSE=
12331 fi
12332
12333  if test x$TARGET = xX86_DARWIN; then
12334   X86_DARWIN_TRUE=
12335   X86_DARWIN_FALSE='#'
12336 else
12337   X86_DARWIN_TRUE='#'
12338   X86_DARWIN_FALSE=
12339 fi
12340
12341  if test x$TARGET = xALPHA; then
12342   ALPHA_TRUE=
12343   ALPHA_FALSE='#'
12344 else
12345   ALPHA_TRUE='#'
12346   ALPHA_FALSE=
12347 fi
12348
12349  if test x$TARGET = xIA64; then
12350   IA64_TRUE=
12351   IA64_FALSE='#'
12352 else
12353   IA64_TRUE='#'
12354   IA64_FALSE=
12355 fi
12356
12357  if test x$TARGET = xM32R; then
12358   M32R_TRUE=
12359   M32R_FALSE='#'
12360 else
12361   M32R_TRUE='#'
12362   M32R_FALSE=
12363 fi
12364
12365  if test x$TARGET = xM68K; then
12366   M68K_TRUE=
12367   M68K_FALSE='#'
12368 else
12369   M68K_TRUE='#'
12370   M68K_FALSE=
12371 fi
12372
12373  if test x$TARGET = xMOXIE; then
12374   MOXIE_TRUE=
12375   MOXIE_FALSE='#'
12376 else
12377   MOXIE_TRUE='#'
12378   MOXIE_FALSE=
12379 fi
12380
12381  if test x$TARGET = xPOWERPC; then
12382   POWERPC_TRUE=
12383   POWERPC_FALSE='#'
12384 else
12385   POWERPC_TRUE='#'
12386   POWERPC_FALSE=
12387 fi
12388
12389  if test x$TARGET = xPOWERPC_AIX; then
12390   POWERPC_AIX_TRUE=
12391   POWERPC_AIX_FALSE='#'
12392 else
12393   POWERPC_AIX_TRUE='#'
12394   POWERPC_AIX_FALSE=
12395 fi
12396
12397  if test x$TARGET = xPOWERPC_DARWIN; then
12398   POWERPC_DARWIN_TRUE=
12399   POWERPC_DARWIN_FALSE='#'
12400 else
12401   POWERPC_DARWIN_TRUE='#'
12402   POWERPC_DARWIN_FALSE=
12403 fi
12404
12405  if test x$TARGET = xPOWERPC_FREEBSD; then
12406   POWERPC_FREEBSD_TRUE=
12407   POWERPC_FREEBSD_FALSE='#'
12408 else
12409   POWERPC_FREEBSD_TRUE='#'
12410   POWERPC_FREEBSD_FALSE=
12411 fi
12412
12413  if test x$TARGET = xARM; then
12414   ARM_TRUE=
12415   ARM_FALSE='#'
12416 else
12417   ARM_TRUE='#'
12418   ARM_FALSE=
12419 fi
12420
12421  if test x$TARGET = xAVR32; then
12422   AVR32_TRUE=
12423   AVR32_FALSE='#'
12424 else
12425   AVR32_TRUE='#'
12426   AVR32_FALSE=
12427 fi
12428
12429  if test x$TARGET = xLIBFFI_CRIS; then
12430   LIBFFI_CRIS_TRUE=
12431   LIBFFI_CRIS_FALSE='#'
12432 else
12433   LIBFFI_CRIS_TRUE='#'
12434   LIBFFI_CRIS_FALSE=
12435 fi
12436
12437  if test x$TARGET = xFRV; then
12438   FRV_TRUE=
12439   FRV_FALSE='#'
12440 else
12441   FRV_TRUE='#'
12442   FRV_FALSE=
12443 fi
12444
12445  if test x$TARGET = xS390; then
12446   S390_TRUE=
12447   S390_FALSE='#'
12448 else
12449   S390_TRUE='#'
12450   S390_FALSE=
12451 fi
12452
12453  if test x$TARGET = xX86_64; then
12454   X86_64_TRUE=
12455   X86_64_FALSE='#'
12456 else
12457   X86_64_TRUE='#'
12458   X86_64_FALSE=
12459 fi
12460
12461  if test x$TARGET = xSH; then
12462   SH_TRUE=
12463   SH_FALSE='#'
12464 else
12465   SH_TRUE='#'
12466   SH_FALSE=
12467 fi
12468
12469  if test x$TARGET = xSH64; then
12470   SH64_TRUE=
12471   SH64_FALSE='#'
12472 else
12473   SH64_TRUE='#'
12474   SH64_FALSE=
12475 fi
12476
12477  if test x$TARGET = xPA_LINUX; then
12478   PA_LINUX_TRUE=
12479   PA_LINUX_FALSE='#'
12480 else
12481   PA_LINUX_TRUE='#'
12482   PA_LINUX_FALSE=
12483 fi
12484
12485  if test x$TARGET = xPA_HPUX; then
12486   PA_HPUX_TRUE=
12487   PA_HPUX_FALSE='#'
12488 else
12489   PA_HPUX_TRUE='#'
12490   PA_HPUX_FALSE=
12491 fi
12492
12493  if test x$TARGET = xPA64_HPUX; then
12494   PA64_HPUX_TRUE=
12495   PA64_HPUX_FALSE='#'
12496 else
12497   PA64_HPUX_TRUE='#'
12498   PA64_HPUX_FALSE=
12499 fi
12500
12501  if test x$TARGET = xTILE; then
12502   TILE_TRUE=
12503   TILE_FALSE='#'
12504 else
12505   TILE_TRUE='#'
12506   TILE_FALSE=
12507 fi
12508
12509
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12511 $as_echo_n "checking for ANSI C header files... " >&6; }
12512 if ${ac_cv_header_stdc+:} false; then :
12513   $as_echo_n "(cached) " >&6
12514 else
12515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h.  */
12517 #include <stdlib.h>
12518 #include <stdarg.h>
12519 #include <string.h>
12520 #include <float.h>
12521
12522 int
12523 main ()
12524 {
12525
12526   ;
12527   return 0;
12528 }
12529 _ACEOF
12530 if ac_fn_c_try_compile "$LINENO"; then :
12531   ac_cv_header_stdc=yes
12532 else
12533   ac_cv_header_stdc=no
12534 fi
12535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12536
12537 if test $ac_cv_header_stdc = yes; then
12538   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h.  */
12541 #include <string.h>
12542
12543 _ACEOF
12544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12545   $EGREP "memchr" >/dev/null 2>&1; then :
12546
12547 else
12548   ac_cv_header_stdc=no
12549 fi
12550 rm -f conftest*
12551
12552 fi
12553
12554 if test $ac_cv_header_stdc = yes; then
12555   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h.  */
12558 #include <stdlib.h>
12559
12560 _ACEOF
12561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12562   $EGREP "free" >/dev/null 2>&1; then :
12563
12564 else
12565   ac_cv_header_stdc=no
12566 fi
12567 rm -f conftest*
12568
12569 fi
12570
12571 if test $ac_cv_header_stdc = yes; then
12572   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12573   if test "$cross_compiling" = yes; then :
12574   :
12575 else
12576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h.  */
12578 #include <ctype.h>
12579 #include <stdlib.h>
12580 #if ((' ' & 0x0FF) == 0x020)
12581 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12582 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12583 #else
12584 # define ISLOWER(c) \
12585                    (('a' <= (c) && (c) <= 'i') \
12586                      || ('j' <= (c) && (c) <= 'r') \
12587                      || ('s' <= (c) && (c) <= 'z'))
12588 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12589 #endif
12590
12591 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12592 int
12593 main ()
12594 {
12595   int i;
12596   for (i = 0; i < 256; i++)
12597     if (XOR (islower (i), ISLOWER (i))
12598         || toupper (i) != TOUPPER (i))
12599       return 2;
12600   return 0;
12601 }
12602 _ACEOF
12603 if ac_fn_c_try_run "$LINENO"; then :
12604
12605 else
12606   ac_cv_header_stdc=no
12607 fi
12608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12609   conftest.$ac_objext conftest.beam conftest.$ac_ext
12610 fi
12611
12612 fi
12613 fi
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12615 $as_echo "$ac_cv_header_stdc" >&6; }
12616 if test $ac_cv_header_stdc = yes; then
12617
12618 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12619
12620 fi
12621
12622 for ac_func in memcpy
12623 do :
12624   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
12625 if test "x$ac_cv_func_memcpy" = xyes; then :
12626   cat >>confdefs.h <<_ACEOF
12627 #define HAVE_MEMCPY 1
12628 _ACEOF
12629
12630 fi
12631 done
12632
12633 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12634 if test "x$ac_cv_type_size_t" = xyes; then :
12635
12636 else
12637
12638 cat >>confdefs.h <<_ACEOF
12639 #define size_t unsigned int
12640 _ACEOF
12641
12642 fi
12643
12644 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12645 # for constant arguments.  Useless!
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12647 $as_echo_n "checking for working alloca.h... " >&6; }
12648 if ${ac_cv_working_alloca_h+:} false; then :
12649   $as_echo_n "(cached) " >&6
12650 else
12651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h.  */
12653 #include <alloca.h>
12654 int
12655 main ()
12656 {
12657 char *p = (char *) alloca (2 * sizeof (int));
12658                           if (p) return 0;
12659   ;
12660   return 0;
12661 }
12662 _ACEOF
12663 if ac_fn_c_try_link "$LINENO"; then :
12664   ac_cv_working_alloca_h=yes
12665 else
12666   ac_cv_working_alloca_h=no
12667 fi
12668 rm -f core conftest.err conftest.$ac_objext \
12669     conftest$ac_exeext conftest.$ac_ext
12670 fi
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12672 $as_echo "$ac_cv_working_alloca_h" >&6; }
12673 if test $ac_cv_working_alloca_h = yes; then
12674
12675 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12676
12677 fi
12678
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12680 $as_echo_n "checking for alloca... " >&6; }
12681 if ${ac_cv_func_alloca_works+:} false; then :
12682   $as_echo_n "(cached) " >&6
12683 else
12684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h.  */
12686 #ifdef __GNUC__
12687 # define alloca __builtin_alloca
12688 #else
12689 # ifdef _MSC_VER
12690 #  include <malloc.h>
12691 #  define alloca _alloca
12692 # else
12693 #  ifdef HAVE_ALLOCA_H
12694 #   include <alloca.h>
12695 #  else
12696 #   ifdef _AIX
12697  #pragma alloca
12698 #   else
12699 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12700 void *alloca (size_t);
12701 #    endif
12702 #   endif
12703 #  endif
12704 # endif
12705 #endif
12706
12707 int
12708 main ()
12709 {
12710 char *p = (char *) alloca (1);
12711                                     if (p) return 0;
12712   ;
12713   return 0;
12714 }
12715 _ACEOF
12716 if ac_fn_c_try_link "$LINENO"; then :
12717   ac_cv_func_alloca_works=yes
12718 else
12719   ac_cv_func_alloca_works=no
12720 fi
12721 rm -f core conftest.err conftest.$ac_objext \
12722     conftest$ac_exeext conftest.$ac_ext
12723 fi
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12725 $as_echo "$ac_cv_func_alloca_works" >&6; }
12726
12727 if test $ac_cv_func_alloca_works = yes; then
12728
12729 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12730
12731 else
12732   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12733 # that cause trouble.  Some versions do not even contain alloca or
12734 # contain a buggy version.  If you still want to use their alloca,
12735 # use ar to extract alloca.o from them instead of compiling alloca.c.
12736
12737 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12738
12739 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12740
12741
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12743 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12744 if ${ac_cv_os_cray+:} false; then :
12745   $as_echo_n "(cached) " >&6
12746 else
12747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h.  */
12749 #if defined CRAY && ! defined CRAY2
12750 webecray
12751 #else
12752 wenotbecray
12753 #endif
12754
12755 _ACEOF
12756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12757   $EGREP "webecray" >/dev/null 2>&1; then :
12758   ac_cv_os_cray=yes
12759 else
12760   ac_cv_os_cray=no
12761 fi
12762 rm -f conftest*
12763
12764 fi
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12766 $as_echo "$ac_cv_os_cray" >&6; }
12767 if test $ac_cv_os_cray = yes; then
12768   for ac_func in _getb67 GETB67 getb67; do
12769     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12770 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12771 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12772
12773 cat >>confdefs.h <<_ACEOF
12774 #define CRAY_STACKSEG_END $ac_func
12775 _ACEOF
12776
12777     break
12778 fi
12779
12780   done
12781 fi
12782
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12784 $as_echo_n "checking stack direction for C alloca... " >&6; }
12785 if ${ac_cv_c_stack_direction+:} false; then :
12786   $as_echo_n "(cached) " >&6
12787 else
12788   if test "$cross_compiling" = yes; then :
12789   ac_cv_c_stack_direction=0
12790 else
12791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h.  */
12793 $ac_includes_default
12794 int
12795 find_stack_direction ()
12796 {
12797   static char *addr = 0;
12798   auto char dummy;
12799   if (addr == 0)
12800     {
12801       addr = &dummy;
12802       return find_stack_direction ();
12803     }
12804   else
12805     return (&dummy > addr) ? 1 : -1;
12806 }
12807
12808 int
12809 main ()
12810 {
12811   return find_stack_direction () < 0;
12812 }
12813 _ACEOF
12814 if ac_fn_c_try_run "$LINENO"; then :
12815   ac_cv_c_stack_direction=1
12816 else
12817   ac_cv_c_stack_direction=-1
12818 fi
12819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12820   conftest.$ac_objext conftest.beam conftest.$ac_ext
12821 fi
12822
12823 fi
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12825 $as_echo "$ac_cv_c_stack_direction" >&6; }
12826 cat >>confdefs.h <<_ACEOF
12827 #define STACK_DIRECTION $ac_cv_c_stack_direction
12828 _ACEOF
12829
12830
12831 fi
12832
12833
12834 # The cast to long int works around a bug in the HP C Compiler
12835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12837 # This bug is HP SR number 8606223364.
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12839 $as_echo_n "checking size of double... " >&6; }
12840 if ${ac_cv_sizeof_double+:} false; then :
12841   $as_echo_n "(cached) " >&6
12842 else
12843   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
12844
12845 else
12846   if test "$ac_cv_type_double" = yes; then
12847      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12849 as_fn_error 77 "cannot compute sizeof (double)
12850 See \`config.log' for more details" "$LINENO" 5; }
12851    else
12852      ac_cv_sizeof_double=0
12853    fi
12854 fi
12855
12856 fi
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12858 $as_echo "$ac_cv_sizeof_double" >&6; }
12859
12860
12861
12862 cat >>confdefs.h <<_ACEOF
12863 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12864 _ACEOF
12865
12866
12867 # The cast to long int works around a bug in the HP C Compiler
12868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12869 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12870 # This bug is HP SR number 8606223364.
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12872 $as_echo_n "checking size of long double... " >&6; }
12873 if ${ac_cv_sizeof_long_double+:} false; then :
12874   $as_echo_n "(cached) " >&6
12875 else
12876   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
12877
12878 else
12879   if test "$ac_cv_type_long_double" = yes; then
12880      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12882 as_fn_error 77 "cannot compute sizeof (long double)
12883 See \`config.log' for more details" "$LINENO" 5; }
12884    else
12885      ac_cv_sizeof_long_double=0
12886    fi
12887 fi
12888
12889 fi
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12891 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12892
12893
12894
12895 cat >>confdefs.h <<_ACEOF
12896 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12897 _ACEOF
12898
12899
12900
12901 # Also AC_SUBST this variable for ffi.h.
12902 if test -z "$HAVE_LONG_DOUBLE"; then
12903   HAVE_LONG_DOUBLE=0
12904   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12905     if test $ac_cv_sizeof_long_double != 0; then
12906       HAVE_LONG_DOUBLE=1
12907
12908 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12909
12910     fi
12911   fi
12912 fi
12913
12914
12915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12916 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12917 if ${ac_cv_c_bigendian+:} false; then :
12918   $as_echo_n "(cached) " >&6
12919 else
12920   ac_cv_c_bigendian=unknown
12921     # See if we're dealing with a universal compiler.
12922     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923 /* end confdefs.h.  */
12924 #ifndef __APPLE_CC__
12925                not a universal capable compiler
12926              #endif
12927              typedef int dummy;
12928
12929 _ACEOF
12930 if ac_fn_c_try_compile "$LINENO"; then :
12931
12932         # Check for potential -arch flags.  It is not universal unless
12933         # there are at least two -arch flags with different values.
12934         ac_arch=
12935         ac_prev=
12936         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12937          if test -n "$ac_prev"; then
12938            case $ac_word in
12939              i?86 | x86_64 | ppc | ppc64)
12940                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12941                  ac_arch=$ac_word
12942                else
12943                  ac_cv_c_bigendian=universal
12944                  break
12945                fi
12946                ;;
12947            esac
12948            ac_prev=
12949          elif test "x$ac_word" = "x-arch"; then
12950            ac_prev=arch
12951          fi
12952        done
12953 fi
12954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12955     if test $ac_cv_c_bigendian = unknown; then
12956       # See if sys/param.h defines the BYTE_ORDER macro.
12957       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h.  */
12959 #include <sys/types.h>
12960              #include <sys/param.h>
12961
12962 int
12963 main ()
12964 {
12965 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12966                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12967                      && LITTLE_ENDIAN)
12968               bogus endian macros
12969              #endif
12970
12971   ;
12972   return 0;
12973 }
12974 _ACEOF
12975 if ac_fn_c_try_compile "$LINENO"; then :
12976   # It does; now see whether it defined to BIG_ENDIAN or not.
12977          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h.  */
12979 #include <sys/types.h>
12980                 #include <sys/param.h>
12981
12982 int
12983 main ()
12984 {
12985 #if BYTE_ORDER != BIG_ENDIAN
12986                  not big endian
12987                 #endif
12988
12989   ;
12990   return 0;
12991 }
12992 _ACEOF
12993 if ac_fn_c_try_compile "$LINENO"; then :
12994   ac_cv_c_bigendian=yes
12995 else
12996   ac_cv_c_bigendian=no
12997 fi
12998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12999 fi
13000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13001     fi
13002     if test $ac_cv_c_bigendian = unknown; then
13003       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13004       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h.  */
13006 #include <limits.h>
13007
13008 int
13009 main ()
13010 {
13011 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13012               bogus endian macros
13013              #endif
13014
13015   ;
13016   return 0;
13017 }
13018 _ACEOF
13019 if ac_fn_c_try_compile "$LINENO"; then :
13020   # It does; now see whether it defined to _BIG_ENDIAN or not.
13021          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h.  */
13023 #include <limits.h>
13024
13025 int
13026 main ()
13027 {
13028 #ifndef _BIG_ENDIAN
13029                  not big endian
13030                 #endif
13031
13032   ;
13033   return 0;
13034 }
13035 _ACEOF
13036 if ac_fn_c_try_compile "$LINENO"; then :
13037   ac_cv_c_bigendian=yes
13038 else
13039   ac_cv_c_bigendian=no
13040 fi
13041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13042 fi
13043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13044     fi
13045     if test $ac_cv_c_bigendian = unknown; then
13046       # Compile a test program.
13047       if test "$cross_compiling" = yes; then :
13048   # Try to guess by grepping values from an object file.
13049          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h.  */
13051 short int ascii_mm[] =
13052                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13053                 short int ascii_ii[] =
13054                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13055                 int use_ascii (int i) {
13056                   return ascii_mm[i] + ascii_ii[i];
13057                 }
13058                 short int ebcdic_ii[] =
13059                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13060                 short int ebcdic_mm[] =
13061                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13062                 int use_ebcdic (int i) {
13063                   return ebcdic_mm[i] + ebcdic_ii[i];
13064                 }
13065                 extern int foo;
13066
13067 int
13068 main ()
13069 {
13070 return use_ascii (foo) == use_ebcdic (foo);
13071   ;
13072   return 0;
13073 }
13074 _ACEOF
13075 if ac_fn_c_try_compile "$LINENO"; then :
13076   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13077               ac_cv_c_bigendian=yes
13078             fi
13079             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13080               if test "$ac_cv_c_bigendian" = unknown; then
13081                 ac_cv_c_bigendian=no
13082               else
13083                 # finding both strings is unlikely to happen, but who knows?
13084                 ac_cv_c_bigendian=unknown
13085               fi
13086             fi
13087 fi
13088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089 else
13090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h.  */
13092 $ac_includes_default
13093 int
13094 main ()
13095 {
13096
13097              /* Are we little or big endian?  From Harbison&Steele.  */
13098              union
13099              {
13100                long int l;
13101                char c[sizeof (long int)];
13102              } u;
13103              u.l = 1;
13104              return u.c[sizeof (long int) - 1] == 1;
13105
13106   ;
13107   return 0;
13108 }
13109 _ACEOF
13110 if ac_fn_c_try_run "$LINENO"; then :
13111   ac_cv_c_bigendian=no
13112 else
13113   ac_cv_c_bigendian=yes
13114 fi
13115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13116   conftest.$ac_objext conftest.beam conftest.$ac_ext
13117 fi
13118
13119     fi
13120 fi
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13122 $as_echo "$ac_cv_c_bigendian" >&6; }
13123  case $ac_cv_c_bigendian in #(
13124    yes)
13125      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13126 ;; #(
13127    no)
13128       ;; #(
13129    universal)
13130
13131 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13132
13133      ;; #(
13134    *)
13135      as_fn_error $? "unknown endianness
13136  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13137  esac
13138
13139
13140 GCC_AS_CFI_PSEUDO_OP
13141
13142 if test x$TARGET = xSPARC; then
13143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
13144 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
13145 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
13146   $as_echo_n "(cached) " >&6
13147 else
13148
13149         save_CFLAGS="$CFLAGS"
13150         save_LDFLAGS="$LDFLAGS"
13151         CFLAGS="$CFLAGS -fpic"
13152         LDFLAGS="$LDFLAGS -shared"
13153         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h.  */
13155 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
13156 int
13157 main ()
13158 {
13159
13160   ;
13161   return 0;
13162 }
13163 _ACEOF
13164 if ac_fn_c_try_link "$LINENO"; then :
13165   libffi_cv_as_sparc_ua_pcrel=yes
13166 else
13167   libffi_cv_as_sparc_ua_pcrel=no
13168 fi
13169 rm -f core conftest.err conftest.$ac_objext \
13170     conftest$ac_exeext conftest.$ac_ext
13171         CFLAGS="$save_CFLAGS"
13172         LDFLAGS="$save_LDFLAGS"
13173 fi
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
13175 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
13176     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
13177
13178 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
13179
13180     fi
13181
13182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
13183 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
13184 if ${libffi_cv_as_register_pseudo_op+:} false; then :
13185   $as_echo_n "(cached) " >&6
13186 else
13187
13188        libffi_cv_as_register_pseudo_op=unknown
13189        # Check if we have .register
13190        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h.  */
13192 asm (".register %g2, #scratch");
13193 int
13194 main ()
13195 {
13196
13197   ;
13198   return 0;
13199 }
13200 _ACEOF
13201 if ac_fn_c_try_compile "$LINENO"; then :
13202   libffi_cv_as_register_pseudo_op=yes
13203 else
13204   libffi_cv_as_register_pseudo_op=no
13205 fi
13206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13207
13208 fi
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
13210 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
13211     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
13212
13213 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
13214
13215     fi
13216 fi
13217
13218 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
13219     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
13220 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
13221 if ${libffi_cv_as_x86_pcrel+:} false; then :
13222   $as_echo_n "(cached) " >&6
13223 else
13224
13225         libffi_cv_as_x86_pcrel=yes
13226         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
13227         if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
13228             libffi_cv_as_x86_pcrel=no
13229         fi
13230
13231 fi
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
13233 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
13234     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
13235
13236 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
13237
13238     fi
13239
13240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
13241 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
13242 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
13243   $as_echo_n "(cached) " >&6
13244 else
13245
13246        libffi_cv_as_ascii_pseudo_op=unknown
13247        # Check if we have .ascii
13248        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h.  */
13250 asm (".ascii \\"string\\"");
13251 int
13252 main ()
13253 {
13254
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
13259 if ac_fn_c_try_compile "$LINENO"; then :
13260   libffi_cv_as_ascii_pseudo_op=yes
13261 else
13262   libffi_cv_as_ascii_pseudo_op=no
13263 fi
13264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13265
13266 fi
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
13268 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
13269     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
13270
13271 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
13272
13273     fi
13274
13275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
13276 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
13277 if ${libffi_cv_as_string_pseudo_op+:} false; then :
13278   $as_echo_n "(cached) " >&6
13279 else
13280
13281        libffi_cv_as_string_pseudo_op=unknown
13282        # Check if we have .string
13283        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h.  */
13285 asm (".string \\"string\\"");
13286 int
13287 main ()
13288 {
13289
13290   ;
13291   return 0;
13292 }
13293 _ACEOF
13294 if ac_fn_c_try_compile "$LINENO"; then :
13295   libffi_cv_as_string_pseudo_op=yes
13296 else
13297   libffi_cv_as_string_pseudo_op=no
13298 fi
13299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13300
13301 fi
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
13303 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
13304     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
13305
13306 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
13307
13308     fi
13309 fi
13310
13311 if test x$TARGET = xX86_WIN64; then
13312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
13313 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
13314 if ${lt_cv_sys_symbol_underscore+:} false; then :
13315   $as_echo_n "(cached) " >&6
13316 else
13317   lt_cv_sys_symbol_underscore=no
13318   cat > conftest.$ac_ext <<_LT_EOF
13319 void nm_test_func(){}
13320 int main(){nm_test_func;return 0;}
13321 _LT_EOF
13322   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13323   (eval $ac_compile) 2>&5
13324   ac_status=$?
13325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13326   test $ac_status = 0; }; then
13327     # Now try to grab the symbols.
13328     ac_nlist=conftest.nm
13329     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
13330   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
13331   ac_status=$?
13332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13333   test $ac_status = 0; } && test -s "$ac_nlist"; then
13334       # See whether the symbols have a leading underscore.
13335       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
13336         lt_cv_sys_symbol_underscore=yes
13337       else
13338         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
13339           :
13340         else
13341           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
13342         fi
13343       fi
13344     else
13345       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
13346     fi
13347   else
13348     echo "configure: failed program was:" >&5
13349     cat conftest.c >&5
13350   fi
13351   rm -rf conftest*
13352
13353 fi
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
13355 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
13356   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
13357
13358
13359     if test "x$sys_symbol_underscore" = xyes; then
13360
13361 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
13362
13363     fi
13364 fi
13365
13366
13367 FFI_EXEC_TRAMPOLINE_TABLE=0
13368 case "$target" in
13369      *arm*-apple-darwin*)
13370        FFI_EXEC_TRAMPOLINE_TABLE=1
13371
13372 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
13373
13374      ;;
13375      *-apple-darwin1[10]* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
13376
13377 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
13378
13379      ;;
13380 esac
13381  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
13382   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
13383   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
13384 else
13385   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
13386   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
13387 fi
13388
13389
13390
13391 if test x$TARGET = xX86_64; then
13392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
13393 $as_echo_n "checking assembler supports unwind section type... " >&6; }
13394 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
13395   $as_echo_n "(cached) " >&6
13396 else
13397
13398         libffi_cv_as_x86_64_unwind_section_type=yes
13399         echo '.section .eh_frame,"a",@unwind' > conftest.s
13400         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
13401             libffi_cv_as_x86_64_unwind_section_type=no
13402         fi
13403
13404 fi
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
13406 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
13407     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
13408
13409 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
13410
13411     fi
13412 fi
13413
13414 if test "x$GCC" = "xyes"; then
13415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
13416 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
13417 if ${libffi_cv_ro_eh_frame+:} false; then :
13418   $as_echo_n "(cached) " >&6
13419 else
13420
13421         libffi_cv_ro_eh_frame=no
13422         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
13423         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
13424             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
13425                 libffi_cv_ro_eh_frame=yes
13426             elif grep '.section.*eh_frame.*#alloc' conftest.c \
13427                  | grep -v '#write' > /dev/null; then
13428                 libffi_cv_ro_eh_frame=yes
13429             fi
13430         fi
13431         rm -f conftest.*
13432
13433 fi
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
13435 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
13436   if test "x$libffi_cv_ro_eh_frame" = xyes; then
13437
13438 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
13439
13440
13441 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
13442
13443   else
13444
13445 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
13446
13447   fi
13448
13449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
13450 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
13451 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
13452   $as_echo_n "(cached) " >&6
13453 else
13454
13455         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
13456         libffi_cv_hidden_visibility_attribute=no
13457         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
13458   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13459   (eval $ac_try) 2>&5
13460   ac_status=$?
13461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13462   test $ac_status = 0; }; }; then
13463             if grep '\.hidden.*foo' conftest.s >/dev/null; then
13464                 libffi_cv_hidden_visibility_attribute=yes
13465             fi
13466         fi
13467         rm -f conftest.*
13468
13469 fi
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
13471 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
13472   if test $libffi_cv_hidden_visibility_attribute = yes; then
13473
13474 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
13475
13476   fi
13477 fi
13478
13479
13480
13481
13482
13483
13484
13485
13486 # Check whether --enable-debug was given.
13487 if test "${enable_debug+set}" = set; then :
13488   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
13489
13490 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
13491
13492   fi
13493 fi
13494
13495  if test "$enable_debug" = "yes"; then
13496   FFI_DEBUG_TRUE=
13497   FFI_DEBUG_FALSE='#'
13498 else
13499   FFI_DEBUG_TRUE='#'
13500   FFI_DEBUG_FALSE=
13501 fi
13502
13503
13504 # Check whether --enable-structs was given.
13505 if test "${enable_structs+set}" = set; then :
13506   enableval=$enable_structs; if test "$enable_structs" = "no"; then
13507
13508 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
13509
13510   fi
13511 fi
13512
13513
13514 # Check whether --enable-raw-api was given.
13515 if test "${enable_raw_api+set}" = set; then :
13516   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
13517
13518 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
13519
13520   fi
13521 fi
13522
13523
13524 # Check whether --enable-purify-safety was given.
13525 if test "${enable_purify_safety+set}" = set; then :
13526   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
13527
13528 $as_echo "#define USING_PURIFY 1" >>confdefs.h
13529
13530   fi
13531 fi
13532
13533
13534 # These variables are only ever used when we cross-build to X86_WIN32.
13535 # And we only support this with GCC, so...
13536 if test x"$GCC" != x"no"; then
13537   if test -n "$with_cross_host" &&
13538      test x"$with_cross_host" != x"no"; then
13539     toolexecdir='$(exec_prefix)/$(target_alias)'
13540     toolexeclibdir='$(toolexecdir)/lib'
13541   else
13542     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
13543     toolexeclibdir='$(libdir)'
13544   fi
13545   multi_os_directory=`$CC -print-multi-os-directory`
13546   case $multi_os_directory in
13547     .) ;; # Avoid trailing /.
13548     *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
13549   esac
13550
13551
13552 fi
13553
13554 if test "${multilib}" = "yes"; then
13555   multilib_arg="--enable-multilib"
13556 else
13557   multilib_arg=
13558 fi
13559
13560 ac_config_commands="$ac_config_commands include"
13561
13562 ac_config_commands="$ac_config_commands src"
13563
13564
13565 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
13566
13567
13568 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
13569
13570
13571 cat >confcache <<\_ACEOF
13572 # This file is a shell script that caches the results of configure
13573 # tests run on this system so they can be shared between configure
13574 # scripts and configure runs, see configure's option --config-cache.
13575 # It is not useful on other systems.  If it contains results you don't
13576 # want to keep, you may remove or edit it.
13577 #
13578 # config.status only pays attention to the cache file if you give it
13579 # the --recheck option to rerun configure.
13580 #
13581 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13582 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13583 # following values.
13584
13585 _ACEOF
13586
13587 # The following way of writing the cache mishandles newlines in values,
13588 # but we know of no workaround that is simple, portable, and efficient.
13589 # So, we kill variables containing newlines.
13590 # Ultrix sh set writes to stderr and can't be redirected directly,
13591 # and sets the high bit in the cache file unless we assign to the vars.
13592 (
13593   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13594     eval ac_val=\$$ac_var
13595     case $ac_val in #(
13596     *${as_nl}*)
13597       case $ac_var in #(
13598       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13599 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13600       esac
13601       case $ac_var in #(
13602       _ | IFS | as_nl) ;; #(
13603       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13604       *) { eval $ac_var=; unset $ac_var;} ;;
13605       esac ;;
13606     esac
13607   done
13608
13609   (set) 2>&1 |
13610     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13611     *${as_nl}ac_space=\ *)
13612       # `set' does not quote correctly, so add quotes: double-quote
13613       # substitution turns \\\\ into \\, and sed turns \\ into \.
13614       sed -n \
13615         "s/'/'\\\\''/g;
13616           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13617       ;; #(
13618     *)
13619       # `set' quotes correctly as required by POSIX, so do not add quotes.
13620       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13621       ;;
13622     esac |
13623     sort
13624 ) |
13625   sed '
13626      /^ac_cv_env_/b end
13627      t clear
13628      :clear
13629      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13630      t end
13631      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13632      :end' >>confcache
13633 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13634   if test -w "$cache_file"; then
13635     if test "x$cache_file" != "x/dev/null"; then
13636       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13637 $as_echo "$as_me: updating cache $cache_file" >&6;}
13638       if test ! -f "$cache_file" || test -h "$cache_file"; then
13639         cat confcache >"$cache_file"
13640       else
13641         case $cache_file in #(
13642         */* | ?:*)
13643           mv -f confcache "$cache_file"$$ &&
13644           mv -f "$cache_file"$$ "$cache_file" ;; #(
13645         *)
13646           mv -f confcache "$cache_file" ;;
13647         esac
13648       fi
13649     fi
13650   else
13651     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13652 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13653   fi
13654 fi
13655 rm -f confcache
13656
13657 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13658 # Let make expand exec_prefix.
13659 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13660
13661 DEFS=-DHAVE_CONFIG_H
13662
13663 ac_libobjs=
13664 ac_ltlibobjs=
13665 U=
13666 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13667   # 1. Remove the extension, and $U if already installed.
13668   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13669   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13670   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13671   #    will be set to the directory where LIBOBJS objects are built.
13672   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13673   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13674 done
13675 LIBOBJS=$ac_libobjs
13676
13677 LTLIBOBJS=$ac_ltlibobjs
13678
13679
13680  if test -n "$EXEEXT"; then
13681   am__EXEEXT_TRUE=
13682   am__EXEEXT_FALSE='#'
13683 else
13684   am__EXEEXT_TRUE='#'
13685   am__EXEEXT_FALSE=
13686 fi
13687
13688 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13689   as_fn_error $? "conditional \"AMDEP\" was never defined.
13690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13691 fi
13692 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13693   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13695 fi
13696 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13697   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
13698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13699 fi
13700 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13701   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13703 fi
13704 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
13705   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
13706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13707 fi
13708 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
13709   as_fn_error $? "conditional \"MIPS\" was never defined.
13710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13711 fi
13712 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
13713   as_fn_error $? "conditional \"BFIN\" was never defined.
13714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13715 fi
13716 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
13717   as_fn_error $? "conditional \"SPARC\" was never defined.
13718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13719 fi
13720 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
13721   as_fn_error $? "conditional \"X86\" was never defined.
13722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13723 fi
13724 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
13725   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
13726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13727 fi
13728 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
13729   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
13730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13731 fi
13732 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
13733   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
13734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13735 fi
13736 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
13737   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
13738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13739 fi
13740 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
13741   as_fn_error $? "conditional \"ALPHA\" was never defined.
13742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13743 fi
13744 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
13745   as_fn_error $? "conditional \"IA64\" was never defined.
13746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13747 fi
13748 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
13749   as_fn_error $? "conditional \"M32R\" was never defined.
13750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13751 fi
13752 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
13753   as_fn_error $? "conditional \"M68K\" was never defined.
13754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13755 fi
13756 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
13757   as_fn_error $? "conditional \"MOXIE\" was never defined.
13758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13759 fi
13760 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
13761   as_fn_error $? "conditional \"POWERPC\" was never defined.
13762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13763 fi
13764 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
13765   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
13766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13767 fi
13768 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
13769   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
13770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13771 fi
13772 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
13773   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
13774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13775 fi
13776 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
13777   as_fn_error $? "conditional \"ARM\" was never defined.
13778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13779 fi
13780 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
13781   as_fn_error $? "conditional \"AVR32\" was never defined.
13782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13783 fi
13784 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
13785   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
13786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13787 fi
13788 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
13789   as_fn_error $? "conditional \"FRV\" was never defined.
13790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13791 fi
13792 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
13793   as_fn_error $? "conditional \"S390\" was never defined.
13794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13795 fi
13796 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
13797   as_fn_error $? "conditional \"X86_64\" was never defined.
13798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13799 fi
13800 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
13801   as_fn_error $? "conditional \"SH\" was never defined.
13802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13803 fi
13804 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
13805   as_fn_error $? "conditional \"SH64\" was never defined.
13806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13807 fi
13808 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
13809   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
13810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13811 fi
13812 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
13813   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
13814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13815 fi
13816 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
13817   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
13818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13819 fi
13820 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
13821   as_fn_error $? "conditional \"TILE\" was never defined.
13822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13823 fi
13824
13825 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
13826   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
13827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13828 fi
13829 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
13830   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
13831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13832 fi
13833
13834 : "${CONFIG_STATUS=./config.status}"
13835 ac_write_fail=0
13836 ac_clean_files_save=$ac_clean_files
13837 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13839 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13840 as_write_fail=0
13841 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13842 #! $SHELL
13843 # Generated by $as_me.
13844 # Run this file to recreate the current configuration.
13845 # Compiler output produced by configure, useful for debugging
13846 # configure, is in config.log if it exists.
13847
13848 debug=false
13849 ac_cs_recheck=false
13850 ac_cs_silent=false
13851
13852 SHELL=\${CONFIG_SHELL-$SHELL}
13853 export SHELL
13854 _ASEOF
13855 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13856 ## -------------------- ##
13857 ## M4sh Initialization. ##
13858 ## -------------------- ##
13859
13860 # Be more Bourne compatible
13861 DUALCASE=1; export DUALCASE # for MKS sh
13862 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13863   emulate sh
13864   NULLCMD=:
13865   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13866   # is contrary to our usage.  Disable this feature.
13867   alias -g '${1+"$@"}'='"$@"'
13868   setopt NO_GLOB_SUBST
13869 else
13870   case `(set -o) 2>/dev/null` in #(
13871   *posix*) :
13872     set -o posix ;; #(
13873   *) :
13874      ;;
13875 esac
13876 fi
13877
13878
13879 as_nl='
13880 '
13881 export as_nl
13882 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13883 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13884 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13885 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13886 # Prefer a ksh shell builtin over an external printf program on Solaris,
13887 # but without wasting forks for bash or zsh.
13888 if test -z "$BASH_VERSION$ZSH_VERSION" \
13889     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13890   as_echo='print -r --'
13891   as_echo_n='print -rn --'
13892 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13893   as_echo='printf %s\n'
13894   as_echo_n='printf %s'
13895 else
13896   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13897     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13898     as_echo_n='/usr/ucb/echo -n'
13899   else
13900     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13901     as_echo_n_body='eval
13902       arg=$1;
13903       case $arg in #(
13904       *"$as_nl"*)
13905         expr "X$arg" : "X\\(.*\\)$as_nl";
13906         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13907       esac;
13908       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13909     '
13910     export as_echo_n_body
13911     as_echo_n='sh -c $as_echo_n_body as_echo'
13912   fi
13913   export as_echo_body
13914   as_echo='sh -c $as_echo_body as_echo'
13915 fi
13916
13917 # The user is always right.
13918 if test "${PATH_SEPARATOR+set}" != set; then
13919   PATH_SEPARATOR=:
13920   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13921     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13922       PATH_SEPARATOR=';'
13923   }
13924 fi
13925
13926
13927 # IFS
13928 # We need space, tab and new line, in precisely that order.  Quoting is
13929 # there to prevent editors from complaining about space-tab.
13930 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13931 # splitting by setting IFS to empty value.)
13932 IFS=" ""        $as_nl"
13933
13934 # Find who we are.  Look in the path if we contain no directory separator.
13935 as_myself=
13936 case $0 in #((
13937   *[\\/]* ) as_myself=$0 ;;
13938   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13940 do
13941   IFS=$as_save_IFS
13942   test -z "$as_dir" && as_dir=.
13943     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13944   done
13945 IFS=$as_save_IFS
13946
13947      ;;
13948 esac
13949 # We did not find ourselves, most probably we were run as `sh COMMAND'
13950 # in which case we are not to be found in the path.
13951 if test "x$as_myself" = x; then
13952   as_myself=$0
13953 fi
13954 if test ! -f "$as_myself"; then
13955   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13956   exit 1
13957 fi
13958
13959 # Unset variables that we do not need and which cause bugs (e.g. in
13960 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13961 # suppresses any "Segmentation fault" message there.  '((' could
13962 # trigger a bug in pdksh 5.2.14.
13963 for as_var in BASH_ENV ENV MAIL MAILPATH
13964 do eval test x\${$as_var+set} = xset \
13965   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13966 done
13967 PS1='$ '
13968 PS2='> '
13969 PS4='+ '
13970
13971 # NLS nuisances.
13972 LC_ALL=C
13973 export LC_ALL
13974 LANGUAGE=C
13975 export LANGUAGE
13976
13977 # CDPATH.
13978 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13979
13980
13981 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13982 # ----------------------------------------
13983 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13984 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13985 # script with STATUS, using 1 if that was 0.
13986 as_fn_error ()
13987 {
13988   as_status=$1; test $as_status -eq 0 && as_status=1
13989   if test "$4"; then
13990     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13991     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13992   fi
13993   $as_echo "$as_me: error: $2" >&2
13994   as_fn_exit $as_status
13995 } # as_fn_error
13996
13997
13998 # as_fn_set_status STATUS
13999 # -----------------------
14000 # Set $? to STATUS, without forking.
14001 as_fn_set_status ()
14002 {
14003   return $1
14004 } # as_fn_set_status
14005
14006 # as_fn_exit STATUS
14007 # -----------------
14008 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14009 as_fn_exit ()
14010 {
14011   set +e
14012   as_fn_set_status $1
14013   exit $1
14014 } # as_fn_exit
14015
14016 # as_fn_unset VAR
14017 # ---------------
14018 # Portably unset VAR.
14019 as_fn_unset ()
14020 {
14021   { eval $1=; unset $1;}
14022 }
14023 as_unset=as_fn_unset
14024 # as_fn_append VAR VALUE
14025 # ----------------------
14026 # Append the text in VALUE to the end of the definition contained in VAR. Take
14027 # advantage of any shell optimizations that allow amortized linear growth over
14028 # repeated appends, instead of the typical quadratic growth present in naive
14029 # implementations.
14030 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14031   eval 'as_fn_append ()
14032   {
14033     eval $1+=\$2
14034   }'
14035 else
14036   as_fn_append ()
14037   {
14038     eval $1=\$$1\$2
14039   }
14040 fi # as_fn_append
14041
14042 # as_fn_arith ARG...
14043 # ------------------
14044 # Perform arithmetic evaluation on the ARGs, and store the result in the
14045 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14046 # must be portable across $(()) and expr.
14047 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14048   eval 'as_fn_arith ()
14049   {
14050     as_val=$(( $* ))
14051   }'
14052 else
14053   as_fn_arith ()
14054   {
14055     as_val=`expr "$@" || test $? -eq 1`
14056   }
14057 fi # as_fn_arith
14058
14059
14060 if expr a : '\(a\)' >/dev/null 2>&1 &&
14061    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14062   as_expr=expr
14063 else
14064   as_expr=false
14065 fi
14066
14067 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14068   as_basename=basename
14069 else
14070   as_basename=false
14071 fi
14072
14073 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14074   as_dirname=dirname
14075 else
14076   as_dirname=false
14077 fi
14078
14079 as_me=`$as_basename -- "$0" ||
14080 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14081          X"$0" : 'X\(//\)$' \| \
14082          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14083 $as_echo X/"$0" |
14084     sed '/^.*\/\([^/][^/]*\)\/*$/{
14085             s//\1/
14086             q
14087           }
14088           /^X\/\(\/\/\)$/{
14089             s//\1/
14090             q
14091           }
14092           /^X\/\(\/\).*/{
14093             s//\1/
14094             q
14095           }
14096           s/.*/./; q'`
14097
14098 # Avoid depending upon Character Ranges.
14099 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14100 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14101 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14102 as_cr_digits='0123456789'
14103 as_cr_alnum=$as_cr_Letters$as_cr_digits
14104
14105 ECHO_C= ECHO_N= ECHO_T=
14106 case `echo -n x` in #(((((
14107 -n*)
14108   case `echo 'xy\c'` in
14109   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14110   xy)  ECHO_C='\c';;
14111   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14112        ECHO_T=' ';;
14113   esac;;
14114 *)
14115   ECHO_N='-n';;
14116 esac
14117
14118 rm -f conf$$ conf$$.exe conf$$.file
14119 if test -d conf$$.dir; then
14120   rm -f conf$$.dir/conf$$.file
14121 else
14122   rm -f conf$$.dir
14123   mkdir conf$$.dir 2>/dev/null
14124 fi
14125 if (echo >conf$$.file) 2>/dev/null; then
14126   if ln -s conf$$.file conf$$ 2>/dev/null; then
14127     as_ln_s='ln -s'
14128     # ... but there are two gotchas:
14129     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14130     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14131     # In both cases, we have to default to `cp -p'.
14132     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14133       as_ln_s='cp -p'
14134   elif ln conf$$.file conf$$ 2>/dev/null; then
14135     as_ln_s=ln
14136   else
14137     as_ln_s='cp -p'
14138   fi
14139 else
14140   as_ln_s='cp -p'
14141 fi
14142 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14143 rmdir conf$$.dir 2>/dev/null
14144
14145
14146 # as_fn_mkdir_p
14147 # -------------
14148 # Create "$as_dir" as a directory, including parents if necessary.
14149 as_fn_mkdir_p ()
14150 {
14151
14152   case $as_dir in #(
14153   -*) as_dir=./$as_dir;;
14154   esac
14155   test -d "$as_dir" || eval $as_mkdir_p || {
14156     as_dirs=
14157     while :; do
14158       case $as_dir in #(
14159       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14160       *) as_qdir=$as_dir;;
14161       esac
14162       as_dirs="'$as_qdir' $as_dirs"
14163       as_dir=`$as_dirname -- "$as_dir" ||
14164 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14165          X"$as_dir" : 'X\(//\)[^/]' \| \
14166          X"$as_dir" : 'X\(//\)$' \| \
14167          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14168 $as_echo X"$as_dir" |
14169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14170             s//\1/
14171             q
14172           }
14173           /^X\(\/\/\)[^/].*/{
14174             s//\1/
14175             q
14176           }
14177           /^X\(\/\/\)$/{
14178             s//\1/
14179             q
14180           }
14181           /^X\(\/\).*/{
14182             s//\1/
14183             q
14184           }
14185           s/.*/./; q'`
14186       test -d "$as_dir" && break
14187     done
14188     test -z "$as_dirs" || eval "mkdir $as_dirs"
14189   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14190
14191
14192 } # as_fn_mkdir_p
14193 if mkdir -p . 2>/dev/null; then
14194   as_mkdir_p='mkdir -p "$as_dir"'
14195 else
14196   test -d ./-p && rmdir ./-p
14197   as_mkdir_p=false
14198 fi
14199
14200 if test -x / >/dev/null 2>&1; then
14201   as_test_x='test -x'
14202 else
14203   if ls -dL / >/dev/null 2>&1; then
14204     as_ls_L_option=L
14205   else
14206     as_ls_L_option=
14207   fi
14208   as_test_x='
14209     eval sh -c '\''
14210       if test -d "$1"; then
14211         test -d "$1/.";
14212       else
14213         case $1 in #(
14214         -*)set "./$1";;
14215         esac;
14216         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14217         ???[sx]*):;;*)false;;esac;fi
14218     '\'' sh
14219   '
14220 fi
14221 as_executable_p=$as_test_x
14222
14223 # Sed expression to map a string onto a valid CPP name.
14224 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14225
14226 # Sed expression to map a string onto a valid variable name.
14227 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14228
14229
14230 exec 6>&1
14231 ## ----------------------------------- ##
14232 ## Main body of $CONFIG_STATUS script. ##
14233 ## ----------------------------------- ##
14234 _ASEOF
14235 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14236
14237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14238 # Save the log message, to keep $0 and so on meaningful, and to
14239 # report actual input values of CONFIG_FILES etc. instead of their
14240 # values after options handling.
14241 ac_log="
14242 This file was extended by libffi $as_me 3.0.11, which was
14243 generated by GNU Autoconf 2.68.  Invocation command line was
14244
14245   CONFIG_FILES    = $CONFIG_FILES
14246   CONFIG_HEADERS  = $CONFIG_HEADERS
14247   CONFIG_LINKS    = $CONFIG_LINKS
14248   CONFIG_COMMANDS = $CONFIG_COMMANDS
14249   $ $0 $@
14250
14251 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14252 "
14253
14254 _ACEOF
14255
14256 case $ac_config_files in *"
14257 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14258 esac
14259
14260 case $ac_config_headers in *"
14261 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14262 esac
14263
14264
14265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14266 # Files that config.status was made for.
14267 config_files="$ac_config_files"
14268 config_headers="$ac_config_headers"
14269 config_links="$ac_config_links"
14270 config_commands="$ac_config_commands"
14271
14272 _ACEOF
14273
14274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14275 ac_cs_usage="\
14276 \`$as_me' instantiates files and other configuration actions
14277 from templates according to the current configuration.  Unless the files
14278 and actions are specified as TAGs, all are instantiated by default.
14279
14280 Usage: $0 [OPTION]... [TAG]...
14281
14282   -h, --help       print this help, then exit
14283   -V, --version    print version number and configuration settings, then exit
14284       --config     print configuration, then exit
14285   -q, --quiet, --silent
14286                    do not print progress messages
14287   -d, --debug      don't remove temporary files
14288       --recheck    update $as_me by reconfiguring in the same conditions
14289       --file=FILE[:TEMPLATE]
14290                    instantiate the configuration file FILE
14291       --header=FILE[:TEMPLATE]
14292                    instantiate the configuration header FILE
14293
14294 Configuration files:
14295 $config_files
14296
14297 Configuration headers:
14298 $config_headers
14299
14300 Configuration links:
14301 $config_links
14302
14303 Configuration commands:
14304 $config_commands
14305
14306 Report bugs to <http://github.com/atgreen/libffi/issues>."
14307
14308 _ACEOF
14309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14310 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14311 ac_cs_version="\\
14312 libffi config.status 3.0.11
14313 configured by $0, generated by GNU Autoconf 2.68,
14314   with options \\"\$ac_cs_config\\"
14315
14316 Copyright (C) 2010 Free Software Foundation, Inc.
14317 This config.status script is free software; the Free Software Foundation
14318 gives unlimited permission to copy, distribute and modify it."
14319
14320 ac_pwd='$ac_pwd'
14321 srcdir='$srcdir'
14322 INSTALL='$INSTALL'
14323 MKDIR_P='$MKDIR_P'
14324 AWK='$AWK'
14325 test -n "\$AWK" || AWK=awk
14326 _ACEOF
14327
14328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14329 # The default lists apply if the user does not specify any file.
14330 ac_need_defaults=:
14331 while test $# != 0
14332 do
14333   case $1 in
14334   --*=?*)
14335     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14336     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14337     ac_shift=:
14338     ;;
14339   --*=)
14340     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14341     ac_optarg=
14342     ac_shift=:
14343     ;;
14344   *)
14345     ac_option=$1
14346     ac_optarg=$2
14347     ac_shift=shift
14348     ;;
14349   esac
14350
14351   case $ac_option in
14352   # Handling of the options.
14353   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14354     ac_cs_recheck=: ;;
14355   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14356     $as_echo "$ac_cs_version"; exit ;;
14357   --config | --confi | --conf | --con | --co | --c )
14358     $as_echo "$ac_cs_config"; exit ;;
14359   --debug | --debu | --deb | --de | --d | -d )
14360     debug=: ;;
14361   --file | --fil | --fi | --f )
14362     $ac_shift
14363     case $ac_optarg in
14364     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14365     '') as_fn_error $? "missing file argument" ;;
14366     esac
14367     as_fn_append CONFIG_FILES " '$ac_optarg'"
14368     ac_need_defaults=false;;
14369   --header | --heade | --head | --hea )
14370     $ac_shift
14371     case $ac_optarg in
14372     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14373     esac
14374     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14375     ac_need_defaults=false;;
14376   --he | --h)
14377     # Conflict between --help and --header
14378     as_fn_error $? "ambiguous option: \`$1'
14379 Try \`$0 --help' for more information.";;
14380   --help | --hel | -h )
14381     $as_echo "$ac_cs_usage"; exit ;;
14382   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14383   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14384     ac_cs_silent=: ;;
14385
14386   # This is an error.
14387   -*) as_fn_error $? "unrecognized option: \`$1'
14388 Try \`$0 --help' for more information." ;;
14389
14390   *) as_fn_append ac_config_targets " $1"
14391      ac_need_defaults=false ;;
14392
14393   esac
14394   shift
14395 done
14396
14397 ac_configure_extra_args=
14398
14399 if $ac_cs_silent; then
14400   exec 6>/dev/null
14401   ac_configure_extra_args="$ac_configure_extra_args --silent"
14402 fi
14403
14404 _ACEOF
14405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14406 if \$ac_cs_recheck; then
14407   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14408   shift
14409   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14410   CONFIG_SHELL='$SHELL'
14411   export CONFIG_SHELL
14412   exec "\$@"
14413 fi
14414
14415 _ACEOF
14416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14417 exec 5>>config.log
14418 {
14419   echo
14420   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14421 ## Running $as_me. ##
14422 _ASBOX
14423   $as_echo "$ac_log"
14424 } >&5
14425
14426 _ACEOF
14427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14428 #
14429 # INIT-COMMANDS
14430 #
14431 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14432
14433
14434 # The HP-UX ksh and POSIX shell print the target directory to stdout
14435 # if CDPATH is set.
14436 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14437
14438 sed_quote_subst='$sed_quote_subst'
14439 double_quote_subst='$double_quote_subst'
14440 delay_variable_subst='$delay_variable_subst'
14441 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14442 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14443 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14444 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14445 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14446 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14447 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14448 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14449 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14450 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14451 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14452 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14453 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14454 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14455 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14456 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14457 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14458 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14459 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14460 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14461 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14462 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14463 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14464 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14465 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14466 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14467 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14468 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14469 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14470 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14471 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14472 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14473 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14474 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14475 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14476 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14477 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14478 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14479 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14480 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14481 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14482 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14483 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14484 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14485 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14486 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14487 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14488 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14489 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14490 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14491 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14492 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14493 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14494 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14495 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14496 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14497 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"`'
14498 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14499 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14500 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14501 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14502 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14503 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14504 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14505 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14506 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14507 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14508 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14509 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14510 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14511 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14512 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14513 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14514 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14515 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14516 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14517 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14518 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14519 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14520 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14521 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14522 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14523 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14524 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14525 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14526 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14527 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14528 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14529 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14530 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14531 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14532 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14533 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14534 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14535 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14536 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14537 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14538 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14539 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14540 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14541 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14542 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14543 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14544 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14545 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14546 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14547 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14548 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14549 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14550 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14551 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14552 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14553 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14554 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14555 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14556 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14557 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14558 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14559 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14560 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14561 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14562 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14563 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14564 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14565 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14566 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14567 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14568 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14569 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14570 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14571
14572 LTCC='$LTCC'
14573 LTCFLAGS='$LTCFLAGS'
14574 compiler='$compiler_DEFAULT'
14575
14576 # A function that is used when there is no print builtin or printf.
14577 func_fallback_echo ()
14578 {
14579   eval 'cat <<_LTECHO_EOF
14580 \$1
14581 _LTECHO_EOF'
14582 }
14583
14584 # Quote evaled strings.
14585 for var in SHELL \
14586 ECHO \
14587 PATH_SEPARATOR \
14588 SED \
14589 GREP \
14590 EGREP \
14591 FGREP \
14592 LD \
14593 NM \
14594 LN_S \
14595 lt_SP2NL \
14596 lt_NL2SP \
14597 reload_flag \
14598 OBJDUMP \
14599 deplibs_check_method \
14600 file_magic_cmd \
14601 file_magic_glob \
14602 want_nocaseglob \
14603 DLLTOOL \
14604 sharedlib_from_linklib_cmd \
14605 AR \
14606 AR_FLAGS \
14607 archiver_list_spec \
14608 STRIP \
14609 RANLIB \
14610 CC \
14611 CFLAGS \
14612 compiler \
14613 lt_cv_sys_global_symbol_pipe \
14614 lt_cv_sys_global_symbol_to_cdecl \
14615 lt_cv_sys_global_symbol_to_c_name_address \
14616 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14617 nm_file_list_spec \
14618 lt_prog_compiler_no_builtin_flag \
14619 lt_prog_compiler_pic \
14620 lt_prog_compiler_wl \
14621 lt_prog_compiler_static \
14622 lt_cv_prog_compiler_c_o \
14623 need_locks \
14624 MANIFEST_TOOL \
14625 DSYMUTIL \
14626 NMEDIT \
14627 LIPO \
14628 OTOOL \
14629 OTOOL64 \
14630 shrext_cmds \
14631 export_dynamic_flag_spec \
14632 whole_archive_flag_spec \
14633 compiler_needs_object \
14634 with_gnu_ld \
14635 allow_undefined_flag \
14636 no_undefined_flag \
14637 hardcode_libdir_flag_spec \
14638 hardcode_libdir_separator \
14639 exclude_expsyms \
14640 include_expsyms \
14641 file_list_spec \
14642 variables_saved_for_relink \
14643 libname_spec \
14644 library_names_spec \
14645 soname_spec \
14646 install_override_mode \
14647 finish_eval \
14648 old_striplib \
14649 striplib; do
14650     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14651     *[\\\\\\\`\\"\\\$]*)
14652       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14653       ;;
14654     *)
14655       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14656       ;;
14657     esac
14658 done
14659
14660 # Double-quote double-evaled strings.
14661 for var in reload_cmds \
14662 old_postinstall_cmds \
14663 old_postuninstall_cmds \
14664 old_archive_cmds \
14665 extract_expsyms_cmds \
14666 old_archive_from_new_cmds \
14667 old_archive_from_expsyms_cmds \
14668 archive_cmds \
14669 archive_expsym_cmds \
14670 module_cmds \
14671 module_expsym_cmds \
14672 export_symbols_cmds \
14673 prelink_cmds \
14674 postlink_cmds \
14675 postinstall_cmds \
14676 postuninstall_cmds \
14677 finish_cmds \
14678 sys_lib_search_path_spec \
14679 sys_lib_dlsearch_path_spec; do
14680     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14681     *[\\\\\\\`\\"\\\$]*)
14682       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14683       ;;
14684     *)
14685       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14686       ;;
14687     esac
14688 done
14689
14690 ac_aux_dir='$ac_aux_dir'
14691 xsi_shell='$xsi_shell'
14692 lt_shell_append='$lt_shell_append'
14693
14694 # See if we are running on zsh, and set the options which allow our
14695 # commands through without removal of \ escapes INIT.
14696 if test -n "\${ZSH_VERSION+set}" ; then
14697    setopt NO_GLOB_SUBST
14698 fi
14699
14700
14701     PACKAGE='$PACKAGE'
14702     VERSION='$VERSION'
14703     TIMESTAMP='$TIMESTAMP'
14704     RM='$RM'
14705     ofile='$ofile'
14706
14707
14708
14709 TARGETDIR="$TARGETDIR"
14710
14711 _ACEOF
14712
14713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14714
14715 # Handling of arguments.
14716 for ac_config_target in $ac_config_targets
14717 do
14718   case $ac_config_target in
14719     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
14720     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14721     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14722     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
14723     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
14724     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
14725     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14726     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
14727     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14728     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14729     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14730     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
14731
14732   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14733   esac
14734 done
14735
14736
14737 # If the user did not use the arguments to specify the items to instantiate,
14738 # then the envvar interface is used.  Set only those that are not.
14739 # We use the long form for the default assignment because of an extremely
14740 # bizarre bug on SunOS 4.1.3.
14741 if $ac_need_defaults; then
14742   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14743   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14744   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14745   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14746 fi
14747
14748 # Have a temporary directory for convenience.  Make it in the build tree
14749 # simply because there is no reason against having it here, and in addition,
14750 # creating and moving files from /tmp can sometimes cause problems.
14751 # Hook for its removal unless debugging.
14752 # Note that there is a small window in which the directory will not be cleaned:
14753 # after its creation but before its name has been assigned to `$tmp'.
14754 $debug ||
14755 {
14756   tmp= ac_tmp=
14757   trap 'exit_status=$?
14758   : "${ac_tmp:=$tmp}"
14759   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14760 ' 0
14761   trap 'as_fn_exit 1' 1 2 13 15
14762 }
14763 # Create a (secure) tmp directory for tmp files.
14764
14765 {
14766   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14767   test -d "$tmp"
14768 }  ||
14769 {
14770   tmp=./conf$$-$RANDOM
14771   (umask 077 && mkdir "$tmp")
14772 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14773 ac_tmp=$tmp
14774
14775 # Set up the scripts for CONFIG_FILES section.
14776 # No need to generate them if there are no CONFIG_FILES.
14777 # This happens for instance with `./config.status config.h'.
14778 if test -n "$CONFIG_FILES"; then
14779
14780
14781 ac_cr=`echo X | tr X '\015'`
14782 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14783 # But we know of no other shell where ac_cr would be empty at this
14784 # point, so we can use a bashism as a fallback.
14785 if test "x$ac_cr" = x; then
14786   eval ac_cr=\$\'\\r\'
14787 fi
14788 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14789 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14790   ac_cs_awk_cr='\\r'
14791 else
14792   ac_cs_awk_cr=$ac_cr
14793 fi
14794
14795 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14796 _ACEOF
14797
14798
14799 {
14800   echo "cat >conf$$subs.awk <<_ACEOF" &&
14801   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14802   echo "_ACEOF"
14803 } >conf$$subs.sh ||
14804   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14805 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14806 ac_delim='%!_!# '
14807 for ac_last_try in false false false false false :; do
14808   . ./conf$$subs.sh ||
14809     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14810
14811   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14812   if test $ac_delim_n = $ac_delim_num; then
14813     break
14814   elif $ac_last_try; then
14815     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14816   else
14817     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14818   fi
14819 done
14820 rm -f conf$$subs.sh
14821
14822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14823 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14824 _ACEOF
14825 sed -n '
14826 h
14827 s/^/S["/; s/!.*/"]=/
14828 p
14829 g
14830 s/^[^!]*!//
14831 :repl
14832 t repl
14833 s/'"$ac_delim"'$//
14834 t delim
14835 :nl
14836 h
14837 s/\(.\{148\}\)..*/\1/
14838 t more1
14839 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14840 p
14841 n
14842 b repl
14843 :more1
14844 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14845 p
14846 g
14847 s/.\{148\}//
14848 t nl
14849 :delim
14850 h
14851 s/\(.\{148\}\)..*/\1/
14852 t more2
14853 s/["\\]/\\&/g; s/^/"/; s/$/"/
14854 p
14855 b
14856 :more2
14857 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14858 p
14859 g
14860 s/.\{148\}//
14861 t delim
14862 ' <conf$$subs.awk | sed '
14863 /^[^""]/{
14864   N
14865   s/\n//
14866 }
14867 ' >>$CONFIG_STATUS || ac_write_fail=1
14868 rm -f conf$$subs.awk
14869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14870 _ACAWK
14871 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14872   for (key in S) S_is_set[key] = 1
14873   FS = "\a"
14874
14875 }
14876 {
14877   line = $ 0
14878   nfields = split(line, field, "@")
14879   substed = 0
14880   len = length(field[1])
14881   for (i = 2; i < nfields; i++) {
14882     key = field[i]
14883     keylen = length(key)
14884     if (S_is_set[key]) {
14885       value = S[key]
14886       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14887       len += length(value) + length(field[++i])
14888       substed = 1
14889     } else
14890       len += 1 + keylen
14891   }
14892
14893   print line
14894 }
14895
14896 _ACAWK
14897 _ACEOF
14898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14899 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14900   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14901 else
14902   cat
14903 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14904   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14905 _ACEOF
14906
14907 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14908 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14909 # trailing colons and then remove the whole line if VPATH becomes empty
14910 # (actually we leave an empty line to preserve line numbers).
14911 if test "x$srcdir" = x.; then
14912   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14913 h
14914 s///
14915 s/^/:/
14916 s/[      ]*$/:/
14917 s/:\$(srcdir):/:/g
14918 s/:\${srcdir}:/:/g
14919 s/:@srcdir@:/:/g
14920 s/^:*//
14921 s/:*$//
14922 x
14923 s/\(=[   ]*\).*/\1/
14924 G
14925 s/\n//
14926 s/^[^=]*=[       ]*$//
14927 }'
14928 fi
14929
14930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14931 fi # test -n "$CONFIG_FILES"
14932
14933 # Set up the scripts for CONFIG_HEADERS section.
14934 # No need to generate them if there are no CONFIG_HEADERS.
14935 # This happens for instance with `./config.status Makefile'.
14936 if test -n "$CONFIG_HEADERS"; then
14937 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14938 BEGIN {
14939 _ACEOF
14940
14941 # Transform confdefs.h into an awk script `defines.awk', embedded as
14942 # here-document in config.status, that substitutes the proper values into
14943 # config.h.in to produce config.h.
14944
14945 # Create a delimiter string that does not exist in confdefs.h, to ease
14946 # handling of long lines.
14947 ac_delim='%!_!# '
14948 for ac_last_try in false false :; do
14949   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14950   if test -z "$ac_tt"; then
14951     break
14952   elif $ac_last_try; then
14953     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14954   else
14955     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14956   fi
14957 done
14958
14959 # For the awk script, D is an array of macro values keyed by name,
14960 # likewise P contains macro parameters if any.  Preserve backslash
14961 # newline sequences.
14962
14963 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14964 sed -n '
14965 s/.\{148\}/&'"$ac_delim"'/g
14966 t rset
14967 :rset
14968 s/^[     ]*#[    ]*define[       ][      ]*/ /
14969 t def
14970 d
14971 :def
14972 s/\\$//
14973 t bsnl
14974 s/["\\]/\\&/g
14975 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14976 D["\1"]=" \3"/p
14977 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14978 d
14979 :bsnl
14980 s/["\\]/\\&/g
14981 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14982 D["\1"]=" \3\\\\\\n"\\/p
14983 t cont
14984 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14985 t cont
14986 d
14987 :cont
14988 n
14989 s/.\{148\}/&'"$ac_delim"'/g
14990 t clear
14991 :clear
14992 s/\\$//
14993 t bsnlc
14994 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14995 d
14996 :bsnlc
14997 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14998 b cont
14999 ' <confdefs.h | sed '
15000 s/'"$ac_delim"'/"\\\
15001 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15002
15003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15004   for (key in D) D_is_set[key] = 1
15005   FS = "\a"
15006 }
15007 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15008   line = \$ 0
15009   split(line, arg, " ")
15010   if (arg[1] == "#") {
15011     defundef = arg[2]
15012     mac1 = arg[3]
15013   } else {
15014     defundef = substr(arg[1], 2)
15015     mac1 = arg[2]
15016   }
15017   split(mac1, mac2, "(") #)
15018   macro = mac2[1]
15019   prefix = substr(line, 1, index(line, defundef) - 1)
15020   if (D_is_set[macro]) {
15021     # Preserve the white space surrounding the "#".
15022     print prefix "define", macro P[macro] D[macro]
15023     next
15024   } else {
15025     # Replace #undef with comments.  This is necessary, for example,
15026     # in the case of _POSIX_SOURCE, which is predefined and required
15027     # on some systems where configure will not decide to define it.
15028     if (defundef == "undef") {
15029       print "/*", prefix defundef, macro, "*/"
15030       next
15031     }
15032   }
15033 }
15034 { print }
15035 _ACAWK
15036 _ACEOF
15037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15038   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15039 fi # test -n "$CONFIG_HEADERS"
15040
15041
15042 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
15043 shift
15044 for ac_tag
15045 do
15046   case $ac_tag in
15047   :[FHLC]) ac_mode=$ac_tag; continue;;
15048   esac
15049   case $ac_mode$ac_tag in
15050   :[FHL]*:*);;
15051   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15052   :[FH]-) ac_tag=-:-;;
15053   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15054   esac
15055   ac_save_IFS=$IFS
15056   IFS=:
15057   set x $ac_tag
15058   IFS=$ac_save_IFS
15059   shift
15060   ac_file=$1
15061   shift
15062
15063   case $ac_mode in
15064   :L) ac_source=$1;;
15065   :[FH])
15066     ac_file_inputs=
15067     for ac_f
15068     do
15069       case $ac_f in
15070       -) ac_f="$ac_tmp/stdin";;
15071       *) # Look for the file first in the build tree, then in the source tree
15072          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15073          # because $ac_f cannot contain `:'.
15074          test -f "$ac_f" ||
15075            case $ac_f in
15076            [\\/$]*) false;;
15077            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15078            esac ||
15079            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15080       esac
15081       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15082       as_fn_append ac_file_inputs " '$ac_f'"
15083     done
15084
15085     # Let's still pretend it is `configure' which instantiates (i.e., don't
15086     # use $as_me), people would be surprised to read:
15087     #    /* config.h.  Generated by config.status.  */
15088     configure_input='Generated from '`
15089           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15090         `' by configure.'
15091     if test x"$ac_file" != x-; then
15092       configure_input="$ac_file.  $configure_input"
15093       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15094 $as_echo "$as_me: creating $ac_file" >&6;}
15095     fi
15096     # Neutralize special characters interpreted by sed in replacement strings.
15097     case $configure_input in #(
15098     *\&* | *\|* | *\\* )
15099        ac_sed_conf_input=`$as_echo "$configure_input" |
15100        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15101     *) ac_sed_conf_input=$configure_input;;
15102     esac
15103
15104     case $ac_tag in
15105     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15106       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15107     esac
15108     ;;
15109   esac
15110
15111   ac_dir=`$as_dirname -- "$ac_file" ||
15112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15113          X"$ac_file" : 'X\(//\)[^/]' \| \
15114          X"$ac_file" : 'X\(//\)$' \| \
15115          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15116 $as_echo X"$ac_file" |
15117     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15118             s//\1/
15119             q
15120           }
15121           /^X\(\/\/\)[^/].*/{
15122             s//\1/
15123             q
15124           }
15125           /^X\(\/\/\)$/{
15126             s//\1/
15127             q
15128           }
15129           /^X\(\/\).*/{
15130             s//\1/
15131             q
15132           }
15133           s/.*/./; q'`
15134   as_dir="$ac_dir"; as_fn_mkdir_p
15135   ac_builddir=.
15136
15137 case "$ac_dir" in
15138 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15139 *)
15140   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15141   # A ".." for each directory in $ac_dir_suffix.
15142   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15143   case $ac_top_builddir_sub in
15144   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15145   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15146   esac ;;
15147 esac
15148 ac_abs_top_builddir=$ac_pwd
15149 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15150 # for backward compatibility:
15151 ac_top_builddir=$ac_top_build_prefix
15152
15153 case $srcdir in
15154   .)  # We are building in place.
15155     ac_srcdir=.
15156     ac_top_srcdir=$ac_top_builddir_sub
15157     ac_abs_top_srcdir=$ac_pwd ;;
15158   [\\/]* | ?:[\\/]* )  # Absolute name.
15159     ac_srcdir=$srcdir$ac_dir_suffix;
15160     ac_top_srcdir=$srcdir
15161     ac_abs_top_srcdir=$srcdir ;;
15162   *) # Relative name.
15163     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15164     ac_top_srcdir=$ac_top_build_prefix$srcdir
15165     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15166 esac
15167 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15168
15169
15170   case $ac_mode in
15171   :F)
15172   #
15173   # CONFIG_FILE
15174   #
15175
15176   case $INSTALL in
15177   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15178   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15179   esac
15180   ac_MKDIR_P=$MKDIR_P
15181   case $MKDIR_P in
15182   [\\/$]* | ?:[\\/]* ) ;;
15183   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15184   esac
15185 _ACEOF
15186
15187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15188 # If the template does not know about datarootdir, expand it.
15189 # FIXME: This hack should be removed a few years after 2.60.
15190 ac_datarootdir_hack=; ac_datarootdir_seen=
15191 ac_sed_dataroot='
15192 /datarootdir/ {
15193   p
15194   q
15195 }
15196 /@datadir@/p
15197 /@docdir@/p
15198 /@infodir@/p
15199 /@localedir@/p
15200 /@mandir@/p'
15201 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15202 *datarootdir*) ac_datarootdir_seen=yes;;
15203 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15204   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15205 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15206 _ACEOF
15207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15208   ac_datarootdir_hack='
15209   s&@datadir@&$datadir&g
15210   s&@docdir@&$docdir&g
15211   s&@infodir@&$infodir&g
15212   s&@localedir@&$localedir&g
15213   s&@mandir@&$mandir&g
15214   s&\\\${datarootdir}&$datarootdir&g' ;;
15215 esac
15216 _ACEOF
15217
15218 # Neutralize VPATH when `$srcdir' = `.'.
15219 # Shell code in configure.ac might set extrasub.
15220 # FIXME: do we really want to maintain this feature?
15221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15222 ac_sed_extra="$ac_vpsub
15223 $extrasub
15224 _ACEOF
15225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15226 :t
15227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15228 s|@configure_input@|$ac_sed_conf_input|;t t
15229 s&@top_builddir@&$ac_top_builddir_sub&;t t
15230 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15231 s&@srcdir@&$ac_srcdir&;t t
15232 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15233 s&@top_srcdir@&$ac_top_srcdir&;t t
15234 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15235 s&@builddir@&$ac_builddir&;t t
15236 s&@abs_builddir@&$ac_abs_builddir&;t t
15237 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15238 s&@INSTALL@&$ac_INSTALL&;t t
15239 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15240 $ac_datarootdir_hack
15241 "
15242 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15243   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15244
15245 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15246   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15247   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15248       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15249   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15250 which seems to be undefined.  Please make sure it is defined" >&5
15251 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15252 which seems to be undefined.  Please make sure it is defined" >&2;}
15253
15254   rm -f "$ac_tmp/stdin"
15255   case $ac_file in
15256   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15257   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15258   esac \
15259   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15260  ;;
15261   :H)
15262   #
15263   # CONFIG_HEADER
15264   #
15265   if test x"$ac_file" != x-; then
15266     {
15267       $as_echo "/* $configure_input  */" \
15268       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15269     } >"$ac_tmp/config.h" \
15270       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15271     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15272       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15273 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15274     else
15275       rm -f "$ac_file"
15276       mv "$ac_tmp/config.h" "$ac_file" \
15277         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15278     fi
15279   else
15280     $as_echo "/* $configure_input  */" \
15281       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15282       || as_fn_error $? "could not create -" "$LINENO" 5
15283   fi
15284 # Compute "$ac_file"'s index in $config_headers.
15285 _am_arg="$ac_file"
15286 _am_stamp_count=1
15287 for _am_header in $config_headers :; do
15288   case $_am_header in
15289     $_am_arg | $_am_arg:* )
15290       break ;;
15291     * )
15292       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15293   esac
15294 done
15295 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15296 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15297          X"$_am_arg" : 'X\(//\)[^/]' \| \
15298          X"$_am_arg" : 'X\(//\)$' \| \
15299          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15300 $as_echo X"$_am_arg" |
15301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15302             s//\1/
15303             q
15304           }
15305           /^X\(\/\/\)[^/].*/{
15306             s//\1/
15307             q
15308           }
15309           /^X\(\/\/\)$/{
15310             s//\1/
15311             q
15312           }
15313           /^X\(\/\).*/{
15314             s//\1/
15315             q
15316           }
15317           s/.*/./; q'`/stamp-h$_am_stamp_count
15318  ;;
15319   :L)
15320   #
15321   # CONFIG_LINK
15322   #
15323
15324   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15325     :
15326   else
15327     # Prefer the file from the source tree if names are identical.
15328     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15329       ac_source=$srcdir/$ac_source
15330     fi
15331
15332     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15333 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15334
15335     if test ! -r "$ac_source"; then
15336       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
15337     fi
15338     rm -f "$ac_file"
15339
15340     # Try a relative symlink, then a hard link, then a copy.
15341     case $ac_source in
15342     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15343         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15344     esac
15345     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15346       ln "$ac_source" "$ac_file" 2>/dev/null ||
15347       cp -p "$ac_source" "$ac_file" ||
15348       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15349   fi
15350  ;;
15351   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15352 $as_echo "$as_me: executing $ac_file commands" >&6;}
15353  ;;
15354   esac
15355
15356
15357   case $ac_file$ac_mode in
15358     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15359   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15360   # are listed without --file.  Let's play safe and only enable the eval
15361   # if we detect the quoting.
15362   case $CONFIG_FILES in
15363   *\'*) eval set x "$CONFIG_FILES" ;;
15364   *)   set x $CONFIG_FILES ;;
15365   esac
15366   shift
15367   for mf
15368   do
15369     # Strip MF so we end up with the name of the file.
15370     mf=`echo "$mf" | sed -e 's/:.*$//'`
15371     # Check whether this is an Automake generated Makefile or not.
15372     # We used to match only the files named `Makefile.in', but
15373     # some people rename them; so instead we look at the file content.
15374     # Grep'ing the first line is not enough: some people post-process
15375     # each Makefile.in and add a new line on top of each file to say so.
15376     # Grep'ing the whole file is not good either: AIX grep has a line
15377     # limit of 2048, but all sed's we know have understand at least 4000.
15378     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15379       dirpart=`$as_dirname -- "$mf" ||
15380 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15381          X"$mf" : 'X\(//\)[^/]' \| \
15382          X"$mf" : 'X\(//\)$' \| \
15383          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15384 $as_echo X"$mf" |
15385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15386             s//\1/
15387             q
15388           }
15389           /^X\(\/\/\)[^/].*/{
15390             s//\1/
15391             q
15392           }
15393           /^X\(\/\/\)$/{
15394             s//\1/
15395             q
15396           }
15397           /^X\(\/\).*/{
15398             s//\1/
15399             q
15400           }
15401           s/.*/./; q'`
15402     else
15403       continue
15404     fi
15405     # Extract the definition of DEPDIR, am__include, and am__quote
15406     # from the Makefile without running `make'.
15407     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15408     test -z "$DEPDIR" && continue
15409     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15410     test -z "am__include" && continue
15411     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15412     # When using ansi2knr, U may be empty or an underscore; expand it
15413     U=`sed -n 's/^U = //p' < "$mf"`
15414     # Find all dependency output files, they are included files with
15415     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15416     # simplest approach to changing $(DEPDIR) to its actual value in the
15417     # expansion.
15418     for file in `sed -n "
15419       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15420          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15421       # Make sure the directory exists.
15422       test -f "$dirpart/$file" && continue
15423       fdir=`$as_dirname -- "$file" ||
15424 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15425          X"$file" : 'X\(//\)[^/]' \| \
15426          X"$file" : 'X\(//\)$' \| \
15427          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15428 $as_echo X"$file" |
15429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15430             s//\1/
15431             q
15432           }
15433           /^X\(\/\/\)[^/].*/{
15434             s//\1/
15435             q
15436           }
15437           /^X\(\/\/\)$/{
15438             s//\1/
15439             q
15440           }
15441           /^X\(\/\).*/{
15442             s//\1/
15443             q
15444           }
15445           s/.*/./; q'`
15446       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15447       # echo "creating $dirpart/$file"
15448       echo '# dummy' > "$dirpart/$file"
15449     done
15450   done
15451 }
15452  ;;
15453     "libtool":C)
15454
15455     # See if we are running on zsh, and set the options which allow our
15456     # commands through without removal of \ escapes.
15457     if test -n "${ZSH_VERSION+set}" ; then
15458       setopt NO_GLOB_SUBST
15459     fi
15460
15461     cfgfile="${ofile}T"
15462     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15463     $RM "$cfgfile"
15464
15465     cat <<_LT_EOF >> "$cfgfile"
15466 #! $SHELL
15467
15468 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15469 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15470 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15471 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15472 #
15473 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15474 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15475 #                 Foundation, Inc.
15476 #   Written by Gordon Matzigkeit, 1996
15477 #
15478 #   This file is part of GNU Libtool.
15479 #
15480 # GNU Libtool is free software; you can redistribute it and/or
15481 # modify it under the terms of the GNU General Public License as
15482 # published by the Free Software Foundation; either version 2 of
15483 # the License, or (at your option) any later version.
15484 #
15485 # As a special exception to the GNU General Public License,
15486 # if you distribute this file as part of a program or library that
15487 # is built using GNU Libtool, you may include this file under the
15488 # same distribution terms that you use for the rest of that program.
15489 #
15490 # GNU Libtool is distributed in the hope that it will be useful,
15491 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15492 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15493 # GNU General Public License for more details.
15494 #
15495 # You should have received a copy of the GNU General Public License
15496 # along with GNU Libtool; see the file COPYING.  If not, a copy
15497 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15498 # obtained by writing to the Free Software Foundation, Inc.,
15499 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15500
15501
15502 # The names of the tagged configurations supported by this script.
15503 available_tags=""
15504
15505 # ### BEGIN LIBTOOL CONFIG
15506
15507 # Which release of libtool.m4 was used?
15508 macro_version=$macro_version
15509 macro_revision=$macro_revision
15510
15511 # Whether or not to build shared libraries.
15512 build_libtool_libs=$enable_shared
15513
15514 # Whether or not to build static libraries.
15515 build_old_libs=$enable_static
15516
15517 # What type of objects to build.
15518 pic_mode=$pic_mode
15519
15520 # Whether or not to optimize for fast installation.
15521 fast_install=$enable_fast_install
15522
15523 # Shell to use when invoking shell scripts.
15524 SHELL=$lt_SHELL
15525
15526 # An echo program that protects backslashes.
15527 ECHO=$lt_ECHO
15528
15529 # The PATH separator for the build system.
15530 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15531
15532 # The host system.
15533 host_alias=$host_alias
15534 host=$host
15535 host_os=$host_os
15536
15537 # The build system.
15538 build_alias=$build_alias
15539 build=$build
15540 build_os=$build_os
15541
15542 # A sed program that does not truncate output.
15543 SED=$lt_SED
15544
15545 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15546 Xsed="\$SED -e 1s/^X//"
15547
15548 # A grep program that handles long lines.
15549 GREP=$lt_GREP
15550
15551 # An ERE matcher.
15552 EGREP=$lt_EGREP
15553
15554 # A literal string matcher.
15555 FGREP=$lt_FGREP
15556
15557 # A BSD- or MS-compatible name lister.
15558 NM=$lt_NM
15559
15560 # Whether we need soft or hard links.
15561 LN_S=$lt_LN_S
15562
15563 # What is the maximum length of a command?
15564 max_cmd_len=$max_cmd_len
15565
15566 # Object file suffix (normally "o").
15567 objext=$ac_objext
15568
15569 # Executable file suffix (normally "").
15570 exeext=$exeext
15571
15572 # whether the shell understands "unset".
15573 lt_unset=$lt_unset
15574
15575 # turn spaces into newlines.
15576 SP2NL=$lt_lt_SP2NL
15577
15578 # turn newlines into spaces.
15579 NL2SP=$lt_lt_NL2SP
15580
15581 # convert \$build file names to \$host format.
15582 to_host_file_cmd=$lt_cv_to_host_file_cmd
15583
15584 # convert \$build files to toolchain format.
15585 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15586
15587 # An object symbol dumper.
15588 OBJDUMP=$lt_OBJDUMP
15589
15590 # Method to check whether dependent libraries are shared objects.
15591 deplibs_check_method=$lt_deplibs_check_method
15592
15593 # Command to use when deplibs_check_method = "file_magic".
15594 file_magic_cmd=$lt_file_magic_cmd
15595
15596 # How to find potential files when deplibs_check_method = "file_magic".
15597 file_magic_glob=$lt_file_magic_glob
15598
15599 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15600 want_nocaseglob=$lt_want_nocaseglob
15601
15602 # DLL creation program.
15603 DLLTOOL=$lt_DLLTOOL
15604
15605 # Command to associate shared and link libraries.
15606 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15607
15608 # The archiver.
15609 AR=$lt_AR
15610
15611 # Flags to create an archive.
15612 AR_FLAGS=$lt_AR_FLAGS
15613
15614 # How to feed a file listing to the archiver.
15615 archiver_list_spec=$lt_archiver_list_spec
15616
15617 # A symbol stripping program.
15618 STRIP=$lt_STRIP
15619
15620 # Commands used to install an old-style archive.
15621 RANLIB=$lt_RANLIB
15622 old_postinstall_cmds=$lt_old_postinstall_cmds
15623 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15624
15625 # Whether to use a lock for old archive extraction.
15626 lock_old_archive_extraction=$lock_old_archive_extraction
15627
15628 # A C compiler.
15629 LTCC=$lt_CC
15630
15631 # LTCC compiler flags.
15632 LTCFLAGS=$lt_CFLAGS
15633
15634 # Take the output of nm and produce a listing of raw symbols and C names.
15635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15636
15637 # Transform the output of nm in a proper C declaration.
15638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15639
15640 # Transform the output of nm in a C name address pair.
15641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15642
15643 # Transform the output of nm in a C name address pair when lib prefix is needed.
15644 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15645
15646 # Specify filename containing input files for \$NM.
15647 nm_file_list_spec=$lt_nm_file_list_spec
15648
15649 # The root where to search for dependent libraries,and in which our libraries should be installed.
15650 lt_sysroot=$lt_sysroot
15651
15652 # The name of the directory that contains temporary libtool files.
15653 objdir=$objdir
15654
15655 # Used to examine libraries when file_magic_cmd begins with "file".
15656 MAGIC_CMD=$MAGIC_CMD
15657
15658 # Must we lock files when doing compilation?
15659 need_locks=$lt_need_locks
15660
15661 # Manifest tool.
15662 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15663
15664 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15665 DSYMUTIL=$lt_DSYMUTIL
15666
15667 # Tool to change global to local symbols on Mac OS X.
15668 NMEDIT=$lt_NMEDIT
15669
15670 # Tool to manipulate fat objects and archives on Mac OS X.
15671 LIPO=$lt_LIPO
15672
15673 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15674 OTOOL=$lt_OTOOL
15675
15676 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15677 OTOOL64=$lt_OTOOL64
15678
15679 # Old archive suffix (normally "a").
15680 libext=$libext
15681
15682 # Shared library suffix (normally ".so").
15683 shrext_cmds=$lt_shrext_cmds
15684
15685 # The commands to extract the exported symbol list from a shared archive.
15686 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15687
15688 # Variables whose values should be saved in libtool wrapper scripts and
15689 # restored at link time.
15690 variables_saved_for_relink=$lt_variables_saved_for_relink
15691
15692 # Do we need the "lib" prefix for modules?
15693 need_lib_prefix=$need_lib_prefix
15694
15695 # Do we need a version for libraries?
15696 need_version=$need_version
15697
15698 # Library versioning type.
15699 version_type=$version_type
15700
15701 # Shared library runtime path variable.
15702 runpath_var=$runpath_var
15703
15704 # Shared library path variable.
15705 shlibpath_var=$shlibpath_var
15706
15707 # Is shlibpath searched before the hard-coded library search path?
15708 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15709
15710 # Format of library name prefix.
15711 libname_spec=$lt_libname_spec
15712
15713 # List of archive names.  First name is the real one, the rest are links.
15714 # The last name is the one that the linker finds with -lNAME
15715 library_names_spec=$lt_library_names_spec
15716
15717 # The coded name of the library, if different from the real name.
15718 soname_spec=$lt_soname_spec
15719
15720 # Permission mode override for installation of shared libraries.
15721 install_override_mode=$lt_install_override_mode
15722
15723 # Command to use after installation of a shared archive.
15724 postinstall_cmds=$lt_postinstall_cmds
15725
15726 # Command to use after uninstallation of a shared archive.
15727 postuninstall_cmds=$lt_postuninstall_cmds
15728
15729 # Commands used to finish a libtool library installation in a directory.
15730 finish_cmds=$lt_finish_cmds
15731
15732 # As "finish_cmds", except a single script fragment to be evaled but
15733 # not shown.
15734 finish_eval=$lt_finish_eval
15735
15736 # Whether we should hardcode library paths into libraries.
15737 hardcode_into_libs=$hardcode_into_libs
15738
15739 # Compile-time system search path for libraries.
15740 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15741
15742 # Run-time system search path for libraries.
15743 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15744
15745 # Whether dlopen is supported.
15746 dlopen_support=$enable_dlopen
15747
15748 # Whether dlopen of programs is supported.
15749 dlopen_self=$enable_dlopen_self
15750
15751 # Whether dlopen of statically linked programs is supported.
15752 dlopen_self_static=$enable_dlopen_self_static
15753
15754 # Commands to strip libraries.
15755 old_striplib=$lt_old_striplib
15756 striplib=$lt_striplib
15757
15758
15759 # The linker used to build libraries.
15760 LD=$lt_LD
15761
15762 # How to create reloadable object files.
15763 reload_flag=$lt_reload_flag
15764 reload_cmds=$lt_reload_cmds
15765
15766 # Commands used to build an old-style archive.
15767 old_archive_cmds=$lt_old_archive_cmds
15768
15769 # A language specific compiler.
15770 CC=$lt_compiler
15771
15772 # Is the compiler the GNU compiler?
15773 with_gcc=$GCC
15774
15775 # Compiler flag to turn off builtin functions.
15776 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15777
15778 # Additional compiler flags for building library objects.
15779 pic_flag=$lt_lt_prog_compiler_pic
15780
15781 # How to pass a linker flag through the compiler.
15782 wl=$lt_lt_prog_compiler_wl
15783
15784 # Compiler flag to prevent dynamic linking.
15785 link_static_flag=$lt_lt_prog_compiler_static
15786
15787 # Does compiler simultaneously support -c and -o options?
15788 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15789
15790 # Whether or not to add -lc for building shared libraries.
15791 build_libtool_need_lc=$archive_cmds_need_lc
15792
15793 # Whether or not to disallow shared libs when runtime libs are static.
15794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15795
15796 # Compiler flag to allow reflexive dlopens.
15797 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15798
15799 # Compiler flag to generate shared objects directly from archives.
15800 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15801
15802 # Whether the compiler copes with passing no objects directly.
15803 compiler_needs_object=$lt_compiler_needs_object
15804
15805 # Create an old-style archive from a shared archive.
15806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15807
15808 # Create a temporary old-style archive to link instead of a shared archive.
15809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15810
15811 # Commands used to build a shared archive.
15812 archive_cmds=$lt_archive_cmds
15813 archive_expsym_cmds=$lt_archive_expsym_cmds
15814
15815 # Commands used to build a loadable module if different from building
15816 # a shared archive.
15817 module_cmds=$lt_module_cmds
15818 module_expsym_cmds=$lt_module_expsym_cmds
15819
15820 # Whether we are building with GNU ld or not.
15821 with_gnu_ld=$lt_with_gnu_ld
15822
15823 # Flag that allows shared libraries with undefined symbols to be built.
15824 allow_undefined_flag=$lt_allow_undefined_flag
15825
15826 # Flag that enforces no undefined symbols.
15827 no_undefined_flag=$lt_no_undefined_flag
15828
15829 # Flag to hardcode \$libdir into a binary during linking.
15830 # This must work even if \$libdir does not exist
15831 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15832
15833 # Whether we need a single "-rpath" flag with a separated argument.
15834 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15835
15836 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15837 # DIR into the resulting binary.
15838 hardcode_direct=$hardcode_direct
15839
15840 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15841 # DIR into the resulting binary and the resulting library dependency is
15842 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15843 # library is relocated.
15844 hardcode_direct_absolute=$hardcode_direct_absolute
15845
15846 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15847 # into the resulting binary.
15848 hardcode_minus_L=$hardcode_minus_L
15849
15850 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15851 # into the resulting binary.
15852 hardcode_shlibpath_var=$hardcode_shlibpath_var
15853
15854 # Set to "yes" if building a shared library automatically hardcodes DIR
15855 # into the library and all subsequent libraries and executables linked
15856 # against it.
15857 hardcode_automatic=$hardcode_automatic
15858
15859 # Set to yes if linker adds runtime paths of dependent libraries
15860 # to runtime path list.
15861 inherit_rpath=$inherit_rpath
15862
15863 # Whether libtool must link a program against all its dependency libraries.
15864 link_all_deplibs=$link_all_deplibs
15865
15866 # Set to "yes" if exported symbols are required.
15867 always_export_symbols=$always_export_symbols
15868
15869 # The commands to list exported symbols.
15870 export_symbols_cmds=$lt_export_symbols_cmds
15871
15872 # Symbols that should not be listed in the preloaded symbols.
15873 exclude_expsyms=$lt_exclude_expsyms
15874
15875 # Symbols that must always be exported.
15876 include_expsyms=$lt_include_expsyms
15877
15878 # Commands necessary for linking programs (against libraries) with templates.
15879 prelink_cmds=$lt_prelink_cmds
15880
15881 # Commands necessary for finishing linking programs.
15882 postlink_cmds=$lt_postlink_cmds
15883
15884 # Specify filename containing input files.
15885 file_list_spec=$lt_file_list_spec
15886
15887 # How to hardcode a shared library path into an executable.
15888 hardcode_action=$hardcode_action
15889
15890 # ### END LIBTOOL CONFIG
15891
15892 _LT_EOF
15893
15894   case $host_os in
15895   aix3*)
15896     cat <<\_LT_EOF >> "$cfgfile"
15897 # AIX sometimes has problems with the GCC collect2 program.  For some
15898 # reason, if we set the COLLECT_NAMES environment variable, the problems
15899 # vanish in a puff of smoke.
15900 if test "X${COLLECT_NAMES+set}" != Xset; then
15901   COLLECT_NAMES=
15902   export COLLECT_NAMES
15903 fi
15904 _LT_EOF
15905     ;;
15906   esac
15907
15908
15909 ltmain="$ac_aux_dir/ltmain.sh"
15910
15911
15912   # We use sed instead of cat because bash on DJGPP gets confused if
15913   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15914   # text mode, it properly converts lines to CR/LF.  This bash problem
15915   # is reportedly fixed, but why not run on old versions too?
15916   sed '$q' "$ltmain" >> "$cfgfile" \
15917      || (rm -f "$cfgfile"; exit 1)
15918
15919   if test x"$xsi_shell" = xyes; then
15920   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15921 func_dirname ()\
15922 {\
15923 \    case ${1} in\
15924 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15925 \      *  ) func_dirname_result="${3}" ;;\
15926 \    esac\
15927 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15928   && mv -f "$cfgfile.tmp" "$cfgfile" \
15929     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15930 test 0 -eq $? || _lt_function_replace_fail=:
15931
15932
15933   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15934 func_basename ()\
15935 {\
15936 \    func_basename_result="${1##*/}"\
15937 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15938   && mv -f "$cfgfile.tmp" "$cfgfile" \
15939     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15940 test 0 -eq $? || _lt_function_replace_fail=:
15941
15942
15943   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15944 func_dirname_and_basename ()\
15945 {\
15946 \    case ${1} in\
15947 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15948 \      *  ) func_dirname_result="${3}" ;;\
15949 \    esac\
15950 \    func_basename_result="${1##*/}"\
15951 } # Extended-shell func_dirname_and_basename 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_stripname ()$/,/^} # func_stripname /c\
15958 func_stripname ()\
15959 {\
15960 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15961 \    # positional parameters, so assign one to ordinary parameter first.\
15962 \    func_stripname_result=${3}\
15963 \    func_stripname_result=${func_stripname_result#"${1}"}\
15964 \    func_stripname_result=${func_stripname_result%"${2}"}\
15965 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15966   && mv -f "$cfgfile.tmp" "$cfgfile" \
15967     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15968 test 0 -eq $? || _lt_function_replace_fail=:
15969
15970
15971   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15972 func_split_long_opt ()\
15973 {\
15974 \    func_split_long_opt_name=${1%%=*}\
15975 \    func_split_long_opt_arg=${1#*=}\
15976 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15977   && mv -f "$cfgfile.tmp" "$cfgfile" \
15978     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15979 test 0 -eq $? || _lt_function_replace_fail=:
15980
15981
15982   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15983 func_split_short_opt ()\
15984 {\
15985 \    func_split_short_opt_arg=${1#??}\
15986 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15987 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15988   && mv -f "$cfgfile.tmp" "$cfgfile" \
15989     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15990 test 0 -eq $? || _lt_function_replace_fail=:
15991
15992
15993   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15994 func_lo2o ()\
15995 {\
15996 \    case ${1} in\
15997 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15998 \      *)    func_lo2o_result=${1} ;;\
15999 \    esac\
16000 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16001   && mv -f "$cfgfile.tmp" "$cfgfile" \
16002     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16003 test 0 -eq $? || _lt_function_replace_fail=:
16004
16005
16006   sed -e '/^func_xform ()$/,/^} # func_xform /c\
16007 func_xform ()\
16008 {\
16009     func_xform_result=${1%.*}.lo\
16010 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16011   && mv -f "$cfgfile.tmp" "$cfgfile" \
16012     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16013 test 0 -eq $? || _lt_function_replace_fail=:
16014
16015
16016   sed -e '/^func_arith ()$/,/^} # func_arith /c\
16017 func_arith ()\
16018 {\
16019     func_arith_result=$(( $* ))\
16020 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16021   && mv -f "$cfgfile.tmp" "$cfgfile" \
16022     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16023 test 0 -eq $? || _lt_function_replace_fail=:
16024
16025
16026   sed -e '/^func_len ()$/,/^} # func_len /c\
16027 func_len ()\
16028 {\
16029     func_len_result=${#1}\
16030 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16031   && mv -f "$cfgfile.tmp" "$cfgfile" \
16032     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16033 test 0 -eq $? || _lt_function_replace_fail=:
16034
16035 fi
16036
16037 if test x"$lt_shell_append" = xyes; then
16038   sed -e '/^func_append ()$/,/^} # func_append /c\
16039 func_append ()\
16040 {\
16041     eval "${1}+=\\${2}"\
16042 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16043   && mv -f "$cfgfile.tmp" "$cfgfile" \
16044     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16045 test 0 -eq $? || _lt_function_replace_fail=:
16046
16047
16048   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16049 func_append_quoted ()\
16050 {\
16051 \    func_quote_for_eval "${2}"\
16052 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16053 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16054   && mv -f "$cfgfile.tmp" "$cfgfile" \
16055     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16056 test 0 -eq $? || _lt_function_replace_fail=:
16057
16058
16059   # Save a `func_append' function call where possible by direct use of '+='
16060   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16061     && mv -f "$cfgfile.tmp" "$cfgfile" \
16062       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16063   test 0 -eq $? || _lt_function_replace_fail=:
16064 else
16065   # Save a `func_append' function call even when '+=' is not available
16066   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16067     && mv -f "$cfgfile.tmp" "$cfgfile" \
16068       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16069   test 0 -eq $? || _lt_function_replace_fail=:
16070 fi
16071
16072 if test x"$_lt_function_replace_fail" = x":"; then
16073   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16074 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16075 fi
16076
16077
16078    mv -f "$cfgfile" "$ofile" ||
16079     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16080   chmod +x "$ofile"
16081
16082  ;;
16083     "include":C) test -d include || mkdir include ;;
16084     "src":C)
16085 test -d src || mkdir src
16086 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
16087  ;;
16088
16089   esac
16090 done # for ac_tag
16091
16092
16093 as_fn_exit 0
16094 _ACEOF
16095 ac_clean_files=$ac_clean_files_save
16096
16097 test $ac_write_fail = 0 ||
16098   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16099
16100
16101 # configure is writing to config.log, and then calls config.status.
16102 # config.status does its own redirection, appending to config.log.
16103 # Unfortunately, on DOS this fails, as config.log is still kept open
16104 # by configure, so config.status won't be able to write to it; its
16105 # output is simply discarded.  So we exec the FD to /dev/null,
16106 # effectively closing config.log, so it can be properly (re)opened and
16107 # appended to by config.status.  When coming back to configure, we
16108 # need to make the FD available again.
16109 if test "$no_create" != yes; then
16110   ac_cs_success=:
16111   ac_config_status_args=
16112   test "$silent" = yes &&
16113     ac_config_status_args="$ac_config_status_args --quiet"
16114   exec 5>/dev/null
16115   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16116   exec 5>>config.log
16117   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16118   # would make configure fail if this is the last instruction.
16119   $ac_cs_success || as_fn_exit 1
16120 fi
16121 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16122   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16123 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16124 fi
16125