3.0.11-rc1. soname bump.
[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-rc1.
4 #
5 # Report bugs to <http://sourceware.org/libffi.html>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://sourceware.org/libffi.html about your system,
251 $0: including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libffi'
572 PACKAGE_TARNAME='libffi'
573 PACKAGE_VERSION='3.0.11-rc1'
574 PACKAGE_STRING='libffi 3.0.11-rc1'
575 PACKAGE_BUGREPORT='http://sourceware.org/libffi.html'
576 PACKAGE_URL=''
577
578 # Factoring default headers for most tests.
579 ac_includes_default="\
580 #include <stdio.h>
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
583 #endif
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
586 #endif
587 #ifdef STDC_HEADERS
588 # include <stdlib.h>
589 # include <stddef.h>
590 #else
591 # ifdef HAVE_STDLIB_H
592 #  include <stdlib.h>
593 # endif
594 #endif
595 #ifdef HAVE_STRING_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597 #  include <memory.h>
598 # endif
599 # include <string.h>
600 #endif
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
603 #endif
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
606 #endif
607 #ifdef HAVE_STDINT_H
608 # include <stdint.h>
609 #endif
610 #ifdef HAVE_UNISTD_H
611 # include <unistd.h>
612 #endif"
613
614 ac_subst_vars='am__EXEEXT_FALSE
615 am__EXEEXT_TRUE
616 LTLIBOBJS
617 LIBOBJS
618 toolexeclibdir
619 toolexecdir
620 FFI_DEBUG_FALSE
621 FFI_DEBUG_TRUE
622 TARGETDIR
623 TARGET
624 FFI_EXEC_TRAMPOLINE_TABLE
625 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
626 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
627 sys_symbol_underscore
628 HAVE_LONG_DOUBLE
629 ALLOCA
630 PA64_HPUX_FALSE
631 PA64_HPUX_TRUE
632 PA_HPUX_FALSE
633 PA_HPUX_TRUE
634 PA_LINUX_FALSE
635 PA_LINUX_TRUE
636 SH64_FALSE
637 SH64_TRUE
638 SH_FALSE
639 SH_TRUE
640 X86_64_FALSE
641 X86_64_TRUE
642 S390_FALSE
643 S390_TRUE
644 FRV_FALSE
645 FRV_TRUE
646 LIBFFI_CRIS_FALSE
647 LIBFFI_CRIS_TRUE
648 AVR32_FALSE
649 AVR32_TRUE
650 ARM_FALSE
651 ARM_TRUE
652 POWERPC_FREEBSD_FALSE
653 POWERPC_FREEBSD_TRUE
654 POWERPC_DARWIN_FALSE
655 POWERPC_DARWIN_TRUE
656 POWERPC_AIX_FALSE
657 POWERPC_AIX_TRUE
658 POWERPC_FALSE
659 POWERPC_TRUE
660 MOXIE_FALSE
661 MOXIE_TRUE
662 M68K_FALSE
663 M68K_TRUE
664 M32R_FALSE
665 M32R_TRUE
666 IA64_FALSE
667 IA64_TRUE
668 ALPHA_FALSE
669 ALPHA_TRUE
670 X86_DARWIN_FALSE
671 X86_DARWIN_TRUE
672 X86_WIN64_FALSE
673 X86_WIN64_TRUE
674 X86_WIN32_FALSE
675 X86_WIN32_TRUE
676 X86_FREEBSD_FALSE
677 X86_FREEBSD_TRUE
678 X86_FALSE
679 X86_TRUE
680 SPARC_FALSE
681 SPARC_TRUE
682 MIPS_FALSE
683 MIPS_TRUE
684 AM_LTLDFLAGS
685 AM_RUNTESTFLAGS
686 TESTSUBDIR_FALSE
687 TESTSUBDIR_TRUE
688 MAINT
689 MAINTAINER_MODE_FALSE
690 MAINTAINER_MODE_TRUE
691 CPP
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 MANIFEST_TOOL
698 RANLIB
699 ac_ct_AR
700 AR
701 DLLTOOL
702 OBJDUMP
703 LN_S
704 NM
705 ac_ct_DUMPBIN
706 DUMPBIN
707 LD
708 FGREP
709 EGREP
710 GREP
711 SED
712 LIBTOOL
713 am__fastdepCCAS_FALSE
714 am__fastdepCCAS_TRUE
715 CCASDEPMODE
716 CCASFLAGS
717 CCAS
718 am__fastdepCC_FALSE
719 am__fastdepCC_TRUE
720 CCDEPMODE
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__quote
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 am__untar
735 am__tar
736 AMTAR
737 am__leading_dot
738 SET_MAKE
739 AWK
740 mkdir_p
741 MKDIR_P
742 INSTALL_STRIP_PROGRAM
743 STRIP
744 install_sh
745 MAKEINFO
746 AUTOHEADER
747 AUTOMAKE
748 AUTOCONF
749 ACLOCAL
750 VERSION
751 PACKAGE
752 CYGPATH_W
753 am__isrc
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 target_os
758 target_vendor
759 target_cpu
760 target
761 host_os
762 host_vendor
763 host_cpu
764 host
765 build_os
766 build_vendor
767 build_cpu
768 build
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_dependency_tracking
811 enable_shared
812 enable_static
813 with_pic
814 enable_fast_install
815 with_gnu_ld
816 with_sysroot
817 enable_libtool_lock
818 enable_maintainer_mode
819 enable_debug
820 enable_structs
821 enable_raw_api
822 enable_purify_safety
823 '
824       ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CCAS
828 CCASFLAGS
829 CPP
830 CPPFLAGS'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885   # If the previous option needs an argument, assign it.
886   if test -n "$ac_prev"; then
887     eval $ac_prev=\$ac_option
888     ac_prev=
889     continue
890   fi
891
892   case $ac_option in
893   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894   *=)   ac_optarg= ;;
895   *)    ac_optarg=yes ;;
896   esac
897
898   # Accept the important Cygnus configure options, so we can diagnose typos.
899
900   case $ac_dashdash$ac_option in
901   --)
902     ac_dashdash=yes ;;
903
904   -bindir | --bindir | --bindi | --bind | --bin | --bi)
905     ac_prev=bindir ;;
906   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907     bindir=$ac_optarg ;;
908
909   -build | --build | --buil | --bui | --bu)
910     ac_prev=build_alias ;;
911   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912     build_alias=$ac_optarg ;;
913
914   -cache-file | --cache-file | --cache-fil | --cache-fi \
915   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916     ac_prev=cache_file ;;
917   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919     cache_file=$ac_optarg ;;
920
921   --config-cache | -C)
922     cache_file=config.cache ;;
923
924   -datadir | --datadir | --datadi | --datad)
925     ac_prev=datadir ;;
926   -datadir=* | --datadir=* | --datadi=* | --datad=*)
927     datadir=$ac_optarg ;;
928
929   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930   | --dataroo | --dataro | --datar)
931     ac_prev=datarootdir ;;
932   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934     datarootdir=$ac_optarg ;;
935
936   -disable-* | --disable-*)
937     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938     # Reject names that are not valid shell variable names.
939     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940       as_fn_error $? "invalid feature name: $ac_useropt"
941     ac_useropt_orig=$ac_useropt
942     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943     case $ac_user_opts in
944       *"
945 "enable_$ac_useropt"
946 "*) ;;
947       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948          ac_unrecognized_sep=', ';;
949     esac
950     eval enable_$ac_useropt=no ;;
951
952   -docdir | --docdir | --docdi | --doc | --do)
953     ac_prev=docdir ;;
954   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955     docdir=$ac_optarg ;;
956
957   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958     ac_prev=dvidir ;;
959   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960     dvidir=$ac_optarg ;;
961
962   -enable-* | --enable-*)
963     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964     # Reject names that are not valid shell variable names.
965     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966       as_fn_error $? "invalid feature name: $ac_useropt"
967     ac_useropt_orig=$ac_useropt
968     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969     case $ac_user_opts in
970       *"
971 "enable_$ac_useropt"
972 "*) ;;
973       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974          ac_unrecognized_sep=', ';;
975     esac
976     eval enable_$ac_useropt=\$ac_optarg ;;
977
978   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980   | --exec | --exe | --ex)
981     ac_prev=exec_prefix ;;
982   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984   | --exec=* | --exe=* | --ex=*)
985     exec_prefix=$ac_optarg ;;
986
987   -gas | --gas | --ga | --g)
988     # Obsolete; use --with-gas.
989     with_gas=yes ;;
990
991   -help | --help | --hel | --he | -h)
992     ac_init_help=long ;;
993   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994     ac_init_help=recursive ;;
995   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996     ac_init_help=short ;;
997
998   -host | --host | --hos | --ho)
999     ac_prev=host_alias ;;
1000   -host=* | --host=* | --hos=* | --ho=*)
1001     host_alias=$ac_optarg ;;
1002
1003   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004     ac_prev=htmldir ;;
1005   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006   | --ht=*)
1007     htmldir=$ac_optarg ;;
1008
1009   -includedir | --includedir | --includedi | --included | --include \
1010   | --includ | --inclu | --incl | --inc)
1011     ac_prev=includedir ;;
1012   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013   | --includ=* | --inclu=* | --incl=* | --inc=*)
1014     includedir=$ac_optarg ;;
1015
1016   -infodir | --infodir | --infodi | --infod | --info | --inf)
1017     ac_prev=infodir ;;
1018   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019     infodir=$ac_optarg ;;
1020
1021   -libdir | --libdir | --libdi | --libd)
1022     ac_prev=libdir ;;
1023   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024     libdir=$ac_optarg ;;
1025
1026   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027   | --libexe | --libex | --libe)
1028     ac_prev=libexecdir ;;
1029   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030   | --libexe=* | --libex=* | --libe=*)
1031     libexecdir=$ac_optarg ;;
1032
1033   -localedir | --localedir | --localedi | --localed | --locale)
1034     ac_prev=localedir ;;
1035   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036     localedir=$ac_optarg ;;
1037
1038   -localstatedir | --localstatedir | --localstatedi | --localstated \
1039   | --localstate | --localstat | --localsta | --localst | --locals)
1040     ac_prev=localstatedir ;;
1041   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043     localstatedir=$ac_optarg ;;
1044
1045   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046     ac_prev=mandir ;;
1047   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048     mandir=$ac_optarg ;;
1049
1050   -nfp | --nfp | --nf)
1051     # Obsolete; use --without-fp.
1052     with_fp=no ;;
1053
1054   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055   | --no-cr | --no-c | -n)
1056     no_create=yes ;;
1057
1058   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060     no_recursion=yes ;;
1061
1062   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064   | --oldin | --oldi | --old | --ol | --o)
1065     ac_prev=oldincludedir ;;
1066   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069     oldincludedir=$ac_optarg ;;
1070
1071   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072     ac_prev=prefix ;;
1073   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074     prefix=$ac_optarg ;;
1075
1076   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077   | --program-pre | --program-pr | --program-p)
1078     ac_prev=program_prefix ;;
1079   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081     program_prefix=$ac_optarg ;;
1082
1083   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084   | --program-suf | --program-su | --program-s)
1085     ac_prev=program_suffix ;;
1086   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088     program_suffix=$ac_optarg ;;
1089
1090   -program-transform-name | --program-transform-name \
1091   | --program-transform-nam | --program-transform-na \
1092   | --program-transform-n | --program-transform- \
1093   | --program-transform | --program-transfor \
1094   | --program-transfo | --program-transf \
1095   | --program-trans | --program-tran \
1096   | --progr-tra | --program-tr | --program-t)
1097     ac_prev=program_transform_name ;;
1098   -program-transform-name=* | --program-transform-name=* \
1099   | --program-transform-nam=* | --program-transform-na=* \
1100   | --program-transform-n=* | --program-transform-=* \
1101   | --program-transform=* | --program-transfor=* \
1102   | --program-transfo=* | --program-transf=* \
1103   | --program-trans=* | --program-tran=* \
1104   | --progr-tra=* | --program-tr=* | --program-t=*)
1105     program_transform_name=$ac_optarg ;;
1106
1107   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108     ac_prev=pdfdir ;;
1109   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110     pdfdir=$ac_optarg ;;
1111
1112   -psdir | --psdir | --psdi | --psd | --ps)
1113     ac_prev=psdir ;;
1114   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115     psdir=$ac_optarg ;;
1116
1117   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118   | -silent | --silent | --silen | --sile | --sil)
1119     silent=yes ;;
1120
1121   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122     ac_prev=sbindir ;;
1123   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124   | --sbi=* | --sb=*)
1125     sbindir=$ac_optarg ;;
1126
1127   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129   | --sharedst | --shareds | --shared | --share | --shar \
1130   | --sha | --sh)
1131     ac_prev=sharedstatedir ;;
1132   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135   | --sha=* | --sh=*)
1136     sharedstatedir=$ac_optarg ;;
1137
1138   -site | --site | --sit)
1139     ac_prev=site ;;
1140   -site=* | --site=* | --sit=*)
1141     site=$ac_optarg ;;
1142
1143   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144     ac_prev=srcdir ;;
1145   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146     srcdir=$ac_optarg ;;
1147
1148   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149   | --syscon | --sysco | --sysc | --sys | --sy)
1150     ac_prev=sysconfdir ;;
1151   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153     sysconfdir=$ac_optarg ;;
1154
1155   -target | --target | --targe | --targ | --tar | --ta | --t)
1156     ac_prev=target_alias ;;
1157   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158     target_alias=$ac_optarg ;;
1159
1160   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161     verbose=yes ;;
1162
1163   -version | --version | --versio | --versi | --vers | -V)
1164     ac_init_version=: ;;
1165
1166   -with-* | --with-*)
1167     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168     # Reject names that are not valid shell variable names.
1169     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170       as_fn_error $? "invalid package name: $ac_useropt"
1171     ac_useropt_orig=$ac_useropt
1172     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173     case $ac_user_opts in
1174       *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178          ac_unrecognized_sep=', ';;
1179     esac
1180     eval with_$ac_useropt=\$ac_optarg ;;
1181
1182   -without-* | --without-*)
1183     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186       as_fn_error $? "invalid package name: $ac_useropt"
1187     ac_useropt_orig=$ac_useropt
1188     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189     case $ac_user_opts in
1190       *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194          ac_unrecognized_sep=', ';;
1195     esac
1196     eval with_$ac_useropt=no ;;
1197
1198   --x)
1199     # Obsolete; use --with-x.
1200     with_x=yes ;;
1201
1202   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203   | --x-incl | --x-inc | --x-in | --x-i)
1204     ac_prev=x_includes ;;
1205   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207     x_includes=$ac_optarg ;;
1208
1209   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211     ac_prev=x_libraries ;;
1212   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214     x_libraries=$ac_optarg ;;
1215
1216   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information"
1218     ;;
1219
1220   *=*)
1221     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222     # Reject names that are not valid shell variable names.
1223     case $ac_envvar in #(
1224       '' | [0-9]* | *[!_$as_cr_alnum]* )
1225       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226     esac
1227     eval $ac_envvar=\$ac_optarg
1228     export $ac_envvar ;;
1229
1230   *)
1231     # FIXME: should be removed in autoconf 3.0.
1232     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236     ;;
1237
1238   esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243   as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247   case $enable_option_checking in
1248     no) ;;
1249     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251   esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256                 datadir sysconfdir sharedstatedir localstatedir includedir \
1257                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258                 libdir localedir mandir
1259 do
1260   eval ac_val=\$$ac_var
1261   # Remove trailing slashes.
1262   case $ac_val in
1263     */ )
1264       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265       eval $ac_var=\$ac_val;;
1266   esac
1267   # Be sure to have absolute directory names.
1268   case $ac_val in
1269     [\\/$]* | ?:[\\/]* )  continue;;
1270     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271   esac
1272   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284   if test "x$build_alias" = x; then
1285     cross_compiling=maybe
1286     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1287     If a cross compiler is detected then cross compile mode will be used" >&2
1288   elif test "x$build_alias" != "x$host_alias"; then
1289     cross_compiling=yes
1290   fi
1291 fi
1292
1293 ac_tool_prefix=
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296 test "$silent" = yes && exec 6>/dev/null
1297
1298
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302   as_fn_error $? "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304   as_fn_error $? "pwd does not report name of working directory"
1305
1306
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309   ac_srcdir_defaulted=yes
1310   # Try the directory containing this script, then the parent directory.
1311   ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313          X"$as_myself" : 'X\(//\)[^/]' \| \
1314          X"$as_myself" : 'X\(//\)$' \| \
1315          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318             s//\1/
1319             q
1320           }
1321           /^X\(\/\/\)[^/].*/{
1322             s//\1/
1323             q
1324           }
1325           /^X\(\/\/\)$/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\).*/{
1330             s//\1/
1331             q
1332           }
1333           s/.*/./; q'`
1334   srcdir=$ac_confdir
1335   if test ! -r "$srcdir/$ac_unique_file"; then
1336     srcdir=..
1337   fi
1338 else
1339   ac_srcdir_defaulted=no
1340 fi
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344 fi
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348         pwd)`
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351   srcdir=.
1352 fi
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1356 case $srcdir in
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 esac
1359 for ac_var in $ac_precious_vars; do
1360   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361   eval ac_env_${ac_var}_value=\$${ac_var}
1362   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1365
1366 #
1367 # Report the --help message.
1368 #
1369 if test "$ac_init_help" = "long"; then
1370   # Omit some internal or obsolete options to make the list less imposing.
1371   # This message is too long to be a string in the A/UX 3.1 sh.
1372   cat <<_ACEOF
1373 \`configure' configures libffi 3.0.11-rc1 to adapt to many kinds of systems.
1374
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE.  See below for descriptions of some of the useful variables.
1379
1380 Defaults for the options are specified in brackets.
1381
1382 Configuration:
1383   -h, --help              display this help and exit
1384       --help=short        display options specific to this package
1385       --help=recursive    display the short help of all the included packages
1386   -V, --version           display version information and exit
1387   -q, --quiet, --silent   do not print \`checking ...' messages
1388       --cache-file=FILE   cache test results in FILE [disabled]
1389   -C, --config-cache      alias for \`--cache-file=config.cache'
1390   -n, --no-create         do not create output files
1391       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1392
1393 Installation directories:
1394   --prefix=PREFIX         install architecture-independent files in PREFIX
1395                           [$ac_default_prefix]
1396   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1397                           [PREFIX]
1398
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1403
1404 For better control, use the options below.
1405
1406 Fine tuning of the installation directories:
1407   --bindir=DIR            user executables [EPREFIX/bin]
1408   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1409   --libexecdir=DIR        program executables [EPREFIX/libexec]
1410   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1411   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1412   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1413   --libdir=DIR            object code libraries [EPREFIX/lib]
1414   --includedir=DIR        C header files [PREFIX/include]
1415   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1416   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1417   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1418   --infodir=DIR           info documentation [DATAROOTDIR/info]
1419   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1420   --mandir=DIR            man documentation [DATAROOTDIR/man]
1421   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1422   --htmldir=DIR           html documentation [DOCDIR]
1423   --dvidir=DIR            dvi documentation [DOCDIR]
1424   --pdfdir=DIR            pdf documentation [DOCDIR]
1425   --psdir=DIR             ps documentation [DOCDIR]
1426 _ACEOF
1427
1428   cat <<\_ACEOF
1429
1430 Program names:
1431   --program-prefix=PREFIX            prepend PREFIX to installed program names
1432   --program-suffix=SUFFIX            append SUFFIX to installed program names
1433   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1434
1435 System types:
1436   --build=BUILD     configure for building on BUILD [guessed]
1437   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1438   --target=TARGET   configure for building compilers for TARGET [HOST]
1439 _ACEOF
1440 fi
1441
1442 if test -n "$ac_init_help"; then
1443   case $ac_init_help in
1444      short | recursive ) echo "Configuration of libffi 3.0.11-rc1:";;
1445    esac
1446   cat <<\_ACEOF
1447
1448 Optional Features:
1449   --disable-option-checking  ignore unrecognized --enable/--with options
1450   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1451   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1452   --disable-dependency-tracking  speeds up one-time build
1453   --enable-dependency-tracking   do not reject slow dependency extractors
1454   --enable-shared[=PKGS]  build shared libraries [default=yes]
1455   --enable-static[=PKGS]  build static libraries [default=yes]
1456   --enable-fast-install[=PKGS]
1457                           optimize for fast installation [default=yes]
1458   --disable-libtool-lock  avoid locking (might break parallel builds)
1459   --enable-maintainer-mode  enable make rules and dependencies not useful
1460                           (and sometimes confusing) to the casual installer
1461   --enable-debug          debugging mode
1462   --disable-structs       omit code for struct support
1463   --disable-raw-api       make the raw api unavailable
1464   --enable-purify-safety  purify-safe mode
1465
1466 Optional Packages:
1467   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1468   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1469   --with-pic              try to use only PIC/non-PIC objects [default=use
1470                           both]
1471   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1472   --with-sysroot=DIR Search for dependent libraries within DIR
1473                         (or the compiler's sysroot if not specified).
1474
1475 Some influential environment variables:
1476   CC          C compiler command
1477   CFLAGS      C compiler flags
1478   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1479               nonstandard directory <lib dir>
1480   LIBS        libraries to pass to the linker, e.g. -l<library>
1481   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1482               you have headers in a nonstandard directory <include dir>
1483   CCAS        assembler compiler command (defaults to CC)
1484   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1485   CPP         C preprocessor
1486
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1489
1490 Report bugs to <http://sourceware.org/libffi.html>.
1491 _ACEOF
1492 ac_status=$?
1493 fi
1494
1495 if test "$ac_init_help" = "recursive"; then
1496   # If there are subdirs, report their specific --help.
1497   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498     test -d "$ac_dir" ||
1499       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500       continue
1501     ac_builddir=.
1502
1503 case "$ac_dir" in
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *)
1506   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1507   # A ".." for each directory in $ac_dir_suffix.
1508   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509   case $ac_top_builddir_sub in
1510   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512   esac ;;
1513 esac
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1518
1519 case $srcdir in
1520   .)  # We are building in place.
1521     ac_srcdir=.
1522     ac_top_srcdir=$ac_top_builddir_sub
1523     ac_abs_top_srcdir=$ac_pwd ;;
1524   [\\/]* | ?:[\\/]* )  # Absolute name.
1525     ac_srcdir=$srcdir$ac_dir_suffix;
1526     ac_top_srcdir=$srcdir
1527     ac_abs_top_srcdir=$srcdir ;;
1528   *) # Relative name.
1529     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530     ac_top_srcdir=$ac_top_build_prefix$srcdir
1531     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 esac
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535     cd "$ac_dir" || { ac_status=$?; continue; }
1536     # Check for guested configure.
1537     if test -f "$ac_srcdir/configure.gnu"; then
1538       echo &&
1539       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540     elif test -f "$ac_srcdir/configure"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure" --help=recursive
1543     else
1544       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545     fi || ac_status=$?
1546     cd "$ac_pwd" || { ac_status=$?; break; }
1547   done
1548 fi
1549
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1552   cat <<\_ACEOF
1553 libffi configure 3.0.11-rc1
1554 generated by GNU Autoconf 2.68
1555
1556 Copyright (C) 2010 Free Software Foundation, Inc.
1557 This configure script is free software; the Free Software Foundation
1558 gives unlimited permission to copy, distribute and modify it.
1559 _ACEOF
1560   exit
1561 fi
1562
1563 ## ------------------------ ##
1564 ## Autoconf initialization. ##
1565 ## ------------------------ ##
1566
1567 # ac_fn_c_try_compile LINENO
1568 # --------------------------
1569 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_compile ()
1571 {
1572   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573   rm -f conftest.$ac_objext
1574   if { { ac_try="$ac_compile"
1575 case "(($ac_try" in
1576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577   *) ac_try_echo=$ac_try;;
1578 esac
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581   (eval "$ac_compile") 2>conftest.err
1582   ac_status=$?
1583   if test -s conftest.err; then
1584     grep -v '^ *+' conftest.err >conftest.er1
1585     cat conftest.er1 >&5
1586     mv -f conftest.er1 conftest.err
1587   fi
1588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589   test $ac_status = 0; } && {
1590          test -z "$ac_c_werror_flag" ||
1591          test ! -s conftest.err
1592        } && test -s conftest.$ac_objext; then :
1593   ac_retval=0
1594 else
1595   $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598         ac_retval=1
1599 fi
1600   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601   as_fn_set_status $ac_retval
1602
1603 } # ac_fn_c_try_compile
1604
1605 # ac_fn_c_try_link LINENO
1606 # -----------------------
1607 # Try to link conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_link ()
1609 {
1610   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611   rm -f conftest.$ac_objext conftest$ac_exeext
1612   if { { ac_try="$ac_link"
1613 case "(($ac_try" in
1614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615   *) ac_try_echo=$ac_try;;
1616 esac
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619   (eval "$ac_link") 2>conftest.err
1620   ac_status=$?
1621   if test -s conftest.err; then
1622     grep -v '^ *+' conftest.err >conftest.er1
1623     cat conftest.er1 >&5
1624     mv -f conftest.er1 conftest.err
1625   fi
1626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627   test $ac_status = 0; } && {
1628          test -z "$ac_c_werror_flag" ||
1629          test ! -s conftest.err
1630        } && test -s conftest$ac_exeext && {
1631          test "$cross_compiling" = yes ||
1632          $as_test_x conftest$ac_exeext
1633        }; then :
1634   ac_retval=0
1635 else
1636   $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639         ac_retval=1
1640 fi
1641   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1642   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1643   # interfere with the next link command; also delete a directory that is
1644   # left behind by Apple's compiler.  We do this before executing the actions.
1645   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1646   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647   as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_link
1650
1651 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1652 # -------------------------------------------------------
1653 # Tests whether HEADER exists and can be compiled using the include files in
1654 # INCLUDES, setting the cache variable VAR accordingly.
1655 ac_fn_c_check_header_compile ()
1656 {
1657   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659 $as_echo_n "checking for $2... " >&6; }
1660 if eval \${$3+:} false; then :
1661   $as_echo_n "(cached) " >&6
1662 else
1663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h.  */
1665 $4
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_compile "$LINENO"; then :
1669   eval "$3=yes"
1670 else
1671   eval "$3=no"
1672 fi
1673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674 fi
1675 eval ac_res=\$$3
1676                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1678   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679
1680 } # ac_fn_c_check_header_compile
1681
1682 # ac_fn_c_try_cpp LINENO
1683 # ----------------------
1684 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_cpp ()
1686 {
1687   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688   if { { ac_try="$ac_cpp conftest.$ac_ext"
1689 case "(($ac_try" in
1690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691   *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696   ac_status=$?
1697   if test -s conftest.err; then
1698     grep -v '^ *+' conftest.err >conftest.er1
1699     cat conftest.er1 >&5
1700     mv -f conftest.er1 conftest.err
1701   fi
1702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703   test $ac_status = 0; } > conftest.i && {
1704          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705          test ! -s conftest.err
1706        }; then :
1707   ac_retval=0
1708 else
1709   $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712     ac_retval=1
1713 fi
1714   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715   as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_cpp
1718
1719 # ac_fn_c_try_run LINENO
1720 # ----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722 # that executables *can* be run.
1723 ac_fn_c_try_run ()
1724 {
1725   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726   if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729   *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733   (eval "$ac_link") 2>&5
1734   ac_status=$?
1735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737   { { case "(($ac_try" in
1738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739   *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743   (eval "$ac_try") 2>&5
1744   ac_status=$?
1745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746   test $ac_status = 0; }; }; then :
1747   ac_retval=0
1748 else
1749   $as_echo "$as_me: program exited with status $ac_status" >&5
1750        $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753        ac_retval=$ac_status
1754 fi
1755   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757   as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_run
1760
1761 # ac_fn_c_check_func LINENO FUNC VAR
1762 # ----------------------------------
1763 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1764 ac_fn_c_check_func ()
1765 {
1766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if eval \${$3+:} false; then :
1770   $as_echo_n "(cached) " >&6
1771 else
1772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h.  */
1774 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1776 #define $2 innocuous_$2
1777
1778 /* System header to define __stub macros and hopefully few prototypes,
1779     which can conflict with char $2 (); below.
1780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1781     <limits.h> exists even on freestanding compilers.  */
1782
1783 #ifdef __STDC__
1784 # include <limits.h>
1785 #else
1786 # include <assert.h>
1787 #endif
1788
1789 #undef $2
1790
1791 /* Override any GCC internal prototype to avoid an error.
1792    Use char because int might match the return type of a GCC
1793    builtin and then its argument prototype would still apply.  */
1794 #ifdef __cplusplus
1795 extern "C"
1796 #endif
1797 char $2 ();
1798 /* The GNU C library defines this for functions which it implements
1799     to always fail with ENOSYS.  Some functions are actually named
1800     something starting with __ and the normal name is an alias.  */
1801 #if defined __stub_$2 || defined __stub___$2
1802 choke me
1803 #endif
1804
1805 int
1806 main ()
1807 {
1808 return $2 ();
1809   ;
1810   return 0;
1811 }
1812 _ACEOF
1813 if ac_fn_c_try_link "$LINENO"; then :
1814   eval "$3=yes"
1815 else
1816   eval "$3=no"
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext \
1819     conftest$ac_exeext conftest.$ac_ext
1820 fi
1821 eval ac_res=\$$3
1822                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826 } # ac_fn_c_check_func
1827
1828 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1829 # -------------------------------------------------------
1830 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1831 # the include files in INCLUDES and setting the cache variable VAR
1832 # accordingly.
1833 ac_fn_c_check_header_mongrel ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   if eval \${$3+:} false; then :
1837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840   $as_echo_n "(cached) " >&6
1841 fi
1842 eval ac_res=\$$3
1843                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 else
1846   # Is the header compilable?
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1848 $as_echo_n "checking $2 usability... " >&6; }
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h.  */
1851 $4
1852 #include <$2>
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855   ac_header_compiler=yes
1856 else
1857   ac_header_compiler=no
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1861 $as_echo "$ac_header_compiler" >&6; }
1862
1863 # Is the header present?
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1865 $as_echo_n "checking $2 presence... " >&6; }
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h.  */
1868 #include <$2>
1869 _ACEOF
1870 if ac_fn_c_try_cpp "$LINENO"; then :
1871   ac_header_preproc=yes
1872 else
1873   ac_header_preproc=no
1874 fi
1875 rm -f conftest.err conftest.i conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1877 $as_echo "$ac_header_preproc" >&6; }
1878
1879 # So?  What about this header?
1880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1881   yes:no: )
1882     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1883 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1884     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886     ;;
1887   no:yes:* )
1888     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1889 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1890     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1891 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1893 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1895 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1896     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1898 ( $as_echo "## ------------------------------------------------ ##
1899 ## Report this to http://sourceware.org/libffi.html ##
1900 ## ------------------------------------------------ ##"
1901      ) | sed "s/^/$as_me: WARNING:     /" >&2
1902     ;;
1903 esac
1904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if eval \${$3+:} false; then :
1907   $as_echo_n "(cached) " >&6
1908 else
1909   eval "$3=\$ac_header_compiler"
1910 fi
1911 eval ac_res=\$$3
1912                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 fi
1915   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916
1917 } # ac_fn_c_check_header_mongrel
1918
1919 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1920 # -------------------------------------------
1921 # Tests whether TYPE exists after having included INCLUDES, setting cache
1922 # variable VAR accordingly.
1923 ac_fn_c_check_type ()
1924 {
1925   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929   $as_echo_n "(cached) " >&6
1930 else
1931   eval "$3=no"
1932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h.  */
1934 $4
1935 int
1936 main ()
1937 {
1938 if (sizeof ($2))
1939          return 0;
1940   ;
1941   return 0;
1942 }
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h.  */
1947 $4
1948 int
1949 main ()
1950 {
1951 if (sizeof (($2)))
1952             return 0;
1953   ;
1954   return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958
1959 else
1960   eval "$3=yes"
1961 fi
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 fi
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 fi
1966 eval ac_res=\$$3
1967                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971 } # ac_fn_c_check_type
1972
1973 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1974 # --------------------------------------------
1975 # Tries to find the compile-time value of EXPR in a program that includes
1976 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1977 # computed
1978 ac_fn_c_compute_int ()
1979 {
1980   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981   if test "$cross_compiling" = yes; then
1982     # Depending upon the size, compute the lo and hi bounds.
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h.  */
1985 $4
1986 int
1987 main ()
1988 {
1989 static int test_array [1 - 2 * !(($2) >= 0)];
1990 test_array [0] = 0
1991
1992   ;
1993   return 0;
1994 }
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997   ac_lo=0 ac_mid=0
1998   while :; do
1999     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h.  */
2001 $4
2002 int
2003 main ()
2004 {
2005 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2006 test_array [0] = 0
2007
2008   ;
2009   return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013   ac_hi=$ac_mid; break
2014 else
2015   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2016                         if test $ac_lo -le $ac_mid; then
2017                           ac_lo= ac_hi=
2018                           break
2019                         fi
2020                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2021 fi
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023   done
2024 else
2025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h.  */
2027 $4
2028 int
2029 main ()
2030 {
2031 static int test_array [1 - 2 * !(($2) < 0)];
2032 test_array [0] = 0
2033
2034   ;
2035   return 0;
2036 }
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039   ac_hi=-1 ac_mid=-1
2040   while :; do
2041     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h.  */
2043 $4
2044 int
2045 main ()
2046 {
2047 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2048 test_array [0] = 0
2049
2050   ;
2051   return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055   ac_lo=$ac_mid; break
2056 else
2057   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2058                         if test $ac_mid -le $ac_hi; then
2059                           ac_lo= ac_hi=
2060                           break
2061                         fi
2062                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065   done
2066 else
2067   ac_lo= ac_hi=
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 # Binary search between lo and hi bounds.
2073 while test "x$ac_lo" != "x$ac_hi"; do
2074   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h.  */
2077 $4
2078 int
2079 main ()
2080 {
2081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2082 test_array [0] = 0
2083
2084   ;
2085   return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089   ac_hi=$ac_mid
2090 else
2091   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2092 fi
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 done
2095 case $ac_lo in #((
2096 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2097 '') ac_retval=1 ;;
2098 esac
2099   else
2100     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h.  */
2102 $4
2103 static long int longval () { return $2; }
2104 static unsigned long int ulongval () { return $2; }
2105 #include <stdio.h>
2106 #include <stdlib.h>
2107 int
2108 main ()
2109 {
2110
2111   FILE *f = fopen ("conftest.val", "w");
2112   if (! f)
2113     return 1;
2114   if (($2) < 0)
2115     {
2116       long int i = longval ();
2117       if (i != ($2))
2118         return 1;
2119       fprintf (f, "%ld", i);
2120     }
2121   else
2122     {
2123       unsigned long int i = ulongval ();
2124       if (i != ($2))
2125         return 1;
2126       fprintf (f, "%lu", i);
2127     }
2128   /* Do not output a trailing newline, as this causes \r\n confusion
2129      on some platforms.  */
2130   return ferror (f) || fclose (f) != 0;
2131
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_run "$LINENO"; then :
2137   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2138 else
2139   ac_retval=1
2140 fi
2141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2142   conftest.$ac_objext conftest.beam conftest.$ac_ext
2143 rm -f conftest.val
2144
2145   fi
2146   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147   as_fn_set_status $ac_retval
2148
2149 } # ac_fn_c_compute_int
2150 cat >config.log <<_ACEOF
2151 This file contains any messages produced by compilers while
2152 running configure, to aid debugging if configure makes a mistake.
2153
2154 It was created by libffi $as_me 3.0.11-rc1, which was
2155 generated by GNU Autoconf 2.68.  Invocation command line was
2156
2157   $ $0 $@
2158
2159 _ACEOF
2160 exec 5>>config.log
2161 {
2162 cat <<_ASUNAME
2163 ## --------- ##
2164 ## Platform. ##
2165 ## --------- ##
2166
2167 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2168 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2169 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2170 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2171 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2172
2173 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2174 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2175
2176 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2177 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2178 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2179 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2180 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2181 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2182 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2183
2184 _ASUNAME
2185
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2188 do
2189   IFS=$as_save_IFS
2190   test -z "$as_dir" && as_dir=.
2191     $as_echo "PATH: $as_dir"
2192   done
2193 IFS=$as_save_IFS
2194
2195 } >&5
2196
2197 cat >&5 <<_ACEOF
2198
2199
2200 ## ----------- ##
2201 ## Core tests. ##
2202 ## ----------- ##
2203
2204 _ACEOF
2205
2206
2207 # Keep a trace of the command line.
2208 # Strip out --no-create and --no-recursion so they do not pile up.
2209 # Strip out --silent because we don't want to record it for future runs.
2210 # Also quote any args containing shell meta-characters.
2211 # Make two passes to allow for proper duplicate-argument suppression.
2212 ac_configure_args=
2213 ac_configure_args0=
2214 ac_configure_args1=
2215 ac_must_keep_next=false
2216 for ac_pass in 1 2
2217 do
2218   for ac_arg
2219   do
2220     case $ac_arg in
2221     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2222     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2223     | -silent | --silent | --silen | --sile | --sil)
2224       continue ;;
2225     *\'*)
2226       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2227     esac
2228     case $ac_pass in
2229     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2230     2)
2231       as_fn_append ac_configure_args1 " '$ac_arg'"
2232       if test $ac_must_keep_next = true; then
2233         ac_must_keep_next=false # Got value, back to normal.
2234       else
2235         case $ac_arg in
2236           *=* | --config-cache | -C | -disable-* | --disable-* \
2237           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2238           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2239           | -with-* | --with-* | -without-* | --without-* | --x)
2240             case "$ac_configure_args0 " in
2241               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2242             esac
2243             ;;
2244           -* ) ac_must_keep_next=true ;;
2245         esac
2246       fi
2247       as_fn_append ac_configure_args " '$ac_arg'"
2248       ;;
2249     esac
2250   done
2251 done
2252 { ac_configure_args0=; unset ac_configure_args0;}
2253 { ac_configure_args1=; unset ac_configure_args1;}
2254
2255 # When interrupted or exit'd, cleanup temporary files, and complete
2256 # config.log.  We remove comments because anyway the quotes in there
2257 # would cause problems or look ugly.
2258 # WARNING: Use '\'' to represent an apostrophe within the trap.
2259 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2260 trap 'exit_status=$?
2261   # Save into config.log some information that might help in debugging.
2262   {
2263     echo
2264
2265     $as_echo "## ---------------- ##
2266 ## Cache variables. ##
2267 ## ---------------- ##"
2268     echo
2269     # The following way of writing the cache mishandles newlines in values,
2270 (
2271   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2272     eval ac_val=\$$ac_var
2273     case $ac_val in #(
2274     *${as_nl}*)
2275       case $ac_var in #(
2276       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2277 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2278       esac
2279       case $ac_var in #(
2280       _ | IFS | as_nl) ;; #(
2281       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2282       *) { eval $ac_var=; unset $ac_var;} ;;
2283       esac ;;
2284     esac
2285   done
2286   (set) 2>&1 |
2287     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2288     *${as_nl}ac_space=\ *)
2289       sed -n \
2290         "s/'\''/'\''\\\\'\'''\''/g;
2291           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2292       ;; #(
2293     *)
2294       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2295       ;;
2296     esac |
2297     sort
2298 )
2299     echo
2300
2301     $as_echo "## ----------------- ##
2302 ## Output variables. ##
2303 ## ----------------- ##"
2304     echo
2305     for ac_var in $ac_subst_vars
2306     do
2307       eval ac_val=\$$ac_var
2308       case $ac_val in
2309       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2310       esac
2311       $as_echo "$ac_var='\''$ac_val'\''"
2312     done | sort
2313     echo
2314
2315     if test -n "$ac_subst_files"; then
2316       $as_echo "## ------------------- ##
2317 ## File substitutions. ##
2318 ## ------------------- ##"
2319       echo
2320       for ac_var in $ac_subst_files
2321       do
2322         eval ac_val=\$$ac_var
2323         case $ac_val in
2324         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2325         esac
2326         $as_echo "$ac_var='\''$ac_val'\''"
2327       done | sort
2328       echo
2329     fi
2330
2331     if test -s confdefs.h; then
2332       $as_echo "## ----------- ##
2333 ## confdefs.h. ##
2334 ## ----------- ##"
2335       echo
2336       cat confdefs.h
2337       echo
2338     fi
2339     test "$ac_signal" != 0 &&
2340       $as_echo "$as_me: caught signal $ac_signal"
2341     $as_echo "$as_me: exit $exit_status"
2342   } >&5
2343   rm -f core *.core core.conftest.* &&
2344     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2345     exit $exit_status
2346 ' 0
2347 for ac_signal in 1 2 13 15; do
2348   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2349 done
2350 ac_signal=0
2351
2352 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2353 rm -f -r conftest* confdefs.h
2354
2355 $as_echo "/* confdefs.h */" > confdefs.h
2356
2357 # Predefined preprocessor variables.
2358
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_NAME "$PACKAGE_NAME"
2361 _ACEOF
2362
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2365 _ACEOF
2366
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2369 _ACEOF
2370
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_STRING "$PACKAGE_STRING"
2373 _ACEOF
2374
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2377 _ACEOF
2378
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_URL "$PACKAGE_URL"
2381 _ACEOF
2382
2383
2384 # Let the site file select an alternate cache file if it wants to.
2385 # Prefer an explicitly selected file to automatically selected ones.
2386 ac_site_file1=NONE
2387 ac_site_file2=NONE
2388 if test -n "$CONFIG_SITE"; then
2389   # We do not want a PATH search for config.site.
2390   case $CONFIG_SITE in #((
2391     -*)  ac_site_file1=./$CONFIG_SITE;;
2392     */*) ac_site_file1=$CONFIG_SITE;;
2393     *)   ac_site_file1=./$CONFIG_SITE;;
2394   esac
2395 elif test "x$prefix" != xNONE; then
2396   ac_site_file1=$prefix/share/config.site
2397   ac_site_file2=$prefix/etc/config.site
2398 else
2399   ac_site_file1=$ac_default_prefix/share/config.site
2400   ac_site_file2=$ac_default_prefix/etc/config.site
2401 fi
2402 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2403 do
2404   test "x$ac_site_file" = xNONE && continue
2405   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2406     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2407 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2408     sed 's/^/| /' "$ac_site_file" >&5
2409     . "$ac_site_file" \
2410       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2412 as_fn_error $? "failed to load site script $ac_site_file
2413 See \`config.log' for more details" "$LINENO" 5; }
2414   fi
2415 done
2416
2417 if test -r "$cache_file"; then
2418   # Some versions of bash will fail to source /dev/null (special files
2419   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2420   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2421     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2422 $as_echo "$as_me: loading cache $cache_file" >&6;}
2423     case $cache_file in
2424       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2425       *)                      . "./$cache_file";;
2426     esac
2427   fi
2428 else
2429   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2430 $as_echo "$as_me: creating cache $cache_file" >&6;}
2431   >$cache_file
2432 fi
2433
2434 # Check that the precious variables saved in the cache have kept the same
2435 # value.
2436 ac_cache_corrupted=false
2437 for ac_var in $ac_precious_vars; do
2438   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2439   eval ac_new_set=\$ac_env_${ac_var}_set
2440   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2441   eval ac_new_val=\$ac_env_${ac_var}_value
2442   case $ac_old_set,$ac_new_set in
2443     set,)
2444       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2445 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2446       ac_cache_corrupted=: ;;
2447     ,set)
2448       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2449 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2450       ac_cache_corrupted=: ;;
2451     ,);;
2452     *)
2453       if test "x$ac_old_val" != "x$ac_new_val"; then
2454         # differences in whitespace do not lead to failure.
2455         ac_old_val_w=`echo x $ac_old_val`
2456         ac_new_val_w=`echo x $ac_new_val`
2457         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2458           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2459 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2460           ac_cache_corrupted=:
2461         else
2462           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2463 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2464           eval $ac_var=\$ac_old_val
2465         fi
2466         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2467 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2468         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2469 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2470       fi;;
2471   esac
2472   # Pass precious variables to config.status.
2473   if test "$ac_new_set" = set; then
2474     case $ac_new_val in
2475     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2476     *) ac_arg=$ac_var=$ac_new_val ;;
2477     esac
2478     case " $ac_configure_args " in
2479       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2480       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2481     esac
2482   fi
2483 done
2484 if $ac_cache_corrupted; then
2485   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2488 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2489   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2490 fi
2491 ## -------------------- ##
2492 ## Main body of script. ##
2493 ## -------------------- ##
2494
2495 ac_ext=c
2496 ac_cpp='$CPP $CPPFLAGS'
2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2500
2501
2502 ac_config_headers="$ac_config_headers fficonfig.h"
2503
2504
2505 ac_aux_dir=
2506 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2507   if test -f "$ac_dir/install-sh"; then
2508     ac_aux_dir=$ac_dir
2509     ac_install_sh="$ac_aux_dir/install-sh -c"
2510     break
2511   elif test -f "$ac_dir/install.sh"; then
2512     ac_aux_dir=$ac_dir
2513     ac_install_sh="$ac_aux_dir/install.sh -c"
2514     break
2515   elif test -f "$ac_dir/shtool"; then
2516     ac_aux_dir=$ac_dir
2517     ac_install_sh="$ac_aux_dir/shtool install -c"
2518     break
2519   fi
2520 done
2521 if test -z "$ac_aux_dir"; then
2522   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2523 fi
2524
2525 # These three variables are undocumented and unsupported,
2526 # and are intended to be withdrawn in a future Autoconf release.
2527 # They can cause serious problems if a builder's source tree is in a directory
2528 # whose full name contains unusual characters.
2529 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2530 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2531 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2532
2533
2534 # Make sure we can run config.sub.
2535 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2536   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2537
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2539 $as_echo_n "checking build system type... " >&6; }
2540 if ${ac_cv_build+:} false; then :
2541   $as_echo_n "(cached) " >&6
2542 else
2543   ac_build_alias=$build_alias
2544 test "x$ac_build_alias" = x &&
2545   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2546 test "x$ac_build_alias" = x &&
2547   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2548 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2549   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2550
2551 fi
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2553 $as_echo "$ac_cv_build" >&6; }
2554 case $ac_cv_build in
2555 *-*-*) ;;
2556 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2557 esac
2558 build=$ac_cv_build
2559 ac_save_IFS=$IFS; IFS='-'
2560 set x $ac_cv_build
2561 shift
2562 build_cpu=$1
2563 build_vendor=$2
2564 shift; shift
2565 # Remember, the first character of IFS is used to create $*,
2566 # except with old shells:
2567 build_os=$*
2568 IFS=$ac_save_IFS
2569 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2570
2571
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2573 $as_echo_n "checking host system type... " >&6; }
2574 if ${ac_cv_host+:} false; then :
2575   $as_echo_n "(cached) " >&6
2576 else
2577   if test "x$host_alias" = x; then
2578   ac_cv_host=$ac_cv_build
2579 else
2580   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2581     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2582 fi
2583
2584 fi
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2586 $as_echo "$ac_cv_host" >&6; }
2587 case $ac_cv_host in
2588 *-*-*) ;;
2589 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2590 esac
2591 host=$ac_cv_host
2592 ac_save_IFS=$IFS; IFS='-'
2593 set x $ac_cv_host
2594 shift
2595 host_cpu=$1
2596 host_vendor=$2
2597 shift; shift
2598 # Remember, the first character of IFS is used to create $*,
2599 # except with old shells:
2600 host_os=$*
2601 IFS=$ac_save_IFS
2602 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2603
2604
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2606 $as_echo_n "checking target system type... " >&6; }
2607 if ${ac_cv_target+:} false; then :
2608   $as_echo_n "(cached) " >&6
2609 else
2610   if test "x$target_alias" = x; then
2611   ac_cv_target=$ac_cv_host
2612 else
2613   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2614     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2615 fi
2616
2617 fi
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2619 $as_echo "$ac_cv_target" >&6; }
2620 case $ac_cv_target in
2621 *-*-*) ;;
2622 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2623 esac
2624 target=$ac_cv_target
2625 ac_save_IFS=$IFS; IFS='-'
2626 set x $ac_cv_target
2627 shift
2628 target_cpu=$1
2629 target_vendor=$2
2630 shift; shift
2631 # Remember, the first character of IFS is used to create $*,
2632 # except with old shells:
2633 target_os=$*
2634 IFS=$ac_save_IFS
2635 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2636
2637
2638 # The aliases save the names the user supplied, while $host etc.
2639 # will get canonicalized.
2640 test -n "$target_alias" &&
2641   test "$program_prefix$program_suffix$program_transform_name" = \
2642     NONENONEs,x,x, &&
2643   program_prefix=${target_alias}-
2644
2645 target_alias=${target_alias-$host_alias}
2646
2647 . ${srcdir}/configure.host
2648
2649 AX_ENABLE_BUILDDIR
2650
2651 am__api_version='1.11'
2652
2653 # Find a good install program.  We prefer a C program (faster),
2654 # so one script is as good as another.  But avoid the broken or
2655 # incompatible versions:
2656 # SysV /etc/install, /usr/sbin/install
2657 # SunOS /usr/etc/install
2658 # IRIX /sbin/install
2659 # AIX /bin/install
2660 # AmigaOS /C/install, which installs bootblocks on floppy discs
2661 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2664 # OS/2's system install, which has a completely different semantic
2665 # ./install, which can be erroneously created by make from ./install.sh.
2666 # Reject install programs that cannot install multiple files.
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2668 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2669 if test -z "$INSTALL"; then
2670 if ${ac_cv_path_install+:} false; then :
2671   $as_echo_n "(cached) " >&6
2672 else
2673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676   IFS=$as_save_IFS
2677   test -z "$as_dir" && as_dir=.
2678     # Account for people who put trailing slashes in PATH elements.
2679 case $as_dir/ in #((
2680   ./ | .// | /[cC]/* | \
2681   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2682   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2683   /usr/ucb/* ) ;;
2684   *)
2685     # OSF1 and SCO ODT 3.0 have their own names for install.
2686     # Don't use installbsd from OSF since it installs stuff as root
2687     # by default.
2688     for ac_prog in ginstall scoinst install; do
2689       for ac_exec_ext in '' $ac_executable_extensions; do
2690         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2691           if test $ac_prog = install &&
2692             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2693             # AIX install.  It has an incompatible calling convention.
2694             :
2695           elif test $ac_prog = install &&
2696             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2697             # program-specific install script used by HP pwplus--don't use.
2698             :
2699           else
2700             rm -rf conftest.one conftest.two conftest.dir
2701             echo one > conftest.one
2702             echo two > conftest.two
2703             mkdir conftest.dir
2704             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2705               test -s conftest.one && test -s conftest.two &&
2706               test -s conftest.dir/conftest.one &&
2707               test -s conftest.dir/conftest.two
2708             then
2709               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2710               break 3
2711             fi
2712           fi
2713         fi
2714       done
2715     done
2716     ;;
2717 esac
2718
2719   done
2720 IFS=$as_save_IFS
2721
2722 rm -rf conftest.one conftest.two conftest.dir
2723
2724 fi
2725   if test "${ac_cv_path_install+set}" = set; then
2726     INSTALL=$ac_cv_path_install
2727   else
2728     # As a last resort, use the slow shell script.  Don't cache a
2729     # value for INSTALL within a source directory, because that will
2730     # break other packages using the cache if that directory is
2731     # removed, or if the value is a relative name.
2732     INSTALL=$ac_install_sh
2733   fi
2734 fi
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2736 $as_echo "$INSTALL" >&6; }
2737
2738 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2739 # It thinks the first close brace ends the variable substitution.
2740 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2741
2742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2743
2744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2745
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2747 $as_echo_n "checking whether build environment is sane... " >&6; }
2748 # Just in case
2749 sleep 1
2750 echo timestamp > conftest.file
2751 # Reject unsafe characters in $srcdir or the absolute working directory
2752 # name.  Accept space and tab only in the latter.
2753 am_lf='
2754 '
2755 case `pwd` in
2756   *[\\\"\#\$\&\'\`$am_lf]*)
2757     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2758 esac
2759 case $srcdir in
2760   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2761     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2762 esac
2763
2764 # Do `set' in a subshell so we don't clobber the current shell's
2765 # arguments.  Must try -L first in case configure is actually a
2766 # symlink; some systems play weird games with the mod time of symlinks
2767 # (eg FreeBSD returns the mod time of the symlink's containing
2768 # directory).
2769 if (
2770    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2771    if test "$*" = "X"; then
2772       # -L didn't work.
2773       set X `ls -t "$srcdir/configure" conftest.file`
2774    fi
2775    rm -f conftest.file
2776    if test "$*" != "X $srcdir/configure conftest.file" \
2777       && test "$*" != "X conftest.file $srcdir/configure"; then
2778
2779       # If neither matched, then we have a broken ls.  This can happen
2780       # if, for instance, CONFIG_SHELL is bash and it inherits a
2781       # broken ls alias from the environment.  This has actually
2782       # happened.  Such a system could not be considered "sane".
2783       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2784 alias in your environment" "$LINENO" 5
2785    fi
2786
2787    test "$2" = conftest.file
2788    )
2789 then
2790    # Ok.
2791    :
2792 else
2793    as_fn_error $? "newly created file is older than distributed files!
2794 Check your system clock" "$LINENO" 5
2795 fi
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2797 $as_echo "yes" >&6; }
2798 test "$program_prefix" != NONE &&
2799   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2800 # Use a double $ so make ignores it.
2801 test "$program_suffix" != NONE &&
2802   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2803 # Double any \ or $.
2804 # By default was `s,x,x', remove it if useless.
2805 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2806 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2807
2808 # expand $ac_aux_dir to an absolute path
2809 am_aux_dir=`cd $ac_aux_dir && pwd`
2810
2811 if test x"${MISSING+set}" != xset; then
2812   case $am_aux_dir in
2813   *\ * | *\     *)
2814     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2815   *)
2816     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2817   esac
2818 fi
2819 # Use eval to expand $SHELL
2820 if eval "$MISSING --run true"; then
2821   am_missing_run="$MISSING --run "
2822 else
2823   am_missing_run=
2824   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2825 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2826 fi
2827
2828 if test x"${install_sh}" != xset; then
2829   case $am_aux_dir in
2830   *\ * | *\     *)
2831     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2832   *)
2833     install_sh="\${SHELL} $am_aux_dir/install-sh"
2834   esac
2835 fi
2836
2837 # Installed binaries are usually stripped using `strip' when the user
2838 # run `make install-strip'.  However `strip' might not be the right
2839 # tool to use in cross-compilation environments, therefore Automake
2840 # will honor the `STRIP' environment variable to overrule this program.
2841 if test "$cross_compiling" != no; then
2842   if test -n "$ac_tool_prefix"; then
2843   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2844 set dummy ${ac_tool_prefix}strip; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if ${ac_cv_prog_STRIP+:} false; then :
2848   $as_echo_n "(cached) " >&6
2849 else
2850   if test -n "$STRIP"; then
2851   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856   IFS=$as_save_IFS
2857   test -z "$as_dir" && as_dir=.
2858     for ac_exec_ext in '' $ac_executable_extensions; do
2859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862     break 2
2863   fi
2864 done
2865   done
2866 IFS=$as_save_IFS
2867
2868 fi
2869 fi
2870 STRIP=$ac_cv_prog_STRIP
2871 if test -n "$STRIP"; then
2872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2873 $as_echo "$STRIP" >&6; }
2874 else
2875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 fi
2878
2879
2880 fi
2881 if test -z "$ac_cv_prog_STRIP"; then
2882   ac_ct_STRIP=$STRIP
2883   # Extract the first word of "strip", so it can be a program name with args.
2884 set dummy strip; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2888   $as_echo_n "(cached) " >&6
2889 else
2890   if test -n "$ac_ct_STRIP"; then
2891   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2895 do
2896   IFS=$as_save_IFS
2897   test -z "$as_dir" && as_dir=.
2898     for ac_exec_ext in '' $ac_executable_extensions; do
2899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900     ac_cv_prog_ac_ct_STRIP="strip"
2901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902     break 2
2903   fi
2904 done
2905   done
2906 IFS=$as_save_IFS
2907
2908 fi
2909 fi
2910 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2911 if test -n "$ac_ct_STRIP"; then
2912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2913 $as_echo "$ac_ct_STRIP" >&6; }
2914 else
2915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2917 fi
2918
2919   if test "x$ac_ct_STRIP" = x; then
2920     STRIP=":"
2921   else
2922     case $cross_compiling:$ac_tool_warned in
2923 yes:)
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2926 ac_tool_warned=yes ;;
2927 esac
2928     STRIP=$ac_ct_STRIP
2929   fi
2930 else
2931   STRIP="$ac_cv_prog_STRIP"
2932 fi
2933
2934 fi
2935 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2936
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2938 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2939 if test -z "$MKDIR_P"; then
2940   if ${ac_cv_path_mkdir+:} false; then :
2941   $as_echo_n "(cached) " >&6
2942 else
2943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948     for ac_prog in mkdir gmkdir; do
2949          for ac_exec_ext in '' $ac_executable_extensions; do
2950            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2951            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2952              'mkdir (GNU coreutils) '* | \
2953              'mkdir (coreutils) '* | \
2954              'mkdir (fileutils) '4.1*)
2955                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2956                break 3;;
2957            esac
2958          done
2959        done
2960   done
2961 IFS=$as_save_IFS
2962
2963 fi
2964
2965   test -d ./--version && rmdir ./--version
2966   if test "${ac_cv_path_mkdir+set}" = set; then
2967     MKDIR_P="$ac_cv_path_mkdir -p"
2968   else
2969     # As a last resort, use the slow shell script.  Don't cache a
2970     # value for MKDIR_P within a source directory, because that will
2971     # break other packages using the cache if that directory is
2972     # removed, or if the value is a relative name.
2973     MKDIR_P="$ac_install_sh -d"
2974   fi
2975 fi
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2977 $as_echo "$MKDIR_P" >&6; }
2978
2979 mkdir_p="$MKDIR_P"
2980 case $mkdir_p in
2981   [\\/$]* | ?:[\\/]*) ;;
2982   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2983 esac
2984
2985 for ac_prog in gawk mawk nawk awk
2986 do
2987   # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy $ac_prog; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_AWK+:} false; then :
2992   $as_echo_n "(cached) " >&6
2993 else
2994   if test -n "$AWK"; then
2995   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000   IFS=$as_save_IFS
3001   test -z "$as_dir" && as_dir=.
3002     for ac_exec_ext in '' $ac_executable_extensions; do
3003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004     ac_cv_prog_AWK="$ac_prog"
3005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006     break 2
3007   fi
3008 done
3009   done
3010 IFS=$as_save_IFS
3011
3012 fi
3013 fi
3014 AWK=$ac_cv_prog_AWK
3015 if test -n "$AWK"; then
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3017 $as_echo "$AWK" >&6; }
3018 else
3019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023
3024   test -n "$AWK" && break
3025 done
3026
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3028 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3029 set x ${MAKE-make}
3030 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3031 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3032   $as_echo_n "(cached) " >&6
3033 else
3034   cat >conftest.make <<\_ACEOF
3035 SHELL = /bin/sh
3036 all:
3037         @echo '@@@%%%=$(MAKE)=@@@%%%'
3038 _ACEOF
3039 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3040 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3041   *@@@%%%=?*=@@@%%%*)
3042     eval ac_cv_prog_make_${ac_make}_set=yes;;
3043   *)
3044     eval ac_cv_prog_make_${ac_make}_set=no;;
3045 esac
3046 rm -f conftest.make
3047 fi
3048 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3050 $as_echo "yes" >&6; }
3051   SET_MAKE=
3052 else
3053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055   SET_MAKE="MAKE=${MAKE-make}"
3056 fi
3057
3058 rm -rf .tst 2>/dev/null
3059 mkdir .tst 2>/dev/null
3060 if test -d .tst; then
3061   am__leading_dot=.
3062 else
3063   am__leading_dot=_
3064 fi
3065 rmdir .tst 2>/dev/null
3066
3067 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3068   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3069   # is not polluted with repeated "-I."
3070   am__isrc=' -I$(srcdir)'
3071   # test to see if srcdir already configured
3072   if test -f $srcdir/config.status; then
3073     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3074   fi
3075 fi
3076
3077 # test whether we have cygpath
3078 if test -z "$CYGPATH_W"; then
3079   if (cygpath --version) >/dev/null 2>/dev/null; then
3080     CYGPATH_W='cygpath -w'
3081   else
3082     CYGPATH_W=echo
3083   fi
3084 fi
3085
3086
3087 # Define the identity of the package.
3088  PACKAGE='libffi'
3089  VERSION='3.0.11-rc1'
3090
3091
3092 cat >>confdefs.h <<_ACEOF
3093 #define PACKAGE "$PACKAGE"
3094 _ACEOF
3095
3096
3097 cat >>confdefs.h <<_ACEOF
3098 #define VERSION "$VERSION"
3099 _ACEOF
3100
3101 # Some tools Automake needs.
3102
3103 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3104
3105
3106 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3107
3108
3109 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3110
3111
3112 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3113
3114
3115 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3116
3117 # We need awk for the "check" target.  The system "awk" is bad on
3118 # some platforms.
3119 # Always define AMTAR for backward compatibility.
3120
3121 AMTAR=${AMTAR-"${am_missing_run}tar"}
3122
3123 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3124
3125
3126
3127
3128
3129
3130 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3131 # We must force CC to /not/ be precious variables; otherwise
3132 # the wrong, non-multilib-adjusted value will be used in multilibs.
3133 # As a side effect, we have to subst CFLAGS ourselves.
3134 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3135 # defaults of its own if none are provided.
3136
3137
3138
3139 save_CFLAGS=$CFLAGS
3140 ac_ext=c
3141 ac_cpp='$CPP $CPPFLAGS'
3142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145 if test -n "$ac_tool_prefix"; then
3146   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_CC+:} false; then :
3151   $as_echo_n "(cached) " >&6
3152 else
3153   if test -n "$CC"; then
3154   ac_cv_prog_CC="$CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159   IFS=$as_save_IFS
3160   test -z "$as_dir" && as_dir=.
3161     for ac_exec_ext in '' $ac_executable_extensions; do
3162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165     break 2
3166   fi
3167 done
3168   done
3169 IFS=$as_save_IFS
3170
3171 fi
3172 fi
3173 CC=$ac_cv_prog_CC
3174 if test -n "$CC"; then
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176 $as_echo "$CC" >&6; }
3177 else
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 fi
3181
3182
3183 fi
3184 if test -z "$ac_cv_prog_CC"; then
3185   ac_ct_CC=$CC
3186   # Extract the first word of "gcc", so it can be a program name with args.
3187 set dummy gcc; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3191   $as_echo_n "(cached) " >&6
3192 else
3193   if test -n "$ac_ct_CC"; then
3194   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199   IFS=$as_save_IFS
3200   test -z "$as_dir" && as_dir=.
3201     for ac_exec_ext in '' $ac_executable_extensions; do
3202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203     ac_cv_prog_ac_ct_CC="gcc"
3204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205     break 2
3206   fi
3207 done
3208   done
3209 IFS=$as_save_IFS
3210
3211 fi
3212 fi
3213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3214 if test -n "$ac_ct_CC"; then
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3216 $as_echo "$ac_ct_CC" >&6; }
3217 else
3218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3220 fi
3221
3222   if test "x$ac_ct_CC" = x; then
3223     CC=""
3224   else
3225     case $cross_compiling:$ac_tool_warned in
3226 yes:)
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229 ac_tool_warned=yes ;;
3230 esac
3231     CC=$ac_ct_CC
3232   fi
3233 else
3234   CC="$ac_cv_prog_CC"
3235 fi
3236
3237 if test -z "$CC"; then
3238           if test -n "$ac_tool_prefix"; then
3239     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3240 set dummy ${ac_tool_prefix}cc; ac_word=$2
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if ${ac_cv_prog_CC+:} false; then :
3244   $as_echo_n "(cached) " >&6
3245 else
3246   if test -n "$CC"; then
3247   ac_cv_prog_CC="$CC" # Let the user override the test.
3248 else
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3251 do
3252   IFS=$as_save_IFS
3253   test -z "$as_dir" && as_dir=.
3254     for ac_exec_ext in '' $ac_executable_extensions; do
3255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256     ac_cv_prog_CC="${ac_tool_prefix}cc"
3257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258     break 2
3259   fi
3260 done
3261   done
3262 IFS=$as_save_IFS
3263
3264 fi
3265 fi
3266 CC=$ac_cv_prog_CC
3267 if test -n "$CC"; then
3268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3269 $as_echo "$CC" >&6; }
3270 else
3271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 fi
3274
3275
3276   fi
3277 fi
3278 if test -z "$CC"; then
3279   # Extract the first word of "cc", so it can be a program name with args.
3280 set dummy cc; ac_word=$2
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282 $as_echo_n "checking for $ac_word... " >&6; }
3283 if ${ac_cv_prog_CC+:} false; then :
3284   $as_echo_n "(cached) " >&6
3285 else
3286   if test -n "$CC"; then
3287   ac_cv_prog_CC="$CC" # Let the user override the test.
3288 else
3289   ac_prog_rejected=no
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3292 do
3293   IFS=$as_save_IFS
3294   test -z "$as_dir" && as_dir=.
3295     for ac_exec_ext in '' $ac_executable_extensions; do
3296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3298        ac_prog_rejected=yes
3299        continue
3300      fi
3301     ac_cv_prog_CC="cc"
3302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303     break 2
3304   fi
3305 done
3306   done
3307 IFS=$as_save_IFS
3308
3309 if test $ac_prog_rejected = yes; then
3310   # We found a bogon in the path, so make sure we never use it.
3311   set dummy $ac_cv_prog_CC
3312   shift
3313   if test $# != 0; then
3314     # We chose a different compiler from the bogus one.
3315     # However, it has the same basename, so the bogon will be chosen
3316     # first if we set CC to just the basename; use the full file name.
3317     shift
3318     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3319   fi
3320 fi
3321 fi
3322 fi
3323 CC=$ac_cv_prog_CC
3324 if test -n "$CC"; then
3325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326 $as_echo "$CC" >&6; }
3327 else
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 fi
3331
3332
3333 fi
3334 if test -z "$CC"; then
3335   if test -n "$ac_tool_prefix"; then
3336   for ac_prog in cl.exe
3337   do
3338     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_CC+:} false; then :
3343   $as_echo_n "(cached) " >&6
3344 else
3345   if test -n "$CC"; then
3346   ac_cv_prog_CC="$CC" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351   IFS=$as_save_IFS
3352   test -z "$as_dir" && as_dir=.
3353     for ac_exec_ext in '' $ac_executable_extensions; do
3354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357     break 2
3358   fi
3359 done
3360   done
3361 IFS=$as_save_IFS
3362
3363 fi
3364 fi
3365 CC=$ac_cv_prog_CC
3366 if test -n "$CC"; then
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368 $as_echo "$CC" >&6; }
3369 else
3370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 fi
3373
3374
3375     test -n "$CC" && break
3376   done
3377 fi
3378 if test -z "$CC"; then
3379   ac_ct_CC=$CC
3380   for ac_prog in cl.exe
3381 do
3382   # Extract the first word of "$ac_prog", so it can be a program name with args.
3383 set dummy $ac_prog; ac_word=$2
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 $as_echo_n "checking for $ac_word... " >&6; }
3386 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3387   $as_echo_n "(cached) " >&6
3388 else
3389   if test -n "$ac_ct_CC"; then
3390   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3394 do
3395   IFS=$as_save_IFS
3396   test -z "$as_dir" && as_dir=.
3397     for ac_exec_ext in '' $ac_executable_extensions; do
3398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399     ac_cv_prog_ac_ct_CC="$ac_prog"
3400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401     break 2
3402   fi
3403 done
3404   done
3405 IFS=$as_save_IFS
3406
3407 fi
3408 fi
3409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3410 if test -n "$ac_ct_CC"; then
3411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3412 $as_echo "$ac_ct_CC" >&6; }
3413 else
3414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 $as_echo "no" >&6; }
3416 fi
3417
3418
3419   test -n "$ac_ct_CC" && break
3420 done
3421
3422   if test "x$ac_ct_CC" = x; then
3423     CC=""
3424   else
3425     case $cross_compiling:$ac_tool_warned in
3426 yes:)
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3429 ac_tool_warned=yes ;;
3430 esac
3431     CC=$ac_ct_CC
3432   fi
3433 fi
3434
3435 fi
3436
3437
3438 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440 as_fn_error $? "no acceptable C compiler found in \$PATH
3441 See \`config.log' for more details" "$LINENO" 5; }
3442
3443 # Provide some information about the compiler.
3444 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3445 set X $ac_compile
3446 ac_compiler=$2
3447 for ac_option in --version -v -V -qversion; do
3448   { { ac_try="$ac_compiler $ac_option >&5"
3449 case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3456   ac_status=$?
3457   if test -s conftest.err; then
3458     sed '10a\
3459 ... rest of stderr output deleted ...
3460          10q' conftest.err >conftest.er1
3461     cat conftest.er1 >&5
3462   fi
3463   rm -f conftest.er1 conftest.err
3464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465   test $ac_status = 0; }
3466 done
3467
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h.  */
3470
3471 int
3472 main ()
3473 {
3474
3475   ;
3476   return 0;
3477 }
3478 _ACEOF
3479 ac_clean_files_save=$ac_clean_files
3480 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3481 # Try to create an executable without -o first, disregard a.out.
3482 # It will help us diagnose broken compilers, and finding out an intuition
3483 # of exeext.
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3485 $as_echo_n "checking whether the C compiler works... " >&6; }
3486 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3487
3488 # The possible output files:
3489 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3490
3491 ac_rmfiles=
3492 for ac_file in $ac_files
3493 do
3494   case $ac_file in
3495     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3496     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3497   esac
3498 done
3499 rm -f $ac_rmfiles
3500
3501 if { { ac_try="$ac_link_default"
3502 case "(($ac_try" in
3503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504   *) ac_try_echo=$ac_try;;
3505 esac
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508   (eval "$ac_link_default") 2>&5
3509   ac_status=$?
3510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511   test $ac_status = 0; }; then :
3512   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3513 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3514 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3515 # so that the user can short-circuit this test for compilers unknown to
3516 # Autoconf.
3517 for ac_file in $ac_files ''
3518 do
3519   test -f "$ac_file" || continue
3520   case $ac_file in
3521     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3522         ;;
3523     [ab].out )
3524         # We found the default executable, but exeext='' is most
3525         # certainly right.
3526         break;;
3527     *.* )
3528         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3529         then :; else
3530            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3531         fi
3532         # We set ac_cv_exeext here because the later test for it is not
3533         # safe: cross compilers may not add the suffix if given an `-o'
3534         # argument, so we may need to know it at that point already.
3535         # Even if this section looks crufty: it has the advantage of
3536         # actually working.
3537         break;;
3538     * )
3539         break;;
3540   esac
3541 done
3542 test "$ac_cv_exeext" = no && ac_cv_exeext=
3543
3544 else
3545   ac_file=''
3546 fi
3547 if test -z "$ac_file"; then :
3548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3550 $as_echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3552
3553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555 as_fn_error 77 "C compiler cannot create executables
3556 See \`config.log' for more details" "$LINENO" 5; }
3557 else
3558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3559 $as_echo "yes" >&6; }
3560 fi
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3562 $as_echo_n "checking for C compiler default output file name... " >&6; }
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3564 $as_echo "$ac_file" >&6; }
3565 ac_exeext=$ac_cv_exeext
3566
3567 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3568 ac_clean_files=$ac_clean_files_save
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3570 $as_echo_n "checking for suffix of executables... " >&6; }
3571 if { { ac_try="$ac_link"
3572 case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578   (eval "$ac_link") 2>&5
3579   ac_status=$?
3580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581   test $ac_status = 0; }; then :
3582   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3583 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3584 # work properly (i.e., refer to `conftest.exe'), while it won't with
3585 # `rm'.
3586 for ac_file in conftest.exe conftest conftest.*; do
3587   test -f "$ac_file" || continue
3588   case $ac_file in
3589     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3590     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3591           break;;
3592     * ) break;;
3593   esac
3594 done
3595 else
3596   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3599 See \`config.log' for more details" "$LINENO" 5; }
3600 fi
3601 rm -f conftest conftest$ac_cv_exeext
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3603 $as_echo "$ac_cv_exeext" >&6; }
3604
3605 rm -f conftest.$ac_ext
3606 EXEEXT=$ac_cv_exeext
3607 ac_exeext=$EXEEXT
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h.  */
3610 #include <stdio.h>
3611 int
3612 main ()
3613 {
3614 FILE *f = fopen ("conftest.out", "w");
3615  return ferror (f) || fclose (f) != 0;
3616
3617   ;
3618   return 0;
3619 }
3620 _ACEOF
3621 ac_clean_files="$ac_clean_files conftest.out"
3622 # Check that the compiler produces executables we can run.  If not, either
3623 # the compiler is broken, or we cross compile.
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3625 $as_echo_n "checking whether we are cross compiling... " >&6; }
3626 if test "$cross_compiling" != yes; then
3627   { { ac_try="$ac_link"
3628 case "(($ac_try" in
3629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630   *) ac_try_echo=$ac_try;;
3631 esac
3632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633 $as_echo "$ac_try_echo"; } >&5
3634   (eval "$ac_link") 2>&5
3635   ac_status=$?
3636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637   test $ac_status = 0; }
3638   if { ac_try='./conftest$ac_cv_exeext'
3639   { { case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645   (eval "$ac_try") 2>&5
3646   ac_status=$?
3647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648   test $ac_status = 0; }; }; then
3649     cross_compiling=no
3650   else
3651     if test "$cross_compiling" = maybe; then
3652         cross_compiling=yes
3653     else
3654         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error $? "cannot run C compiled programs.
3657 If you meant to cross compile, use \`--host'.
3658 See \`config.log' for more details" "$LINENO" 5; }
3659     fi
3660   fi
3661 fi
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3663 $as_echo "$cross_compiling" >&6; }
3664
3665 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3666 ac_clean_files=$ac_clean_files_save
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3668 $as_echo_n "checking for suffix of object files... " >&6; }
3669 if ${ac_cv_objext+:} false; then :
3670   $as_echo_n "(cached) " >&6
3671 else
3672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h.  */
3674
3675 int
3676 main ()
3677 {
3678
3679   ;
3680   return 0;
3681 }
3682 _ACEOF
3683 rm -f conftest.o conftest.obj
3684 if { { ac_try="$ac_compile"
3685 case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 $as_echo "$ac_try_echo"; } >&5
3691   (eval "$ac_compile") 2>&5
3692   ac_status=$?
3693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694   test $ac_status = 0; }; then :
3695   for ac_file in conftest.o conftest.obj conftest.*; do
3696   test -f "$ac_file" || continue;
3697   case $ac_file in
3698     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3699     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3700        break;;
3701   esac
3702 done
3703 else
3704   $as_echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3706
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error $? "cannot compute suffix of object files: cannot compile
3710 See \`config.log' for more details" "$LINENO" 5; }
3711 fi
3712 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3713 fi
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3715 $as_echo "$ac_cv_objext" >&6; }
3716 OBJEXT=$ac_cv_objext
3717 ac_objext=$OBJEXT
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3719 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3720 if ${ac_cv_c_compiler_gnu+:} false; then :
3721   $as_echo_n "(cached) " >&6
3722 else
3723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h.  */
3725
3726 int
3727 main ()
3728 {
3729 #ifndef __GNUC__
3730        choke me
3731 #endif
3732
3733   ;
3734   return 0;
3735 }
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738   ac_compiler_gnu=yes
3739 else
3740   ac_compiler_gnu=no
3741 fi
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3744
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3747 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3748 if test $ac_compiler_gnu = yes; then
3749   GCC=yes
3750 else
3751   GCC=
3752 fi
3753 ac_test_CFLAGS=${CFLAGS+set}
3754 ac_save_CFLAGS=$CFLAGS
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3756 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3757 if ${ac_cv_prog_cc_g+:} false; then :
3758   $as_echo_n "(cached) " >&6
3759 else
3760   ac_save_c_werror_flag=$ac_c_werror_flag
3761    ac_c_werror_flag=yes
3762    ac_cv_prog_cc_g=no
3763    CFLAGS="-g"
3764    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h.  */
3766
3767 int
3768 main ()
3769 {
3770
3771   ;
3772   return 0;
3773 }
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776   ac_cv_prog_cc_g=yes
3777 else
3778   CFLAGS=""
3779       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h.  */
3781
3782 int
3783 main ()
3784 {
3785
3786   ;
3787   return 0;
3788 }
3789 _ACEOF
3790 if ac_fn_c_try_compile "$LINENO"; then :
3791
3792 else
3793   ac_c_werror_flag=$ac_save_c_werror_flag
3794          CFLAGS="-g"
3795          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h.  */
3797
3798 int
3799 main ()
3800 {
3801
3802   ;
3803   return 0;
3804 }
3805 _ACEOF
3806 if ac_fn_c_try_compile "$LINENO"; then :
3807   ac_cv_prog_cc_g=yes
3808 fi
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 fi
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 fi
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814    ac_c_werror_flag=$ac_save_c_werror_flag
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3817 $as_echo "$ac_cv_prog_cc_g" >&6; }
3818 if test "$ac_test_CFLAGS" = set; then
3819   CFLAGS=$ac_save_CFLAGS
3820 elif test $ac_cv_prog_cc_g = yes; then
3821   if test "$GCC" = yes; then
3822     CFLAGS="-g -O2"
3823   else
3824     CFLAGS="-g"
3825   fi
3826 else
3827   if test "$GCC" = yes; then
3828     CFLAGS="-O2"
3829   else
3830     CFLAGS=
3831   fi
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3834 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3835 if ${ac_cv_prog_cc_c89+:} false; then :
3836   $as_echo_n "(cached) " >&6
3837 else
3838   ac_cv_prog_cc_c89=no
3839 ac_save_CC=$CC
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h.  */
3842 #include <stdarg.h>
3843 #include <stdio.h>
3844 #include <sys/types.h>
3845 #include <sys/stat.h>
3846 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3847 struct buf { int x; };
3848 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3849 static char *e (p, i)
3850      char **p;
3851      int i;
3852 {
3853   return p[i];
3854 }
3855 static char *f (char * (*g) (char **, int), char **p, ...)
3856 {
3857   char *s;
3858   va_list v;
3859   va_start (v,p);
3860   s = g (p, va_arg (v,int));
3861   va_end (v);
3862   return s;
3863 }
3864
3865 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3866    function prototypes and stuff, but not '\xHH' hex character constants.
3867    These don't provoke an error unfortunately, instead are silently treated
3868    as 'x'.  The following induces an error, until -std is added to get
3869    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3870    array size at least.  It's necessary to write '\x00'==0 to get something
3871    that's true only with -std.  */
3872 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3873
3874 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3875    inside strings and character constants.  */
3876 #define FOO(x) 'x'
3877 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3878
3879 int test (int i, double x);
3880 struct s1 {int (*f) (int a);};
3881 struct s2 {int (*f) (double a);};
3882 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3883 int argc;
3884 char **argv;
3885 int
3886 main ()
3887 {
3888 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3889   ;
3890   return 0;
3891 }
3892 _ACEOF
3893 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3894         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3895 do
3896   CC="$ac_save_CC $ac_arg"
3897   if ac_fn_c_try_compile "$LINENO"; then :
3898   ac_cv_prog_cc_c89=$ac_arg
3899 fi
3900 rm -f core conftest.err conftest.$ac_objext
3901   test "x$ac_cv_prog_cc_c89" != "xno" && break
3902 done
3903 rm -f conftest.$ac_ext
3904 CC=$ac_save_CC
3905
3906 fi
3907 # AC_CACHE_VAL
3908 case "x$ac_cv_prog_cc_c89" in
3909   x)
3910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3911 $as_echo "none needed" >&6; } ;;
3912   xno)
3913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3914 $as_echo "unsupported" >&6; } ;;
3915   *)
3916     CC="$CC $ac_cv_prog_cc_c89"
3917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3918 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3919 esac
3920 if test "x$ac_cv_prog_cc_c89" != xno; then :
3921
3922 fi
3923
3924 ac_ext=c
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929 DEPDIR="${am__leading_dot}deps"
3930
3931 ac_config_commands="$ac_config_commands depfiles"
3932
3933
3934 am_make=${MAKE-make}
3935 cat > confinc << 'END'
3936 am__doit:
3937         @echo this is the am__doit target
3938 .PHONY: am__doit
3939 END
3940 # If we don't find an include directive, just comment out the code.
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3942 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3943 am__include="#"
3944 am__quote=
3945 _am_result=none
3946 # First try GNU make style include.
3947 echo "include confinc" > confmf
3948 # Ignore all kinds of additional output from `make'.
3949 case `$am_make -s -f confmf 2> /dev/null` in #(
3950 *the\ am__doit\ target*)
3951   am__include=include
3952   am__quote=
3953   _am_result=GNU
3954   ;;
3955 esac
3956 # Now try BSD make style include.
3957 if test "$am__include" = "#"; then
3958    echo '.include "confinc"' > confmf
3959    case `$am_make -s -f confmf 2> /dev/null` in #(
3960    *the\ am__doit\ target*)
3961      am__include=.include
3962      am__quote="\""
3963      _am_result=BSD
3964      ;;
3965    esac
3966 fi
3967
3968
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3970 $as_echo "$_am_result" >&6; }
3971 rm -f confinc confmf
3972
3973 # Check whether --enable-dependency-tracking was given.
3974 if test "${enable_dependency_tracking+set}" = set; then :
3975   enableval=$enable_dependency_tracking;
3976 fi
3977
3978 if test "x$enable_dependency_tracking" != xno; then
3979   am_depcomp="$ac_aux_dir/depcomp"
3980   AMDEPBACKSLASH='\'
3981 fi
3982  if test "x$enable_dependency_tracking" != xno; then
3983   AMDEP_TRUE=
3984   AMDEP_FALSE='#'
3985 else
3986   AMDEP_TRUE='#'
3987   AMDEP_FALSE=
3988 fi
3989
3990
3991
3992 depcc="$CC"   am_compiler_list=
3993
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3995 $as_echo_n "checking dependency style of $depcc... " >&6; }
3996 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3997   $as_echo_n "(cached) " >&6
3998 else
3999   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4000   # We make a subdir and do the tests there.  Otherwise we can end up
4001   # making bogus files that we don't know about and never remove.  For
4002   # instance it was reported that on HP-UX the gcc test will end up
4003   # making a dummy file named `D' -- because `-MD' means `put the output
4004   # in D'.
4005   mkdir conftest.dir
4006   # Copy depcomp to subdir because otherwise we won't find it if we're
4007   # using a relative directory.
4008   cp "$am_depcomp" conftest.dir
4009   cd conftest.dir
4010   # We will build objects and dependencies in a subdirectory because
4011   # it helps to detect inapplicable dependency modes.  For instance
4012   # both Tru64's cc and ICC support -MD to output dependencies as a
4013   # side effect of compilation, but ICC will put the dependencies in
4014   # the current directory while Tru64 will put them in the object
4015   # directory.
4016   mkdir sub
4017
4018   am_cv_CC_dependencies_compiler_type=none
4019   if test "$am_compiler_list" = ""; then
4020      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4021   fi
4022   am__universal=false
4023   case " $depcc " in #(
4024      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4025      esac
4026
4027   for depmode in $am_compiler_list; do
4028     # Setup a source with many dependencies, because some compilers
4029     # like to wrap large dependency lists on column 80 (with \), and
4030     # we should not choose a depcomp mode which is confused by this.
4031     #
4032     # We need to recreate these files for each test, as the compiler may
4033     # overwrite some of them when testing with obscure command lines.
4034     # This happens at least with the AIX C compiler.
4035     : > sub/conftest.c
4036     for i in 1 2 3 4 5 6; do
4037       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4038       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4039       # Solaris 8's {/usr,}/bin/sh.
4040       touch sub/conftst$i.h
4041     done
4042     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4043
4044     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4045     # mode.  It turns out that the SunPro C++ compiler does not properly
4046     # handle `-M -o', and we need to detect this.  Also, some Intel
4047     # versions had trouble with output in subdirs
4048     am__obj=sub/conftest.${OBJEXT-o}
4049     am__minus_obj="-o $am__obj"
4050     case $depmode in
4051     gcc)
4052       # This depmode causes a compiler race in universal mode.
4053       test "$am__universal" = false || continue
4054       ;;
4055     nosideeffect)
4056       # after this tag, mechanisms are not by side-effect, so they'll
4057       # only be used when explicitly requested
4058       if test "x$enable_dependency_tracking" = xyes; then
4059         continue
4060       else
4061         break
4062       fi
4063       ;;
4064     msvisualcpp | msvcmsys)
4065       # This compiler won't grok `-c -o', but also, the minuso test has
4066       # not run yet.  These depmodes are late enough in the game, and
4067       # so weak that their functioning should not be impacted.
4068       am__obj=conftest.${OBJEXT-o}
4069       am__minus_obj=
4070       ;;
4071     none) break ;;
4072     esac
4073     if depmode=$depmode \
4074        source=sub/conftest.c object=$am__obj \
4075        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4076        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4077          >/dev/null 2>conftest.err &&
4078        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4079        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4080        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4081        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4082       # icc doesn't choke on unknown options, it will just issue warnings
4083       # or remarks (even with -Werror).  So we grep stderr for any message
4084       # that says an option was ignored or not supported.
4085       # When given -MP, icc 7.0 and 7.1 complain thusly:
4086       #   icc: Command line warning: ignoring option '-M'; no argument required
4087       # The diagnosis changed in icc 8.0:
4088       #   icc: Command line remark: option '-MP' not supported
4089       if (grep 'ignoring option' conftest.err ||
4090           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4091         am_cv_CC_dependencies_compiler_type=$depmode
4092         break
4093       fi
4094     fi
4095   done
4096
4097   cd ..
4098   rm -rf conftest.dir
4099 else
4100   am_cv_CC_dependencies_compiler_type=none
4101 fi
4102
4103 fi
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4105 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4106 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4107
4108  if
4109   test "x$enable_dependency_tracking" != xno \
4110   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4111   am__fastdepCC_TRUE=
4112   am__fastdepCC_FALSE='#'
4113 else
4114   am__fastdepCC_TRUE='#'
4115   am__fastdepCC_FALSE=
4116 fi
4117
4118
4119 CFLAGS=$save_CFLAGS
4120
4121
4122
4123
4124
4125 # By default we simply use the C compiler to build assembly code.
4126
4127 test "${CCAS+set}" = set || CCAS=$CC
4128 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4129
4130
4131
4132 depcc="$CCAS"   am_compiler_list=
4133
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4135 $as_echo_n "checking dependency style of $depcc... " >&6; }
4136 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4137   $as_echo_n "(cached) " >&6
4138 else
4139   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4140   # We make a subdir and do the tests there.  Otherwise we can end up
4141   # making bogus files that we don't know about and never remove.  For
4142   # instance it was reported that on HP-UX the gcc test will end up
4143   # making a dummy file named `D' -- because `-MD' means `put the output
4144   # in D'.
4145   mkdir conftest.dir
4146   # Copy depcomp to subdir because otherwise we won't find it if we're
4147   # using a relative directory.
4148   cp "$am_depcomp" conftest.dir
4149   cd conftest.dir
4150   # We will build objects and dependencies in a subdirectory because
4151   # it helps to detect inapplicable dependency modes.  For instance
4152   # both Tru64's cc and ICC support -MD to output dependencies as a
4153   # side effect of compilation, but ICC will put the dependencies in
4154   # the current directory while Tru64 will put them in the object
4155   # directory.
4156   mkdir sub
4157
4158   am_cv_CCAS_dependencies_compiler_type=none
4159   if test "$am_compiler_list" = ""; then
4160      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4161   fi
4162   am__universal=false
4163
4164
4165   for depmode in $am_compiler_list; do
4166     # Setup a source with many dependencies, because some compilers
4167     # like to wrap large dependency lists on column 80 (with \), and
4168     # we should not choose a depcomp mode which is confused by this.
4169     #
4170     # We need to recreate these files for each test, as the compiler may
4171     # overwrite some of them when testing with obscure command lines.
4172     # This happens at least with the AIX C compiler.
4173     : > sub/conftest.c
4174     for i in 1 2 3 4 5 6; do
4175       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4176       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4177       # Solaris 8's {/usr,}/bin/sh.
4178       touch sub/conftst$i.h
4179     done
4180     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4181
4182     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4183     # mode.  It turns out that the SunPro C++ compiler does not properly
4184     # handle `-M -o', and we need to detect this.  Also, some Intel
4185     # versions had trouble with output in subdirs
4186     am__obj=sub/conftest.${OBJEXT-o}
4187     am__minus_obj="-o $am__obj"
4188     case $depmode in
4189     gcc)
4190       # This depmode causes a compiler race in universal mode.
4191       test "$am__universal" = false || continue
4192       ;;
4193     nosideeffect)
4194       # after this tag, mechanisms are not by side-effect, so they'll
4195       # only be used when explicitly requested
4196       if test "x$enable_dependency_tracking" = xyes; then
4197         continue
4198       else
4199         break
4200       fi
4201       ;;
4202     msvisualcpp | msvcmsys)
4203       # This compiler won't grok `-c -o', but also, the minuso test has
4204       # not run yet.  These depmodes are late enough in the game, and
4205       # so weak that their functioning should not be impacted.
4206       am__obj=conftest.${OBJEXT-o}
4207       am__minus_obj=
4208       ;;
4209     none) break ;;
4210     esac
4211     if depmode=$depmode \
4212        source=sub/conftest.c object=$am__obj \
4213        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4214        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4215          >/dev/null 2>conftest.err &&
4216        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4217        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4218        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4219        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4220       # icc doesn't choke on unknown options, it will just issue warnings
4221       # or remarks (even with -Werror).  So we grep stderr for any message
4222       # that says an option was ignored or not supported.
4223       # When given -MP, icc 7.0 and 7.1 complain thusly:
4224       #   icc: Command line warning: ignoring option '-M'; no argument required
4225       # The diagnosis changed in icc 8.0:
4226       #   icc: Command line remark: option '-MP' not supported
4227       if (grep 'ignoring option' conftest.err ||
4228           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4229         am_cv_CCAS_dependencies_compiler_type=$depmode
4230         break
4231       fi
4232     fi
4233   done
4234
4235   cd ..
4236   rm -rf conftest.dir
4237 else
4238   am_cv_CCAS_dependencies_compiler_type=none
4239 fi
4240
4241 fi
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4243 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4244 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4245
4246  if
4247   test "x$enable_dependency_tracking" != xno \
4248   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4249   am__fastdepCCAS_TRUE=
4250   am__fastdepCCAS_FALSE='#'
4251 else
4252   am__fastdepCCAS_TRUE='#'
4253   am__fastdepCCAS_FALSE=
4254 fi
4255
4256
4257 if test "x$CC" != xcc; then
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4259 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4260 else
4261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4262 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4263 fi
4264 set dummy $CC; ac_cc=`$as_echo "$2" |
4265                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4266 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4267   $as_echo_n "(cached) " >&6
4268 else
4269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h.  */
4271
4272 int
4273 main ()
4274 {
4275
4276   ;
4277   return 0;
4278 }
4279 _ACEOF
4280 # Make sure it works both with $CC and with simple cc.
4281 # We do the test twice because some compilers refuse to overwrite an
4282 # existing .o file with -o, though they will create one.
4283 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4284 rm -f conftest2.*
4285 if { { case "(($ac_try" in
4286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287   *) ac_try_echo=$ac_try;;
4288 esac
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291   (eval "$ac_try") 2>&5
4292   ac_status=$?
4293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294   test $ac_status = 0; } &&
4295    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297   *) ac_try_echo=$ac_try;;
4298 esac
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 $as_echo "$ac_try_echo"; } >&5
4301   (eval "$ac_try") 2>&5
4302   ac_status=$?
4303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4304   test $ac_status = 0; };
4305 then
4306   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4307   if test "x$CC" != xcc; then
4308     # Test first that cc exists at all.
4309     if { ac_try='cc -c conftest.$ac_ext >&5'
4310   { { case "(($ac_try" in
4311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312   *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316   (eval "$ac_try") 2>&5
4317   ac_status=$?
4318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319   test $ac_status = 0; }; }; then
4320       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4321       rm -f conftest2.*
4322       if { { case "(($ac_try" in
4323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324   *) ac_try_echo=$ac_try;;
4325 esac
4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328   (eval "$ac_try") 2>&5
4329   ac_status=$?
4330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331   test $ac_status = 0; } &&
4332          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334   *) ac_try_echo=$ac_try;;
4335 esac
4336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337 $as_echo "$ac_try_echo"; } >&5
4338   (eval "$ac_try") 2>&5
4339   ac_status=$?
4340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341   test $ac_status = 0; };
4342       then
4343         # cc works too.
4344         :
4345       else
4346         # cc exists but doesn't like -o.
4347         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4348       fi
4349     fi
4350   fi
4351 else
4352   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4353 fi
4354 rm -f core conftest*
4355
4356 fi
4357 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4359 $as_echo "yes" >&6; }
4360 else
4361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4363
4364 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4365
4366 fi
4367
4368 # FIXME: we rely on the cache variable name because
4369 # there is no other way.
4370 set dummy $CC
4371 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4372 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4373 if test "$am_t" != yes; then
4374    # Losing compiler, so override with the script.
4375    # FIXME: It is wrong to rewrite CC.
4376    # But if we don't then we get into trouble of one sort or another.
4377    # A longer-term fix would be to have automake use am__CC in this case,
4378    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4379    CC="$am_aux_dir/compile $CC"
4380 fi
4381
4382
4383 case `pwd` in
4384   *\ * | *\     *)
4385     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4386 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4387 esac
4388
4389
4390
4391 macro_version='2.4'
4392 macro_revision='1.3293'
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406 ltmain="$ac_aux_dir/ltmain.sh"
4407
4408 # Backslashify metacharacters that are still active within
4409 # double-quoted strings.
4410 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4411
4412 # Same as above, but do not quote variable references.
4413 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4414
4415 # Sed substitution to delay expansion of an escaped shell variable in a
4416 # double_quote_subst'ed string.
4417 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4418
4419 # Sed substitution to delay expansion of an escaped single quote.
4420 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4421
4422 # Sed substitution to avoid accidental globbing in evaled expressions
4423 no_glob_subst='s/\*/\\\*/g'
4424
4425 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4426 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4427 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4428
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4430 $as_echo_n "checking how to print strings... " >&6; }
4431 # Test print first, because it will be a builtin if present.
4432 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4433    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4434   ECHO='print -r --'
4435 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4436   ECHO='printf %s\n'
4437 else
4438   # Use this function as a fallback that always works.
4439   func_fallback_echo ()
4440   {
4441     eval 'cat <<_LTECHO_EOF
4442 $1
4443 _LTECHO_EOF'
4444   }
4445   ECHO='func_fallback_echo'
4446 fi
4447
4448 # func_echo_all arg...
4449 # Invoke $ECHO with all args, space-separated.
4450 func_echo_all ()
4451 {
4452     $ECHO ""
4453 }
4454
4455 case "$ECHO" in
4456   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4457 $as_echo "printf" >&6; } ;;
4458   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4459 $as_echo "print -r" >&6; } ;;
4460   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4461 $as_echo "cat" >&6; } ;;
4462 esac
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4478 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4479 if ${ac_cv_path_SED+:} false; then :
4480   $as_echo_n "(cached) " >&6
4481 else
4482             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4483      for ac_i in 1 2 3 4 5 6 7; do
4484        ac_script="$ac_script$as_nl$ac_script"
4485      done
4486      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4487      { ac_script=; unset ac_script;}
4488      if test -z "$SED"; then
4489   ac_path_SED_found=false
4490   # Loop through the user's path and test for each of PROGNAME-LIST
4491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494   IFS=$as_save_IFS
4495   test -z "$as_dir" && as_dir=.
4496     for ac_prog in sed gsed; do
4497     for ac_exec_ext in '' $ac_executable_extensions; do
4498       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4499       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4500 # Check for GNU ac_path_SED and select it if it is found.
4501   # Check for GNU $ac_path_SED
4502 case `"$ac_path_SED" --version 2>&1` in
4503 *GNU*)
4504   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4505 *)
4506   ac_count=0
4507   $as_echo_n 0123456789 >"conftest.in"
4508   while :
4509   do
4510     cat "conftest.in" "conftest.in" >"conftest.tmp"
4511     mv "conftest.tmp" "conftest.in"
4512     cp "conftest.in" "conftest.nl"
4513     $as_echo '' >> "conftest.nl"
4514     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4515     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4516     as_fn_arith $ac_count + 1 && ac_count=$as_val
4517     if test $ac_count -gt ${ac_path_SED_max-0}; then
4518       # Best one so far, save it but keep looking for a better one
4519       ac_cv_path_SED="$ac_path_SED"
4520       ac_path_SED_max=$ac_count
4521     fi
4522     # 10*(2^10) chars as input seems more than enough
4523     test $ac_count -gt 10 && break
4524   done
4525   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4526 esac
4527
4528       $ac_path_SED_found && break 3
4529     done
4530   done
4531   done
4532 IFS=$as_save_IFS
4533   if test -z "$ac_cv_path_SED"; then
4534     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4535   fi
4536 else
4537   ac_cv_path_SED=$SED
4538 fi
4539
4540 fi
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4542 $as_echo "$ac_cv_path_SED" >&6; }
4543  SED="$ac_cv_path_SED"
4544   rm -f conftest.sed
4545
4546 test -z "$SED" && SED=sed
4547 Xsed="$SED -e 1s/^X//"
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4560 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4561 if ${ac_cv_path_GREP+:} false; then :
4562   $as_echo_n "(cached) " >&6
4563 else
4564   if test -z "$GREP"; then
4565   ac_path_GREP_found=false
4566   # Loop through the user's path and test for each of PROGNAME-LIST
4567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4569 do
4570   IFS=$as_save_IFS
4571   test -z "$as_dir" && as_dir=.
4572     for ac_prog in grep ggrep; do
4573     for ac_exec_ext in '' $ac_executable_extensions; do
4574       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4575       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4576 # Check for GNU ac_path_GREP and select it if it is found.
4577   # Check for GNU $ac_path_GREP
4578 case `"$ac_path_GREP" --version 2>&1` in
4579 *GNU*)
4580   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4581 *)
4582   ac_count=0
4583   $as_echo_n 0123456789 >"conftest.in"
4584   while :
4585   do
4586     cat "conftest.in" "conftest.in" >"conftest.tmp"
4587     mv "conftest.tmp" "conftest.in"
4588     cp "conftest.in" "conftest.nl"
4589     $as_echo 'GREP' >> "conftest.nl"
4590     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4591     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4592     as_fn_arith $ac_count + 1 && ac_count=$as_val
4593     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4594       # Best one so far, save it but keep looking for a better one
4595       ac_cv_path_GREP="$ac_path_GREP"
4596       ac_path_GREP_max=$ac_count
4597     fi
4598     # 10*(2^10) chars as input seems more than enough
4599     test $ac_count -gt 10 && break
4600   done
4601   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4602 esac
4603
4604       $ac_path_GREP_found && break 3
4605     done
4606   done
4607   done
4608 IFS=$as_save_IFS
4609   if test -z "$ac_cv_path_GREP"; then
4610     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4611   fi
4612 else
4613   ac_cv_path_GREP=$GREP
4614 fi
4615
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4618 $as_echo "$ac_cv_path_GREP" >&6; }
4619  GREP="$ac_cv_path_GREP"
4620
4621
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4623 $as_echo_n "checking for egrep... " >&6; }
4624 if ${ac_cv_path_EGREP+:} false; then :
4625   $as_echo_n "(cached) " >&6
4626 else
4627   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4628    then ac_cv_path_EGREP="$GREP -E"
4629    else
4630      if test -z "$EGREP"; then
4631   ac_path_EGREP_found=false
4632   # Loop through the user's path and test for each of PROGNAME-LIST
4633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4635 do
4636   IFS=$as_save_IFS
4637   test -z "$as_dir" && as_dir=.
4638     for ac_prog in egrep; do
4639     for ac_exec_ext in '' $ac_executable_extensions; do
4640       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4641       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4642 # Check for GNU ac_path_EGREP and select it if it is found.
4643   # Check for GNU $ac_path_EGREP
4644 case `"$ac_path_EGREP" --version 2>&1` in
4645 *GNU*)
4646   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4647 *)
4648   ac_count=0
4649   $as_echo_n 0123456789 >"conftest.in"
4650   while :
4651   do
4652     cat "conftest.in" "conftest.in" >"conftest.tmp"
4653     mv "conftest.tmp" "conftest.in"
4654     cp "conftest.in" "conftest.nl"
4655     $as_echo 'EGREP' >> "conftest.nl"
4656     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4657     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4658     as_fn_arith $ac_count + 1 && ac_count=$as_val
4659     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4660       # Best one so far, save it but keep looking for a better one
4661       ac_cv_path_EGREP="$ac_path_EGREP"
4662       ac_path_EGREP_max=$ac_count
4663     fi
4664     # 10*(2^10) chars as input seems more than enough
4665     test $ac_count -gt 10 && break
4666   done
4667   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4668 esac
4669
4670       $ac_path_EGREP_found && break 3
4671     done
4672   done
4673   done
4674 IFS=$as_save_IFS
4675   if test -z "$ac_cv_path_EGREP"; then
4676     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4677   fi
4678 else
4679   ac_cv_path_EGREP=$EGREP
4680 fi
4681
4682    fi
4683 fi
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4685 $as_echo "$ac_cv_path_EGREP" >&6; }
4686  EGREP="$ac_cv_path_EGREP"
4687
4688
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4690 $as_echo_n "checking for fgrep... " >&6; }
4691 if ${ac_cv_path_FGREP+:} false; then :
4692   $as_echo_n "(cached) " >&6
4693 else
4694   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4695    then ac_cv_path_FGREP="$GREP -F"
4696    else
4697      if test -z "$FGREP"; then
4698   ac_path_FGREP_found=false
4699   # Loop through the user's path and test for each of PROGNAME-LIST
4700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4702 do
4703   IFS=$as_save_IFS
4704   test -z "$as_dir" && as_dir=.
4705     for ac_prog in fgrep; do
4706     for ac_exec_ext in '' $ac_executable_extensions; do
4707       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4708       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4709 # Check for GNU ac_path_FGREP and select it if it is found.
4710   # Check for GNU $ac_path_FGREP
4711 case `"$ac_path_FGREP" --version 2>&1` in
4712 *GNU*)
4713   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4714 *)
4715   ac_count=0
4716   $as_echo_n 0123456789 >"conftest.in"
4717   while :
4718   do
4719     cat "conftest.in" "conftest.in" >"conftest.tmp"
4720     mv "conftest.tmp" "conftest.in"
4721     cp "conftest.in" "conftest.nl"
4722     $as_echo 'FGREP' >> "conftest.nl"
4723     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4724     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4725     as_fn_arith $ac_count + 1 && ac_count=$as_val
4726     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4727       # Best one so far, save it but keep looking for a better one
4728       ac_cv_path_FGREP="$ac_path_FGREP"
4729       ac_path_FGREP_max=$ac_count
4730     fi
4731     # 10*(2^10) chars as input seems more than enough
4732     test $ac_count -gt 10 && break
4733   done
4734   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4735 esac
4736
4737       $ac_path_FGREP_found && break 3
4738     done
4739   done
4740   done
4741 IFS=$as_save_IFS
4742   if test -z "$ac_cv_path_FGREP"; then
4743     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4744   fi
4745 else
4746   ac_cv_path_FGREP=$FGREP
4747 fi
4748
4749    fi
4750 fi
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4752 $as_echo "$ac_cv_path_FGREP" >&6; }
4753  FGREP="$ac_cv_path_FGREP"
4754
4755
4756 test -z "$GREP" && GREP=grep
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776 # Check whether --with-gnu-ld was given.
4777 if test "${with_gnu_ld+set}" = set; then :
4778   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4779 else
4780   with_gnu_ld=no
4781 fi
4782
4783 ac_prog=ld
4784 if test "$GCC" = yes; then
4785   # Check if gcc -print-prog-name=ld gives a path.
4786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4787 $as_echo_n "checking for ld used by $CC... " >&6; }
4788   case $host in
4789   *-*-mingw*)
4790     # gcc leaves a trailing carriage return which upsets mingw
4791     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4792   *)
4793     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4794   esac
4795   case $ac_prog in
4796     # Accept absolute paths.
4797     [\\/]* | ?:[\\/]*)
4798       re_direlt='/[^/][^/]*/\.\./'
4799       # Canonicalize the pathname of ld
4800       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4801       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4802         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4803       done
4804       test -z "$LD" && LD="$ac_prog"
4805       ;;
4806   "")
4807     # If it fails, then pretend we aren't using GCC.
4808     ac_prog=ld
4809     ;;
4810   *)
4811     # If it is relative, then search for the first ld in PATH.
4812     with_gnu_ld=unknown
4813     ;;
4814   esac
4815 elif test "$with_gnu_ld" = yes; then
4816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4817 $as_echo_n "checking for GNU ld... " >&6; }
4818 else
4819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4820 $as_echo_n "checking for non-GNU ld... " >&6; }
4821 fi
4822 if ${lt_cv_path_LD+:} false; then :
4823   $as_echo_n "(cached) " >&6
4824 else
4825   if test -z "$LD"; then
4826   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4827   for ac_dir in $PATH; do
4828     IFS="$lt_save_ifs"
4829     test -z "$ac_dir" && ac_dir=.
4830     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4831       lt_cv_path_LD="$ac_dir/$ac_prog"
4832       # Check to see if the program is GNU ld.  I'd rather use --version,
4833       # but apparently some variants of GNU ld only accept -v.
4834       # Break only if it was the GNU/non-GNU ld that we prefer.
4835       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4836       *GNU* | *'with BFD'*)
4837         test "$with_gnu_ld" != no && break
4838         ;;
4839       *)
4840         test "$with_gnu_ld" != yes && break
4841         ;;
4842       esac
4843     fi
4844   done
4845   IFS="$lt_save_ifs"
4846 else
4847   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4848 fi
4849 fi
4850
4851 LD="$lt_cv_path_LD"
4852 if test -n "$LD"; then
4853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4854 $as_echo "$LD" >&6; }
4855 else
4856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4858 fi
4859 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4861 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4862 if ${lt_cv_prog_gnu_ld+:} false; then :
4863   $as_echo_n "(cached) " >&6
4864 else
4865   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4866 case `$LD -v 2>&1 </dev/null` in
4867 *GNU* | *'with BFD'*)
4868   lt_cv_prog_gnu_ld=yes
4869   ;;
4870 *)
4871   lt_cv_prog_gnu_ld=no
4872   ;;
4873 esac
4874 fi
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4876 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4877 with_gnu_ld=$lt_cv_prog_gnu_ld
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4888 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4889 if ${lt_cv_path_NM+:} false; then :
4890   $as_echo_n "(cached) " >&6
4891 else
4892   if test -n "$NM"; then
4893   # Let the user override the test.
4894   lt_cv_path_NM="$NM"
4895 else
4896   lt_nm_to_check="${ac_tool_prefix}nm"
4897   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4898     lt_nm_to_check="$lt_nm_to_check nm"
4899   fi
4900   for lt_tmp_nm in $lt_nm_to_check; do
4901     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4902     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4903       IFS="$lt_save_ifs"
4904       test -z "$ac_dir" && ac_dir=.
4905       tmp_nm="$ac_dir/$lt_tmp_nm"
4906       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4907         # Check to see if the nm accepts a BSD-compat flag.
4908         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4909         #   nm: unknown option "B" ignored
4910         # Tru64's nm complains that /dev/null is an invalid object file
4911         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4912         */dev/null* | *'Invalid file or object type'*)
4913           lt_cv_path_NM="$tmp_nm -B"
4914           break
4915           ;;
4916         *)
4917           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4918           */dev/null*)
4919             lt_cv_path_NM="$tmp_nm -p"
4920             break
4921             ;;
4922           *)
4923             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4924             continue # so that we can try to find one that supports BSD flags
4925             ;;
4926           esac
4927           ;;
4928         esac
4929       fi
4930     done
4931     IFS="$lt_save_ifs"
4932   done
4933   : ${lt_cv_path_NM=no}
4934 fi
4935 fi
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4937 $as_echo "$lt_cv_path_NM" >&6; }
4938 if test "$lt_cv_path_NM" != "no"; then
4939   NM="$lt_cv_path_NM"
4940 else
4941   # Didn't find any BSD compatible name lister, look for dumpbin.
4942   if test -n "$DUMPBIN"; then :
4943     # Let the user override the test.
4944   else
4945     if test -n "$ac_tool_prefix"; then
4946   for ac_prog in dumpbin "link -dump"
4947   do
4948     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951 $as_echo_n "checking for $ac_word... " >&6; }
4952 if ${ac_cv_prog_DUMPBIN+:} false; then :
4953   $as_echo_n "(cached) " >&6
4954 else
4955   if test -n "$DUMPBIN"; then
4956   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4957 else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961   IFS=$as_save_IFS
4962   test -z "$as_dir" && as_dir=.
4963     for ac_exec_ext in '' $ac_executable_extensions; do
4964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967     break 2
4968   fi
4969 done
4970   done
4971 IFS=$as_save_IFS
4972
4973 fi
4974 fi
4975 DUMPBIN=$ac_cv_prog_DUMPBIN
4976 if test -n "$DUMPBIN"; then
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4978 $as_echo "$DUMPBIN" >&6; }
4979 else
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4982 fi
4983
4984
4985     test -n "$DUMPBIN" && break
4986   done
4987 fi
4988 if test -z "$DUMPBIN"; then
4989   ac_ct_DUMPBIN=$DUMPBIN
4990   for ac_prog in dumpbin "link -dump"
4991 do
4992   # Extract the first word of "$ac_prog", so it can be a program name with args.
4993 set dummy $ac_prog; ac_word=$2
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995 $as_echo_n "checking for $ac_word... " >&6; }
4996 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4997   $as_echo_n "(cached) " >&6
4998 else
4999   if test -n "$ac_ct_DUMPBIN"; then
5000   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005   IFS=$as_save_IFS
5006   test -z "$as_dir" && as_dir=.
5007     for ac_exec_ext in '' $ac_executable_extensions; do
5008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5009     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011     break 2
5012   fi
5013 done
5014   done
5015 IFS=$as_save_IFS
5016
5017 fi
5018 fi
5019 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5020 if test -n "$ac_ct_DUMPBIN"; then
5021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5022 $as_echo "$ac_ct_DUMPBIN" >&6; }
5023 else
5024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5026 fi
5027
5028
5029   test -n "$ac_ct_DUMPBIN" && break
5030 done
5031
5032   if test "x$ac_ct_DUMPBIN" = x; then
5033     DUMPBIN=":"
5034   else
5035     case $cross_compiling:$ac_tool_warned in
5036 yes:)
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5039 ac_tool_warned=yes ;;
5040 esac
5041     DUMPBIN=$ac_ct_DUMPBIN
5042   fi
5043 fi
5044
5045     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5046     *COFF*)
5047       DUMPBIN="$DUMPBIN -symbols"
5048       ;;
5049     *)
5050       DUMPBIN=:
5051       ;;
5052     esac
5053   fi
5054
5055   if test "$DUMPBIN" != ":"; then
5056     NM="$DUMPBIN"
5057   fi
5058 fi
5059 test -z "$NM" && NM=nm
5060
5061
5062
5063
5064
5065
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5067 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5068 if ${lt_cv_nm_interface+:} false; then :
5069   $as_echo_n "(cached) " >&6
5070 else
5071   lt_cv_nm_interface="BSD nm"
5072   echo "int some_variable = 0;" > conftest.$ac_ext
5073   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5074   (eval "$ac_compile" 2>conftest.err)
5075   cat conftest.err >&5
5076   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5077   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5078   cat conftest.err >&5
5079   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5080   cat conftest.out >&5
5081   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5082     lt_cv_nm_interface="MS dumpbin"
5083   fi
5084   rm -f conftest*
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5087 $as_echo "$lt_cv_nm_interface" >&6; }
5088
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5090 $as_echo_n "checking whether ln -s works... " >&6; }
5091 LN_S=$as_ln_s
5092 if test "$LN_S" = "ln -s"; then
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5094 $as_echo "yes" >&6; }
5095 else
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5097 $as_echo "no, using $LN_S" >&6; }
5098 fi
5099
5100 # find the maximum length of command line arguments
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5102 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5103 if ${lt_cv_sys_max_cmd_len+:} false; then :
5104   $as_echo_n "(cached) " >&6
5105 else
5106     i=0
5107   teststring="ABCD"
5108
5109   case $build_os in
5110   msdosdjgpp*)
5111     # On DJGPP, this test can blow up pretty badly due to problems in libc
5112     # (any single argument exceeding 2000 bytes causes a buffer overrun
5113     # during glob expansion).  Even if it were fixed, the result of this
5114     # check would be larger than it should be.
5115     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5116     ;;
5117
5118   gnu*)
5119     # Under GNU Hurd, this test is not required because there is
5120     # no limit to the length of command line arguments.
5121     # Libtool will interpret -1 as no limit whatsoever
5122     lt_cv_sys_max_cmd_len=-1;
5123     ;;
5124
5125   cygwin* | mingw* | cegcc*)
5126     # On Win9x/ME, this test blows up -- it succeeds, but takes
5127     # about 5 minutes as the teststring grows exponentially.
5128     # Worse, since 9x/ME are not pre-emptively multitasking,
5129     # you end up with a "frozen" computer, even though with patience
5130     # the test eventually succeeds (with a max line length of 256k).
5131     # Instead, let's just punt: use the minimum linelength reported by
5132     # all of the supported platforms: 8192 (on NT/2K/XP).
5133     lt_cv_sys_max_cmd_len=8192;
5134     ;;
5135
5136   mint*)
5137     # On MiNT this can take a long time and run out of memory.
5138     lt_cv_sys_max_cmd_len=8192;
5139     ;;
5140
5141   amigaos*)
5142     # On AmigaOS with pdksh, this test takes hours, literally.
5143     # So we just punt and use a minimum line length of 8192.
5144     lt_cv_sys_max_cmd_len=8192;
5145     ;;
5146
5147   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5148     # This has been around since 386BSD, at least.  Likely further.
5149     if test -x /sbin/sysctl; then
5150       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5151     elif test -x /usr/sbin/sysctl; then
5152       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5153     else
5154       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5155     fi
5156     # And add a safety zone
5157     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5158     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5159     ;;
5160
5161   interix*)
5162     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5163     lt_cv_sys_max_cmd_len=196608
5164     ;;
5165
5166   osf*)
5167     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5168     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5169     # nice to cause kernel panics so lets avoid the loop below.
5170     # First set a reasonable default.
5171     lt_cv_sys_max_cmd_len=16384
5172     #
5173     if test -x /sbin/sysconfig; then
5174       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5175         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5176       esac
5177     fi
5178     ;;
5179   sco3.2v5*)
5180     lt_cv_sys_max_cmd_len=102400
5181     ;;
5182   sysv5* | sco5v6* | sysv4.2uw2*)
5183     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5184     if test -n "$kargmax"; then
5185       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5186     else
5187       lt_cv_sys_max_cmd_len=32768
5188     fi
5189     ;;
5190   *)
5191     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5192     if test -n "$lt_cv_sys_max_cmd_len"; then
5193       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5194       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5195     else
5196       # Make teststring a little bigger before we do anything with it.
5197       # a 1K string should be a reasonable start.
5198       for i in 1 2 3 4 5 6 7 8 ; do
5199         teststring=$teststring$teststring
5200       done
5201       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5202       # If test is not a shell built-in, we'll probably end up computing a
5203       # maximum length that is only half of the actual maximum length, but
5204       # we can't tell.
5205       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5206                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5207               test $i != 17 # 1/2 MB should be enough
5208       do
5209         i=`expr $i + 1`
5210         teststring=$teststring$teststring
5211       done
5212       # Only check the string length outside the loop.
5213       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5214       teststring=
5215       # Add a significant safety factor because C++ compilers can tack on
5216       # massive amounts of additional arguments before passing them to the
5217       # linker.  It appears as though 1/2 is a usable value.
5218       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5219     fi
5220     ;;
5221   esac
5222
5223 fi
5224
5225 if test -n $lt_cv_sys_max_cmd_len ; then
5226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5227 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5228 else
5229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5230 $as_echo "none" >&6; }
5231 fi
5232 max_cmd_len=$lt_cv_sys_max_cmd_len
5233
5234
5235
5236
5237
5238
5239 : ${CP="cp -f"}
5240 : ${MV="mv -f"}
5241 : ${RM="rm -f"}
5242
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5244 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5245 # Try some XSI features
5246 xsi_shell=no
5247 ( _lt_dummy="a/b/c"
5248   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5249       = c,a/b,b/c, \
5250     && eval 'test $(( 1 + 1 )) -eq 2 \
5251     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5252   && xsi_shell=yes
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5254 $as_echo "$xsi_shell" >&6; }
5255
5256
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5258 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5259 lt_shell_append=no
5260 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5261     >/dev/null 2>&1 \
5262   && lt_shell_append=yes
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5264 $as_echo "$lt_shell_append" >&6; }
5265
5266
5267 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5268   lt_unset=unset
5269 else
5270   lt_unset=false
5271 fi
5272
5273
5274
5275
5276
5277 # test EBCDIC or ASCII
5278 case `echo X|tr X '\101'` in
5279  A) # ASCII based system
5280     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5281   lt_SP2NL='tr \040 \012'
5282   lt_NL2SP='tr \015\012 \040\040'
5283   ;;
5284  *) # EBCDIC based system
5285   lt_SP2NL='tr \100 \n'
5286   lt_NL2SP='tr \r\n \100\100'
5287   ;;
5288 esac
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5299 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5300 if ${lt_cv_to_host_file_cmd+:} false; then :
5301   $as_echo_n "(cached) " >&6
5302 else
5303   case $host in
5304   *-*-mingw* )
5305     case $build in
5306       *-*-mingw* ) # actually msys
5307         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5308         ;;
5309       *-*-cygwin* )
5310         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5311         ;;
5312       * ) # otherwise, assume *nix
5313         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5314         ;;
5315     esac
5316     ;;
5317   *-*-cygwin* )
5318     case $build in
5319       *-*-mingw* ) # actually msys
5320         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5321         ;;
5322       *-*-cygwin* )
5323         lt_cv_to_host_file_cmd=func_convert_file_noop
5324         ;;
5325       * ) # otherwise, assume *nix
5326         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5327         ;;
5328     esac
5329     ;;
5330   * ) # unhandled hosts (and "normal" native builds)
5331     lt_cv_to_host_file_cmd=func_convert_file_noop
5332     ;;
5333 esac
5334
5335 fi
5336
5337 to_host_file_cmd=$lt_cv_to_host_file_cmd
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5339 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5340
5341
5342
5343
5344
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5346 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5347 if ${lt_cv_to_tool_file_cmd+:} false; then :
5348   $as_echo_n "(cached) " >&6
5349 else
5350   #assume ordinary cross tools, or native build.
5351 lt_cv_to_tool_file_cmd=func_convert_file_noop
5352 case $host in
5353   *-*-mingw* )
5354     case $build in
5355       *-*-mingw* ) # actually msys
5356         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5357         ;;
5358     esac
5359     ;;
5360 esac
5361
5362 fi
5363
5364 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5366 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5367
5368
5369
5370
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5373 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5374 if ${lt_cv_ld_reload_flag+:} false; then :
5375   $as_echo_n "(cached) " >&6
5376 else
5377   lt_cv_ld_reload_flag='-r'
5378 fi
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5380 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5381 reload_flag=$lt_cv_ld_reload_flag
5382 case $reload_flag in
5383 "" | " "*) ;;
5384 *) reload_flag=" $reload_flag" ;;
5385 esac
5386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5387 case $host_os in
5388   cygwin* | mingw* | pw32* | cegcc*)
5389     if test "$GCC" != yes; then
5390       reload_cmds=false
5391     fi
5392     ;;
5393   darwin*)
5394     if test "$GCC" = yes; then
5395       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5396     else
5397       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5398     fi
5399     ;;
5400 esac
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410 if test -n "$ac_tool_prefix"; then
5411   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5412 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414 $as_echo_n "checking for $ac_word... " >&6; }
5415 if ${ac_cv_prog_OBJDUMP+:} false; then :
5416   $as_echo_n "(cached) " >&6
5417 else
5418   if test -n "$OBJDUMP"; then
5419   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5420 else
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH
5423 do
5424   IFS=$as_save_IFS
5425   test -z "$as_dir" && as_dir=.
5426     for ac_exec_ext in '' $ac_executable_extensions; do
5427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5428     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430     break 2
5431   fi
5432 done
5433   done
5434 IFS=$as_save_IFS
5435
5436 fi
5437 fi
5438 OBJDUMP=$ac_cv_prog_OBJDUMP
5439 if test -n "$OBJDUMP"; then
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5441 $as_echo "$OBJDUMP" >&6; }
5442 else
5443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5445 fi
5446
5447
5448 fi
5449 if test -z "$ac_cv_prog_OBJDUMP"; then
5450   ac_ct_OBJDUMP=$OBJDUMP
5451   # Extract the first word of "objdump", so it can be a program name with args.
5452 set dummy objdump; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5456   $as_echo_n "(cached) " >&6
5457 else
5458   if test -n "$ac_ct_OBJDUMP"; then
5459   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5460 else
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5463 do
5464   IFS=$as_save_IFS
5465   test -z "$as_dir" && as_dir=.
5466     for ac_exec_ext in '' $ac_executable_extensions; do
5467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470     break 2
5471   fi
5472 done
5473   done
5474 IFS=$as_save_IFS
5475
5476 fi
5477 fi
5478 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5479 if test -n "$ac_ct_OBJDUMP"; then
5480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5481 $as_echo "$ac_ct_OBJDUMP" >&6; }
5482 else
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486
5487   if test "x$ac_ct_OBJDUMP" = x; then
5488     OBJDUMP="false"
5489   else
5490     case $cross_compiling:$ac_tool_warned in
5491 yes:)
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494 ac_tool_warned=yes ;;
5495 esac
5496     OBJDUMP=$ac_ct_OBJDUMP
5497   fi
5498 else
5499   OBJDUMP="$ac_cv_prog_OBJDUMP"
5500 fi
5501
5502 test -z "$OBJDUMP" && OBJDUMP=objdump
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5513 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5514 if ${lt_cv_deplibs_check_method+:} false; then :
5515   $as_echo_n "(cached) " >&6
5516 else
5517   lt_cv_file_magic_cmd='$MAGIC_CMD'
5518 lt_cv_file_magic_test_file=
5519 lt_cv_deplibs_check_method='unknown'
5520 # Need to set the preceding variable on all platforms that support
5521 # interlibrary dependencies.
5522 # 'none' -- dependencies not supported.
5523 # `unknown' -- same as none, but documents that we really don't know.
5524 # 'pass_all' -- all dependencies passed with no checks.
5525 # 'test_compile' -- check by making test program.
5526 # 'file_magic [[regex]]' -- check by looking for files in library path
5527 # which responds to the $file_magic_cmd with a given extended regex.
5528 # If you have `file' or equivalent on your system and you're not sure
5529 # whether `pass_all' will *always* work, you probably want this one.
5530
5531 case $host_os in
5532 aix[4-9]*)
5533   lt_cv_deplibs_check_method=pass_all
5534   ;;
5535
5536 beos*)
5537   lt_cv_deplibs_check_method=pass_all
5538   ;;
5539
5540 bsdi[45]*)
5541   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5542   lt_cv_file_magic_cmd='/usr/bin/file -L'
5543   lt_cv_file_magic_test_file=/shlib/libc.so
5544   ;;
5545
5546 cygwin*)
5547   # func_win32_libid is a shell function defined in ltmain.sh
5548   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5549   lt_cv_file_magic_cmd='func_win32_libid'
5550   ;;
5551
5552 mingw* | pw32*)
5553   # Base MSYS/MinGW do not provide the 'file' command needed by
5554   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5555   # unless we find 'file', for example because we are cross-compiling.
5556   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5557   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5558     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5559     lt_cv_file_magic_cmd='func_win32_libid'
5560   else
5561     # Keep this pattern in sync with the one in func_win32_libid.
5562     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5563     lt_cv_file_magic_cmd='$OBJDUMP -f'
5564   fi
5565   ;;
5566
5567 cegcc*)
5568   # use the weaker test based on 'objdump'. See mingw*.
5569   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5570   lt_cv_file_magic_cmd='$OBJDUMP -f'
5571   ;;
5572
5573 darwin* | rhapsody*)
5574   lt_cv_deplibs_check_method=pass_all
5575   ;;
5576
5577 freebsd* | dragonfly*)
5578   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5579     case $host_cpu in
5580     i*86 )
5581       # Not sure whether the presence of OpenBSD here was a mistake.
5582       # Let's accept both of them until this is cleared up.
5583       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5584       lt_cv_file_magic_cmd=/usr/bin/file
5585       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5586       ;;
5587     esac
5588   else
5589     lt_cv_deplibs_check_method=pass_all
5590   fi
5591   ;;
5592
5593 gnu*)
5594   lt_cv_deplibs_check_method=pass_all
5595   ;;
5596
5597 haiku*)
5598   lt_cv_deplibs_check_method=pass_all
5599   ;;
5600
5601 hpux10.20* | hpux11*)
5602   lt_cv_file_magic_cmd=/usr/bin/file
5603   case $host_cpu in
5604   ia64*)
5605     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5606     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5607     ;;
5608   hppa*64*)
5609     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]'
5610     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5611     ;;
5612   *)
5613     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5614     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5615     ;;
5616   esac
5617   ;;
5618
5619 interix[3-9]*)
5620   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5621   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5622   ;;
5623
5624 irix5* | irix6* | nonstopux*)
5625   case $LD in
5626   *-32|*"-32 ") libmagic=32-bit;;
5627   *-n32|*"-n32 ") libmagic=N32;;
5628   *-64|*"-64 ") libmagic=64-bit;;
5629   *) libmagic=never-match;;
5630   esac
5631   lt_cv_deplibs_check_method=pass_all
5632   ;;
5633
5634 # This must be Linux ELF.
5635 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5636   lt_cv_deplibs_check_method=pass_all
5637   ;;
5638
5639 netbsd*)
5640   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5641     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5642   else
5643     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5644   fi
5645   ;;
5646
5647 newos6*)
5648   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5649   lt_cv_file_magic_cmd=/usr/bin/file
5650   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5651   ;;
5652
5653 *nto* | *qnx*)
5654   lt_cv_deplibs_check_method=pass_all
5655   ;;
5656
5657 openbsd*)
5658   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5659     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5660   else
5661     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5662   fi
5663   ;;
5664
5665 osf3* | osf4* | osf5*)
5666   lt_cv_deplibs_check_method=pass_all
5667   ;;
5668
5669 rdos*)
5670   lt_cv_deplibs_check_method=pass_all
5671   ;;
5672
5673 solaris*)
5674   lt_cv_deplibs_check_method=pass_all
5675   ;;
5676
5677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5678   lt_cv_deplibs_check_method=pass_all
5679   ;;
5680
5681 sysv4 | sysv4.3*)
5682   case $host_vendor in
5683   motorola)
5684     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]'
5685     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5686     ;;
5687   ncr)
5688     lt_cv_deplibs_check_method=pass_all
5689     ;;
5690   sequent)
5691     lt_cv_file_magic_cmd='/bin/file'
5692     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5693     ;;
5694   sni)
5695     lt_cv_file_magic_cmd='/bin/file'
5696     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5697     lt_cv_file_magic_test_file=/lib/libc.so
5698     ;;
5699   siemens)
5700     lt_cv_deplibs_check_method=pass_all
5701     ;;
5702   pc)
5703     lt_cv_deplibs_check_method=pass_all
5704     ;;
5705   esac
5706   ;;
5707
5708 tpf*)
5709   lt_cv_deplibs_check_method=pass_all
5710   ;;
5711 esac
5712
5713 fi
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5715 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5716
5717 file_magic_glob=
5718 want_nocaseglob=no
5719 if test "$build" = "$host"; then
5720   case $host_os in
5721   mingw* | pw32*)
5722     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5723       want_nocaseglob=yes
5724     else
5725       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5726     fi
5727     ;;
5728   esac
5729 fi
5730
5731 file_magic_cmd=$lt_cv_file_magic_cmd
5732 deplibs_check_method=$lt_cv_deplibs_check_method
5733 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756 if test -n "$ac_tool_prefix"; then
5757   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5758 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if ${ac_cv_prog_DLLTOOL+:} false; then :
5762   $as_echo_n "(cached) " >&6
5763 else
5764   if test -n "$DLLTOOL"; then
5765   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770   IFS=$as_save_IFS
5771   test -z "$as_dir" && as_dir=.
5772     for ac_exec_ext in '' $ac_executable_extensions; do
5773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776     break 2
5777   fi
5778 done
5779   done
5780 IFS=$as_save_IFS
5781
5782 fi
5783 fi
5784 DLLTOOL=$ac_cv_prog_DLLTOOL
5785 if test -n "$DLLTOOL"; then
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5787 $as_echo "$DLLTOOL" >&6; }
5788 else
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5791 fi
5792
5793
5794 fi
5795 if test -z "$ac_cv_prog_DLLTOOL"; then
5796   ac_ct_DLLTOOL=$DLLTOOL
5797   # Extract the first word of "dlltool", so it can be a program name with args.
5798 set dummy dlltool; ac_word=$2
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5802   $as_echo_n "(cached) " >&6
5803 else
5804   if test -n "$ac_ct_DLLTOOL"; then
5805   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810   IFS=$as_save_IFS
5811   test -z "$as_dir" && as_dir=.
5812     for ac_exec_ext in '' $ac_executable_extensions; do
5813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5814     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816     break 2
5817   fi
5818 done
5819   done
5820 IFS=$as_save_IFS
5821
5822 fi
5823 fi
5824 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5825 if test -n "$ac_ct_DLLTOOL"; then
5826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5827 $as_echo "$ac_ct_DLLTOOL" >&6; }
5828 else
5829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 $as_echo "no" >&6; }
5831 fi
5832
5833   if test "x$ac_ct_DLLTOOL" = x; then
5834     DLLTOOL="false"
5835   else
5836     case $cross_compiling:$ac_tool_warned in
5837 yes:)
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5840 ac_tool_warned=yes ;;
5841 esac
5842     DLLTOOL=$ac_ct_DLLTOOL
5843   fi
5844 else
5845   DLLTOOL="$ac_cv_prog_DLLTOOL"
5846 fi
5847
5848 test -z "$DLLTOOL" && DLLTOOL=dlltool
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5860 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5861 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5862   $as_echo_n "(cached) " >&6
5863 else
5864   lt_cv_sharedlib_from_linklib_cmd='unknown'
5865
5866 case $host_os in
5867 cygwin* | mingw* | pw32* | cegcc*)
5868   # two different shell functions defined in ltmain.sh
5869   # decide which to use based on capabilities of $DLLTOOL
5870   case `$DLLTOOL --help 2>&1` in
5871   *--identify-strict*)
5872     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5873     ;;
5874   *)
5875     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5876     ;;
5877   esac
5878   ;;
5879 *)
5880   # fallback: assume linklib IS sharedlib
5881   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5882   ;;
5883 esac
5884
5885 fi
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5887 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5888 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5889 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5890
5891
5892
5893
5894
5895
5896
5897
5898 if test -n "$ac_tool_prefix"; then
5899   for ac_prog in ar
5900   do
5901     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if ${ac_cv_prog_AR+:} false; then :
5906   $as_echo_n "(cached) " >&6
5907 else
5908   if test -n "$AR"; then
5909   ac_cv_prog_AR="$AR" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914   IFS=$as_save_IFS
5915   test -z "$as_dir" && as_dir=.
5916     for ac_exec_ext in '' $ac_executable_extensions; do
5917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920     break 2
5921   fi
5922 done
5923   done
5924 IFS=$as_save_IFS
5925
5926 fi
5927 fi
5928 AR=$ac_cv_prog_AR
5929 if test -n "$AR"; then
5930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5931 $as_echo "$AR" >&6; }
5932 else
5933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5935 fi
5936
5937
5938     test -n "$AR" && break
5939   done
5940 fi
5941 if test -z "$AR"; then
5942   ac_ct_AR=$AR
5943   for ac_prog in ar
5944 do
5945   # Extract the first word of "$ac_prog", so it can be a program name with args.
5946 set dummy $ac_prog; ac_word=$2
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 $as_echo_n "checking for $ac_word... " >&6; }
5949 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5950   $as_echo_n "(cached) " >&6
5951 else
5952   if test -n "$ac_ct_AR"; then
5953   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958   IFS=$as_save_IFS
5959   test -z "$as_dir" && as_dir=.
5960     for ac_exec_ext in '' $ac_executable_extensions; do
5961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962     ac_cv_prog_ac_ct_AR="$ac_prog"
5963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964     break 2
5965   fi
5966 done
5967   done
5968 IFS=$as_save_IFS
5969
5970 fi
5971 fi
5972 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5973 if test -n "$ac_ct_AR"; then
5974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5975 $as_echo "$ac_ct_AR" >&6; }
5976 else
5977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5979 fi
5980
5981
5982   test -n "$ac_ct_AR" && break
5983 done
5984
5985   if test "x$ac_ct_AR" = x; then
5986     AR="false"
5987   else
5988     case $cross_compiling:$ac_tool_warned in
5989 yes:)
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5992 ac_tool_warned=yes ;;
5993 esac
5994     AR=$ac_ct_AR
5995   fi
5996 fi
5997
5998 : ${AR=ar}
5999 : ${AR_FLAGS=cru}
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6012 $as_echo_n "checking for archiver @FILE support... " >&6; }
6013 if ${lt_cv_ar_at_file+:} false; then :
6014   $as_echo_n "(cached) " >&6
6015 else
6016   lt_cv_ar_at_file=no
6017    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h.  */
6019
6020 int
6021 main ()
6022 {
6023
6024   ;
6025   return 0;
6026 }
6027 _ACEOF
6028 if ac_fn_c_try_compile "$LINENO"; then :
6029   echo conftest.$ac_objext > conftest.lst
6030       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6031       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6032   (eval $lt_ar_try) 2>&5
6033   ac_status=$?
6034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6035   test $ac_status = 0; }
6036       if test "$ac_status" -eq 0; then
6037         # Ensure the archiver fails upon bogus file names.
6038         rm -f conftest.$ac_objext libconftest.a
6039         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6040   (eval $lt_ar_try) 2>&5
6041   ac_status=$?
6042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6043   test $ac_status = 0; }
6044         if test "$ac_status" -ne 0; then
6045           lt_cv_ar_at_file=@
6046         fi
6047       fi
6048       rm -f conftest.* libconftest.a
6049
6050 fi
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052
6053 fi
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6055 $as_echo "$lt_cv_ar_at_file" >&6; }
6056
6057 if test "x$lt_cv_ar_at_file" = xno; then
6058   archiver_list_spec=
6059 else
6060   archiver_list_spec=$lt_cv_ar_at_file
6061 fi
6062
6063
6064
6065
6066
6067
6068
6069 if test -n "$ac_tool_prefix"; then
6070   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6071 set dummy ${ac_tool_prefix}strip; ac_word=$2
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073 $as_echo_n "checking for $ac_word... " >&6; }
6074 if ${ac_cv_prog_STRIP+:} false; then :
6075   $as_echo_n "(cached) " >&6
6076 else
6077   if test -n "$STRIP"; then
6078   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6079 else
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 for as_dir in $PATH
6082 do
6083   IFS=$as_save_IFS
6084   test -z "$as_dir" && as_dir=.
6085     for ac_exec_ext in '' $ac_executable_extensions; do
6086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6087     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6089     break 2
6090   fi
6091 done
6092   done
6093 IFS=$as_save_IFS
6094
6095 fi
6096 fi
6097 STRIP=$ac_cv_prog_STRIP
6098 if test -n "$STRIP"; then
6099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6100 $as_echo "$STRIP" >&6; }
6101 else
6102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103 $as_echo "no" >&6; }
6104 fi
6105
6106
6107 fi
6108 if test -z "$ac_cv_prog_STRIP"; then
6109   ac_ct_STRIP=$STRIP
6110   # Extract the first word of "strip", so it can be a program name with args.
6111 set dummy strip; ac_word=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 $as_echo_n "checking for $ac_word... " >&6; }
6114 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6115   $as_echo_n "(cached) " >&6
6116 else
6117   if test -n "$ac_ct_STRIP"; then
6118   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6119 else
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6122 do
6123   IFS=$as_save_IFS
6124   test -z "$as_dir" && as_dir=.
6125     for ac_exec_ext in '' $ac_executable_extensions; do
6126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6127     ac_cv_prog_ac_ct_STRIP="strip"
6128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129     break 2
6130   fi
6131 done
6132   done
6133 IFS=$as_save_IFS
6134
6135 fi
6136 fi
6137 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6138 if test -n "$ac_ct_STRIP"; then
6139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6140 $as_echo "$ac_ct_STRIP" >&6; }
6141 else
6142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6144 fi
6145
6146   if test "x$ac_ct_STRIP" = x; then
6147     STRIP=":"
6148   else
6149     case $cross_compiling:$ac_tool_warned in
6150 yes:)
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6153 ac_tool_warned=yes ;;
6154 esac
6155     STRIP=$ac_ct_STRIP
6156   fi
6157 else
6158   STRIP="$ac_cv_prog_STRIP"
6159 fi
6160
6161 test -z "$STRIP" && STRIP=:
6162
6163
6164
6165
6166
6167
6168 if test -n "$ac_tool_prefix"; then
6169   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if ${ac_cv_prog_RANLIB+:} false; then :
6174   $as_echo_n "(cached) " >&6
6175 else
6176   if test -n "$RANLIB"; then
6177   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182   IFS=$as_save_IFS
6183   test -z "$as_dir" && as_dir=.
6184     for ac_exec_ext in '' $ac_executable_extensions; do
6185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188     break 2
6189   fi
6190 done
6191   done
6192 IFS=$as_save_IFS
6193
6194 fi
6195 fi
6196 RANLIB=$ac_cv_prog_RANLIB
6197 if test -n "$RANLIB"; then
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6199 $as_echo "$RANLIB" >&6; }
6200 else
6201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6203 fi
6204
6205
6206 fi
6207 if test -z "$ac_cv_prog_RANLIB"; then
6208   ac_ct_RANLIB=$RANLIB
6209   # Extract the first word of "ranlib", so it can be a program name with args.
6210 set dummy ranlib; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6214   $as_echo_n "(cached) " >&6
6215 else
6216   if test -n "$ac_ct_RANLIB"; then
6217   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222   IFS=$as_save_IFS
6223   test -z "$as_dir" && as_dir=.
6224     for ac_exec_ext in '' $ac_executable_extensions; do
6225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226     ac_cv_prog_ac_ct_RANLIB="ranlib"
6227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228     break 2
6229   fi
6230 done
6231   done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6237 if test -n "$ac_ct_RANLIB"; then
6238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6239 $as_echo "$ac_ct_RANLIB" >&6; }
6240 else
6241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6243 fi
6244
6245   if test "x$ac_ct_RANLIB" = x; then
6246     RANLIB=":"
6247   else
6248     case $cross_compiling:$ac_tool_warned in
6249 yes:)
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252 ac_tool_warned=yes ;;
6253 esac
6254     RANLIB=$ac_ct_RANLIB
6255   fi
6256 else
6257   RANLIB="$ac_cv_prog_RANLIB"
6258 fi
6259
6260 test -z "$RANLIB" && RANLIB=:
6261
6262
6263
6264
6265
6266
6267 # Determine commands to create old-style static archives.
6268 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6269 old_postinstall_cmds='chmod 644 $oldlib'
6270 old_postuninstall_cmds=
6271
6272 if test -n "$RANLIB"; then
6273   case $host_os in
6274   openbsd*)
6275     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6276     ;;
6277   *)
6278     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6279     ;;
6280   esac
6281   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6282 fi
6283
6284 case $host_os in
6285   darwin*)
6286     lock_old_archive_extraction=yes ;;
6287   *)
6288     lock_old_archive_extraction=no ;;
6289 esac
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329 # If no C compiler was specified, use CC.
6330 LTCC=${LTCC-"$CC"}
6331
6332 # If no C compiler flags were specified, use CFLAGS.
6333 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6334
6335 # Allow CC to be a program name with arguments.
6336 compiler=$CC
6337
6338
6339 # Check for command to grab the raw symbol name followed by C symbol from nm.
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6341 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6342 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6343   $as_echo_n "(cached) " >&6
6344 else
6345
6346 # These are sane defaults that work on at least a few old systems.
6347 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6348
6349 # Character class describing NM global symbol codes.
6350 symcode='[BCDEGRST]'
6351
6352 # Regexp to match symbols that can be accessed directly from C.
6353 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6354
6355 # Define system-specific variables.
6356 case $host_os in
6357 aix*)
6358   symcode='[BCDT]'
6359   ;;
6360 cygwin* | mingw* | pw32* | cegcc*)
6361   symcode='[ABCDGISTW]'
6362   ;;
6363 hpux*)
6364   if test "$host_cpu" = ia64; then
6365     symcode='[ABCDEGRST]'
6366   fi
6367   ;;
6368 irix* | nonstopux*)
6369   symcode='[BCDEGRST]'
6370   ;;
6371 osf*)
6372   symcode='[BCDEGQRST]'
6373   ;;
6374 solaris*)
6375   symcode='[BDRT]'
6376   ;;
6377 sco3.2v5*)
6378   symcode='[DT]'
6379   ;;
6380 sysv4.2uw2*)
6381   symcode='[DT]'
6382   ;;
6383 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6384   symcode='[ABDT]'
6385   ;;
6386 sysv4)
6387   symcode='[DFNSTU]'
6388   ;;
6389 esac
6390
6391 # If we're using GNU nm, then use its standard symbol codes.
6392 case `$NM -V 2>&1` in
6393 *GNU* | *'with BFD'*)
6394   symcode='[ABCDGIRSTW]' ;;
6395 esac
6396
6397 # Transform an extracted symbol line into a proper C declaration.
6398 # Some systems (esp. on ia64) link data and code symbols differently,
6399 # so use this general approach.
6400 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6401
6402 # Transform an extracted symbol line into symbol name and symbol address
6403 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6404 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'"
6405
6406 # Handle CRLF in mingw tool chain
6407 opt_cr=
6408 case $build_os in
6409 mingw*)
6410   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6411   ;;
6412 esac
6413
6414 # Try without a prefix underscore, then with it.
6415 for ac_symprfx in "" "_"; do
6416
6417   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6418   symxfrm="\\1 $ac_symprfx\\2 \\2"
6419
6420   # Write the raw and C identifiers.
6421   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6422     # Fake it for dumpbin and say T for any non-static function
6423     # and D for any global variable.
6424     # Also find C++ and __fastcall symbols from MSVC++,
6425     # which start with @ or ?.
6426     lt_cv_sys_global_symbol_pipe="$AWK '"\
6427 "     {last_section=section; section=\$ 3};"\
6428 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6429 "     \$ 0!~/External *\|/{next};"\
6430 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6431 "     {if(hide[section]) next};"\
6432 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6433 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6434 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6435 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6436 "     ' prfx=^$ac_symprfx"
6437   else
6438     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6439   fi
6440   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6441
6442   # Check to see that the pipe works correctly.
6443   pipe_works=no
6444
6445   rm -f conftest*
6446   cat > conftest.$ac_ext <<_LT_EOF
6447 #ifdef __cplusplus
6448 extern "C" {
6449 #endif
6450 char nm_test_var;
6451 void nm_test_func(void);
6452 void nm_test_func(void){}
6453 #ifdef __cplusplus
6454 }
6455 #endif
6456 int main(){nm_test_var='a';nm_test_func();return(0);}
6457 _LT_EOF
6458
6459   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6460   (eval $ac_compile) 2>&5
6461   ac_status=$?
6462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6463   test $ac_status = 0; }; then
6464     # Now try to grab the symbols.
6465     nlist=conftest.nm
6466     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6467   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6468   ac_status=$?
6469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470   test $ac_status = 0; } && test -s "$nlist"; then
6471       # Try sorting and uniquifying the output.
6472       if sort "$nlist" | uniq > "$nlist"T; then
6473         mv -f "$nlist"T "$nlist"
6474       else
6475         rm -f "$nlist"T
6476       fi
6477
6478       # Make sure that we snagged all the symbols we need.
6479       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6480         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6481           cat <<_LT_EOF > conftest.$ac_ext
6482 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6483 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6484 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6485    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6486 # define LT_DLSYM_CONST
6487 #elif defined(__osf__)
6488 /* This system does not cope well with relocations in const data.  */
6489 # define LT_DLSYM_CONST
6490 #else
6491 # define LT_DLSYM_CONST const
6492 #endif
6493
6494 #ifdef __cplusplus
6495 extern "C" {
6496 #endif
6497
6498 _LT_EOF
6499           # Now generate the symbol file.
6500           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6501
6502           cat <<_LT_EOF >> conftest.$ac_ext
6503
6504 /* The mapping between symbol names and symbols.  */
6505 LT_DLSYM_CONST struct {
6506   const char *name;
6507   void       *address;
6508 }
6509 lt__PROGRAM__LTX_preloaded_symbols[] =
6510 {
6511   { "@PROGRAM@", (void *) 0 },
6512 _LT_EOF
6513           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6514           cat <<\_LT_EOF >> conftest.$ac_ext
6515   {0, (void *) 0}
6516 };
6517
6518 /* This works around a problem in FreeBSD linker */
6519 #ifdef FREEBSD_WORKAROUND
6520 static const void *lt_preloaded_setup() {
6521   return lt__PROGRAM__LTX_preloaded_symbols;
6522 }
6523 #endif
6524
6525 #ifdef __cplusplus
6526 }
6527 #endif
6528 _LT_EOF
6529           # Now try linking the two files.
6530           mv conftest.$ac_objext conftstm.$ac_objext
6531           lt_globsym_save_LIBS=$LIBS
6532           lt_globsym_save_CFLAGS=$CFLAGS
6533           LIBS="conftstm.$ac_objext"
6534           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6535           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6536   (eval $ac_link) 2>&5
6537   ac_status=$?
6538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6540             pipe_works=yes
6541           fi
6542           LIBS=$lt_globsym_save_LIBS
6543           CFLAGS=$lt_globsym_save_CFLAGS
6544         else
6545           echo "cannot find nm_test_func in $nlist" >&5
6546         fi
6547       else
6548         echo "cannot find nm_test_var in $nlist" >&5
6549       fi
6550     else
6551       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6552     fi
6553   else
6554     echo "$progname: failed program was:" >&5
6555     cat conftest.$ac_ext >&5
6556   fi
6557   rm -rf conftest* conftst*
6558
6559   # Do not use the global_symbol_pipe unless it works.
6560   if test "$pipe_works" = yes; then
6561     break
6562   else
6563     lt_cv_sys_global_symbol_pipe=
6564   fi
6565 done
6566
6567 fi
6568
6569 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6570   lt_cv_sys_global_symbol_to_cdecl=
6571 fi
6572 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6574 $as_echo "failed" >&6; }
6575 else
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6577 $as_echo "ok" >&6; }
6578 fi
6579
6580 # Response file support.
6581 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6582   nm_file_list_spec='@'
6583 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6584   nm_file_list_spec='@'
6585 fi
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6614 $as_echo_n "checking for sysroot... " >&6; }
6615
6616 # Check whether --with-sysroot was given.
6617 if test "${with_sysroot+set}" = set; then :
6618   withval=$with_sysroot;
6619 else
6620   with_sysroot=no
6621 fi
6622
6623
6624 lt_sysroot=
6625 case ${with_sysroot} in #(
6626  yes)
6627    if test "$GCC" = yes; then
6628      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6629    fi
6630    ;; #(
6631  /*)
6632    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6633    ;; #(
6634  no|'')
6635    ;; #(
6636  *)
6637    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6638 $as_echo "${with_sysroot}" >&6; }
6639    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6640    ;;
6641 esac
6642
6643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6644 $as_echo "${lt_sysroot:-no}" >&6; }
6645
6646
6647
6648
6649
6650 # Check whether --enable-libtool-lock was given.
6651 if test "${enable_libtool_lock+set}" = set; then :
6652   enableval=$enable_libtool_lock;
6653 fi
6654
6655 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6656
6657 # Some flags need to be propagated to the compiler or linker for good
6658 # libtool support.
6659 case $host in
6660 ia64-*-hpux*)
6661   # Find out which ABI we are using.
6662   echo 'int i;' > conftest.$ac_ext
6663   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6664   (eval $ac_compile) 2>&5
6665   ac_status=$?
6666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667   test $ac_status = 0; }; then
6668     case `/usr/bin/file conftest.$ac_objext` in
6669       *ELF-32*)
6670         HPUX_IA64_MODE="32"
6671         ;;
6672       *ELF-64*)
6673         HPUX_IA64_MODE="64"
6674         ;;
6675     esac
6676   fi
6677   rm -rf conftest*
6678   ;;
6679 *-*-irix6*)
6680   # Find out which ABI we are using.
6681   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6682   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6683   (eval $ac_compile) 2>&5
6684   ac_status=$?
6685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686   test $ac_status = 0; }; then
6687     if test "$lt_cv_prog_gnu_ld" = yes; then
6688       case `/usr/bin/file conftest.$ac_objext` in
6689         *32-bit*)
6690           LD="${LD-ld} -melf32bsmip"
6691           ;;
6692         *N32*)
6693           LD="${LD-ld} -melf32bmipn32"
6694           ;;
6695         *64-bit*)
6696           LD="${LD-ld} -melf64bmip"
6697         ;;
6698       esac
6699     else
6700       case `/usr/bin/file conftest.$ac_objext` in
6701         *32-bit*)
6702           LD="${LD-ld} -32"
6703           ;;
6704         *N32*)
6705           LD="${LD-ld} -n32"
6706           ;;
6707         *64-bit*)
6708           LD="${LD-ld} -64"
6709           ;;
6710       esac
6711     fi
6712   fi
6713   rm -rf conftest*
6714   ;;
6715
6716 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6717 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6718   # Find out which ABI we are using.
6719   echo 'int i;' > conftest.$ac_ext
6720   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6721   (eval $ac_compile) 2>&5
6722   ac_status=$?
6723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724   test $ac_status = 0; }; then
6725     case `/usr/bin/file conftest.o` in
6726       *32-bit*)
6727         case $host in
6728           x86_64-*kfreebsd*-gnu)
6729             LD="${LD-ld} -m elf_i386_fbsd"
6730             ;;
6731           x86_64-*linux*)
6732             LD="${LD-ld} -m elf_i386"
6733             ;;
6734           ppc64-*linux*|powerpc64-*linux*)
6735             LD="${LD-ld} -m elf32ppclinux"
6736             ;;
6737           s390x-*linux*)
6738             LD="${LD-ld} -m elf_s390"
6739             ;;
6740           sparc64-*linux*)
6741             LD="${LD-ld} -m elf32_sparc"
6742             ;;
6743         esac
6744         ;;
6745       *64-bit*)
6746         case $host in
6747           x86_64-*kfreebsd*-gnu)
6748             LD="${LD-ld} -m elf_x86_64_fbsd"
6749             ;;
6750           x86_64-*linux*)
6751             LD="${LD-ld} -m elf_x86_64"
6752             ;;
6753           ppc*-*linux*|powerpc*-*linux*)
6754             LD="${LD-ld} -m elf64ppc"
6755             ;;
6756           s390*-*linux*|s390*-*tpf*)
6757             LD="${LD-ld} -m elf64_s390"
6758             ;;
6759           sparc*-*linux*)
6760             LD="${LD-ld} -m elf64_sparc"
6761             ;;
6762         esac
6763         ;;
6764     esac
6765   fi
6766   rm -rf conftest*
6767   ;;
6768
6769 *-*-sco3.2v5*)
6770   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6771   SAVE_CFLAGS="$CFLAGS"
6772   CFLAGS="$CFLAGS -belf"
6773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6774 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6775 if ${lt_cv_cc_needs_belf+:} false; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   ac_ext=c
6779 ac_cpp='$CPP $CPPFLAGS'
6780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6783
6784      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h.  */
6786
6787 int
6788 main ()
6789 {
6790
6791   ;
6792   return 0;
6793 }
6794 _ACEOF
6795 if ac_fn_c_try_link "$LINENO"; then :
6796   lt_cv_cc_needs_belf=yes
6797 else
6798   lt_cv_cc_needs_belf=no
6799 fi
6800 rm -f core conftest.err conftest.$ac_objext \
6801     conftest$ac_exeext conftest.$ac_ext
6802      ac_ext=c
6803 ac_cpp='$CPP $CPPFLAGS'
6804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6807
6808 fi
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6810 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6811   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6812     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6813     CFLAGS="$SAVE_CFLAGS"
6814   fi
6815   ;;
6816 sparc*-*solaris*)
6817   # Find out which ABI we are using.
6818   echo 'int i;' > conftest.$ac_ext
6819   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6820   (eval $ac_compile) 2>&5
6821   ac_status=$?
6822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6823   test $ac_status = 0; }; then
6824     case `/usr/bin/file conftest.o` in
6825     *64-bit*)
6826       case $lt_cv_prog_gnu_ld in
6827       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6828       *)
6829         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6830           LD="${LD-ld} -64"
6831         fi
6832         ;;
6833       esac
6834       ;;
6835     esac
6836   fi
6837   rm -rf conftest*
6838   ;;
6839 esac
6840
6841 need_locks="$enable_libtool_lock"
6842
6843 if test -n "$ac_tool_prefix"; then
6844   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6845 set dummy ${ac_tool_prefix}mt; ac_word=$2
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6849   $as_echo_n "(cached) " >&6
6850 else
6851   if test -n "$MANIFEST_TOOL"; then
6852   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857   IFS=$as_save_IFS
6858   test -z "$as_dir" && as_dir=.
6859     for ac_exec_ext in '' $ac_executable_extensions; do
6860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863     break 2
6864   fi
6865 done
6866   done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6872 if test -n "$MANIFEST_TOOL"; then
6873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6874 $as_echo "$MANIFEST_TOOL" >&6; }
6875 else
6876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6878 fi
6879
6880
6881 fi
6882 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6883   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6884   # Extract the first word of "mt", so it can be a program name with args.
6885 set dummy mt; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6889   $as_echo_n "(cached) " >&6
6890 else
6891   if test -n "$ac_ct_MANIFEST_TOOL"; then
6892   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897   IFS=$as_save_IFS
6898   test -z "$as_dir" && as_dir=.
6899     for ac_exec_ext in '' $ac_executable_extensions; do
6900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6901     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903     break 2
6904   fi
6905 done
6906   done
6907 IFS=$as_save_IFS
6908
6909 fi
6910 fi
6911 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6912 if test -n "$ac_ct_MANIFEST_TOOL"; then
6913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6914 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6915 else
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6918 fi
6919
6920   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6921     MANIFEST_TOOL=":"
6922   else
6923     case $cross_compiling:$ac_tool_warned in
6924 yes:)
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6927 ac_tool_warned=yes ;;
6928 esac
6929     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6930   fi
6931 else
6932   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6933 fi
6934
6935 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6937 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6938 if ${lt_cv_path_mainfest_tool+:} false; then :
6939   $as_echo_n "(cached) " >&6
6940 else
6941   lt_cv_path_mainfest_tool=no
6942   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6943   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6944   cat conftest.err >&5
6945   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6946     lt_cv_path_mainfest_tool=yes
6947   fi
6948   rm -f conftest*
6949 fi
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6951 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6952 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6953   MANIFEST_TOOL=:
6954 fi
6955
6956
6957
6958
6959
6960
6961   case $host_os in
6962     rhapsody* | darwin*)
6963     if test -n "$ac_tool_prefix"; then
6964   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6965 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   if test -n "$DSYMUTIL"; then
6972   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977   IFS=$as_save_IFS
6978   test -z "$as_dir" && as_dir=.
6979     for ac_exec_ext in '' $ac_executable_extensions; do
6980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983     break 2
6984   fi
6985 done
6986   done
6987 IFS=$as_save_IFS
6988
6989 fi
6990 fi
6991 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6992 if test -n "$DSYMUTIL"; then
6993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6994 $as_echo "$DSYMUTIL" >&6; }
6995 else
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
6998 fi
6999
7000
7001 fi
7002 if test -z "$ac_cv_prog_DSYMUTIL"; then
7003   ac_ct_DSYMUTIL=$DSYMUTIL
7004   # Extract the first word of "dsymutil", so it can be a program name with args.
7005 set dummy dsymutil; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7009   $as_echo_n "(cached) " >&6
7010 else
7011   if test -n "$ac_ct_DSYMUTIL"; then
7012   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019     for ac_exec_ext in '' $ac_executable_extensions; do
7020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026   done
7027 IFS=$as_save_IFS
7028
7029 fi
7030 fi
7031 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7032 if test -n "$ac_ct_DSYMUTIL"; then
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7034 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7035 else
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7038 fi
7039
7040   if test "x$ac_ct_DSYMUTIL" = x; then
7041     DSYMUTIL=":"
7042   else
7043     case $cross_compiling:$ac_tool_warned in
7044 yes:)
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7047 ac_tool_warned=yes ;;
7048 esac
7049     DSYMUTIL=$ac_ct_DSYMUTIL
7050   fi
7051 else
7052   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7053 fi
7054
7055     if test -n "$ac_tool_prefix"; then
7056   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7057 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if ${ac_cv_prog_NMEDIT+:} false; then :
7061   $as_echo_n "(cached) " >&6
7062 else
7063   if test -n "$NMEDIT"; then
7064   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071     for ac_exec_ext in '' $ac_executable_extensions; do
7072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078   done
7079 IFS=$as_save_IFS
7080
7081 fi
7082 fi
7083 NMEDIT=$ac_cv_prog_NMEDIT
7084 if test -n "$NMEDIT"; then
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7086 $as_echo "$NMEDIT" >&6; }
7087 else
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091
7092
7093 fi
7094 if test -z "$ac_cv_prog_NMEDIT"; then
7095   ac_ct_NMEDIT=$NMEDIT
7096   # Extract the first word of "nmedit", so it can be a program name with args.
7097 set dummy nmedit; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7101   $as_echo_n "(cached) " >&6
7102 else
7103   if test -n "$ac_ct_NMEDIT"; then
7104   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109   IFS=$as_save_IFS
7110   test -z "$as_dir" && as_dir=.
7111     for ac_exec_ext in '' $ac_executable_extensions; do
7112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115     break 2
7116   fi
7117 done
7118   done
7119 IFS=$as_save_IFS
7120
7121 fi
7122 fi
7123 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7124 if test -n "$ac_ct_NMEDIT"; then
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7126 $as_echo "$ac_ct_NMEDIT" >&6; }
7127 else
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7130 fi
7131
7132   if test "x$ac_ct_NMEDIT" = x; then
7133     NMEDIT=":"
7134   else
7135     case $cross_compiling:$ac_tool_warned in
7136 yes:)
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139 ac_tool_warned=yes ;;
7140 esac
7141     NMEDIT=$ac_ct_NMEDIT
7142   fi
7143 else
7144   NMEDIT="$ac_cv_prog_NMEDIT"
7145 fi
7146
7147     if test -n "$ac_tool_prefix"; then
7148   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7149 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if ${ac_cv_prog_LIPO+:} false; then :
7153   $as_echo_n "(cached) " >&6
7154 else
7155   if test -n "$LIPO"; then
7156   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161   IFS=$as_save_IFS
7162   test -z "$as_dir" && as_dir=.
7163     for ac_exec_ext in '' $ac_executable_extensions; do
7164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167     break 2
7168   fi
7169 done
7170   done
7171 IFS=$as_save_IFS
7172
7173 fi
7174 fi
7175 LIPO=$ac_cv_prog_LIPO
7176 if test -n "$LIPO"; then
7177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7178 $as_echo "$LIPO" >&6; }
7179 else
7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7182 fi
7183
7184
7185 fi
7186 if test -z "$ac_cv_prog_LIPO"; then
7187   ac_ct_LIPO=$LIPO
7188   # Extract the first word of "lipo", so it can be a program name with args.
7189 set dummy lipo; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7193   $as_echo_n "(cached) " >&6
7194 else
7195   if test -n "$ac_ct_LIPO"; then
7196   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203     for ac_exec_ext in '' $ac_executable_extensions; do
7204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205     ac_cv_prog_ac_ct_LIPO="lipo"
7206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210   done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7216 if test -n "$ac_ct_LIPO"; then
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7218 $as_echo "$ac_ct_LIPO" >&6; }
7219 else
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224   if test "x$ac_ct_LIPO" = x; then
7225     LIPO=":"
7226   else
7227     case $cross_compiling:$ac_tool_warned in
7228 yes:)
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231 ac_tool_warned=yes ;;
7232 esac
7233     LIPO=$ac_ct_LIPO
7234   fi
7235 else
7236   LIPO="$ac_cv_prog_LIPO"
7237 fi
7238
7239     if test -n "$ac_tool_prefix"; then
7240   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7241 set dummy ${ac_tool_prefix}otool; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if ${ac_cv_prog_OTOOL+:} false; then :
7245   $as_echo_n "(cached) " >&6
7246 else
7247   if test -n "$OTOOL"; then
7248   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253   IFS=$as_save_IFS
7254   test -z "$as_dir" && as_dir=.
7255     for ac_exec_ext in '' $ac_executable_extensions; do
7256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262   done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 OTOOL=$ac_cv_prog_OTOOL
7268 if test -n "$OTOOL"; then
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7270 $as_echo "$OTOOL" >&6; }
7271 else
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7274 fi
7275
7276
7277 fi
7278 if test -z "$ac_cv_prog_OTOOL"; then
7279   ac_ct_OTOOL=$OTOOL
7280   # Extract the first word of "otool", so it can be a program name with args.
7281 set dummy otool; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7285   $as_echo_n "(cached) " >&6
7286 else
7287   if test -n "$ac_ct_OTOOL"; then
7288   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295     for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_prog_ac_ct_OTOOL="otool"
7298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302   done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7308 if test -n "$ac_ct_OTOOL"; then
7309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7310 $as_echo "$ac_ct_OTOOL" >&6; }
7311 else
7312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7314 fi
7315
7316   if test "x$ac_ct_OTOOL" = x; then
7317     OTOOL=":"
7318   else
7319     case $cross_compiling:$ac_tool_warned in
7320 yes:)
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323 ac_tool_warned=yes ;;
7324 esac
7325     OTOOL=$ac_ct_OTOOL
7326   fi
7327 else
7328   OTOOL="$ac_cv_prog_OTOOL"
7329 fi
7330
7331     if test -n "$ac_tool_prefix"; then
7332   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7333 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if ${ac_cv_prog_OTOOL64+:} false; then :
7337   $as_echo_n "(cached) " >&6
7338 else
7339   if test -n "$OTOOL64"; then
7340   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345   IFS=$as_save_IFS
7346   test -z "$as_dir" && as_dir=.
7347     for ac_exec_ext in '' $ac_executable_extensions; do
7348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351     break 2
7352   fi
7353 done
7354   done
7355 IFS=$as_save_IFS
7356
7357 fi
7358 fi
7359 OTOOL64=$ac_cv_prog_OTOOL64
7360 if test -n "$OTOOL64"; then
7361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7362 $as_echo "$OTOOL64" >&6; }
7363 else
7364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7366 fi
7367
7368
7369 fi
7370 if test -z "$ac_cv_prog_OTOOL64"; then
7371   ac_ct_OTOOL64=$OTOOL64
7372   # Extract the first word of "otool64", so it can be a program name with args.
7373 set dummy otool64; ac_word=$2
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7377   $as_echo_n "(cached) " >&6
7378 else
7379   if test -n "$ac_ct_OTOOL64"; then
7380   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385   IFS=$as_save_IFS
7386   test -z "$as_dir" && as_dir=.
7387     for ac_exec_ext in '' $ac_executable_extensions; do
7388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389     ac_cv_prog_ac_ct_OTOOL64="otool64"
7390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391     break 2
7392   fi
7393 done
7394   done
7395 IFS=$as_save_IFS
7396
7397 fi
7398 fi
7399 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7400 if test -n "$ac_ct_OTOOL64"; then
7401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7402 $as_echo "$ac_ct_OTOOL64" >&6; }
7403 else
7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406 fi
7407
7408   if test "x$ac_ct_OTOOL64" = x; then
7409     OTOOL64=":"
7410   else
7411     case $cross_compiling:$ac_tool_warned in
7412 yes:)
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415 ac_tool_warned=yes ;;
7416 esac
7417     OTOOL64=$ac_ct_OTOOL64
7418   fi
7419 else
7420   OTOOL64="$ac_cv_prog_OTOOL64"
7421 fi
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7450 $as_echo_n "checking for -single_module linker flag... " >&6; }
7451 if ${lt_cv_apple_cc_single_mod+:} false; then :
7452   $as_echo_n "(cached) " >&6
7453 else
7454   lt_cv_apple_cc_single_mod=no
7455       if test -z "${LT_MULTI_MODULE}"; then
7456         # By default we will add the -single_module flag. You can override
7457         # by either setting the environment variable LT_MULTI_MODULE
7458         # non-empty at configure time, or by adding -multi_module to the
7459         # link flags.
7460         rm -rf libconftest.dylib*
7461         echo "int foo(void){return 1;}" > conftest.c
7462         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7463 -dynamiclib -Wl,-single_module conftest.c" >&5
7464         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7465           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7466         _lt_result=$?
7467         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7468           lt_cv_apple_cc_single_mod=yes
7469         else
7470           cat conftest.err >&5
7471         fi
7472         rm -rf libconftest.dylib*
7473         rm -f conftest.*
7474       fi
7475 fi
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7477 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7479 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7480 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483   lt_cv_ld_exported_symbols_list=no
7484       save_LDFLAGS=$LDFLAGS
7485       echo "_main" > conftest.sym
7486       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7487       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h.  */
7489
7490 int
7491 main ()
7492 {
7493
7494   ;
7495   return 0;
7496 }
7497 _ACEOF
7498 if ac_fn_c_try_link "$LINENO"; then :
7499   lt_cv_ld_exported_symbols_list=yes
7500 else
7501   lt_cv_ld_exported_symbols_list=no
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext \
7504     conftest$ac_exeext conftest.$ac_ext
7505         LDFLAGS="$save_LDFLAGS"
7506
7507 fi
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7509 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7511 $as_echo_n "checking for -force_load linker flag... " >&6; }
7512 if ${lt_cv_ld_force_load+:} false; then :
7513   $as_echo_n "(cached) " >&6
7514 else
7515   lt_cv_ld_force_load=no
7516       cat > conftest.c << _LT_EOF
7517 int forced_loaded() { return 2;}
7518 _LT_EOF
7519       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7520       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7521       echo "$AR cru libconftest.a conftest.o" >&5
7522       $AR cru libconftest.a conftest.o 2>&5
7523       echo "$RANLIB libconftest.a" >&5
7524       $RANLIB libconftest.a 2>&5
7525       cat > conftest.c << _LT_EOF
7526 int main() { return 0;}
7527 _LT_EOF
7528       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7529       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7530       _lt_result=$?
7531       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7532         lt_cv_ld_force_load=yes
7533       else
7534         cat conftest.err >&5
7535       fi
7536         rm -f conftest.err libconftest.a conftest conftest.c
7537         rm -rf conftest.dSYM
7538
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7541 $as_echo "$lt_cv_ld_force_load" >&6; }
7542     case $host_os in
7543     rhapsody* | darwin1.[012])
7544       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7545     darwin1.*)
7546       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7547     darwin*) # darwin 5.x on
7548       # if running on 10.5 or later, the deployment target defaults
7549       # to the OS version, if on x86, and 10.4, the deployment
7550       # target defaults to 10.4. Don't you love it?
7551       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7552         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7553           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7554         10.[012]*)
7555           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7556         10.*)
7557           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7558       esac
7559     ;;
7560   esac
7561     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7562       _lt_dar_single_mod='$single_module'
7563     fi
7564     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7565       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7566     else
7567       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7568     fi
7569     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7570       _lt_dsymutil='~$DSYMUTIL $lib || :'
7571     else
7572       _lt_dsymutil=
7573     fi
7574     ;;
7575   esac
7576
7577 ac_ext=c
7578 ac_cpp='$CPP $CPPFLAGS'
7579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7583 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7584 # On Suns, sometimes $CPP names a directory.
7585 if test -n "$CPP" && test -d "$CPP"; then
7586   CPP=
7587 fi
7588 if test -z "$CPP"; then
7589   if ${ac_cv_prog_CPP+:} false; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592       # Double quotes because CPP needs to be expanded
7593     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7594     do
7595       ac_preproc_ok=false
7596 for ac_c_preproc_warn_flag in '' yes
7597 do
7598   # Use a header file that comes with gcc, so configuring glibc
7599   # with a fresh cross-compiler works.
7600   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7601   # <limits.h> exists even on freestanding compilers.
7602   # On the NeXT, cc -E runs the code through the compiler's parser,
7603   # not just through cpp. "Syntax error" is here to catch this case.
7604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h.  */
7606 #ifdef __STDC__
7607 # include <limits.h>
7608 #else
7609 # include <assert.h>
7610 #endif
7611                      Syntax error
7612 _ACEOF
7613 if ac_fn_c_try_cpp "$LINENO"; then :
7614
7615 else
7616   # Broken: fails on valid input.
7617 continue
7618 fi
7619 rm -f conftest.err conftest.i conftest.$ac_ext
7620
7621   # OK, works on sane cases.  Now check whether nonexistent headers
7622   # can be detected and how.
7623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h.  */
7625 #include <ac_nonexistent.h>
7626 _ACEOF
7627 if ac_fn_c_try_cpp "$LINENO"; then :
7628   # Broken: success on invalid input.
7629 continue
7630 else
7631   # Passes both tests.
7632 ac_preproc_ok=:
7633 break
7634 fi
7635 rm -f conftest.err conftest.i conftest.$ac_ext
7636
7637 done
7638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7639 rm -f conftest.i conftest.err conftest.$ac_ext
7640 if $ac_preproc_ok; then :
7641   break
7642 fi
7643
7644     done
7645     ac_cv_prog_CPP=$CPP
7646
7647 fi
7648   CPP=$ac_cv_prog_CPP
7649 else
7650   ac_cv_prog_CPP=$CPP
7651 fi
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7653 $as_echo "$CPP" >&6; }
7654 ac_preproc_ok=false
7655 for ac_c_preproc_warn_flag in '' yes
7656 do
7657   # Use a header file that comes with gcc, so configuring glibc
7658   # with a fresh cross-compiler works.
7659   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7660   # <limits.h> exists even on freestanding compilers.
7661   # On the NeXT, cc -E runs the code through the compiler's parser,
7662   # not just through cpp. "Syntax error" is here to catch this case.
7663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h.  */
7665 #ifdef __STDC__
7666 # include <limits.h>
7667 #else
7668 # include <assert.h>
7669 #endif
7670                      Syntax error
7671 _ACEOF
7672 if ac_fn_c_try_cpp "$LINENO"; then :
7673
7674 else
7675   # Broken: fails on valid input.
7676 continue
7677 fi
7678 rm -f conftest.err conftest.i conftest.$ac_ext
7679
7680   # OK, works on sane cases.  Now check whether nonexistent headers
7681   # can be detected and how.
7682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h.  */
7684 #include <ac_nonexistent.h>
7685 _ACEOF
7686 if ac_fn_c_try_cpp "$LINENO"; then :
7687   # Broken: success on invalid input.
7688 continue
7689 else
7690   # Passes both tests.
7691 ac_preproc_ok=:
7692 break
7693 fi
7694 rm -f conftest.err conftest.i conftest.$ac_ext
7695
7696 done
7697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7698 rm -f conftest.i conftest.err conftest.$ac_ext
7699 if $ac_preproc_ok; then :
7700
7701 else
7702   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7704 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7705 See \`config.log' for more details" "$LINENO" 5; }
7706 fi
7707
7708 ac_ext=c
7709 ac_cpp='$CPP $CPPFLAGS'
7710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713
7714
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7716 $as_echo_n "checking for ANSI C header files... " >&6; }
7717 if ${ac_cv_header_stdc+:} false; then :
7718   $as_echo_n "(cached) " >&6
7719 else
7720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h.  */
7722 #include <stdlib.h>
7723 #include <stdarg.h>
7724 #include <string.h>
7725 #include <float.h>
7726
7727 int
7728 main ()
7729 {
7730
7731   ;
7732   return 0;
7733 }
7734 _ACEOF
7735 if ac_fn_c_try_compile "$LINENO"; then :
7736   ac_cv_header_stdc=yes
7737 else
7738   ac_cv_header_stdc=no
7739 fi
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741
7742 if test $ac_cv_header_stdc = yes; then
7743   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745 /* end confdefs.h.  */
7746 #include <string.h>
7747
7748 _ACEOF
7749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7750   $EGREP "memchr" >/dev/null 2>&1; then :
7751
7752 else
7753   ac_cv_header_stdc=no
7754 fi
7755 rm -f conftest*
7756
7757 fi
7758
7759 if test $ac_cv_header_stdc = yes; then
7760   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h.  */
7763 #include <stdlib.h>
7764
7765 _ACEOF
7766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7767   $EGREP "free" >/dev/null 2>&1; then :
7768
7769 else
7770   ac_cv_header_stdc=no
7771 fi
7772 rm -f conftest*
7773
7774 fi
7775
7776 if test $ac_cv_header_stdc = yes; then
7777   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7778   if test "$cross_compiling" = yes; then :
7779   :
7780 else
7781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h.  */
7783 #include <ctype.h>
7784 #include <stdlib.h>
7785 #if ((' ' & 0x0FF) == 0x020)
7786 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7787 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7788 #else
7789 # define ISLOWER(c) \
7790                    (('a' <= (c) && (c) <= 'i') \
7791                      || ('j' <= (c) && (c) <= 'r') \
7792                      || ('s' <= (c) && (c) <= 'z'))
7793 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7794 #endif
7795
7796 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7797 int
7798 main ()
7799 {
7800   int i;
7801   for (i = 0; i < 256; i++)
7802     if (XOR (islower (i), ISLOWER (i))
7803         || toupper (i) != TOUPPER (i))
7804       return 2;
7805   return 0;
7806 }
7807 _ACEOF
7808 if ac_fn_c_try_run "$LINENO"; then :
7809
7810 else
7811   ac_cv_header_stdc=no
7812 fi
7813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7814   conftest.$ac_objext conftest.beam conftest.$ac_ext
7815 fi
7816
7817 fi
7818 fi
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7820 $as_echo "$ac_cv_header_stdc" >&6; }
7821 if test $ac_cv_header_stdc = yes; then
7822
7823 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7824
7825 fi
7826
7827 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7828 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7829                   inttypes.h stdint.h unistd.h
7830 do :
7831   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7832 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7833 "
7834 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7835   cat >>confdefs.h <<_ACEOF
7836 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7837 _ACEOF
7838
7839 fi
7840
7841 done
7842
7843
7844 for ac_header in dlfcn.h
7845 do :
7846   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7847 "
7848 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7849   cat >>confdefs.h <<_ACEOF
7850 #define HAVE_DLFCN_H 1
7851 _ACEOF
7852
7853 fi
7854
7855 done
7856
7857
7858
7859
7860
7861 # Set options
7862
7863
7864
7865         enable_dlopen=no
7866
7867
7868   enable_win32_dll=no
7869
7870
7871             # Check whether --enable-shared was given.
7872 if test "${enable_shared+set}" = set; then :
7873   enableval=$enable_shared; p=${PACKAGE-default}
7874     case $enableval in
7875     yes) enable_shared=yes ;;
7876     no) enable_shared=no ;;
7877     *)
7878       enable_shared=no
7879       # Look at the argument we got.  We use all the common list separators.
7880       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7881       for pkg in $enableval; do
7882         IFS="$lt_save_ifs"
7883         if test "X$pkg" = "X$p"; then
7884           enable_shared=yes
7885         fi
7886       done
7887       IFS="$lt_save_ifs"
7888       ;;
7889     esac
7890 else
7891   enable_shared=yes
7892 fi
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902   # Check whether --enable-static was given.
7903 if test "${enable_static+set}" = set; then :
7904   enableval=$enable_static; p=${PACKAGE-default}
7905     case $enableval in
7906     yes) enable_static=yes ;;
7907     no) enable_static=no ;;
7908     *)
7909      enable_static=no
7910       # Look at the argument we got.  We use all the common list separators.
7911       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7912       for pkg in $enableval; do
7913         IFS="$lt_save_ifs"
7914         if test "X$pkg" = "X$p"; then
7915           enable_static=yes
7916         fi
7917       done
7918       IFS="$lt_save_ifs"
7919       ;;
7920     esac
7921 else
7922   enable_static=yes
7923 fi
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934 # Check whether --with-pic was given.
7935 if test "${with_pic+set}" = set; then :
7936   withval=$with_pic; pic_mode="$withval"
7937 else
7938   pic_mode=default
7939 fi
7940
7941
7942 test -z "$pic_mode" && pic_mode=default
7943
7944
7945
7946
7947
7948
7949
7950   # Check whether --enable-fast-install was given.
7951 if test "${enable_fast_install+set}" = set; then :
7952   enableval=$enable_fast_install; p=${PACKAGE-default}
7953     case $enableval in
7954     yes) enable_fast_install=yes ;;
7955     no) enable_fast_install=no ;;
7956     *)
7957       enable_fast_install=no
7958       # Look at the argument we got.  We use all the common list separators.
7959       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7960       for pkg in $enableval; do
7961         IFS="$lt_save_ifs"
7962         if test "X$pkg" = "X$p"; then
7963           enable_fast_install=yes
7964         fi
7965       done
7966       IFS="$lt_save_ifs"
7967       ;;
7968     esac
7969 else
7970   enable_fast_install=yes
7971 fi
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983 # This can be used to rebuild libtool when needed
7984 LIBTOOL_DEPS="$ltmain"
7985
7986 # Always use our own libtool.
7987 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014 test -z "$LN_S" && LN_S="ln -s"
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029 if test -n "${ZSH_VERSION+set}" ; then
8030    setopt NO_GLOB_SUBST
8031 fi
8032
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8034 $as_echo_n "checking for objdir... " >&6; }
8035 if ${lt_cv_objdir+:} false; then :
8036   $as_echo_n "(cached) " >&6
8037 else
8038   rm -f .libs 2>/dev/null
8039 mkdir .libs 2>/dev/null
8040 if test -d .libs; then
8041   lt_cv_objdir=.libs
8042 else
8043   # MS-DOS does not allow filenames that begin with a dot.
8044   lt_cv_objdir=_libs
8045 fi
8046 rmdir .libs 2>/dev/null
8047 fi
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8049 $as_echo "$lt_cv_objdir" >&6; }
8050 objdir=$lt_cv_objdir
8051
8052
8053
8054
8055
8056 cat >>confdefs.h <<_ACEOF
8057 #define LT_OBJDIR "$lt_cv_objdir/"
8058 _ACEOF
8059
8060
8061
8062
8063 case $host_os in
8064 aix3*)
8065   # AIX sometimes has problems with the GCC collect2 program.  For some
8066   # reason, if we set the COLLECT_NAMES environment variable, the problems
8067   # vanish in a puff of smoke.
8068   if test "X${COLLECT_NAMES+set}" != Xset; then
8069     COLLECT_NAMES=
8070     export COLLECT_NAMES
8071   fi
8072   ;;
8073 esac
8074
8075 # Global variables:
8076 ofile=libtool
8077 can_build_shared=yes
8078
8079 # All known linkers require a `.a' archive for static linking (except MSVC,
8080 # which needs '.lib').
8081 libext=a
8082
8083 with_gnu_ld="$lt_cv_prog_gnu_ld"
8084
8085 old_CC="$CC"
8086 old_CFLAGS="$CFLAGS"
8087
8088 # Set sane defaults for various variables
8089 test -z "$CC" && CC=cc
8090 test -z "$LTCC" && LTCC=$CC
8091 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8092 test -z "$LD" && LD=ld
8093 test -z "$ac_objext" && ac_objext=o
8094
8095 for cc_temp in $compiler""; do
8096   case $cc_temp in
8097     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8098     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8099     \-*) ;;
8100     *) break;;
8101   esac
8102 done
8103 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8104
8105
8106 # Only perform the check for file, if the check method requires it
8107 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8108 case $deplibs_check_method in
8109 file_magic*)
8110   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8112 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8113 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8114   $as_echo_n "(cached) " >&6
8115 else
8116   case $MAGIC_CMD in
8117 [\\/*] |  ?:[\\/]*)
8118   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8119   ;;
8120 *)
8121   lt_save_MAGIC_CMD="$MAGIC_CMD"
8122   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8123   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8124   for ac_dir in $ac_dummy; do
8125     IFS="$lt_save_ifs"
8126     test -z "$ac_dir" && ac_dir=.
8127     if test -f $ac_dir/${ac_tool_prefix}file; then
8128       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8129       if test -n "$file_magic_test_file"; then
8130         case $deplibs_check_method in
8131         "file_magic "*)
8132           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8133           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8134           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8135             $EGREP "$file_magic_regex" > /dev/null; then
8136             :
8137           else
8138             cat <<_LT_EOF 1>&2
8139
8140 *** Warning: the command libtool uses to detect shared libraries,
8141 *** $file_magic_cmd, produces output that libtool cannot recognize.
8142 *** The result is that libtool may fail to recognize shared libraries
8143 *** as such.  This will affect the creation of libtool libraries that
8144 *** depend on shared libraries, but programs linked with such libtool
8145 *** libraries will work regardless of this problem.  Nevertheless, you
8146 *** may want to report the problem to your system manager and/or to
8147 *** bug-libtool@gnu.org
8148
8149 _LT_EOF
8150           fi ;;
8151         esac
8152       fi
8153       break
8154     fi
8155   done
8156   IFS="$lt_save_ifs"
8157   MAGIC_CMD="$lt_save_MAGIC_CMD"
8158   ;;
8159 esac
8160 fi
8161
8162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8163 if test -n "$MAGIC_CMD"; then
8164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8165 $as_echo "$MAGIC_CMD" >&6; }
8166 else
8167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168 $as_echo "no" >&6; }
8169 fi
8170
8171
8172
8173
8174
8175 if test -z "$lt_cv_path_MAGIC_CMD"; then
8176   if test -n "$ac_tool_prefix"; then
8177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8178 $as_echo_n "checking for file... " >&6; }
8179 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8180   $as_echo_n "(cached) " >&6
8181 else
8182   case $MAGIC_CMD in
8183 [\\/*] |  ?:[\\/]*)
8184   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8185   ;;
8186 *)
8187   lt_save_MAGIC_CMD="$MAGIC_CMD"
8188   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8189   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8190   for ac_dir in $ac_dummy; do
8191     IFS="$lt_save_ifs"
8192     test -z "$ac_dir" && ac_dir=.
8193     if test -f $ac_dir/file; then
8194       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8195       if test -n "$file_magic_test_file"; then
8196         case $deplibs_check_method in
8197         "file_magic "*)
8198           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8199           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8200           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8201             $EGREP "$file_magic_regex" > /dev/null; then
8202             :
8203           else
8204             cat <<_LT_EOF 1>&2
8205
8206 *** Warning: the command libtool uses to detect shared libraries,
8207 *** $file_magic_cmd, produces output that libtool cannot recognize.
8208 *** The result is that libtool may fail to recognize shared libraries
8209 *** as such.  This will affect the creation of libtool libraries that
8210 *** depend on shared libraries, but programs linked with such libtool
8211 *** libraries will work regardless of this problem.  Nevertheless, you
8212 *** may want to report the problem to your system manager and/or to
8213 *** bug-libtool@gnu.org
8214
8215 _LT_EOF
8216           fi ;;
8217         esac
8218       fi
8219       break
8220     fi
8221   done
8222   IFS="$lt_save_ifs"
8223   MAGIC_CMD="$lt_save_MAGIC_CMD"
8224   ;;
8225 esac
8226 fi
8227
8228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8229 if test -n "$MAGIC_CMD"; then
8230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8231 $as_echo "$MAGIC_CMD" >&6; }
8232 else
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8235 fi
8236
8237
8238   else
8239     MAGIC_CMD=:
8240   fi
8241 fi
8242
8243   fi
8244   ;;
8245 esac
8246
8247 # Use C for the default configuration in the libtool script
8248
8249 lt_save_CC="$CC"
8250 ac_ext=c
8251 ac_cpp='$CPP $CPPFLAGS'
8252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8255
8256
8257 # Source file extension for C test sources.
8258 ac_ext=c
8259
8260 # Object file extension for compiled C test sources.
8261 objext=o
8262 objext=$objext
8263
8264 # Code to be used in simple compile tests
8265 lt_simple_compile_test_code="int some_variable = 0;"
8266
8267 # Code to be used in simple link tests
8268 lt_simple_link_test_code='int main(){return(0);}'
8269
8270
8271
8272
8273
8274
8275
8276 # If no C compiler was specified, use CC.
8277 LTCC=${LTCC-"$CC"}
8278
8279 # If no C compiler flags were specified, use CFLAGS.
8280 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8281
8282 # Allow CC to be a program name with arguments.
8283 compiler=$CC
8284
8285 # Save the default compiler, since it gets overwritten when the other
8286 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8287 compiler_DEFAULT=$CC
8288
8289 # save warnings/boilerplate of simple test code
8290 ac_outfile=conftest.$ac_objext
8291 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8292 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8293 _lt_compiler_boilerplate=`cat conftest.err`
8294 $RM conftest*
8295
8296 ac_outfile=conftest.$ac_objext
8297 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8298 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8299 _lt_linker_boilerplate=`cat conftest.err`
8300 $RM -r conftest*
8301
8302
8303 ## CAVEAT EMPTOR:
8304 ## There is no encapsulation within the following macros, do not change
8305 ## the running order or otherwise move them around unless you know exactly
8306 ## what you are doing...
8307 if test -n "$compiler"; then
8308
8309 lt_prog_compiler_no_builtin_flag=
8310
8311 if test "$GCC" = yes; then
8312   case $cc_basename in
8313   nvcc*)
8314     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8315   *)
8316     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8317   esac
8318
8319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8320 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8321 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8322   $as_echo_n "(cached) " >&6
8323 else
8324   lt_cv_prog_compiler_rtti_exceptions=no
8325    ac_outfile=conftest.$ac_objext
8326    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8327    lt_compiler_flag="-fno-rtti -fno-exceptions"
8328    # Insert the option either (1) after the last *FLAGS variable, or
8329    # (2) before a word containing "conftest.", or (3) at the end.
8330    # Note that $ac_compile itself does not contain backslashes and begins
8331    # with a dollar sign (not a hyphen), so the echo should work correctly.
8332    # The option is referenced via a variable to avoid confusing sed.
8333    lt_compile=`echo "$ac_compile" | $SED \
8334    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8335    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8336    -e 's:$: $lt_compiler_flag:'`
8337    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8338    (eval "$lt_compile" 2>conftest.err)
8339    ac_status=$?
8340    cat conftest.err >&5
8341    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342    if (exit $ac_status) && test -s "$ac_outfile"; then
8343      # The compiler can only warn and ignore the option if not recognized
8344      # So say no if there are warnings other than the usual output.
8345      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8346      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8347      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8348        lt_cv_prog_compiler_rtti_exceptions=yes
8349      fi
8350    fi
8351    $RM conftest*
8352
8353 fi
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8355 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8356
8357 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8358     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8359 else
8360     :
8361 fi
8362
8363 fi
8364
8365
8366
8367
8368
8369
8370   lt_prog_compiler_wl=
8371 lt_prog_compiler_pic=
8372 lt_prog_compiler_static=
8373
8374
8375   if test "$GCC" = yes; then
8376     lt_prog_compiler_wl='-Wl,'
8377     lt_prog_compiler_static='-static'
8378
8379     case $host_os in
8380       aix*)
8381       # All AIX code is PIC.
8382       if test "$host_cpu" = ia64; then
8383         # AIX 5 now supports IA64 processor
8384         lt_prog_compiler_static='-Bstatic'
8385       fi
8386       ;;
8387
8388     amigaos*)
8389       case $host_cpu in
8390       powerpc)
8391             # see comment about AmigaOS4 .so support
8392             lt_prog_compiler_pic='-fPIC'
8393         ;;
8394       m68k)
8395             # FIXME: we need at least 68020 code to build shared libraries, but
8396             # adding the `-m68020' flag to GCC prevents building anything better,
8397             # like `-m68040'.
8398             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8399         ;;
8400       esac
8401       ;;
8402
8403     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8404       # PIC is the default for these OSes.
8405       ;;
8406
8407     mingw* | cygwin* | pw32* | os2* | cegcc*)
8408       # This hack is so that the source file can tell whether it is being
8409       # built for inclusion in a dll (and should export symbols for example).
8410       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8411       # (--disable-auto-import) libraries
8412       lt_prog_compiler_pic='-DDLL_EXPORT'
8413       ;;
8414
8415     darwin* | rhapsody*)
8416       # PIC is the default on this platform
8417       # Common symbols not allowed in MH_DYLIB files
8418       lt_prog_compiler_pic='-fno-common'
8419       ;;
8420
8421     haiku*)
8422       # PIC is the default for Haiku.
8423       # The "-static" flag exists, but is broken.
8424       lt_prog_compiler_static=
8425       ;;
8426
8427     hpux*)
8428       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8429       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8430       # sets the default TLS model and affects inlining.
8431       case $host_cpu in
8432       hppa*64*)
8433         # +Z the default
8434         ;;
8435       *)
8436         lt_prog_compiler_pic='-fPIC'
8437         ;;
8438       esac
8439       ;;
8440
8441     interix[3-9]*)
8442       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8443       # Instead, we relocate shared libraries at runtime.
8444       ;;
8445
8446     msdosdjgpp*)
8447       # Just because we use GCC doesn't mean we suddenly get shared libraries
8448       # on systems that don't support them.
8449       lt_prog_compiler_can_build_shared=no
8450       enable_shared=no
8451       ;;
8452
8453     *nto* | *qnx*)
8454       # QNX uses GNU C++, but need to define -shared option too, otherwise
8455       # it will coredump.
8456       lt_prog_compiler_pic='-fPIC -shared'
8457       ;;
8458
8459     sysv4*MP*)
8460       if test -d /usr/nec; then
8461         lt_prog_compiler_pic=-Kconform_pic
8462       fi
8463       ;;
8464
8465     *)
8466       lt_prog_compiler_pic='-fPIC'
8467       ;;
8468     esac
8469
8470     case $cc_basename in
8471     nvcc*) # Cuda Compiler Driver 2.2
8472       lt_prog_compiler_wl='-Xlinker '
8473       lt_prog_compiler_pic='-Xcompiler -fPIC'
8474       ;;
8475     esac
8476   else
8477     # PORTME Check for flag to pass linker flags through the system compiler.
8478     case $host_os in
8479     aix*)
8480       lt_prog_compiler_wl='-Wl,'
8481       if test "$host_cpu" = ia64; then
8482         # AIX 5 now supports IA64 processor
8483         lt_prog_compiler_static='-Bstatic'
8484       else
8485         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8486       fi
8487       ;;
8488
8489     mingw* | cygwin* | pw32* | os2* | cegcc*)
8490       # This hack is so that the source file can tell whether it is being
8491       # built for inclusion in a dll (and should export symbols for example).
8492       lt_prog_compiler_pic='-DDLL_EXPORT'
8493       ;;
8494
8495     hpux9* | hpux10* | hpux11*)
8496       lt_prog_compiler_wl='-Wl,'
8497       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8498       # not for PA HP-UX.
8499       case $host_cpu in
8500       hppa*64*|ia64*)
8501         # +Z the default
8502         ;;
8503       *)
8504         lt_prog_compiler_pic='+Z'
8505         ;;
8506       esac
8507       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8508       lt_prog_compiler_static='${wl}-a ${wl}archive'
8509       ;;
8510
8511     irix5* | irix6* | nonstopux*)
8512       lt_prog_compiler_wl='-Wl,'
8513       # PIC (with -KPIC) is the default.
8514       lt_prog_compiler_static='-non_shared'
8515       ;;
8516
8517     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8518       case $cc_basename in
8519       # old Intel for x86_64 which still supported -KPIC.
8520       ecc*)
8521         lt_prog_compiler_wl='-Wl,'
8522         lt_prog_compiler_pic='-KPIC'
8523         lt_prog_compiler_static='-static'
8524         ;;
8525       # icc used to be incompatible with GCC.
8526       # ICC 10 doesn't accept -KPIC any more.
8527       icc* | ifort*)
8528         lt_prog_compiler_wl='-Wl,'
8529         lt_prog_compiler_pic='-fPIC'
8530         lt_prog_compiler_static='-static'
8531         ;;
8532       # Lahey Fortran 8.1.
8533       lf95*)
8534         lt_prog_compiler_wl='-Wl,'
8535         lt_prog_compiler_pic='--shared'
8536         lt_prog_compiler_static='--static'
8537         ;;
8538       nagfor*)
8539         # NAG Fortran compiler
8540         lt_prog_compiler_wl='-Wl,-Wl,,'
8541         lt_prog_compiler_pic='-PIC'
8542         lt_prog_compiler_static='-Bstatic'
8543         ;;
8544       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8545         # Portland Group compilers (*not* the Pentium gcc compiler,
8546         # which looks to be a dead project)
8547         lt_prog_compiler_wl='-Wl,'
8548         lt_prog_compiler_pic='-fpic'
8549         lt_prog_compiler_static='-Bstatic'
8550         ;;
8551       ccc*)
8552         lt_prog_compiler_wl='-Wl,'
8553         # All Alpha code is PIC.
8554         lt_prog_compiler_static='-non_shared'
8555         ;;
8556       xl* | bgxl* | bgf* | mpixl*)
8557         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8558         lt_prog_compiler_wl='-Wl,'
8559         lt_prog_compiler_pic='-qpic'
8560         lt_prog_compiler_static='-qstaticlink'
8561         ;;
8562       *)
8563         case `$CC -V 2>&1 | sed 5q` in
8564         *Sun\ F* | *Sun*Fortran*)
8565           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8566           lt_prog_compiler_pic='-KPIC'
8567           lt_prog_compiler_static='-Bstatic'
8568           lt_prog_compiler_wl=''
8569           ;;
8570         *Sun\ C*)
8571           # Sun C 5.9
8572           lt_prog_compiler_pic='-KPIC'
8573           lt_prog_compiler_static='-Bstatic'
8574           lt_prog_compiler_wl='-Wl,'
8575           ;;
8576         esac
8577         ;;
8578       esac
8579       ;;
8580
8581     newsos6)
8582       lt_prog_compiler_pic='-KPIC'
8583       lt_prog_compiler_static='-Bstatic'
8584       ;;
8585
8586     *nto* | *qnx*)
8587       # QNX uses GNU C++, but need to define -shared option too, otherwise
8588       # it will coredump.
8589       lt_prog_compiler_pic='-fPIC -shared'
8590       ;;
8591
8592     osf3* | osf4* | osf5*)
8593       lt_prog_compiler_wl='-Wl,'
8594       # All OSF/1 code is PIC.
8595       lt_prog_compiler_static='-non_shared'
8596       ;;
8597
8598     rdos*)
8599       lt_prog_compiler_static='-non_shared'
8600       ;;
8601
8602     solaris*)
8603       lt_prog_compiler_pic='-KPIC'
8604       lt_prog_compiler_static='-Bstatic'
8605       case $cc_basename in
8606       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8607         lt_prog_compiler_wl='-Qoption ld ';;
8608       *)
8609         lt_prog_compiler_wl='-Wl,';;
8610       esac
8611       ;;
8612
8613     sunos4*)
8614       lt_prog_compiler_wl='-Qoption ld '
8615       lt_prog_compiler_pic='-PIC'
8616       lt_prog_compiler_static='-Bstatic'
8617       ;;
8618
8619     sysv4 | sysv4.2uw2* | sysv4.3*)
8620       lt_prog_compiler_wl='-Wl,'
8621       lt_prog_compiler_pic='-KPIC'
8622       lt_prog_compiler_static='-Bstatic'
8623       ;;
8624
8625     sysv4*MP*)
8626       if test -d /usr/nec ;then
8627         lt_prog_compiler_pic='-Kconform_pic'
8628         lt_prog_compiler_static='-Bstatic'
8629       fi
8630       ;;
8631
8632     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8633       lt_prog_compiler_wl='-Wl,'
8634       lt_prog_compiler_pic='-KPIC'
8635       lt_prog_compiler_static='-Bstatic'
8636       ;;
8637
8638     unicos*)
8639       lt_prog_compiler_wl='-Wl,'
8640       lt_prog_compiler_can_build_shared=no
8641       ;;
8642
8643     uts4*)
8644       lt_prog_compiler_pic='-pic'
8645       lt_prog_compiler_static='-Bstatic'
8646       ;;
8647
8648     *)
8649       lt_prog_compiler_can_build_shared=no
8650       ;;
8651     esac
8652   fi
8653
8654 case $host_os in
8655   # For platforms which do not support PIC, -DPIC is meaningless:
8656   *djgpp*)
8657     lt_prog_compiler_pic=
8658     ;;
8659   *)
8660     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8661     ;;
8662 esac
8663
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8665 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8666 if ${lt_cv_prog_compiler_pic+:} false; then :
8667   $as_echo_n "(cached) " >&6
8668 else
8669   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8670 fi
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8672 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8673 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8674
8675 #
8676 # Check to make sure the PIC flag actually works.
8677 #
8678 if test -n "$lt_prog_compiler_pic"; then
8679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8680 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8681 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8682   $as_echo_n "(cached) " >&6
8683 else
8684   lt_cv_prog_compiler_pic_works=no
8685    ac_outfile=conftest.$ac_objext
8686    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8687    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8688    # Insert the option either (1) after the last *FLAGS variable, or
8689    # (2) before a word containing "conftest.", or (3) at the end.
8690    # Note that $ac_compile itself does not contain backslashes and begins
8691    # with a dollar sign (not a hyphen), so the echo should work correctly.
8692    # The option is referenced via a variable to avoid confusing sed.
8693    lt_compile=`echo "$ac_compile" | $SED \
8694    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8695    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8696    -e 's:$: $lt_compiler_flag:'`
8697    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8698    (eval "$lt_compile" 2>conftest.err)
8699    ac_status=$?
8700    cat conftest.err >&5
8701    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702    if (exit $ac_status) && test -s "$ac_outfile"; then
8703      # The compiler can only warn and ignore the option if not recognized
8704      # So say no if there are warnings other than the usual output.
8705      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8706      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8707      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8708        lt_cv_prog_compiler_pic_works=yes
8709      fi
8710    fi
8711    $RM conftest*
8712
8713 fi
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8715 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8716
8717 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8718     case $lt_prog_compiler_pic in
8719      "" | " "*) ;;
8720      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8721      esac
8722 else
8723     lt_prog_compiler_pic=
8724      lt_prog_compiler_can_build_shared=no
8725 fi
8726
8727 fi
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739 #
8740 # Check to make sure the static flag actually works.
8741 #
8742 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8744 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8745 if ${lt_cv_prog_compiler_static_works+:} false; then :
8746   $as_echo_n "(cached) " >&6
8747 else
8748   lt_cv_prog_compiler_static_works=no
8749    save_LDFLAGS="$LDFLAGS"
8750    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8751    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8752    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8753      # The linker can only warn and ignore the option if not recognized
8754      # So say no if there are warnings
8755      if test -s conftest.err; then
8756        # Append any errors to the config.log.
8757        cat conftest.err 1>&5
8758        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8759        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8760        if diff conftest.exp conftest.er2 >/dev/null; then
8761          lt_cv_prog_compiler_static_works=yes
8762        fi
8763      else
8764        lt_cv_prog_compiler_static_works=yes
8765      fi
8766    fi
8767    $RM -r conftest*
8768    LDFLAGS="$save_LDFLAGS"
8769
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8772 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8773
8774 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8775     :
8776 else
8777     lt_prog_compiler_static=
8778 fi
8779
8780
8781
8782
8783
8784
8785
8786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8787 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8788 if ${lt_cv_prog_compiler_c_o+:} false; then :
8789   $as_echo_n "(cached) " >&6
8790 else
8791   lt_cv_prog_compiler_c_o=no
8792    $RM -r conftest 2>/dev/null
8793    mkdir conftest
8794    cd conftest
8795    mkdir out
8796    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8797
8798    lt_compiler_flag="-o out/conftest2.$ac_objext"
8799    # Insert the option either (1) after the last *FLAGS variable, or
8800    # (2) before a word containing "conftest.", or (3) at the end.
8801    # Note that $ac_compile itself does not contain backslashes and begins
8802    # with a dollar sign (not a hyphen), so the echo should work correctly.
8803    lt_compile=`echo "$ac_compile" | $SED \
8804    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8805    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8806    -e 's:$: $lt_compiler_flag:'`
8807    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8808    (eval "$lt_compile" 2>out/conftest.err)
8809    ac_status=$?
8810    cat out/conftest.err >&5
8811    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8813    then
8814      # The compiler can only warn and ignore the option if not recognized
8815      # So say no if there are warnings
8816      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8817      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8818      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8819        lt_cv_prog_compiler_c_o=yes
8820      fi
8821    fi
8822    chmod u+w . 2>&5
8823    $RM conftest*
8824    # SGI C++ compiler will create directory out/ii_files/ for
8825    # template instantiation
8826    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8827    $RM out/* && rmdir out
8828    cd ..
8829    $RM -r conftest
8830    $RM conftest*
8831
8832 fi
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8834 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8835
8836
8837
8838
8839
8840
8841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8842 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8843 if ${lt_cv_prog_compiler_c_o+:} false; then :
8844   $as_echo_n "(cached) " >&6
8845 else
8846   lt_cv_prog_compiler_c_o=no
8847    $RM -r conftest 2>/dev/null
8848    mkdir conftest
8849    cd conftest
8850    mkdir out
8851    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8852
8853    lt_compiler_flag="-o out/conftest2.$ac_objext"
8854    # Insert the option either (1) after the last *FLAGS variable, or
8855    # (2) before a word containing "conftest.", or (3) at the end.
8856    # Note that $ac_compile itself does not contain backslashes and begins
8857    # with a dollar sign (not a hyphen), so the echo should work correctly.
8858    lt_compile=`echo "$ac_compile" | $SED \
8859    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8860    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8861    -e 's:$: $lt_compiler_flag:'`
8862    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8863    (eval "$lt_compile" 2>out/conftest.err)
8864    ac_status=$?
8865    cat out/conftest.err >&5
8866    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8868    then
8869      # The compiler can only warn and ignore the option if not recognized
8870      # So say no if there are warnings
8871      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8872      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8873      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8874        lt_cv_prog_compiler_c_o=yes
8875      fi
8876    fi
8877    chmod u+w . 2>&5
8878    $RM conftest*
8879    # SGI C++ compiler will create directory out/ii_files/ for
8880    # template instantiation
8881    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8882    $RM out/* && rmdir out
8883    cd ..
8884    $RM -r conftest
8885    $RM conftest*
8886
8887 fi
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8889 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8890
8891
8892
8893
8894 hard_links="nottested"
8895 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8896   # do not overwrite the value of need_locks provided by the user
8897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8898 $as_echo_n "checking if we can lock with hard links... " >&6; }
8899   hard_links=yes
8900   $RM conftest*
8901   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8902   touch conftest.a
8903   ln conftest.a conftest.b 2>&5 || hard_links=no
8904   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8906 $as_echo "$hard_links" >&6; }
8907   if test "$hard_links" = no; then
8908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8909 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8910     need_locks=warn
8911   fi
8912 else
8913   need_locks=no
8914 fi
8915
8916
8917
8918
8919
8920
8921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8922 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8923
8924   runpath_var=
8925   allow_undefined_flag=
8926   always_export_symbols=no
8927   archive_cmds=
8928   archive_expsym_cmds=
8929   compiler_needs_object=no
8930   enable_shared_with_static_runtimes=no
8931   export_dynamic_flag_spec=
8932   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8933   hardcode_automatic=no
8934   hardcode_direct=no
8935   hardcode_direct_absolute=no
8936   hardcode_libdir_flag_spec=
8937   hardcode_libdir_flag_spec_ld=
8938   hardcode_libdir_separator=
8939   hardcode_minus_L=no
8940   hardcode_shlibpath_var=unsupported
8941   inherit_rpath=no
8942   link_all_deplibs=unknown
8943   module_cmds=
8944   module_expsym_cmds=
8945   old_archive_from_new_cmds=
8946   old_archive_from_expsyms_cmds=
8947   thread_safe_flag_spec=
8948   whole_archive_flag_spec=
8949   # include_expsyms should be a list of space-separated symbols to be *always*
8950   # included in the symbol list
8951   include_expsyms=
8952   # exclude_expsyms can be an extended regexp of symbols to exclude
8953   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8954   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8955   # as well as any symbol that contains `d'.
8956   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8957   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8958   # platforms (ab)use it in PIC code, but their linkers get confused if
8959   # the symbol is explicitly referenced.  Since portable code cannot
8960   # rely on this symbol name, it's probably fine to never include it in
8961   # preloaded symbol tables.
8962   # Exclude shared library initialization/finalization symbols.
8963   extract_expsyms_cmds=
8964
8965   case $host_os in
8966   cygwin* | mingw* | pw32* | cegcc*)
8967     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8968     # When not using gcc, we currently assume that we are using
8969     # Microsoft Visual C++.
8970     if test "$GCC" != yes; then
8971       with_gnu_ld=no
8972     fi
8973     ;;
8974   interix*)
8975     # we just hope/assume this is gcc and not c89 (= MSVC++)
8976     with_gnu_ld=yes
8977     ;;
8978   openbsd*)
8979     with_gnu_ld=no
8980     ;;
8981   esac
8982
8983   ld_shlibs=yes
8984
8985   # On some targets, GNU ld is compatible enough with the native linker
8986   # that we're better off using the native interface for both.
8987   lt_use_gnu_ld_interface=no
8988   if test "$with_gnu_ld" = yes; then
8989     case $host_os in
8990       aix*)
8991         # The AIX port of GNU ld has always aspired to compatibility
8992         # with the native linker.  However, as the warning in the GNU ld
8993         # block says, versions before 2.19.5* couldn't really create working
8994         # shared libraries, regardless of the interface used.
8995         case `$LD -v 2>&1` in
8996           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8997           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8998           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8999           *)
9000             lt_use_gnu_ld_interface=yes
9001             ;;
9002         esac
9003         ;;
9004       *)
9005         lt_use_gnu_ld_interface=yes
9006         ;;
9007     esac
9008   fi
9009
9010   if test "$lt_use_gnu_ld_interface" = yes; then
9011     # If archive_cmds runs LD, not CC, wlarc should be empty
9012     wlarc='${wl}'
9013
9014     # Set some defaults for GNU ld with shared library support. These
9015     # are reset later if shared libraries are not supported. Putting them
9016     # here allows them to be overridden if necessary.
9017     runpath_var=LD_RUN_PATH
9018     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9019     export_dynamic_flag_spec='${wl}--export-dynamic'
9020     # ancient GNU ld didn't support --whole-archive et. al.
9021     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9022       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9023     else
9024       whole_archive_flag_spec=
9025     fi
9026     supports_anon_versioning=no
9027     case `$LD -v 2>&1` in
9028       *GNU\ gold*) supports_anon_versioning=yes ;;
9029       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9030       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9031       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9032       *\ 2.11.*) ;; # other 2.11 versions
9033       *) supports_anon_versioning=yes ;;
9034     esac
9035
9036     # See if GNU ld supports shared libraries.
9037     case $host_os in
9038     aix[3-9]*)
9039       # On AIX/PPC, the GNU linker is very broken
9040       if test "$host_cpu" != ia64; then
9041         ld_shlibs=no
9042         cat <<_LT_EOF 1>&2
9043
9044 *** Warning: the GNU linker, at least up to release 2.19, is reported
9045 *** to be unable to reliably create shared libraries on AIX.
9046 *** Therefore, libtool is disabling shared libraries support.  If you
9047 *** really care for shared libraries, you may want to install binutils
9048 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9049 *** You will then need to restart the configuration process.
9050
9051 _LT_EOF
9052       fi
9053       ;;
9054
9055     amigaos*)
9056       case $host_cpu in
9057       powerpc)
9058             # see comment about AmigaOS4 .so support
9059             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060             archive_expsym_cmds=''
9061         ;;
9062       m68k)
9063             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)'
9064             hardcode_libdir_flag_spec='-L$libdir'
9065             hardcode_minus_L=yes
9066         ;;
9067       esac
9068       ;;
9069
9070     beos*)
9071       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9072         allow_undefined_flag=unsupported
9073         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9074         # support --undefined.  This deserves some investigation.  FIXME
9075         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9076       else
9077         ld_shlibs=no
9078       fi
9079       ;;
9080
9081     cygwin* | mingw* | pw32* | cegcc*)
9082       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9083       # as there is no search path for DLLs.
9084       hardcode_libdir_flag_spec='-L$libdir'
9085       export_dynamic_flag_spec='${wl}--export-all-symbols'
9086       allow_undefined_flag=unsupported
9087       always_export_symbols=no
9088       enable_shared_with_static_runtimes=yes
9089       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'
9090       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9091
9092       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9093         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9094         # If the export-symbols file already is a .def file (1st line
9095         # is EXPORTS), use it as is; otherwise, prepend...
9096         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9097           cp $export_symbols $output_objdir/$soname.def;
9098         else
9099           echo EXPORTS > $output_objdir/$soname.def;
9100           cat $export_symbols >> $output_objdir/$soname.def;
9101         fi~
9102         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9103       else
9104         ld_shlibs=no
9105       fi
9106       ;;
9107
9108     haiku*)
9109       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110       link_all_deplibs=yes
9111       ;;
9112
9113     interix[3-9]*)
9114       hardcode_direct=no
9115       hardcode_shlibpath_var=no
9116       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9117       export_dynamic_flag_spec='${wl}-E'
9118       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9119       # Instead, shared libraries are loaded at an image base (0x10000000 by
9120       # default) and relocated if they conflict, which is a slow very memory
9121       # consuming and fragmenting process.  To avoid this, we pick a random,
9122       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9123       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9124       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9125       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'
9126       ;;
9127
9128     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9129       tmp_diet=no
9130       if test "$host_os" = linux-dietlibc; then
9131         case $cc_basename in
9132           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9133         esac
9134       fi
9135       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9136          && test "$tmp_diet" = no
9137       then
9138         tmp_addflag=' $pic_flag'
9139         tmp_sharedflag='-shared'
9140         case $cc_basename,$host_cpu in
9141         pgcc*)                          # Portland Group C compiler
9142           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'
9143           tmp_addflag=' $pic_flag'
9144           ;;
9145         pgf77* | pgf90* | pgf95* | pgfortran*)
9146                                         # Portland Group f77 and f90 compilers
9147           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'
9148           tmp_addflag=' $pic_flag -Mnomain' ;;
9149         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9150           tmp_addflag=' -i_dynamic' ;;
9151         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9152           tmp_addflag=' -i_dynamic -nofor_main' ;;
9153         ifc* | ifort*)                  # Intel Fortran compiler
9154           tmp_addflag=' -nofor_main' ;;
9155         lf95*)                          # Lahey Fortran 8.1
9156           whole_archive_flag_spec=
9157           tmp_sharedflag='--shared' ;;
9158         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9159           tmp_sharedflag='-qmkshrobj'
9160           tmp_addflag= ;;
9161         nvcc*)  # Cuda Compiler Driver 2.2
9162           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'
9163           compiler_needs_object=yes
9164           ;;
9165         esac
9166         case `$CC -V 2>&1 | sed 5q` in
9167         *Sun\ C*)                       # Sun C 5.9
9168           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'
9169           compiler_needs_object=yes
9170           tmp_sharedflag='-G' ;;
9171         *Sun\ F*)                       # Sun Fortran 8.3
9172           tmp_sharedflag='-G' ;;
9173         esac
9174         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9175
9176         if test "x$supports_anon_versioning" = xyes; then
9177           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9178             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9179             echo "local: *; };" >> $output_objdir/$libname.ver~
9180             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9181         fi
9182
9183         case $cc_basename in
9184         xlf* | bgf* | bgxlf* | mpixlf*)
9185           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9186           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9187           hardcode_libdir_flag_spec=
9188           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9189           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9190           if test "x$supports_anon_versioning" = xyes; then
9191             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9192               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9193               echo "local: *; };" >> $output_objdir/$libname.ver~
9194               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9195           fi
9196           ;;
9197         esac
9198       else
9199         ld_shlibs=no
9200       fi
9201       ;;
9202
9203     netbsd*)
9204       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9205         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9206         wlarc=
9207       else
9208         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9209         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9210       fi
9211       ;;
9212
9213     solaris*)
9214       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9215         ld_shlibs=no
9216         cat <<_LT_EOF 1>&2
9217
9218 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9219 *** create shared libraries on Solaris systems.  Therefore, libtool
9220 *** is disabling shared libraries support.  We urge you to upgrade GNU
9221 *** binutils to release 2.9.1 or newer.  Another option is to modify
9222 *** your PATH or compiler configuration so that the native linker is
9223 *** used, and then restart.
9224
9225 _LT_EOF
9226       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9227         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9229       else
9230         ld_shlibs=no
9231       fi
9232       ;;
9233
9234     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9235       case `$LD -v 2>&1` in
9236         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9237         ld_shlibs=no
9238         cat <<_LT_EOF 1>&2
9239
9240 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9241 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9242 *** is disabling shared libraries support.  We urge you to upgrade GNU
9243 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9244 *** your PATH or compiler configuration so that the native linker is
9245 *** used, and then restart.
9246
9247 _LT_EOF
9248         ;;
9249         *)
9250           # For security reasons, it is highly recommended that you always
9251           # use absolute paths for naming shared libraries, and exclude the
9252           # DT_RUNPATH tag from executables and libraries.  But doing so
9253           # requires that you compile everything twice, which is a pain.
9254           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9255             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9256             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9257             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9258           else
9259             ld_shlibs=no
9260           fi
9261         ;;
9262       esac
9263       ;;
9264
9265     sunos4*)
9266       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9267       wlarc=
9268       hardcode_direct=yes
9269       hardcode_shlibpath_var=no
9270       ;;
9271
9272     *)
9273       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9274         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9275         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9276       else
9277         ld_shlibs=no
9278       fi
9279       ;;
9280     esac
9281
9282     if test "$ld_shlibs" = no; then
9283       runpath_var=
9284       hardcode_libdir_flag_spec=
9285       export_dynamic_flag_spec=
9286       whole_archive_flag_spec=
9287     fi
9288   else
9289     # PORTME fill in a description of your system's linker (not GNU ld)
9290     case $host_os in
9291     aix3*)
9292       allow_undefined_flag=unsupported
9293       always_export_symbols=yes
9294       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'
9295       # Note: this linker hardcodes the directories in LIBPATH if there
9296       # are no directories specified by -L.
9297       hardcode_minus_L=yes
9298       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9299         # Neither direct hardcoding nor static linking is supported with a
9300         # broken collect2.
9301         hardcode_direct=unsupported
9302       fi
9303       ;;
9304
9305     aix[4-9]*)
9306       if test "$host_cpu" = ia64; then
9307         # On IA64, the linker does run time linking by default, so we don't
9308         # have to do anything special.
9309         aix_use_runtimelinking=no
9310         exp_sym_flag='-Bexport'
9311         no_entry_flag=""
9312       else
9313         # If we're using GNU nm, then we don't want the "-C" option.
9314         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9315         # Also, AIX nm treats weak defined symbols like other global
9316         # defined symbols, whereas GNU nm marks them as "W".
9317         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9318           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'
9319         else
9320           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'
9321         fi
9322         aix_use_runtimelinking=no
9323
9324         # Test if we are trying to use run time linking or normal
9325         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9326         # need to do runtime linking.
9327         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9328           for ld_flag in $LDFLAGS; do
9329           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9330             aix_use_runtimelinking=yes
9331             break
9332           fi
9333           done
9334           ;;
9335         esac
9336
9337         exp_sym_flag='-bexport'
9338         no_entry_flag='-bnoentry'
9339       fi
9340
9341       # When large executables or shared objects are built, AIX ld can
9342       # have problems creating the table of contents.  If linking a library
9343       # or program results in "error TOC overflow" add -mminimal-toc to
9344       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9345       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9346
9347       archive_cmds=''
9348       hardcode_direct=yes
9349       hardcode_direct_absolute=yes
9350       hardcode_libdir_separator=':'
9351       link_all_deplibs=yes
9352       file_list_spec='${wl}-f,'
9353
9354       if test "$GCC" = yes; then
9355         case $host_os in aix4.[012]|aix4.[012].*)
9356         # We only want to do this on AIX 4.2 and lower, the check
9357         # below for broken collect2 doesn't work under 4.3+
9358           collect2name=`${CC} -print-prog-name=collect2`
9359           if test -f "$collect2name" &&
9360            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9361           then
9362           # We have reworked collect2
9363           :
9364           else
9365           # We have old collect2
9366           hardcode_direct=unsupported
9367           # It fails to find uninstalled libraries when the uninstalled
9368           # path is not listed in the libpath.  Setting hardcode_minus_L
9369           # to unsupported forces relinking
9370           hardcode_minus_L=yes
9371           hardcode_libdir_flag_spec='-L$libdir'
9372           hardcode_libdir_separator=
9373           fi
9374           ;;
9375         esac
9376         shared_flag='-shared'
9377         if test "$aix_use_runtimelinking" = yes; then
9378           shared_flag="$shared_flag "'${wl}-G'
9379         fi
9380       else
9381         # not using gcc
9382         if test "$host_cpu" = ia64; then
9383         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9384         # chokes on -Wl,-G. The following line is correct:
9385           shared_flag='-G'
9386         else
9387           if test "$aix_use_runtimelinking" = yes; then
9388             shared_flag='${wl}-G'
9389           else
9390             shared_flag='${wl}-bM:SRE'
9391           fi
9392         fi
9393       fi
9394
9395       export_dynamic_flag_spec='${wl}-bexpall'
9396       # It seems that -bexpall does not export symbols beginning with
9397       # underscore (_), so it is better to generate a list of symbols to export.
9398       always_export_symbols=yes
9399       if test "$aix_use_runtimelinking" = yes; then
9400         # Warning - without using the other runtime loading flags (-brtl),
9401         # -berok will link without error, but may produce a broken library.
9402         allow_undefined_flag='-berok'
9403         # Determine the default libpath from the value encoded in an
9404         # empty executable.
9405         if test "${lt_cv_aix_libpath+set}" = set; then
9406   aix_libpath=$lt_cv_aix_libpath
9407 else
9408   if ${lt_cv_aix_libpath_+:} false; then :
9409   $as_echo_n "(cached) " >&6
9410 else
9411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h.  */
9413
9414 int
9415 main ()
9416 {
9417
9418   ;
9419   return 0;
9420 }
9421 _ACEOF
9422 if ac_fn_c_try_link "$LINENO"; then :
9423
9424   lt_aix_libpath_sed='
9425       /Import File Strings/,/^$/ {
9426           /^0/ {
9427               s/^0  *\([^ ]*\) *$/\1/
9428               p
9429           }
9430       }'
9431   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9432   # Check for a 64-bit object if we didn't find anything.
9433   if test -z "$lt_cv_aix_libpath_"; then
9434     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9435   fi
9436 fi
9437 rm -f core conftest.err conftest.$ac_objext \
9438     conftest$ac_exeext conftest.$ac_ext
9439   if test -z "$lt_cv_aix_libpath_"; then
9440     lt_cv_aix_libpath_="/usr/lib:/lib"
9441   fi
9442
9443 fi
9444
9445   aix_libpath=$lt_cv_aix_libpath_
9446 fi
9447
9448         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9449         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"
9450       else
9451         if test "$host_cpu" = ia64; then
9452           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9453           allow_undefined_flag="-z nodefs"
9454           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"
9455         else
9456          # Determine the default libpath from the value encoded in an
9457          # empty executable.
9458          if test "${lt_cv_aix_libpath+set}" = set; then
9459   aix_libpath=$lt_cv_aix_libpath
9460 else
9461   if ${lt_cv_aix_libpath_+:} false; then :
9462   $as_echo_n "(cached) " >&6
9463 else
9464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h.  */
9466
9467 int
9468 main ()
9469 {
9470
9471   ;
9472   return 0;
9473 }
9474 _ACEOF
9475 if ac_fn_c_try_link "$LINENO"; then :
9476
9477   lt_aix_libpath_sed='
9478       /Import File Strings/,/^$/ {
9479           /^0/ {
9480               s/^0  *\([^ ]*\) *$/\1/
9481               p
9482           }
9483       }'
9484   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9485   # Check for a 64-bit object if we didn't find anything.
9486   if test -z "$lt_cv_aix_libpath_"; then
9487     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9488   fi
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext \
9491     conftest$ac_exeext conftest.$ac_ext
9492   if test -z "$lt_cv_aix_libpath_"; then
9493     lt_cv_aix_libpath_="/usr/lib:/lib"
9494   fi
9495
9496 fi
9497
9498   aix_libpath=$lt_cv_aix_libpath_
9499 fi
9500
9501          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9502           # Warning - without using the other run time loading flags,
9503           # -berok will link without error, but may produce a broken library.
9504           no_undefined_flag=' ${wl}-bernotok'
9505           allow_undefined_flag=' ${wl}-berok'
9506           if test "$with_gnu_ld" = yes; then
9507             # We only use this code for GNU lds that support --whole-archive.
9508             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9509           else
9510             # Exported symbols can be pulled into shared objects from archives
9511             whole_archive_flag_spec='$convenience'
9512           fi
9513           archive_cmds_need_lc=yes
9514           # This is similar to how AIX traditionally builds its shared libraries.
9515           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'
9516         fi
9517       fi
9518       ;;
9519
9520     amigaos*)
9521       case $host_cpu in
9522       powerpc)
9523             # see comment about AmigaOS4 .so support
9524             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9525             archive_expsym_cmds=''
9526         ;;
9527       m68k)
9528             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)'
9529             hardcode_libdir_flag_spec='-L$libdir'
9530             hardcode_minus_L=yes
9531         ;;
9532       esac
9533       ;;
9534
9535     bsdi[45]*)
9536       export_dynamic_flag_spec=-rdynamic
9537       ;;
9538
9539     cygwin* | mingw* | pw32* | cegcc*)
9540       # When not using gcc, we currently assume that we are using
9541       # Microsoft Visual C++.
9542       # hardcode_libdir_flag_spec is actually meaningless, as there is
9543       # no search path for DLLs.
9544       case $cc_basename in
9545       cl*)
9546         # Native MSVC
9547         hardcode_libdir_flag_spec=' '
9548         allow_undefined_flag=unsupported
9549         always_export_symbols=yes
9550         file_list_spec='@'
9551         # Tell ltmain to make .lib files, not .a files.
9552         libext=lib
9553         # Tell ltmain to make .dll files, not .so files.
9554         shrext_cmds=".dll"
9555         # FIXME: Setting linknames here is a bad hack.
9556         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9557         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9558             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9559           else
9560             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9561           fi~
9562           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9563           linknames='
9564         # The linker will not automatically build a static lib if we build a DLL.
9565         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9566         enable_shared_with_static_runtimes=yes
9567         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9568         # Don't use ranlib
9569         old_postinstall_cmds='chmod 644 $oldlib'
9570         postlink_cmds='lt_outputfile="@OUTPUT@"~
9571           lt_tool_outputfile="@TOOL_OUTPUT@"~
9572           case $lt_outputfile in
9573             *.exe|*.EXE) ;;
9574             *)
9575               lt_outputfile="$lt_outputfile.exe"
9576               lt_tool_outputfile="$lt_tool_outputfile.exe"
9577               ;;
9578           esac~
9579           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9580             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9581             $RM "$lt_outputfile.manifest";
9582           fi'
9583         ;;
9584       *)
9585         # Assume MSVC wrapper
9586         hardcode_libdir_flag_spec=' '
9587         allow_undefined_flag=unsupported
9588         # Tell ltmain to make .lib files, not .a files.
9589         libext=lib
9590         # Tell ltmain to make .dll files, not .so files.
9591         shrext_cmds=".dll"
9592         # FIXME: Setting linknames here is a bad hack.
9593         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9594         # The linker will automatically build a .lib file if we build a DLL.
9595         old_archive_from_new_cmds='true'
9596         # FIXME: Should let the user specify the lib program.
9597         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9598         enable_shared_with_static_runtimes=yes
9599         ;;
9600       esac
9601       ;;
9602
9603     darwin* | rhapsody*)
9604
9605
9606   archive_cmds_need_lc=no
9607   hardcode_direct=no
9608   hardcode_automatic=yes
9609   hardcode_shlibpath_var=unsupported
9610   if test "$lt_cv_ld_force_load" = "yes"; then
9611     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\"`'
9612   else
9613     whole_archive_flag_spec=''
9614   fi
9615   link_all_deplibs=yes
9616   allow_undefined_flag="$_lt_dar_allow_undefined"
9617   case $cc_basename in
9618      ifort*) _lt_dar_can_shared=yes ;;
9619      *) _lt_dar_can_shared=$GCC ;;
9620   esac
9621   if test "$_lt_dar_can_shared" = "yes"; then
9622     output_verbose_link_cmd=func_echo_all
9623     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9624     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9625     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}"
9626     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}"
9627
9628   else
9629   ld_shlibs=no
9630   fi
9631
9632       ;;
9633
9634     dgux*)
9635       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9636       hardcode_libdir_flag_spec='-L$libdir'
9637       hardcode_shlibpath_var=no
9638       ;;
9639
9640     freebsd1*)
9641       ld_shlibs=no
9642       ;;
9643
9644     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9645     # support.  Future versions do this automatically, but an explicit c++rt0.o
9646     # does not break anything, and helps significantly (at the cost of a little
9647     # extra space).
9648     freebsd2.2*)
9649       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9650       hardcode_libdir_flag_spec='-R$libdir'
9651       hardcode_direct=yes
9652       hardcode_shlibpath_var=no
9653       ;;
9654
9655     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9656     freebsd2*)
9657       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9658       hardcode_direct=yes
9659       hardcode_minus_L=yes
9660       hardcode_shlibpath_var=no
9661       ;;
9662
9663     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9664     freebsd* | dragonfly*)
9665       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9666       hardcode_libdir_flag_spec='-R$libdir'
9667       hardcode_direct=yes
9668       hardcode_shlibpath_var=no
9669       ;;
9670
9671     hpux9*)
9672       if test "$GCC" = yes; then
9673         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'
9674       else
9675         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'
9676       fi
9677       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9678       hardcode_libdir_separator=:
9679       hardcode_direct=yes
9680
9681       # hardcode_minus_L: Not really in the search PATH,
9682       # but as the default location of the library.
9683       hardcode_minus_L=yes
9684       export_dynamic_flag_spec='${wl}-E'
9685       ;;
9686
9687     hpux10*)
9688       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9689         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9690       else
9691         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9692       fi
9693       if test "$with_gnu_ld" = no; then
9694         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9695         hardcode_libdir_flag_spec_ld='+b $libdir'
9696         hardcode_libdir_separator=:
9697         hardcode_direct=yes
9698         hardcode_direct_absolute=yes
9699         export_dynamic_flag_spec='${wl}-E'
9700         # hardcode_minus_L: Not really in the search PATH,
9701         # but as the default location of the library.
9702         hardcode_minus_L=yes
9703       fi
9704       ;;
9705
9706     hpux11*)
9707       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9708         case $host_cpu in
9709         hppa*64*)
9710           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9711           ;;
9712         ia64*)
9713           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9714           ;;
9715         *)
9716           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9717           ;;
9718         esac
9719       else
9720         case $host_cpu in
9721         hppa*64*)
9722           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9723           ;;
9724         ia64*)
9725           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9726           ;;
9727         *)
9728
9729           # Older versions of the 11.00 compiler do not understand -b yet
9730           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9731           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9732 $as_echo_n "checking if $CC understands -b... " >&6; }
9733 if ${lt_cv_prog_compiler__b+:} false; then :
9734   $as_echo_n "(cached) " >&6
9735 else
9736   lt_cv_prog_compiler__b=no
9737    save_LDFLAGS="$LDFLAGS"
9738    LDFLAGS="$LDFLAGS -b"
9739    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9740    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9741      # The linker can only warn and ignore the option if not recognized
9742      # So say no if there are warnings
9743      if test -s conftest.err; then
9744        # Append any errors to the config.log.
9745        cat conftest.err 1>&5
9746        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9747        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9748        if diff conftest.exp conftest.er2 >/dev/null; then
9749          lt_cv_prog_compiler__b=yes
9750        fi
9751      else
9752        lt_cv_prog_compiler__b=yes
9753      fi
9754    fi
9755    $RM -r conftest*
9756    LDFLAGS="$save_LDFLAGS"
9757
9758 fi
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9760 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9761
9762 if test x"$lt_cv_prog_compiler__b" = xyes; then
9763     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9764 else
9765     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9766 fi
9767
9768           ;;
9769         esac
9770       fi
9771       if test "$with_gnu_ld" = no; then
9772         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9773         hardcode_libdir_separator=:
9774
9775         case $host_cpu in
9776         hppa*64*|ia64*)
9777           hardcode_direct=no
9778           hardcode_shlibpath_var=no
9779           ;;
9780         *)
9781           hardcode_direct=yes
9782           hardcode_direct_absolute=yes
9783           export_dynamic_flag_spec='${wl}-E'
9784
9785           # hardcode_minus_L: Not really in the search PATH,
9786           # but as the default location of the library.
9787           hardcode_minus_L=yes
9788           ;;
9789         esac
9790       fi
9791       ;;
9792
9793     irix5* | irix6* | nonstopux*)
9794       if test "$GCC" = yes; then
9795         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'
9796         # Try to use the -exported_symbol ld option, if it does not
9797         # work, assume that -exports_file does not work either and
9798         # implicitly export all symbols.
9799         # This should be the same for all languages, so no per-tag cache variable.
9800         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9801 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9802 if ${lt_cv_irix_exported_symbol+:} false; then :
9803   $as_echo_n "(cached) " >&6
9804 else
9805   save_LDFLAGS="$LDFLAGS"
9806            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9807            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h.  */
9809 int foo (void) { return 0; }
9810 _ACEOF
9811 if ac_fn_c_try_link "$LINENO"; then :
9812   lt_cv_irix_exported_symbol=yes
9813 else
9814   lt_cv_irix_exported_symbol=no
9815 fi
9816 rm -f core conftest.err conftest.$ac_objext \
9817     conftest$ac_exeext conftest.$ac_ext
9818            LDFLAGS="$save_LDFLAGS"
9819 fi
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9821 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9822         if test "$lt_cv_irix_exported_symbol" = yes; then
9823           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'
9824         fi
9825       else
9826         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'
9827         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'
9828       fi
9829       archive_cmds_need_lc='no'
9830       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9831       hardcode_libdir_separator=:
9832       inherit_rpath=yes
9833       link_all_deplibs=yes
9834       ;;
9835
9836     netbsd*)
9837       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9838         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9839       else
9840         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9841       fi
9842       hardcode_libdir_flag_spec='-R$libdir'
9843       hardcode_direct=yes
9844       hardcode_shlibpath_var=no
9845       ;;
9846
9847     newsos6)
9848       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9849       hardcode_direct=yes
9850       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9851       hardcode_libdir_separator=:
9852       hardcode_shlibpath_var=no
9853       ;;
9854
9855     *nto* | *qnx*)
9856       ;;
9857
9858     openbsd*)
9859       if test -f /usr/libexec/ld.so; then
9860         hardcode_direct=yes
9861         hardcode_shlibpath_var=no
9862         hardcode_direct_absolute=yes
9863         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9864           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9865           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9866           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9867           export_dynamic_flag_spec='${wl}-E'
9868         else
9869           case $host_os in
9870            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9871              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9872              hardcode_libdir_flag_spec='-R$libdir'
9873              ;;
9874            *)
9875              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9876              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9877              ;;
9878           esac
9879         fi
9880       else
9881         ld_shlibs=no
9882       fi
9883       ;;
9884
9885     os2*)
9886       hardcode_libdir_flag_spec='-L$libdir'
9887       hardcode_minus_L=yes
9888       allow_undefined_flag=unsupported
9889       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'
9890       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9891       ;;
9892
9893     osf3*)
9894       if test "$GCC" = yes; then
9895         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9896         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'
9897       else
9898         allow_undefined_flag=' -expect_unresolved \*'
9899         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'
9900       fi
9901       archive_cmds_need_lc='no'
9902       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9903       hardcode_libdir_separator=:
9904       ;;
9905
9906     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9907       if test "$GCC" = yes; then
9908         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9909         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'
9910         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9911       else
9912         allow_undefined_flag=' -expect_unresolved \*'
9913         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'
9914         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~
9915         $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'
9916
9917         # Both c and cxx compiler support -rpath directly
9918         hardcode_libdir_flag_spec='-rpath $libdir'
9919       fi
9920       archive_cmds_need_lc='no'
9921       hardcode_libdir_separator=:
9922       ;;
9923
9924     solaris*)
9925       no_undefined_flag=' -z defs'
9926       if test "$GCC" = yes; then
9927         wlarc='${wl}'
9928         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9929         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9930           $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'
9931       else
9932         case `$CC -V 2>&1` in
9933         *"Compilers 5.0"*)
9934           wlarc=''
9935           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9936           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9937           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9938           ;;
9939         *)
9940           wlarc='${wl}'
9941           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9942           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9943           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9944           ;;
9945         esac
9946       fi
9947       hardcode_libdir_flag_spec='-R$libdir'
9948       hardcode_shlibpath_var=no
9949       case $host_os in
9950       solaris2.[0-5] | solaris2.[0-5].*) ;;
9951       *)
9952         # The compiler driver will combine and reorder linker options,
9953         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9954         # but is careful enough not to reorder.
9955         # Supported since Solaris 2.6 (maybe 2.5.1?)
9956         if test "$GCC" = yes; then
9957           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9958         else
9959           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9960         fi
9961         ;;
9962       esac
9963       link_all_deplibs=yes
9964       ;;
9965
9966     sunos4*)
9967       if test "x$host_vendor" = xsequent; then
9968         # Use $CC to link under sequent, because it throws in some extra .o
9969         # files that make .init and .fini sections work.
9970         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9971       else
9972         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9973       fi
9974       hardcode_libdir_flag_spec='-L$libdir'
9975       hardcode_direct=yes
9976       hardcode_minus_L=yes
9977       hardcode_shlibpath_var=no
9978       ;;
9979
9980     sysv4)
9981       case $host_vendor in
9982         sni)
9983           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9984           hardcode_direct=yes # is this really true???
9985         ;;
9986         siemens)
9987           ## LD is ld it makes a PLAMLIB
9988           ## CC just makes a GrossModule.
9989           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9990           reload_cmds='$CC -r -o $output$reload_objs'
9991           hardcode_direct=no
9992         ;;
9993         motorola)
9994           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9995           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9996         ;;
9997       esac
9998       runpath_var='LD_RUN_PATH'
9999       hardcode_shlibpath_var=no
10000       ;;
10001
10002     sysv4.3*)
10003       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10004       hardcode_shlibpath_var=no
10005       export_dynamic_flag_spec='-Bexport'
10006       ;;
10007
10008     sysv4*MP*)
10009       if test -d /usr/nec; then
10010         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10011         hardcode_shlibpath_var=no
10012         runpath_var=LD_RUN_PATH
10013         hardcode_runpath_var=yes
10014         ld_shlibs=yes
10015       fi
10016       ;;
10017
10018     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10019       no_undefined_flag='${wl}-z,text'
10020       archive_cmds_need_lc=no
10021       hardcode_shlibpath_var=no
10022       runpath_var='LD_RUN_PATH'
10023
10024       if test "$GCC" = yes; then
10025         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10027       else
10028         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10029         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10030       fi
10031       ;;
10032
10033     sysv5* | sco3.2v5* | sco5v6*)
10034       # Note: We can NOT use -z defs as we might desire, because we do not
10035       # link with -lc, and that would cause any symbols used from libc to
10036       # always be unresolved, which means just about no library would
10037       # ever link correctly.  If we're not using GNU ld we use -z text
10038       # though, which does catch some bad symbols but isn't as heavy-handed
10039       # as -z defs.
10040       no_undefined_flag='${wl}-z,text'
10041       allow_undefined_flag='${wl}-z,nodefs'
10042       archive_cmds_need_lc=no
10043       hardcode_shlibpath_var=no
10044       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10045       hardcode_libdir_separator=':'
10046       link_all_deplibs=yes
10047       export_dynamic_flag_spec='${wl}-Bexport'
10048       runpath_var='LD_RUN_PATH'
10049
10050       if test "$GCC" = yes; then
10051         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10052         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10053       else
10054         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056       fi
10057       ;;
10058
10059     uts4*)
10060       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10061       hardcode_libdir_flag_spec='-L$libdir'
10062       hardcode_shlibpath_var=no
10063       ;;
10064
10065     *)
10066       ld_shlibs=no
10067       ;;
10068     esac
10069
10070     if test x$host_vendor = xsni; then
10071       case $host in
10072       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10073         export_dynamic_flag_spec='${wl}-Blargedynsym'
10074         ;;
10075       esac
10076     fi
10077   fi
10078
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10080 $as_echo "$ld_shlibs" >&6; }
10081 test "$ld_shlibs" = no && can_build_shared=no
10082
10083 with_gnu_ld=$with_gnu_ld
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099 #
10100 # Do we need to explicitly link libc?
10101 #
10102 case "x$archive_cmds_need_lc" in
10103 x|xyes)
10104   # Assume -lc should be added
10105   archive_cmds_need_lc=yes
10106
10107   if test "$enable_shared" = yes && test "$GCC" = yes; then
10108     case $archive_cmds in
10109     *'~'*)
10110       # FIXME: we may have to deal with multi-command sequences.
10111       ;;
10112     '$CC '*)
10113       # Test whether the compiler implicitly links with -lc since on some
10114       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10115       # to ld, don't add -lc before -lgcc.
10116       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10117 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10118 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10119   $as_echo_n "(cached) " >&6
10120 else
10121   $RM conftest*
10122         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10123
10124         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10125   (eval $ac_compile) 2>&5
10126   ac_status=$?
10127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10128   test $ac_status = 0; } 2>conftest.err; then
10129           soname=conftest
10130           lib=conftest
10131           libobjs=conftest.$ac_objext
10132           deplibs=
10133           wl=$lt_prog_compiler_wl
10134           pic_flag=$lt_prog_compiler_pic
10135           compiler_flags=-v
10136           linker_flags=-v
10137           verstring=
10138           output_objdir=.
10139           libname=conftest
10140           lt_save_allow_undefined_flag=$allow_undefined_flag
10141           allow_undefined_flag=
10142           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10143   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10144   ac_status=$?
10145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10146   test $ac_status = 0; }
10147           then
10148             lt_cv_archive_cmds_need_lc=no
10149           else
10150             lt_cv_archive_cmds_need_lc=yes
10151           fi
10152           allow_undefined_flag=$lt_save_allow_undefined_flag
10153         else
10154           cat conftest.err 1>&5
10155         fi
10156         $RM conftest*
10157
10158 fi
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10160 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10161       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10162       ;;
10163     esac
10164   fi
10165   ;;
10166 esac
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10325 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10326
10327 if test "$GCC" = yes; then
10328   case $host_os in
10329     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10330     *) lt_awk_arg="/^libraries:/" ;;
10331   esac
10332   case $host_os in
10333     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10334     *) lt_sed_strip_eq="s,=/,/,g" ;;
10335   esac
10336   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10337   case $lt_search_path_spec in
10338   *\;*)
10339     # if the path contains ";" then we assume it to be the separator
10340     # otherwise default to the standard path separator (i.e. ":") - it is
10341     # assumed that no part of a normal pathname contains ";" but that should
10342     # okay in the real world where ";" in dirpaths is itself problematic.
10343     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10344     ;;
10345   *)
10346     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10347     ;;
10348   esac
10349   # Ok, now we have the path, separated by spaces, we can step through it
10350   # and add multilib dir if necessary.
10351   lt_tmp_lt_search_path_spec=
10352   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10353   for lt_sys_path in $lt_search_path_spec; do
10354     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10355       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10356     else
10357       test -d "$lt_sys_path" && \
10358         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10359     fi
10360   done
10361   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10362 BEGIN {RS=" "; FS="/|\n";} {
10363   lt_foo="";
10364   lt_count=0;
10365   for (lt_i = NF; lt_i > 0; lt_i--) {
10366     if ($lt_i != "" && $lt_i != ".") {
10367       if ($lt_i == "..") {
10368         lt_count++;
10369       } else {
10370         if (lt_count == 0) {
10371           lt_foo="/" $lt_i lt_foo;
10372         } else {
10373           lt_count--;
10374         }
10375       }
10376     }
10377   }
10378   if (lt_foo != "") { lt_freq[lt_foo]++; }
10379   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10380 }'`
10381   # AWK program above erroneously prepends '/' to C:/dos/paths
10382   # for these hosts.
10383   case $host_os in
10384     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10385       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10386   esac
10387   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10388 else
10389   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10390 fi
10391 library_names_spec=
10392 libname_spec='lib$name'
10393 soname_spec=
10394 shrext_cmds=".so"
10395 postinstall_cmds=
10396 postuninstall_cmds=
10397 finish_cmds=
10398 finish_eval=
10399 shlibpath_var=
10400 shlibpath_overrides_runpath=unknown
10401 version_type=none
10402 dynamic_linker="$host_os ld.so"
10403 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10404 need_lib_prefix=unknown
10405 hardcode_into_libs=no
10406
10407 # when you set need_version to no, make sure it does not cause -set_version
10408 # flags to be left without arguments
10409 need_version=unknown
10410
10411 case $host_os in
10412 aix3*)
10413   version_type=linux
10414   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10415   shlibpath_var=LIBPATH
10416
10417   # AIX 3 has no versioning support, so we append a major version to the name.
10418   soname_spec='${libname}${release}${shared_ext}$major'
10419   ;;
10420
10421 aix[4-9]*)
10422   version_type=linux
10423   need_lib_prefix=no
10424   need_version=no
10425   hardcode_into_libs=yes
10426   if test "$host_cpu" = ia64; then
10427     # AIX 5 supports IA64
10428     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10429     shlibpath_var=LD_LIBRARY_PATH
10430   else
10431     # With GCC up to 2.95.x, collect2 would create an import file
10432     # for dependence libraries.  The import file would start with
10433     # the line `#! .'.  This would cause the generated library to
10434     # depend on `.', always an invalid library.  This was fixed in
10435     # development snapshots of GCC prior to 3.0.
10436     case $host_os in
10437       aix4 | aix4.[01] | aix4.[01].*)
10438       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10439            echo ' yes '
10440            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10441         :
10442       else
10443         can_build_shared=no
10444       fi
10445       ;;
10446     esac
10447     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10448     # soname into executable. Probably we can add versioning support to
10449     # collect2, so additional links can be useful in future.
10450     if test "$aix_use_runtimelinking" = yes; then
10451       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10452       # instead of lib<name>.a to let people know that these are not
10453       # typical AIX shared libraries.
10454       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455     else
10456       # We preserve .a as extension for shared libraries through AIX4.2
10457       # and later when we are not doing run time linking.
10458       library_names_spec='${libname}${release}.a $libname.a'
10459       soname_spec='${libname}${release}${shared_ext}$major'
10460     fi
10461     shlibpath_var=LIBPATH
10462   fi
10463   ;;
10464
10465 amigaos*)
10466   case $host_cpu in
10467   powerpc)
10468     # Since July 2007 AmigaOS4 officially supports .so libraries.
10469     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10470     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471     ;;
10472   m68k)
10473     library_names_spec='$libname.ixlibrary $libname.a'
10474     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10475     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'
10476     ;;
10477   esac
10478   ;;
10479
10480 beos*)
10481   library_names_spec='${libname}${shared_ext}'
10482   dynamic_linker="$host_os ld.so"
10483   shlibpath_var=LIBRARY_PATH
10484   ;;
10485
10486 bsdi[45]*)
10487   version_type=linux
10488   need_version=no
10489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490   soname_spec='${libname}${release}${shared_ext}$major'
10491   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10492   shlibpath_var=LD_LIBRARY_PATH
10493   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10494   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10495   # the default ld.so.conf also contains /usr/contrib/lib and
10496   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10497   # libtool to hard-code these into programs
10498   ;;
10499
10500 cygwin* | mingw* | pw32* | cegcc*)
10501   version_type=windows
10502   shrext_cmds=".dll"
10503   need_version=no
10504   need_lib_prefix=no
10505
10506   case $GCC,$cc_basename in
10507   yes,*)
10508     # gcc
10509     library_names_spec='$libname.dll.a'
10510     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10511     postinstall_cmds='base_file=`basename \${file}`~
10512       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10513       dldir=$destdir/`dirname \$dlpath`~
10514       test -d \$dldir || mkdir -p \$dldir~
10515       $install_prog $dir/$dlname \$dldir/$dlname~
10516       chmod a+x \$dldir/$dlname~
10517       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10518         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10519       fi'
10520     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10521       dlpath=$dir/\$dldll~
10522        $RM \$dlpath'
10523     shlibpath_overrides_runpath=yes
10524
10525     case $host_os in
10526     cygwin*)
10527       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10528       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10529
10530       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10531       ;;
10532     mingw* | cegcc*)
10533       # MinGW DLLs use traditional 'lib' prefix
10534       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10535       ;;
10536     pw32*)
10537       # pw32 DLLs use 'pw' prefix rather than 'lib'
10538       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10539       ;;
10540     esac
10541     dynamic_linker='Win32 ld.exe'
10542     ;;
10543
10544   *,cl*)
10545     # Native MSVC
10546     libname_spec='$name'
10547     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10548     library_names_spec='${libname}.dll.lib'
10549
10550     case $build_os in
10551     mingw*)
10552       sys_lib_search_path_spec=
10553       lt_save_ifs=$IFS
10554       IFS=';'
10555       for lt_path in $LIB
10556       do
10557         IFS=$lt_save_ifs
10558         # Let DOS variable expansion print the short 8.3 style file name.
10559         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10560         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10561       done
10562       IFS=$lt_save_ifs
10563       # Convert to MSYS style.
10564       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10565       ;;
10566     cygwin*)
10567       # Convert to unix form, then to dos form, then back to unix form
10568       # but this time dos style (no spaces!) so that the unix form looks
10569       # like /cygdrive/c/PROGRA~1:/cygdr...
10570       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10571       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10572       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10573       ;;
10574     *)
10575       sys_lib_search_path_spec="$LIB"
10576       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10577         # It is most probably a Windows format PATH.
10578         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10579       else
10580         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10581       fi
10582       # FIXME: find the short name or the path components, as spaces are
10583       # common. (e.g. "Program Files" -> "PROGRA~1")
10584       ;;
10585     esac
10586
10587     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10588     postinstall_cmds='base_file=`basename \${file}`~
10589       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10590       dldir=$destdir/`dirname \$dlpath`~
10591       test -d \$dldir || mkdir -p \$dldir~
10592       $install_prog $dir/$dlname \$dldir/$dlname'
10593     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10594       dlpath=$dir/\$dldll~
10595        $RM \$dlpath'
10596     shlibpath_overrides_runpath=yes
10597     dynamic_linker='Win32 link.exe'
10598     ;;
10599
10600   *)
10601     # Assume MSVC wrapper
10602     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10603     dynamic_linker='Win32 ld.exe'
10604     ;;
10605   esac
10606   # FIXME: first we should search . and the directory the executable is in
10607   shlibpath_var=PATH
10608   ;;
10609
10610 darwin* | rhapsody*)
10611   dynamic_linker="$host_os dyld"
10612   version_type=darwin
10613   need_lib_prefix=no
10614   need_version=no
10615   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10616   soname_spec='${libname}${release}${major}$shared_ext'
10617   shlibpath_overrides_runpath=yes
10618   shlibpath_var=DYLD_LIBRARY_PATH
10619   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10620
10621   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10622   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10623   ;;
10624
10625 dgux*)
10626   version_type=linux
10627   need_lib_prefix=no
10628   need_version=no
10629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10630   soname_spec='${libname}${release}${shared_ext}$major'
10631   shlibpath_var=LD_LIBRARY_PATH
10632   ;;
10633
10634 freebsd1*)
10635   dynamic_linker=no
10636   ;;
10637
10638 freebsd* | dragonfly*)
10639   # DragonFly does not have aout.  When/if they implement a new
10640   # versioning mechanism, adjust this.
10641   if test -x /usr/bin/objformat; then
10642     objformat=`/usr/bin/objformat`
10643   else
10644     case $host_os in
10645     freebsd[123]*) objformat=aout ;;
10646     *) objformat=elf ;;
10647     esac
10648   fi
10649   version_type=freebsd-$objformat
10650   case $version_type in
10651     freebsd-elf*)
10652       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10653       need_version=no
10654       need_lib_prefix=no
10655       ;;
10656     freebsd-*)
10657       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10658       need_version=yes
10659       ;;
10660   esac
10661   shlibpath_var=LD_LIBRARY_PATH
10662   case $host_os in
10663   freebsd2*)
10664     shlibpath_overrides_runpath=yes
10665     ;;
10666   freebsd3.[01]* | freebsdelf3.[01]*)
10667     shlibpath_overrides_runpath=yes
10668     hardcode_into_libs=yes
10669     ;;
10670   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10671   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10672     shlibpath_overrides_runpath=no
10673     hardcode_into_libs=yes
10674     ;;
10675   *) # from 4.6 on, and DragonFly
10676     shlibpath_overrides_runpath=yes
10677     hardcode_into_libs=yes
10678     ;;
10679   esac
10680   ;;
10681
10682 gnu*)
10683   version_type=linux
10684   need_lib_prefix=no
10685   need_version=no
10686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10687   soname_spec='${libname}${release}${shared_ext}$major'
10688   shlibpath_var=LD_LIBRARY_PATH
10689   hardcode_into_libs=yes
10690   ;;
10691
10692 haiku*)
10693   version_type=linux
10694   need_lib_prefix=no
10695   need_version=no
10696   dynamic_linker="$host_os runtime_loader"
10697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10698   soname_spec='${libname}${release}${shared_ext}$major'
10699   shlibpath_var=LIBRARY_PATH
10700   shlibpath_overrides_runpath=yes
10701   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10702   hardcode_into_libs=yes
10703   ;;
10704
10705 hpux9* | hpux10* | hpux11*)
10706   # Give a soname corresponding to the major version so that dld.sl refuses to
10707   # link against other versions.
10708   version_type=sunos
10709   need_lib_prefix=no
10710   need_version=no
10711   case $host_cpu in
10712   ia64*)
10713     shrext_cmds='.so'
10714     hardcode_into_libs=yes
10715     dynamic_linker="$host_os dld.so"
10716     shlibpath_var=LD_LIBRARY_PATH
10717     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10718     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10719     soname_spec='${libname}${release}${shared_ext}$major'
10720     if test "X$HPUX_IA64_MODE" = X32; then
10721       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10722     else
10723       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10724     fi
10725     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10726     ;;
10727   hppa*64*)
10728     shrext_cmds='.sl'
10729     hardcode_into_libs=yes
10730     dynamic_linker="$host_os dld.sl"
10731     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10732     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10733     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10734     soname_spec='${libname}${release}${shared_ext}$major'
10735     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10736     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10737     ;;
10738   *)
10739     shrext_cmds='.sl'
10740     dynamic_linker="$host_os dld.sl"
10741     shlibpath_var=SHLIB_PATH
10742     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10743     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744     soname_spec='${libname}${release}${shared_ext}$major'
10745     ;;
10746   esac
10747   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10748   postinstall_cmds='chmod 555 $lib'
10749   # or fails outright, so override atomically:
10750   install_override_mode=555
10751   ;;
10752
10753 interix[3-9]*)
10754   version_type=linux
10755   need_lib_prefix=no
10756   need_version=no
10757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10758   soname_spec='${libname}${release}${shared_ext}$major'
10759   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10760   shlibpath_var=LD_LIBRARY_PATH
10761   shlibpath_overrides_runpath=no
10762   hardcode_into_libs=yes
10763   ;;
10764
10765 irix5* | irix6* | nonstopux*)
10766   case $host_os in
10767     nonstopux*) version_type=nonstopux ;;
10768     *)
10769         if test "$lt_cv_prog_gnu_ld" = yes; then
10770                 version_type=linux
10771         else
10772                 version_type=irix
10773         fi ;;
10774   esac
10775   need_lib_prefix=no
10776   need_version=no
10777   soname_spec='${libname}${release}${shared_ext}$major'
10778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10779   case $host_os in
10780   irix5* | nonstopux*)
10781     libsuff= shlibsuff=
10782     ;;
10783   *)
10784     case $LD in # libtool.m4 will add one of these switches to LD
10785     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10786       libsuff= shlibsuff= libmagic=32-bit;;
10787     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10788       libsuff=32 shlibsuff=N32 libmagic=N32;;
10789     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10790       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10791     *) libsuff= shlibsuff= libmagic=never-match;;
10792     esac
10793     ;;
10794   esac
10795   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10796   shlibpath_overrides_runpath=no
10797   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10798   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10799   hardcode_into_libs=yes
10800   ;;
10801
10802 # No shared lib support for Linux oldld, aout, or coff.
10803 linux*oldld* | linux*aout* | linux*coff*)
10804   dynamic_linker=no
10805   ;;
10806
10807 # This must be Linux ELF.
10808 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10809   version_type=linux
10810   need_lib_prefix=no
10811   need_version=no
10812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813   soname_spec='${libname}${release}${shared_ext}$major'
10814   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10815   shlibpath_var=LD_LIBRARY_PATH
10816   shlibpath_overrides_runpath=no
10817
10818   # Some binutils ld are patched to set DT_RUNPATH
10819   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10820   $as_echo_n "(cached) " >&6
10821 else
10822   lt_cv_shlibpath_overrides_runpath=no
10823     save_LDFLAGS=$LDFLAGS
10824     save_libdir=$libdir
10825     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10826          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10827     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h.  */
10829
10830 int
10831 main ()
10832 {
10833
10834   ;
10835   return 0;
10836 }
10837 _ACEOF
10838 if ac_fn_c_try_link "$LINENO"; then :
10839   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10840   lt_cv_shlibpath_overrides_runpath=yes
10841 fi
10842 fi
10843 rm -f core conftest.err conftest.$ac_objext \
10844     conftest$ac_exeext conftest.$ac_ext
10845     LDFLAGS=$save_LDFLAGS
10846     libdir=$save_libdir
10847
10848 fi
10849
10850   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10851
10852   # This implies no fast_install, which is unacceptable.
10853   # Some rework will be needed to allow for fast_install
10854   # before this can be enabled.
10855   hardcode_into_libs=yes
10856
10857   # Append ld.so.conf contents to the search path
10858   if test -f /etc/ld.so.conf; then
10859     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' ' '`
10860     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10861   fi
10862
10863   # We used to test for /lib/ld.so.1 and disable shared libraries on
10864   # powerpc, because MkLinux only supported shared libraries with the
10865   # GNU dynamic linker.  Since this was broken with cross compilers,
10866   # most powerpc-linux boxes support dynamic linking these days and
10867   # people can always --disable-shared, the test was removed, and we
10868   # assume the GNU/Linux dynamic linker is in use.
10869   dynamic_linker='GNU/Linux ld.so'
10870   ;;
10871
10872 netbsd*)
10873   version_type=sunos
10874   need_lib_prefix=no
10875   need_version=no
10876   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10877     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10878     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10879     dynamic_linker='NetBSD (a.out) ld.so'
10880   else
10881     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10882     soname_spec='${libname}${release}${shared_ext}$major'
10883     dynamic_linker='NetBSD ld.elf_so'
10884   fi
10885   shlibpath_var=LD_LIBRARY_PATH
10886   shlibpath_overrides_runpath=yes
10887   hardcode_into_libs=yes
10888   ;;
10889
10890 newsos6)
10891   version_type=linux
10892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10893   shlibpath_var=LD_LIBRARY_PATH
10894   shlibpath_overrides_runpath=yes
10895   ;;
10896
10897 *nto* | *qnx*)
10898   version_type=qnx
10899   need_lib_prefix=no
10900   need_version=no
10901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902   soname_spec='${libname}${release}${shared_ext}$major'
10903   shlibpath_var=LD_LIBRARY_PATH
10904   shlibpath_overrides_runpath=no
10905   hardcode_into_libs=yes
10906   dynamic_linker='ldqnx.so'
10907   ;;
10908
10909 openbsd*)
10910   version_type=sunos
10911   sys_lib_dlsearch_path_spec="/usr/lib"
10912   need_lib_prefix=no
10913   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10914   case $host_os in
10915     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10916     *)                          need_version=no  ;;
10917   esac
10918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10919   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10920   shlibpath_var=LD_LIBRARY_PATH
10921   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10922     case $host_os in
10923       openbsd2.[89] | openbsd2.[89].*)
10924         shlibpath_overrides_runpath=no
10925         ;;
10926       *)
10927         shlibpath_overrides_runpath=yes
10928         ;;
10929       esac
10930   else
10931     shlibpath_overrides_runpath=yes
10932   fi
10933   ;;
10934
10935 os2*)
10936   libname_spec='$name'
10937   shrext_cmds=".dll"
10938   need_lib_prefix=no
10939   library_names_spec='$libname${shared_ext} $libname.a'
10940   dynamic_linker='OS/2 ld.exe'
10941   shlibpath_var=LIBPATH
10942   ;;
10943
10944 osf3* | osf4* | osf5*)
10945   version_type=osf
10946   need_lib_prefix=no
10947   need_version=no
10948   soname_spec='${libname}${release}${shared_ext}$major'
10949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950   shlibpath_var=LD_LIBRARY_PATH
10951   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10952   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10953   ;;
10954
10955 rdos*)
10956   dynamic_linker=no
10957   ;;
10958
10959 solaris*)
10960   version_type=linux
10961   need_lib_prefix=no
10962   need_version=no
10963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964   soname_spec='${libname}${release}${shared_ext}$major'
10965   shlibpath_var=LD_LIBRARY_PATH
10966   shlibpath_overrides_runpath=yes
10967   hardcode_into_libs=yes
10968   # ldd complains unless libraries are executable
10969   postinstall_cmds='chmod +x $lib'
10970   ;;
10971
10972 sunos4*)
10973   version_type=sunos
10974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10975   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10976   shlibpath_var=LD_LIBRARY_PATH
10977   shlibpath_overrides_runpath=yes
10978   if test "$with_gnu_ld" = yes; then
10979     need_lib_prefix=no
10980   fi
10981   need_version=yes
10982   ;;
10983
10984 sysv4 | sysv4.3*)
10985   version_type=linux
10986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10987   soname_spec='${libname}${release}${shared_ext}$major'
10988   shlibpath_var=LD_LIBRARY_PATH
10989   case $host_vendor in
10990     sni)
10991       shlibpath_overrides_runpath=no
10992       need_lib_prefix=no
10993       runpath_var=LD_RUN_PATH
10994       ;;
10995     siemens)
10996       need_lib_prefix=no
10997       ;;
10998     motorola)
10999       need_lib_prefix=no
11000       need_version=no
11001       shlibpath_overrides_runpath=no
11002       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11003       ;;
11004   esac
11005   ;;
11006
11007 sysv4*MP*)
11008   if test -d /usr/nec ;then
11009     version_type=linux
11010     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11011     soname_spec='$libname${shared_ext}.$major'
11012     shlibpath_var=LD_LIBRARY_PATH
11013   fi
11014   ;;
11015
11016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11017   version_type=freebsd-elf
11018   need_lib_prefix=no
11019   need_version=no
11020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11021   soname_spec='${libname}${release}${shared_ext}$major'
11022   shlibpath_var=LD_LIBRARY_PATH
11023   shlibpath_overrides_runpath=yes
11024   hardcode_into_libs=yes
11025   if test "$with_gnu_ld" = yes; then
11026     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11027   else
11028     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11029     case $host_os in
11030       sco3.2v5*)
11031         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11032         ;;
11033     esac
11034   fi
11035   sys_lib_dlsearch_path_spec='/usr/lib'
11036   ;;
11037
11038 tpf*)
11039   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11040   version_type=linux
11041   need_lib_prefix=no
11042   need_version=no
11043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044   shlibpath_var=LD_LIBRARY_PATH
11045   shlibpath_overrides_runpath=no
11046   hardcode_into_libs=yes
11047   ;;
11048
11049 uts4*)
11050   version_type=linux
11051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052   soname_spec='${libname}${release}${shared_ext}$major'
11053   shlibpath_var=LD_LIBRARY_PATH
11054   ;;
11055
11056 *)
11057   dynamic_linker=no
11058   ;;
11059 esac
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11061 $as_echo "$dynamic_linker" >&6; }
11062 test "$dynamic_linker" = no && can_build_shared=no
11063
11064 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11065 if test "$GCC" = yes; then
11066   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11067 fi
11068
11069 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11070   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11071 fi
11072 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11073   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11074 fi
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11168 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11169 hardcode_action=
11170 if test -n "$hardcode_libdir_flag_spec" ||
11171    test -n "$runpath_var" ||
11172    test "X$hardcode_automatic" = "Xyes" ; then
11173
11174   # We can hardcode non-existent directories.
11175   if test "$hardcode_direct" != no &&
11176      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11177      # have to relink, otherwise we might link with an installed library
11178      # when we should be linking with a yet-to-be-installed one
11179      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11180      test "$hardcode_minus_L" != no; then
11181     # Linking always hardcodes the temporary library directory.
11182     hardcode_action=relink
11183   else
11184     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11185     hardcode_action=immediate
11186   fi
11187 else
11188   # We cannot hardcode anything, or else we can only hardcode existing
11189   # directories.
11190   hardcode_action=unsupported
11191 fi
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11193 $as_echo "$hardcode_action" >&6; }
11194
11195 if test "$hardcode_action" = relink ||
11196    test "$inherit_rpath" = yes; then
11197   # Fast installation is not supported
11198   enable_fast_install=no
11199 elif test "$shlibpath_overrides_runpath" = yes ||
11200      test "$enable_shared" = no; then
11201   # Fast installation is not necessary
11202   enable_fast_install=needless
11203 fi
11204
11205
11206
11207
11208
11209
11210   if test "x$enable_dlopen" != xyes; then
11211   enable_dlopen=unknown
11212   enable_dlopen_self=unknown
11213   enable_dlopen_self_static=unknown
11214 else
11215   lt_cv_dlopen=no
11216   lt_cv_dlopen_libs=
11217
11218   case $host_os in
11219   beos*)
11220     lt_cv_dlopen="load_add_on"
11221     lt_cv_dlopen_libs=
11222     lt_cv_dlopen_self=yes
11223     ;;
11224
11225   mingw* | pw32* | cegcc*)
11226     lt_cv_dlopen="LoadLibrary"
11227     lt_cv_dlopen_libs=
11228     ;;
11229
11230   cygwin*)
11231     lt_cv_dlopen="dlopen"
11232     lt_cv_dlopen_libs=
11233     ;;
11234
11235   darwin*)
11236   # if libdl is installed we need to link against it
11237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11238 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11239 if ${ac_cv_lib_dl_dlopen+:} false; then :
11240   $as_echo_n "(cached) " >&6
11241 else
11242   ac_check_lib_save_LIBS=$LIBS
11243 LIBS="-ldl  $LIBS"
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h.  */
11246
11247 /* Override any GCC internal prototype to avoid an error.
11248    Use char because int might match the return type of a GCC
11249    builtin and then its argument prototype would still apply.  */
11250 #ifdef __cplusplus
11251 extern "C"
11252 #endif
11253 char dlopen ();
11254 int
11255 main ()
11256 {
11257 return dlopen ();
11258   ;
11259   return 0;
11260 }
11261 _ACEOF
11262 if ac_fn_c_try_link "$LINENO"; then :
11263   ac_cv_lib_dl_dlopen=yes
11264 else
11265   ac_cv_lib_dl_dlopen=no
11266 fi
11267 rm -f core conftest.err conftest.$ac_objext \
11268     conftest$ac_exeext conftest.$ac_ext
11269 LIBS=$ac_check_lib_save_LIBS
11270 fi
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11272 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11273 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11274   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11275 else
11276
11277     lt_cv_dlopen="dyld"
11278     lt_cv_dlopen_libs=
11279     lt_cv_dlopen_self=yes
11280
11281 fi
11282
11283     ;;
11284
11285   *)
11286     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11287 if test "x$ac_cv_func_shl_load" = xyes; then :
11288   lt_cv_dlopen="shl_load"
11289 else
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11291 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11292 if ${ac_cv_lib_dld_shl_load+:} false; then :
11293   $as_echo_n "(cached) " >&6
11294 else
11295   ac_check_lib_save_LIBS=$LIBS
11296 LIBS="-ldld  $LIBS"
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h.  */
11299
11300 /* Override any GCC internal prototype to avoid an error.
11301    Use char because int might match the return type of a GCC
11302    builtin and then its argument prototype would still apply.  */
11303 #ifdef __cplusplus
11304 extern "C"
11305 #endif
11306 char shl_load ();
11307 int
11308 main ()
11309 {
11310 return shl_load ();
11311   ;
11312   return 0;
11313 }
11314 _ACEOF
11315 if ac_fn_c_try_link "$LINENO"; then :
11316   ac_cv_lib_dld_shl_load=yes
11317 else
11318   ac_cv_lib_dld_shl_load=no
11319 fi
11320 rm -f core conftest.err conftest.$ac_objext \
11321     conftest$ac_exeext conftest.$ac_ext
11322 LIBS=$ac_check_lib_save_LIBS
11323 fi
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11325 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11326 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11327   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11328 else
11329   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11330 if test "x$ac_cv_func_dlopen" = xyes; then :
11331   lt_cv_dlopen="dlopen"
11332 else
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11334 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11335 if ${ac_cv_lib_dl_dlopen+:} false; then :
11336   $as_echo_n "(cached) " >&6
11337 else
11338   ac_check_lib_save_LIBS=$LIBS
11339 LIBS="-ldl  $LIBS"
11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h.  */
11342
11343 /* Override any GCC internal prototype to avoid an error.
11344    Use char because int might match the return type of a GCC
11345    builtin and then its argument prototype would still apply.  */
11346 #ifdef __cplusplus
11347 extern "C"
11348 #endif
11349 char dlopen ();
11350 int
11351 main ()
11352 {
11353 return dlopen ();
11354   ;
11355   return 0;
11356 }
11357 _ACEOF
11358 if ac_fn_c_try_link "$LINENO"; then :
11359   ac_cv_lib_dl_dlopen=yes
11360 else
11361   ac_cv_lib_dl_dlopen=no
11362 fi
11363 rm -f core conftest.err conftest.$ac_objext \
11364     conftest$ac_exeext conftest.$ac_ext
11365 LIBS=$ac_check_lib_save_LIBS
11366 fi
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11368 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11369 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11370   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11371 else
11372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11373 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11374 if ${ac_cv_lib_svld_dlopen+:} false; then :
11375   $as_echo_n "(cached) " >&6
11376 else
11377   ac_check_lib_save_LIBS=$LIBS
11378 LIBS="-lsvld  $LIBS"
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h.  */
11381
11382 /* Override any GCC internal prototype to avoid an error.
11383    Use char because int might match the return type of a GCC
11384    builtin and then its argument prototype would still apply.  */
11385 #ifdef __cplusplus
11386 extern "C"
11387 #endif
11388 char dlopen ();
11389 int
11390 main ()
11391 {
11392 return dlopen ();
11393   ;
11394   return 0;
11395 }
11396 _ACEOF
11397 if ac_fn_c_try_link "$LINENO"; then :
11398   ac_cv_lib_svld_dlopen=yes
11399 else
11400   ac_cv_lib_svld_dlopen=no
11401 fi
11402 rm -f core conftest.err conftest.$ac_objext \
11403     conftest$ac_exeext conftest.$ac_ext
11404 LIBS=$ac_check_lib_save_LIBS
11405 fi
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11407 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11408 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11409   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11410 else
11411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11412 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11413 if ${ac_cv_lib_dld_dld_link+:} false; then :
11414   $as_echo_n "(cached) " >&6
11415 else
11416   ac_check_lib_save_LIBS=$LIBS
11417 LIBS="-ldld  $LIBS"
11418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419 /* end confdefs.h.  */
11420
11421 /* Override any GCC internal prototype to avoid an error.
11422    Use char because int might match the return type of a GCC
11423    builtin and then its argument prototype would still apply.  */
11424 #ifdef __cplusplus
11425 extern "C"
11426 #endif
11427 char dld_link ();
11428 int
11429 main ()
11430 {
11431 return dld_link ();
11432   ;
11433   return 0;
11434 }
11435 _ACEOF
11436 if ac_fn_c_try_link "$LINENO"; then :
11437   ac_cv_lib_dld_dld_link=yes
11438 else
11439   ac_cv_lib_dld_dld_link=no
11440 fi
11441 rm -f core conftest.err conftest.$ac_objext \
11442     conftest$ac_exeext conftest.$ac_ext
11443 LIBS=$ac_check_lib_save_LIBS
11444 fi
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11446 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11447 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11448   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11449 fi
11450
11451
11452 fi
11453
11454
11455 fi
11456
11457
11458 fi
11459
11460
11461 fi
11462
11463
11464 fi
11465
11466     ;;
11467   esac
11468
11469   if test "x$lt_cv_dlopen" != xno; then
11470     enable_dlopen=yes
11471   else
11472     enable_dlopen=no
11473   fi
11474
11475   case $lt_cv_dlopen in
11476   dlopen)
11477     save_CPPFLAGS="$CPPFLAGS"
11478     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11479
11480     save_LDFLAGS="$LDFLAGS"
11481     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11482
11483     save_LIBS="$LIBS"
11484     LIBS="$lt_cv_dlopen_libs $LIBS"
11485
11486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11487 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11488 if ${lt_cv_dlopen_self+:} false; then :
11489   $as_echo_n "(cached) " >&6
11490 else
11491           if test "$cross_compiling" = yes; then :
11492   lt_cv_dlopen_self=cross
11493 else
11494   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11495   lt_status=$lt_dlunknown
11496   cat > conftest.$ac_ext <<_LT_EOF
11497 #line $LINENO "configure"
11498 #include "confdefs.h"
11499
11500 #if HAVE_DLFCN_H
11501 #include <dlfcn.h>
11502 #endif
11503
11504 #include <stdio.h>
11505
11506 #ifdef RTLD_GLOBAL
11507 #  define LT_DLGLOBAL           RTLD_GLOBAL
11508 #else
11509 #  ifdef DL_GLOBAL
11510 #    define LT_DLGLOBAL         DL_GLOBAL
11511 #  else
11512 #    define LT_DLGLOBAL         0
11513 #  endif
11514 #endif
11515
11516 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11517    find out it does not work in some platform. */
11518 #ifndef LT_DLLAZY_OR_NOW
11519 #  ifdef RTLD_LAZY
11520 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11521 #  else
11522 #    ifdef DL_LAZY
11523 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11524 #    else
11525 #      ifdef RTLD_NOW
11526 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11527 #      else
11528 #        ifdef DL_NOW
11529 #          define LT_DLLAZY_OR_NOW      DL_NOW
11530 #        else
11531 #          define LT_DLLAZY_OR_NOW      0
11532 #        endif
11533 #      endif
11534 #    endif
11535 #  endif
11536 #endif
11537
11538 /* When -fvisbility=hidden is used, assume the code has been annotated
11539    correspondingly for the symbols needed.  */
11540 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11541 int fnord () __attribute__((visibility("default")));
11542 #endif
11543
11544 int fnord () { return 42; }
11545 int main ()
11546 {
11547   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11548   int status = $lt_dlunknown;
11549
11550   if (self)
11551     {
11552       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11553       else
11554         {
11555           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11556           else puts (dlerror ());
11557         }
11558       /* dlclose (self); */
11559     }
11560   else
11561     puts (dlerror ());
11562
11563   return status;
11564 }
11565 _LT_EOF
11566   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11567   (eval $ac_link) 2>&5
11568   ac_status=$?
11569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11570   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11571     (./conftest; exit; ) >&5 2>/dev/null
11572     lt_status=$?
11573     case x$lt_status in
11574       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11575       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11576       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11577     esac
11578   else :
11579     # compilation failed
11580     lt_cv_dlopen_self=no
11581   fi
11582 fi
11583 rm -fr conftest*
11584
11585
11586 fi
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11588 $as_echo "$lt_cv_dlopen_self" >&6; }
11589
11590     if test "x$lt_cv_dlopen_self" = xyes; then
11591       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11592       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11593 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11594 if ${lt_cv_dlopen_self_static+:} false; then :
11595   $as_echo_n "(cached) " >&6
11596 else
11597           if test "$cross_compiling" = yes; then :
11598   lt_cv_dlopen_self_static=cross
11599 else
11600   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11601   lt_status=$lt_dlunknown
11602   cat > conftest.$ac_ext <<_LT_EOF
11603 #line $LINENO "configure"
11604 #include "confdefs.h"
11605
11606 #if HAVE_DLFCN_H
11607 #include <dlfcn.h>
11608 #endif
11609
11610 #include <stdio.h>
11611
11612 #ifdef RTLD_GLOBAL
11613 #  define LT_DLGLOBAL           RTLD_GLOBAL
11614 #else
11615 #  ifdef DL_GLOBAL
11616 #    define LT_DLGLOBAL         DL_GLOBAL
11617 #  else
11618 #    define LT_DLGLOBAL         0
11619 #  endif
11620 #endif
11621
11622 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11623    find out it does not work in some platform. */
11624 #ifndef LT_DLLAZY_OR_NOW
11625 #  ifdef RTLD_LAZY
11626 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11627 #  else
11628 #    ifdef DL_LAZY
11629 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11630 #    else
11631 #      ifdef RTLD_NOW
11632 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11633 #      else
11634 #        ifdef DL_NOW
11635 #          define LT_DLLAZY_OR_NOW      DL_NOW
11636 #        else
11637 #          define LT_DLLAZY_OR_NOW      0
11638 #        endif
11639 #      endif
11640 #    endif
11641 #  endif
11642 #endif
11643
11644 /* When -fvisbility=hidden is used, assume the code has been annotated
11645    correspondingly for the symbols needed.  */
11646 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11647 int fnord () __attribute__((visibility("default")));
11648 #endif
11649
11650 int fnord () { return 42; }
11651 int main ()
11652 {
11653   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11654   int status = $lt_dlunknown;
11655
11656   if (self)
11657     {
11658       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11659       else
11660         {
11661           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11662           else puts (dlerror ());
11663         }
11664       /* dlclose (self); */
11665     }
11666   else
11667     puts (dlerror ());
11668
11669   return status;
11670 }
11671 _LT_EOF
11672   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11673   (eval $ac_link) 2>&5
11674   ac_status=$?
11675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11676   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11677     (./conftest; exit; ) >&5 2>/dev/null
11678     lt_status=$?
11679     case x$lt_status in
11680       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11681       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11682       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11683     esac
11684   else :
11685     # compilation failed
11686     lt_cv_dlopen_self_static=no
11687   fi
11688 fi
11689 rm -fr conftest*
11690
11691
11692 fi
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11694 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11695     fi
11696
11697     CPPFLAGS="$save_CPPFLAGS"
11698     LDFLAGS="$save_LDFLAGS"
11699     LIBS="$save_LIBS"
11700     ;;
11701   esac
11702
11703   case $lt_cv_dlopen_self in
11704   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11705   *) enable_dlopen_self=unknown ;;
11706   esac
11707
11708   case $lt_cv_dlopen_self_static in
11709   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11710   *) enable_dlopen_self_static=unknown ;;
11711   esac
11712 fi
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730 striplib=
11731 old_striplib=
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11733 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11734 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11735   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11736   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11738 $as_echo "yes" >&6; }
11739 else
11740 # FIXME - insert some real tests, host_os isn't really good enough
11741   case $host_os in
11742   darwin*)
11743     if test -n "$STRIP" ; then
11744       striplib="$STRIP -x"
11745       old_striplib="$STRIP -S"
11746       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11747 $as_echo "yes" >&6; }
11748     else
11749       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750 $as_echo "no" >&6; }
11751     fi
11752     ;;
11753   *)
11754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11756     ;;
11757   esac
11758 fi
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771   # Report which library types will actually be built
11772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11773 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11775 $as_echo "$can_build_shared" >&6; }
11776
11777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11778 $as_echo_n "checking whether to build shared libraries... " >&6; }
11779   test "$can_build_shared" = "no" && enable_shared=no
11780
11781   # On AIX, shared libraries and static libraries use the same namespace, and
11782   # are all built from PIC.
11783   case $host_os in
11784   aix3*)
11785     test "$enable_shared" = yes && enable_static=no
11786     if test -n "$RANLIB"; then
11787       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11788       postinstall_cmds='$RANLIB $lib'
11789     fi
11790     ;;
11791
11792   aix[4-9]*)
11793     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11794       test "$enable_shared" = yes && enable_static=no
11795     fi
11796     ;;
11797   esac
11798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11799 $as_echo "$enable_shared" >&6; }
11800
11801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11802 $as_echo_n "checking whether to build static libraries... " >&6; }
11803   # Make sure either enable_shared or enable_static is yes.
11804   test "$enable_shared" = yes || enable_static=yes
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11806 $as_echo "$enable_static" >&6; }
11807
11808
11809
11810
11811 fi
11812 ac_ext=c
11813 ac_cpp='$CPP $CPPFLAGS'
11814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11817
11818 CC="$lt_save_CC"
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832         ac_config_commands="$ac_config_commands libtool"
11833
11834
11835
11836
11837 # Only expand once:
11838
11839
11840
11841
11842 AX_CC_MAXOPT
11843 AX_CFLAGS_WARN_ALL
11844 if test "x$GCC" = "xyes"; then
11845   CFLAGS="$CFLAGS -fexceptions"
11846 fi
11847
11848
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11850 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11851     # Check whether --enable-maintainer-mode was given.
11852 if test "${enable_maintainer_mode+set}" = set; then :
11853   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11854 else
11855   USE_MAINTAINER_MODE=no
11856 fi
11857
11858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11859 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11860    if test $USE_MAINTAINER_MODE = yes; then
11861   MAINTAINER_MODE_TRUE=
11862   MAINTAINER_MODE_FALSE='#'
11863 else
11864   MAINTAINER_MODE_TRUE='#'
11865   MAINTAINER_MODE_FALSE=
11866 fi
11867
11868   MAINT=$MAINTAINER_MODE_TRUE
11869
11870
11871
11872 for ac_header in sys/mman.h
11873 do :
11874   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11875 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
11876   cat >>confdefs.h <<_ACEOF
11877 #define HAVE_SYS_MMAN_H 1
11878 _ACEOF
11879
11880 fi
11881
11882 done
11883
11884 for ac_func in mmap
11885 do :
11886   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11887 if test "x$ac_cv_func_mmap" = xyes; then :
11888   cat >>confdefs.h <<_ACEOF
11889 #define HAVE_MMAP 1
11890 _ACEOF
11891
11892 fi
11893 done
11894
11895
11896 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11897 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
11898   libffi_header_sys_mman_h=yes
11899 else
11900   libffi_header_sys_mman_h=no
11901 fi
11902
11903
11904 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11905 if test "x$ac_cv_func_mmap" = xyes; then :
11906   libffi_func_mmap=yes
11907 else
11908   libffi_func_mmap=no
11909 fi
11910
11911 if test "$libffi_header_sys_mman_h" != yes \
11912  || test "$libffi_func_mmap" != yes; then
11913    ac_cv_func_mmap_file=no
11914    ac_cv_func_mmap_dev_zero=no
11915    ac_cv_func_mmap_anon=no
11916 else
11917    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11918 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11919 if ${ac_cv_func_mmap_file+:} false; then :
11920   $as_echo_n "(cached) " >&6
11921 else
11922   # Add a system to this blacklist if
11923    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11924    # memory area containing the same data that you'd get if you applied
11925    # read() to the same fd.  The only system known to have a problem here
11926    # is VMS, where text files have record structure.
11927    case "$host_os" in
11928      vms* | ultrix*)
11929         ac_cv_func_mmap_file=no ;;
11930      *)
11931         ac_cv_func_mmap_file=yes;;
11932    esac
11933 fi
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11935 $as_echo "$ac_cv_func_mmap_file" >&6; }
11936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11937 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11938 if ${ac_cv_func_mmap_dev_zero+:} false; then :
11939   $as_echo_n "(cached) " >&6
11940 else
11941   # Add a system to this blacklist if it has mmap() but /dev/zero
11942    # does not exist, or if mmapping /dev/zero does not give anonymous
11943    # zeroed pages with both the following properties:
11944    # 1. If you map N consecutive pages in with one call, and then
11945    #    unmap any subset of those pages, the pages that were not
11946    #    explicitly unmapped remain accessible.
11947    # 2. If you map two adjacent blocks of memory and then unmap them
11948    #    both at once, they must both go away.
11949    # Systems known to be in this category are Windows (all variants),
11950    # VMS, and Darwin.
11951    case "$host_os" in
11952      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11953         ac_cv_func_mmap_dev_zero=no ;;
11954      *)
11955         ac_cv_func_mmap_dev_zero=yes;;
11956    esac
11957 fi
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11959 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
11960
11961    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11962    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11963 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11964 if ${ac_cv_decl_map_anon+:} false; then :
11965   $as_echo_n "(cached) " >&6
11966 else
11967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h.  */
11969 #include <sys/types.h>
11970 #include <sys/mman.h>
11971 #include <unistd.h>
11972
11973 #ifndef MAP_ANONYMOUS
11974 #define MAP_ANONYMOUS MAP_ANON
11975 #endif
11976
11977 int
11978 main ()
11979 {
11980 int n = MAP_ANONYMOUS;
11981   ;
11982   return 0;
11983 }
11984 _ACEOF
11985 if ac_fn_c_try_compile "$LINENO"; then :
11986   ac_cv_decl_map_anon=yes
11987 else
11988   ac_cv_decl_map_anon=no
11989 fi
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 fi
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11993 $as_echo "$ac_cv_decl_map_anon" >&6; }
11994
11995    if test $ac_cv_decl_map_anon = no; then
11996      ac_cv_func_mmap_anon=no
11997    else
11998      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11999 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
12000 if ${ac_cv_func_mmap_anon+:} false; then :
12001   $as_echo_n "(cached) " >&6
12002 else
12003   # Add a system to this blacklist if it has mmap() and MAP_ANON or
12004    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
12005    # doesn't give anonymous zeroed pages with the same properties listed
12006    # above for use of /dev/zero.
12007    # Systems known to be in this category are Windows, VMS, and SCO Unix.
12008    case "$host_os" in
12009      vms* | cygwin* | pe | mingw* | sco* | udk* )
12010         ac_cv_func_mmap_anon=no ;;
12011      *)
12012         ac_cv_func_mmap_anon=yes;;
12013    esac
12014 fi
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
12016 $as_echo "$ac_cv_func_mmap_anon" >&6; }
12017    fi
12018 fi
12019
12020 if test $ac_cv_func_mmap_file = yes; then
12021
12022 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
12023
12024 fi
12025 if test $ac_cv_func_mmap_dev_zero = yes; then
12026
12027 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
12028
12029 fi
12030 if test $ac_cv_func_mmap_anon = yes; then
12031
12032 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
12033
12034 fi
12035
12036
12037  if test -d $srcdir/testsuite; then
12038   TESTSUBDIR_TRUE=
12039   TESTSUBDIR_FALSE='#'
12040 else
12041   TESTSUBDIR_TRUE='#'
12042   TESTSUBDIR_FALSE=
12043 fi
12044
12045
12046 TARGETDIR="unknown"
12047 case "$host" in
12048   alpha*-*-*)
12049         TARGET=ALPHA; TARGETDIR=alpha;
12050         # Support 128-bit long double, changeable via command-line switch.
12051         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
12052         ;;
12053
12054   arm*-*-*)
12055         TARGET=ARM; TARGETDIR=arm
12056         ;;
12057
12058   amd64-*-freebsd* | amd64-*-openbsd*)
12059         TARGET=X86_64; TARGETDIR=x86
12060         ;;
12061
12062   amd64-*-freebsd*)
12063         TARGET=X86_64; TARGETDIR=x86
12064         ;;
12065
12066   avr32*-*-*)
12067         TARGET=AVR32; TARGETDIR=avr32
12068         ;;
12069
12070   cris-*-*)
12071         TARGET=LIBFFI_CRIS; TARGETDIR=cris
12072         ;;
12073
12074   frv-*-*)
12075         TARGET=FRV; TARGETDIR=frv
12076         ;;
12077
12078   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
12079         TARGET=PA_LINUX; TARGETDIR=pa
12080         ;;
12081   hppa*64-*-hpux*)
12082         TARGET=PA64_HPUX; TARGETDIR=pa
12083         ;;
12084   hppa*-*-hpux*)
12085         TARGET=PA_HPUX; TARGETDIR=pa
12086         ;;
12087
12088   i?86-*-freebsd* | i?86-*-openbsd*)
12089         TARGET=X86_FREEBSD; TARGETDIR=x86
12090         ;;
12091   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
12092         TARGET=X86_WIN32; TARGETDIR=x86
12093         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
12094         # We must also check with_cross_host to decide if this is a native
12095         # or cross-build and select where to install dlls appropriately.
12096         if test -n "$with_cross_host" &&
12097            test x"$with_cross_host" != x"no"; then
12098           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
12099         else
12100           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
12101         fi
12102         ;;
12103   i?86-*-darwin*)
12104         TARGET=X86_DARWIN; TARGETDIR=x86
12105         ;;
12106   i?86-*-solaris2.1[0-9]*)
12107         TARGET=X86_64; TARGETDIR=x86
12108         ;;
12109   i?86-*-*)
12110         TARGET=X86; TARGETDIR=x86
12111         ;;
12112
12113   ia64*-*-*)
12114         TARGET=IA64; TARGETDIR=ia64
12115         ;;
12116
12117   m32r*-*-*)
12118         TARGET=M32R; TARGETDIR=m32r
12119         ;;
12120
12121   m68k-*-*)
12122         TARGET=M68K; TARGETDIR=m68k
12123         ;;
12124
12125   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
12126         TARGET=MIPS; TARGETDIR=mips
12127         ;;
12128   mips*-*-linux*)
12129         # Support 128-bit long double for NewABI.
12130         HAVE_LONG_DOUBLE='defined(__mips64)'
12131         TARGET=MIPS; TARGETDIR=mips
12132         ;;
12133
12134   powerpc*-*-linux* | powerpc-*-sysv*)
12135         TARGET=POWERPC; TARGETDIR=powerpc
12136         ;;
12137   powerpc-*-beos*)
12138         TARGET=POWERPC; TARGETDIR=powerpc
12139         ;;
12140   powerpc-*-darwin* | powerpc64-*-darwin*)
12141         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
12142         ;;
12143   powerpc-*-aix* | rs6000-*-aix*)
12144         TARGET=POWERPC_AIX; TARGETDIR=powerpc
12145         ;;
12146   powerpc-*-freebsd* | powerpc-*-openbsd*)
12147         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
12148         ;;
12149   powerpc64-*-freebsd*)
12150         TARGET=POWERPC; TARGETDIR=powerpc
12151         ;;
12152   powerpc*-*-rtems*)
12153         TARGET=POWERPC; TARGETDIR=powerpc
12154         ;;
12155
12156   s390-*-* | s390x-*-*)
12157         TARGET=S390; TARGETDIR=s390
12158         ;;
12159
12160   sh-*-* | sh[34]*-*-*)
12161         TARGET=SH; TARGETDIR=sh
12162         ;;
12163   sh64-*-* | sh5*-*-*)
12164         TARGET=SH64; TARGETDIR=sh64
12165         ;;
12166
12167   sparc*-*-*)
12168         TARGET=SPARC; TARGETDIR=sparc
12169         ;;
12170
12171   x86_64-*-darwin*)
12172         TARGET=X86_DARWIN; TARGETDIR=x86
12173         ;;
12174
12175   x86_64-*-cygwin* | x86_64-*-mingw*)
12176         TARGET=X86_WIN64; TARGETDIR=x86
12177         ;;
12178
12179   x86_64-*-*)
12180         TARGET=X86_64; TARGETDIR=x86
12181         ;;
12182 esac
12183
12184
12185
12186
12187 if test $TARGETDIR = unknown; then
12188   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
12189 fi
12190
12191  if test x$TARGET = xMIPS; then
12192   MIPS_TRUE=
12193   MIPS_FALSE='#'
12194 else
12195   MIPS_TRUE='#'
12196   MIPS_FALSE=
12197 fi
12198
12199  if test x$TARGET = xSPARC; then
12200   SPARC_TRUE=
12201   SPARC_FALSE='#'
12202 else
12203   SPARC_TRUE='#'
12204   SPARC_FALSE=
12205 fi
12206
12207  if test x$TARGET = xX86; then
12208   X86_TRUE=
12209   X86_FALSE='#'
12210 else
12211   X86_TRUE='#'
12212   X86_FALSE=
12213 fi
12214
12215  if test x$TARGET = xX86_FREEBSD; then
12216   X86_FREEBSD_TRUE=
12217   X86_FREEBSD_FALSE='#'
12218 else
12219   X86_FREEBSD_TRUE='#'
12220   X86_FREEBSD_FALSE=
12221 fi
12222
12223  if test x$TARGET = xX86_WIN32; then
12224   X86_WIN32_TRUE=
12225   X86_WIN32_FALSE='#'
12226 else
12227   X86_WIN32_TRUE='#'
12228   X86_WIN32_FALSE=
12229 fi
12230
12231  if test x$TARGET = xX86_WIN64; then
12232   X86_WIN64_TRUE=
12233   X86_WIN64_FALSE='#'
12234 else
12235   X86_WIN64_TRUE='#'
12236   X86_WIN64_FALSE=
12237 fi
12238
12239  if test x$TARGET = xX86_DARWIN; then
12240   X86_DARWIN_TRUE=
12241   X86_DARWIN_FALSE='#'
12242 else
12243   X86_DARWIN_TRUE='#'
12244   X86_DARWIN_FALSE=
12245 fi
12246
12247  if test x$TARGET = xALPHA; then
12248   ALPHA_TRUE=
12249   ALPHA_FALSE='#'
12250 else
12251   ALPHA_TRUE='#'
12252   ALPHA_FALSE=
12253 fi
12254
12255  if test x$TARGET = xIA64; then
12256   IA64_TRUE=
12257   IA64_FALSE='#'
12258 else
12259   IA64_TRUE='#'
12260   IA64_FALSE=
12261 fi
12262
12263  if test x$TARGET = xM32R; then
12264   M32R_TRUE=
12265   M32R_FALSE='#'
12266 else
12267   M32R_TRUE='#'
12268   M32R_FALSE=
12269 fi
12270
12271  if test x$TARGET = xM68K; then
12272   M68K_TRUE=
12273   M68K_FALSE='#'
12274 else
12275   M68K_TRUE='#'
12276   M68K_FALSE=
12277 fi
12278
12279  if test x$TARGET = xMOXIE; then
12280   MOXIE_TRUE=
12281   MOXIE_FALSE='#'
12282 else
12283   MOXIE_TRUE='#'
12284   MOXIE_FALSE=
12285 fi
12286
12287  if test x$TARGET = xPOWERPC; then
12288   POWERPC_TRUE=
12289   POWERPC_FALSE='#'
12290 else
12291   POWERPC_TRUE='#'
12292   POWERPC_FALSE=
12293 fi
12294
12295  if test x$TARGET = xPOWERPC_AIX; then
12296   POWERPC_AIX_TRUE=
12297   POWERPC_AIX_FALSE='#'
12298 else
12299   POWERPC_AIX_TRUE='#'
12300   POWERPC_AIX_FALSE=
12301 fi
12302
12303  if test x$TARGET = xPOWERPC_DARWIN; then
12304   POWERPC_DARWIN_TRUE=
12305   POWERPC_DARWIN_FALSE='#'
12306 else
12307   POWERPC_DARWIN_TRUE='#'
12308   POWERPC_DARWIN_FALSE=
12309 fi
12310
12311  if test x$TARGET = xPOWERPC_FREEBSD; then
12312   POWERPC_FREEBSD_TRUE=
12313   POWERPC_FREEBSD_FALSE='#'
12314 else
12315   POWERPC_FREEBSD_TRUE='#'
12316   POWERPC_FREEBSD_FALSE=
12317 fi
12318
12319  if test x$TARGET = xARM; then
12320   ARM_TRUE=
12321   ARM_FALSE='#'
12322 else
12323   ARM_TRUE='#'
12324   ARM_FALSE=
12325 fi
12326
12327  if test x$TARGET = xAVR32; then
12328   AVR32_TRUE=
12329   AVR32_FALSE='#'
12330 else
12331   AVR32_TRUE='#'
12332   AVR32_FALSE=
12333 fi
12334
12335  if test x$TARGET = xLIBFFI_CRIS; then
12336   LIBFFI_CRIS_TRUE=
12337   LIBFFI_CRIS_FALSE='#'
12338 else
12339   LIBFFI_CRIS_TRUE='#'
12340   LIBFFI_CRIS_FALSE=
12341 fi
12342
12343  if test x$TARGET = xFRV; then
12344   FRV_TRUE=
12345   FRV_FALSE='#'
12346 else
12347   FRV_TRUE='#'
12348   FRV_FALSE=
12349 fi
12350
12351  if test x$TARGET = xS390; then
12352   S390_TRUE=
12353   S390_FALSE='#'
12354 else
12355   S390_TRUE='#'
12356   S390_FALSE=
12357 fi
12358
12359  if test x$TARGET = xX86_64; then
12360   X86_64_TRUE=
12361   X86_64_FALSE='#'
12362 else
12363   X86_64_TRUE='#'
12364   X86_64_FALSE=
12365 fi
12366
12367  if test x$TARGET = xSH; then
12368   SH_TRUE=
12369   SH_FALSE='#'
12370 else
12371   SH_TRUE='#'
12372   SH_FALSE=
12373 fi
12374
12375  if test x$TARGET = xSH64; then
12376   SH64_TRUE=
12377   SH64_FALSE='#'
12378 else
12379   SH64_TRUE='#'
12380   SH64_FALSE=
12381 fi
12382
12383  if test x$TARGET = xPA_LINUX; then
12384   PA_LINUX_TRUE=
12385   PA_LINUX_FALSE='#'
12386 else
12387   PA_LINUX_TRUE='#'
12388   PA_LINUX_FALSE=
12389 fi
12390
12391  if test x$TARGET = xPA_HPUX; then
12392   PA_HPUX_TRUE=
12393   PA_HPUX_FALSE='#'
12394 else
12395   PA_HPUX_TRUE='#'
12396   PA_HPUX_FALSE=
12397 fi
12398
12399  if test x$TARGET = xPA64_HPUX; then
12400   PA64_HPUX_TRUE=
12401   PA64_HPUX_FALSE='#'
12402 else
12403   PA64_HPUX_TRUE='#'
12404   PA64_HPUX_FALSE=
12405 fi
12406
12407
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12409 $as_echo_n "checking for ANSI C header files... " >&6; }
12410 if ${ac_cv_header_stdc+:} false; then :
12411   $as_echo_n "(cached) " >&6
12412 else
12413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h.  */
12415 #include <stdlib.h>
12416 #include <stdarg.h>
12417 #include <string.h>
12418 #include <float.h>
12419
12420 int
12421 main ()
12422 {
12423
12424   ;
12425   return 0;
12426 }
12427 _ACEOF
12428 if ac_fn_c_try_compile "$LINENO"; then :
12429   ac_cv_header_stdc=yes
12430 else
12431   ac_cv_header_stdc=no
12432 fi
12433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12434
12435 if test $ac_cv_header_stdc = yes; then
12436   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h.  */
12439 #include <string.h>
12440
12441 _ACEOF
12442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12443   $EGREP "memchr" >/dev/null 2>&1; then :
12444
12445 else
12446   ac_cv_header_stdc=no
12447 fi
12448 rm -f conftest*
12449
12450 fi
12451
12452 if test $ac_cv_header_stdc = yes; then
12453   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h.  */
12456 #include <stdlib.h>
12457
12458 _ACEOF
12459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12460   $EGREP "free" >/dev/null 2>&1; then :
12461
12462 else
12463   ac_cv_header_stdc=no
12464 fi
12465 rm -f conftest*
12466
12467 fi
12468
12469 if test $ac_cv_header_stdc = yes; then
12470   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12471   if test "$cross_compiling" = yes; then :
12472   :
12473 else
12474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h.  */
12476 #include <ctype.h>
12477 #include <stdlib.h>
12478 #if ((' ' & 0x0FF) == 0x020)
12479 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12480 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12481 #else
12482 # define ISLOWER(c) \
12483                    (('a' <= (c) && (c) <= 'i') \
12484                      || ('j' <= (c) && (c) <= 'r') \
12485                      || ('s' <= (c) && (c) <= 'z'))
12486 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12487 #endif
12488
12489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12490 int
12491 main ()
12492 {
12493   int i;
12494   for (i = 0; i < 256; i++)
12495     if (XOR (islower (i), ISLOWER (i))
12496         || toupper (i) != TOUPPER (i))
12497       return 2;
12498   return 0;
12499 }
12500 _ACEOF
12501 if ac_fn_c_try_run "$LINENO"; then :
12502
12503 else
12504   ac_cv_header_stdc=no
12505 fi
12506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12507   conftest.$ac_objext conftest.beam conftest.$ac_ext
12508 fi
12509
12510 fi
12511 fi
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12513 $as_echo "$ac_cv_header_stdc" >&6; }
12514 if test $ac_cv_header_stdc = yes; then
12515
12516 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12517
12518 fi
12519
12520 for ac_func in memcpy
12521 do :
12522   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
12523 if test "x$ac_cv_func_memcpy" = xyes; then :
12524   cat >>confdefs.h <<_ACEOF
12525 #define HAVE_MEMCPY 1
12526 _ACEOF
12527
12528 fi
12529 done
12530
12531 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12532 if test "x$ac_cv_type_size_t" = xyes; then :
12533
12534 else
12535
12536 cat >>confdefs.h <<_ACEOF
12537 #define size_t unsigned int
12538 _ACEOF
12539
12540 fi
12541
12542 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12543 # for constant arguments.  Useless!
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12545 $as_echo_n "checking for working alloca.h... " >&6; }
12546 if ${ac_cv_working_alloca_h+:} false; then :
12547   $as_echo_n "(cached) " >&6
12548 else
12549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550 /* end confdefs.h.  */
12551 #include <alloca.h>
12552 int
12553 main ()
12554 {
12555 char *p = (char *) alloca (2 * sizeof (int));
12556                           if (p) return 0;
12557   ;
12558   return 0;
12559 }
12560 _ACEOF
12561 if ac_fn_c_try_link "$LINENO"; then :
12562   ac_cv_working_alloca_h=yes
12563 else
12564   ac_cv_working_alloca_h=no
12565 fi
12566 rm -f core conftest.err conftest.$ac_objext \
12567     conftest$ac_exeext conftest.$ac_ext
12568 fi
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12570 $as_echo "$ac_cv_working_alloca_h" >&6; }
12571 if test $ac_cv_working_alloca_h = yes; then
12572
12573 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12574
12575 fi
12576
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12578 $as_echo_n "checking for alloca... " >&6; }
12579 if ${ac_cv_func_alloca_works+:} false; then :
12580   $as_echo_n "(cached) " >&6
12581 else
12582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h.  */
12584 #ifdef __GNUC__
12585 # define alloca __builtin_alloca
12586 #else
12587 # ifdef _MSC_VER
12588 #  include <malloc.h>
12589 #  define alloca _alloca
12590 # else
12591 #  ifdef HAVE_ALLOCA_H
12592 #   include <alloca.h>
12593 #  else
12594 #   ifdef _AIX
12595  #pragma alloca
12596 #   else
12597 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12598 void *alloca (size_t);
12599 #    endif
12600 #   endif
12601 #  endif
12602 # endif
12603 #endif
12604
12605 int
12606 main ()
12607 {
12608 char *p = (char *) alloca (1);
12609                                     if (p) return 0;
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 if ac_fn_c_try_link "$LINENO"; then :
12615   ac_cv_func_alloca_works=yes
12616 else
12617   ac_cv_func_alloca_works=no
12618 fi
12619 rm -f core conftest.err conftest.$ac_objext \
12620     conftest$ac_exeext conftest.$ac_ext
12621 fi
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12623 $as_echo "$ac_cv_func_alloca_works" >&6; }
12624
12625 if test $ac_cv_func_alloca_works = yes; then
12626
12627 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12628
12629 else
12630   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12631 # that cause trouble.  Some versions do not even contain alloca or
12632 # contain a buggy version.  If you still want to use their alloca,
12633 # use ar to extract alloca.o from them instead of compiling alloca.c.
12634
12635 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12636
12637 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12638
12639
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12641 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12642 if ${ac_cv_os_cray+:} false; then :
12643   $as_echo_n "(cached) " >&6
12644 else
12645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h.  */
12647 #if defined CRAY && ! defined CRAY2
12648 webecray
12649 #else
12650 wenotbecray
12651 #endif
12652
12653 _ACEOF
12654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12655   $EGREP "webecray" >/dev/null 2>&1; then :
12656   ac_cv_os_cray=yes
12657 else
12658   ac_cv_os_cray=no
12659 fi
12660 rm -f conftest*
12661
12662 fi
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12664 $as_echo "$ac_cv_os_cray" >&6; }
12665 if test $ac_cv_os_cray = yes; then
12666   for ac_func in _getb67 GETB67 getb67; do
12667     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12668 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12669 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12670
12671 cat >>confdefs.h <<_ACEOF
12672 #define CRAY_STACKSEG_END $ac_func
12673 _ACEOF
12674
12675     break
12676 fi
12677
12678   done
12679 fi
12680
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12682 $as_echo_n "checking stack direction for C alloca... " >&6; }
12683 if ${ac_cv_c_stack_direction+:} false; then :
12684   $as_echo_n "(cached) " >&6
12685 else
12686   if test "$cross_compiling" = yes; then :
12687   ac_cv_c_stack_direction=0
12688 else
12689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h.  */
12691 $ac_includes_default
12692 int
12693 find_stack_direction ()
12694 {
12695   static char *addr = 0;
12696   auto char dummy;
12697   if (addr == 0)
12698     {
12699       addr = &dummy;
12700       return find_stack_direction ();
12701     }
12702   else
12703     return (&dummy > addr) ? 1 : -1;
12704 }
12705
12706 int
12707 main ()
12708 {
12709   return find_stack_direction () < 0;
12710 }
12711 _ACEOF
12712 if ac_fn_c_try_run "$LINENO"; then :
12713   ac_cv_c_stack_direction=1
12714 else
12715   ac_cv_c_stack_direction=-1
12716 fi
12717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12718   conftest.$ac_objext conftest.beam conftest.$ac_ext
12719 fi
12720
12721 fi
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12723 $as_echo "$ac_cv_c_stack_direction" >&6; }
12724 cat >>confdefs.h <<_ACEOF
12725 #define STACK_DIRECTION $ac_cv_c_stack_direction
12726 _ACEOF
12727
12728
12729 fi
12730
12731
12732 # The cast to long int works around a bug in the HP C Compiler
12733 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12734 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12735 # This bug is HP SR number 8606223364.
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12737 $as_echo_n "checking size of double... " >&6; }
12738 if ${ac_cv_sizeof_double+:} false; then :
12739   $as_echo_n "(cached) " >&6
12740 else
12741   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
12742
12743 else
12744   if test "$ac_cv_type_double" = yes; then
12745      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12747 as_fn_error 77 "cannot compute sizeof (double)
12748 See \`config.log' for more details" "$LINENO" 5; }
12749    else
12750      ac_cv_sizeof_double=0
12751    fi
12752 fi
12753
12754 fi
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12756 $as_echo "$ac_cv_sizeof_double" >&6; }
12757
12758
12759
12760 cat >>confdefs.h <<_ACEOF
12761 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12762 _ACEOF
12763
12764
12765 # The cast to long int works around a bug in the HP C Compiler
12766 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12767 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12768 # This bug is HP SR number 8606223364.
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12770 $as_echo_n "checking size of long double... " >&6; }
12771 if ${ac_cv_sizeof_long_double+:} false; then :
12772   $as_echo_n "(cached) " >&6
12773 else
12774   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
12775
12776 else
12777   if test "$ac_cv_type_long_double" = yes; then
12778      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12780 as_fn_error 77 "cannot compute sizeof (long double)
12781 See \`config.log' for more details" "$LINENO" 5; }
12782    else
12783      ac_cv_sizeof_long_double=0
12784    fi
12785 fi
12786
12787 fi
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12789 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12790
12791
12792
12793 cat >>confdefs.h <<_ACEOF
12794 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12795 _ACEOF
12796
12797
12798
12799 # Also AC_SUBST this variable for ffi.h.
12800 if test -z "$HAVE_LONG_DOUBLE"; then
12801   HAVE_LONG_DOUBLE=0
12802   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12803     if test $ac_cv_sizeof_long_double != 0; then
12804       HAVE_LONG_DOUBLE=1
12805
12806 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12807
12808     fi
12809   fi
12810 fi
12811
12812
12813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12814 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12815 if ${ac_cv_c_bigendian+:} false; then :
12816   $as_echo_n "(cached) " >&6
12817 else
12818   ac_cv_c_bigendian=unknown
12819     # See if we're dealing with a universal compiler.
12820     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h.  */
12822 #ifndef __APPLE_CC__
12823                not a universal capable compiler
12824              #endif
12825              typedef int dummy;
12826
12827 _ACEOF
12828 if ac_fn_c_try_compile "$LINENO"; then :
12829
12830         # Check for potential -arch flags.  It is not universal unless
12831         # there are at least two -arch flags with different values.
12832         ac_arch=
12833         ac_prev=
12834         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12835          if test -n "$ac_prev"; then
12836            case $ac_word in
12837              i?86 | x86_64 | ppc | ppc64)
12838                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12839                  ac_arch=$ac_word
12840                else
12841                  ac_cv_c_bigendian=universal
12842                  break
12843                fi
12844                ;;
12845            esac
12846            ac_prev=
12847          elif test "x$ac_word" = "x-arch"; then
12848            ac_prev=arch
12849          fi
12850        done
12851 fi
12852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853     if test $ac_cv_c_bigendian = unknown; then
12854       # See if sys/param.h defines the BYTE_ORDER macro.
12855       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h.  */
12857 #include <sys/types.h>
12858              #include <sys/param.h>
12859
12860 int
12861 main ()
12862 {
12863 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12864                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12865                      && LITTLE_ENDIAN)
12866               bogus endian macros
12867              #endif
12868
12869   ;
12870   return 0;
12871 }
12872 _ACEOF
12873 if ac_fn_c_try_compile "$LINENO"; then :
12874   # It does; now see whether it defined to BIG_ENDIAN or not.
12875          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h.  */
12877 #include <sys/types.h>
12878                 #include <sys/param.h>
12879
12880 int
12881 main ()
12882 {
12883 #if BYTE_ORDER != BIG_ENDIAN
12884                  not big endian
12885                 #endif
12886
12887   ;
12888   return 0;
12889 }
12890 _ACEOF
12891 if ac_fn_c_try_compile "$LINENO"; then :
12892   ac_cv_c_bigendian=yes
12893 else
12894   ac_cv_c_bigendian=no
12895 fi
12896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12897 fi
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899     fi
12900     if test $ac_cv_c_bigendian = unknown; then
12901       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12902       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h.  */
12904 #include <limits.h>
12905
12906 int
12907 main ()
12908 {
12909 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12910               bogus endian macros
12911              #endif
12912
12913   ;
12914   return 0;
12915 }
12916 _ACEOF
12917 if ac_fn_c_try_compile "$LINENO"; then :
12918   # It does; now see whether it defined to _BIG_ENDIAN or not.
12919          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h.  */
12921 #include <limits.h>
12922
12923 int
12924 main ()
12925 {
12926 #ifndef _BIG_ENDIAN
12927                  not big endian
12928                 #endif
12929
12930   ;
12931   return 0;
12932 }
12933 _ACEOF
12934 if ac_fn_c_try_compile "$LINENO"; then :
12935   ac_cv_c_bigendian=yes
12936 else
12937   ac_cv_c_bigendian=no
12938 fi
12939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12942     fi
12943     if test $ac_cv_c_bigendian = unknown; then
12944       # Compile a test program.
12945       if test "$cross_compiling" = yes; then :
12946   # Try to guess by grepping values from an object file.
12947          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948 /* end confdefs.h.  */
12949 short int ascii_mm[] =
12950                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12951                 short int ascii_ii[] =
12952                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12953                 int use_ascii (int i) {
12954                   return ascii_mm[i] + ascii_ii[i];
12955                 }
12956                 short int ebcdic_ii[] =
12957                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12958                 short int ebcdic_mm[] =
12959                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12960                 int use_ebcdic (int i) {
12961                   return ebcdic_mm[i] + ebcdic_ii[i];
12962                 }
12963                 extern int foo;
12964
12965 int
12966 main ()
12967 {
12968 return use_ascii (foo) == use_ebcdic (foo);
12969   ;
12970   return 0;
12971 }
12972 _ACEOF
12973 if ac_fn_c_try_compile "$LINENO"; then :
12974   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12975               ac_cv_c_bigendian=yes
12976             fi
12977             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12978               if test "$ac_cv_c_bigendian" = unknown; then
12979                 ac_cv_c_bigendian=no
12980               else
12981                 # finding both strings is unlikely to happen, but who knows?
12982                 ac_cv_c_bigendian=unknown
12983               fi
12984             fi
12985 fi
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 else
12988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989 /* end confdefs.h.  */
12990 $ac_includes_default
12991 int
12992 main ()
12993 {
12994
12995              /* Are we little or big endian?  From Harbison&Steele.  */
12996              union
12997              {
12998                long int l;
12999                char c[sizeof (long int)];
13000              } u;
13001              u.l = 1;
13002              return u.c[sizeof (long int) - 1] == 1;
13003
13004   ;
13005   return 0;
13006 }
13007 _ACEOF
13008 if ac_fn_c_try_run "$LINENO"; then :
13009   ac_cv_c_bigendian=no
13010 else
13011   ac_cv_c_bigendian=yes
13012 fi
13013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13014   conftest.$ac_objext conftest.beam conftest.$ac_ext
13015 fi
13016
13017     fi
13018 fi
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13020 $as_echo "$ac_cv_c_bigendian" >&6; }
13021  case $ac_cv_c_bigendian in #(
13022    yes)
13023      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13024 ;; #(
13025    no)
13026       ;; #(
13027    universal)
13028
13029 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13030
13031      ;; #(
13032    *)
13033      as_fn_error $? "unknown endianness
13034  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13035  esac
13036
13037
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
13039 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
13040 if ${libffi_cv_as_cfi_pseudo_op+:} false; then :
13041   $as_echo_n "(cached) " >&6
13042 else
13043
13044     libffi_cv_as_cfi_pseudo_op=unknown
13045     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h.  */
13047 asm (".cfi_startproc\n\t.cfi_endproc");
13048 int
13049 main ()
13050 {
13051
13052   ;
13053   return 0;
13054 }
13055 _ACEOF
13056 if ac_fn_c_try_compile "$LINENO"; then :
13057   libffi_cv_as_cfi_pseudo_op=yes
13058 else
13059   libffi_cv_as_cfi_pseudo_op=no
13060 fi
13061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13062
13063 fi
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_cfi_pseudo_op" >&5
13065 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
13066 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
13067
13068 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
13069
13070 fi
13071
13072 if test x$TARGET = xSPARC; then
13073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
13074 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
13075 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
13076   $as_echo_n "(cached) " >&6
13077 else
13078
13079         save_CFLAGS="$CFLAGS"
13080         save_LDFLAGS="$LDFLAGS"
13081         CFLAGS="$CFLAGS -fpic"
13082         LDFLAGS="$LDFLAGS -shared"
13083         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h.  */
13085 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
13086 int
13087 main ()
13088 {
13089
13090   ;
13091   return 0;
13092 }
13093 _ACEOF
13094 if ac_fn_c_try_link "$LINENO"; then :
13095   libffi_cv_as_sparc_ua_pcrel=yes
13096 else
13097   libffi_cv_as_sparc_ua_pcrel=no
13098 fi
13099 rm -f core conftest.err conftest.$ac_objext \
13100     conftest$ac_exeext conftest.$ac_ext
13101         CFLAGS="$save_CFLAGS"
13102         LDFLAGS="$save_LDFLAGS"
13103 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
13105 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
13106     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
13107
13108 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
13109
13110     fi
13111
13112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
13113 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
13114 if ${libffi_cv_as_register_pseudo_op+:} false; then :
13115   $as_echo_n "(cached) " >&6
13116 else
13117
13118        libffi_cv_as_register_pseudo_op=unknown
13119        # Check if we have .register
13120        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h.  */
13122 asm (".register %g2, #scratch");
13123 int
13124 main ()
13125 {
13126
13127   ;
13128   return 0;
13129 }
13130 _ACEOF
13131 if ac_fn_c_try_compile "$LINENO"; then :
13132   libffi_cv_as_register_pseudo_op=yes
13133 else
13134   libffi_cv_as_register_pseudo_op=no
13135 fi
13136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13137
13138 fi
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
13140 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
13141     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
13142
13143 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
13144
13145     fi
13146 fi
13147
13148 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
13149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
13150 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
13151 if ${libffi_cv_as_x86_pcrel+:} false; then :
13152   $as_echo_n "(cached) " >&6
13153 else
13154
13155         libffi_cv_as_x86_pcrel=no
13156         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
13157         if $CC $CFLAGS -c conftest.s > /dev/null; then
13158            libffi_cv_as_x86_pcrel=yes
13159         fi
13160
13161 fi
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
13163 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
13164     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
13165
13166 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
13167
13168     fi
13169
13170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
13171 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
13172 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
13173   $as_echo_n "(cached) " >&6
13174 else
13175
13176        libffi_cv_as_ascii_pseudo_op=unknown
13177        # Check if we have .ascii
13178        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h.  */
13180 asm (".ascii \\"string\\"");
13181 int
13182 main ()
13183 {
13184
13185   ;
13186   return 0;
13187 }
13188 _ACEOF
13189 if ac_fn_c_try_compile "$LINENO"; then :
13190   libffi_cv_as_ascii_pseudo_op=yes
13191 else
13192   libffi_cv_as_ascii_pseudo_op=no
13193 fi
13194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13195
13196 fi
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
13198 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
13199     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
13200
13201 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
13202
13203     fi
13204
13205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
13206 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
13207 if ${libffi_cv_as_string_pseudo_op+:} false; then :
13208   $as_echo_n "(cached) " >&6
13209 else
13210
13211        libffi_cv_as_string_pseudo_op=unknown
13212        # Check if we have .string
13213        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214 /* end confdefs.h.  */
13215 asm (".string \\"string\\"");
13216 int
13217 main ()
13218 {
13219
13220   ;
13221   return 0;
13222 }
13223 _ACEOF
13224 if ac_fn_c_try_compile "$LINENO"; then :
13225   libffi_cv_as_string_pseudo_op=yes
13226 else
13227   libffi_cv_as_string_pseudo_op=no
13228 fi
13229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13230
13231 fi
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
13233 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
13234     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
13235
13236 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
13237
13238     fi
13239 fi
13240
13241 if test x$TARGET = xX86_WIN64; then
13242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
13243 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
13244 if ${lt_cv_sys_symbol_underscore+:} false; then :
13245   $as_echo_n "(cached) " >&6
13246 else
13247   lt_cv_sys_symbol_underscore=no
13248   cat > conftest.$ac_ext <<_LT_EOF
13249 void nm_test_func(){}
13250 int main(){nm_test_func;return 0;}
13251 _LT_EOF
13252   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13253   (eval $ac_compile) 2>&5
13254   ac_status=$?
13255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13256   test $ac_status = 0; }; then
13257     # Now try to grab the symbols.
13258     ac_nlist=conftest.nm
13259     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
13260   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
13261   ac_status=$?
13262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13263   test $ac_status = 0; } && test -s "$ac_nlist"; then
13264       # See whether the symbols have a leading underscore.
13265       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
13266         lt_cv_sys_symbol_underscore=yes
13267       else
13268         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
13269           :
13270         else
13271           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
13272         fi
13273       fi
13274     else
13275       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
13276     fi
13277   else
13278     echo "configure: failed program was:" >&5
13279     cat conftest.c >&5
13280   fi
13281   rm -rf conftest*
13282
13283 fi
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
13285 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
13286   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
13287
13288
13289     if test "x$sys_symbol_underscore" = xyes; then
13290
13291 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
13292
13293     fi
13294 fi
13295
13296
13297 FFI_EXEC_TRAMPOLINE_TABLE=0
13298 case "$target" in
13299      *arm*-apple-darwin*)
13300        FFI_EXEC_TRAMPOLINE_TABLE=1
13301
13302 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
13303
13304      ;;
13305      *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
13306
13307 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
13308
13309      ;;
13310 esac
13311  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
13312   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
13313   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
13314 else
13315   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
13316   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
13317 fi
13318
13319
13320
13321 if test x$TARGET = xX86_64; then
13322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
13323 $as_echo_n "checking assembler supports unwind section type... " >&6; }
13324 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
13325   $as_echo_n "(cached) " >&6
13326 else
13327
13328         libffi_cv_as_x86_64_unwind_section_type=yes
13329         echo '.section .eh_frame,"a",@unwind' > conftest.s
13330         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
13331             libffi_cv_as_x86_64_unwind_section_type=no
13332         fi
13333
13334 fi
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
13336 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
13337     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
13338
13339 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
13340
13341     fi
13342 fi
13343
13344 if test "x$GCC" = "xyes"; then
13345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
13346 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
13347 if ${libffi_cv_ro_eh_frame+:} false; then :
13348   $as_echo_n "(cached) " >&6
13349 else
13350
13351         libffi_cv_ro_eh_frame=no
13352         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
13353         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
13354             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
13355                 libffi_cv_ro_eh_frame=yes
13356             elif grep '.section.*eh_frame.*#alloc' conftest.c \
13357                  | grep -v '#write' > /dev/null; then
13358                 libffi_cv_ro_eh_frame=yes
13359             fi
13360         fi
13361         rm -f conftest.*
13362
13363 fi
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
13365 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
13366   if test "x$libffi_cv_ro_eh_frame" = xyes; then
13367
13368 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
13369
13370
13371 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
13372
13373   else
13374
13375 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
13376
13377   fi
13378
13379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
13380 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
13381 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
13382   $as_echo_n "(cached) " >&6
13383 else
13384
13385         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
13386         libffi_cv_hidden_visibility_attribute=no
13387         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
13388   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13389   (eval $ac_try) 2>&5
13390   ac_status=$?
13391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13392   test $ac_status = 0; }; }; then
13393             if grep '\.hidden.*foo' conftest.s >/dev/null; then
13394                 libffi_cv_hidden_visibility_attribute=yes
13395             fi
13396         fi
13397         rm -f conftest.*
13398
13399 fi
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
13401 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
13402   if test $libffi_cv_hidden_visibility_attribute = yes; then
13403
13404 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
13405
13406   fi
13407 fi
13408
13409
13410
13411
13412
13413
13414
13415
13416 # Check whether --enable-debug was given.
13417 if test "${enable_debug+set}" = set; then :
13418   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
13419
13420 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
13421
13422   fi
13423 fi
13424
13425  if test "$enable_debug" = "yes"; then
13426   FFI_DEBUG_TRUE=
13427   FFI_DEBUG_FALSE='#'
13428 else
13429   FFI_DEBUG_TRUE='#'
13430   FFI_DEBUG_FALSE=
13431 fi
13432
13433
13434 # Check whether --enable-structs was given.
13435 if test "${enable_structs+set}" = set; then :
13436   enableval=$enable_structs; if test "$enable_structs" = "no"; then
13437
13438 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
13439
13440   fi
13441 fi
13442
13443
13444 # Check whether --enable-raw-api was given.
13445 if test "${enable_raw_api+set}" = set; then :
13446   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
13447
13448 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
13449
13450   fi
13451 fi
13452
13453
13454 # Check whether --enable-purify-safety was given.
13455 if test "${enable_purify_safety+set}" = set; then :
13456   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
13457
13458 $as_echo "#define USING_PURIFY 1" >>confdefs.h
13459
13460   fi
13461 fi
13462
13463
13464 # These variables are only ever used when we cross-build to X86_WIN32.
13465 # And we only support this with GCC, so...
13466 if test x"$GCC" != x"no"; then
13467   if test -n "$with_cross_host" &&
13468      test x"$with_cross_host" != x"no"; then
13469     toolexecdir='$(exec_prefix)/$(target_alias)'
13470     toolexeclibdir='$(toolexecdir)/lib'
13471   else
13472     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
13473     toolexeclibdir='$(libdir)'
13474   fi
13475   multi_os_directory=`$CC -print-multi-os-directory`
13476   case $multi_os_directory in
13477     .) ;; # Avoid trailing /.
13478     *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
13479   esac
13480
13481
13482 fi
13483
13484 if test "${multilib}" = "yes"; then
13485   multilib_arg="--enable-multilib"
13486 else
13487   multilib_arg=
13488 fi
13489
13490 ac_config_commands="$ac_config_commands include"
13491
13492 ac_config_commands="$ac_config_commands src"
13493
13494
13495 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
13496
13497
13498 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
13499
13500
13501 cat >confcache <<\_ACEOF
13502 # This file is a shell script that caches the results of configure
13503 # tests run on this system so they can be shared between configure
13504 # scripts and configure runs, see configure's option --config-cache.
13505 # It is not useful on other systems.  If it contains results you don't
13506 # want to keep, you may remove or edit it.
13507 #
13508 # config.status only pays attention to the cache file if you give it
13509 # the --recheck option to rerun configure.
13510 #
13511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13513 # following values.
13514
13515 _ACEOF
13516
13517 # The following way of writing the cache mishandles newlines in values,
13518 # but we know of no workaround that is simple, portable, and efficient.
13519 # So, we kill variables containing newlines.
13520 # Ultrix sh set writes to stderr and can't be redirected directly,
13521 # and sets the high bit in the cache file unless we assign to the vars.
13522 (
13523   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13524     eval ac_val=\$$ac_var
13525     case $ac_val in #(
13526     *${as_nl}*)
13527       case $ac_var in #(
13528       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13529 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13530       esac
13531       case $ac_var in #(
13532       _ | IFS | as_nl) ;; #(
13533       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13534       *) { eval $ac_var=; unset $ac_var;} ;;
13535       esac ;;
13536     esac
13537   done
13538
13539   (set) 2>&1 |
13540     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13541     *${as_nl}ac_space=\ *)
13542       # `set' does not quote correctly, so add quotes: double-quote
13543       # substitution turns \\\\ into \\, and sed turns \\ into \.
13544       sed -n \
13545         "s/'/'\\\\''/g;
13546           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13547       ;; #(
13548     *)
13549       # `set' quotes correctly as required by POSIX, so do not add quotes.
13550       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13551       ;;
13552     esac |
13553     sort
13554 ) |
13555   sed '
13556      /^ac_cv_env_/b end
13557      t clear
13558      :clear
13559      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13560      t end
13561      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13562      :end' >>confcache
13563 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13564   if test -w "$cache_file"; then
13565     if test "x$cache_file" != "x/dev/null"; then
13566       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13567 $as_echo "$as_me: updating cache $cache_file" >&6;}
13568       if test ! -f "$cache_file" || test -h "$cache_file"; then
13569         cat confcache >"$cache_file"
13570       else
13571         case $cache_file in #(
13572         */* | ?:*)
13573           mv -f confcache "$cache_file"$$ &&
13574           mv -f "$cache_file"$$ "$cache_file" ;; #(
13575         *)
13576           mv -f confcache "$cache_file" ;;
13577         esac
13578       fi
13579     fi
13580   else
13581     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13582 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13583   fi
13584 fi
13585 rm -f confcache
13586
13587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13588 # Let make expand exec_prefix.
13589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13590
13591 DEFS=-DHAVE_CONFIG_H
13592
13593 ac_libobjs=
13594 ac_ltlibobjs=
13595 U=
13596 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13597   # 1. Remove the extension, and $U if already installed.
13598   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13599   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13600   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13601   #    will be set to the directory where LIBOBJS objects are built.
13602   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13603   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13604 done
13605 LIBOBJS=$ac_libobjs
13606
13607 LTLIBOBJS=$ac_ltlibobjs
13608
13609
13610  if test -n "$EXEEXT"; then
13611   am__EXEEXT_TRUE=
13612   am__EXEEXT_FALSE='#'
13613 else
13614   am__EXEEXT_TRUE='#'
13615   am__EXEEXT_FALSE=
13616 fi
13617
13618 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13619   as_fn_error $? "conditional \"AMDEP\" was never defined.
13620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13621 fi
13622 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13623   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13625 fi
13626 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13627   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
13628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13629 fi
13630 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13631   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13633 fi
13634 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
13635   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
13636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13637 fi
13638 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
13639   as_fn_error $? "conditional \"MIPS\" was never defined.
13640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13641 fi
13642 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
13643   as_fn_error $? "conditional \"SPARC\" was never defined.
13644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13645 fi
13646 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
13647   as_fn_error $? "conditional \"X86\" was never defined.
13648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13649 fi
13650 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
13651   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
13652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13653 fi
13654 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
13655   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
13656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13657 fi
13658 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
13659   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
13660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13661 fi
13662 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
13663   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
13664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13665 fi
13666 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
13667   as_fn_error $? "conditional \"ALPHA\" was never defined.
13668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13669 fi
13670 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
13671   as_fn_error $? "conditional \"IA64\" was never defined.
13672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13673 fi
13674 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
13675   as_fn_error $? "conditional \"M32R\" was never defined.
13676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13677 fi
13678 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
13679   as_fn_error $? "conditional \"M68K\" was never defined.
13680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13681 fi
13682 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
13683   as_fn_error $? "conditional \"MOXIE\" was never defined.
13684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13685 fi
13686 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
13687   as_fn_error $? "conditional \"POWERPC\" was never defined.
13688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13689 fi
13690 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
13691   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
13692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13693 fi
13694 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
13695   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
13696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13697 fi
13698 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
13699   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
13700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13701 fi
13702 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
13703   as_fn_error $? "conditional \"ARM\" was never defined.
13704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13705 fi
13706 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
13707   as_fn_error $? "conditional \"AVR32\" was never defined.
13708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13709 fi
13710 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
13711   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
13712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13713 fi
13714 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
13715   as_fn_error $? "conditional \"FRV\" was never defined.
13716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13717 fi
13718 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
13719   as_fn_error $? "conditional \"S390\" was never defined.
13720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13721 fi
13722 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
13723   as_fn_error $? "conditional \"X86_64\" was never defined.
13724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13725 fi
13726 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
13727   as_fn_error $? "conditional \"SH\" was never defined.
13728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13729 fi
13730 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
13731   as_fn_error $? "conditional \"SH64\" was never defined.
13732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13733 fi
13734 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
13735   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
13736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13737 fi
13738 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
13739   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
13740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13741 fi
13742 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
13743   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
13744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13745 fi
13746
13747 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
13748   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
13749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13750 fi
13751 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
13752   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
13753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13754 fi
13755
13756 : "${CONFIG_STATUS=./config.status}"
13757 ac_write_fail=0
13758 ac_clean_files_save=$ac_clean_files
13759 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13761 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13762 as_write_fail=0
13763 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13764 #! $SHELL
13765 # Generated by $as_me.
13766 # Run this file to recreate the current configuration.
13767 # Compiler output produced by configure, useful for debugging
13768 # configure, is in config.log if it exists.
13769
13770 debug=false
13771 ac_cs_recheck=false
13772 ac_cs_silent=false
13773
13774 SHELL=\${CONFIG_SHELL-$SHELL}
13775 export SHELL
13776 _ASEOF
13777 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13778 ## -------------------- ##
13779 ## M4sh Initialization. ##
13780 ## -------------------- ##
13781
13782 # Be more Bourne compatible
13783 DUALCASE=1; export DUALCASE # for MKS sh
13784 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13785   emulate sh
13786   NULLCMD=:
13787   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13788   # is contrary to our usage.  Disable this feature.
13789   alias -g '${1+"$@"}'='"$@"'
13790   setopt NO_GLOB_SUBST
13791 else
13792   case `(set -o) 2>/dev/null` in #(
13793   *posix*) :
13794     set -o posix ;; #(
13795   *) :
13796      ;;
13797 esac
13798 fi
13799
13800
13801 as_nl='
13802 '
13803 export as_nl
13804 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13805 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13806 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13807 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13808 # Prefer a ksh shell builtin over an external printf program on Solaris,
13809 # but without wasting forks for bash or zsh.
13810 if test -z "$BASH_VERSION$ZSH_VERSION" \
13811     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13812   as_echo='print -r --'
13813   as_echo_n='print -rn --'
13814 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13815   as_echo='printf %s\n'
13816   as_echo_n='printf %s'
13817 else
13818   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13819     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13820     as_echo_n='/usr/ucb/echo -n'
13821   else
13822     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13823     as_echo_n_body='eval
13824       arg=$1;
13825       case $arg in #(
13826       *"$as_nl"*)
13827         expr "X$arg" : "X\\(.*\\)$as_nl";
13828         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13829       esac;
13830       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13831     '
13832     export as_echo_n_body
13833     as_echo_n='sh -c $as_echo_n_body as_echo'
13834   fi
13835   export as_echo_body
13836   as_echo='sh -c $as_echo_body as_echo'
13837 fi
13838
13839 # The user is always right.
13840 if test "${PATH_SEPARATOR+set}" != set; then
13841   PATH_SEPARATOR=:
13842   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13843     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13844       PATH_SEPARATOR=';'
13845   }
13846 fi
13847
13848
13849 # IFS
13850 # We need space, tab and new line, in precisely that order.  Quoting is
13851 # there to prevent editors from complaining about space-tab.
13852 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13853 # splitting by setting IFS to empty value.)
13854 IFS=" ""        $as_nl"
13855
13856 # Find who we are.  Look in the path if we contain no directory separator.
13857 as_myself=
13858 case $0 in #((
13859   *[\\/]* ) as_myself=$0 ;;
13860   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13861 for as_dir in $PATH
13862 do
13863   IFS=$as_save_IFS
13864   test -z "$as_dir" && as_dir=.
13865     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13866   done
13867 IFS=$as_save_IFS
13868
13869      ;;
13870 esac
13871 # We did not find ourselves, most probably we were run as `sh COMMAND'
13872 # in which case we are not to be found in the path.
13873 if test "x$as_myself" = x; then
13874   as_myself=$0
13875 fi
13876 if test ! -f "$as_myself"; then
13877   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13878   exit 1
13879 fi
13880
13881 # Unset variables that we do not need and which cause bugs (e.g. in
13882 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13883 # suppresses any "Segmentation fault" message there.  '((' could
13884 # trigger a bug in pdksh 5.2.14.
13885 for as_var in BASH_ENV ENV MAIL MAILPATH
13886 do eval test x\${$as_var+set} = xset \
13887   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13888 done
13889 PS1='$ '
13890 PS2='> '
13891 PS4='+ '
13892
13893 # NLS nuisances.
13894 LC_ALL=C
13895 export LC_ALL
13896 LANGUAGE=C
13897 export LANGUAGE
13898
13899 # CDPATH.
13900 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13901
13902
13903 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13904 # ----------------------------------------
13905 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13906 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13907 # script with STATUS, using 1 if that was 0.
13908 as_fn_error ()
13909 {
13910   as_status=$1; test $as_status -eq 0 && as_status=1
13911   if test "$4"; then
13912     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13913     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13914   fi
13915   $as_echo "$as_me: error: $2" >&2
13916   as_fn_exit $as_status
13917 } # as_fn_error
13918
13919
13920 # as_fn_set_status STATUS
13921 # -----------------------
13922 # Set $? to STATUS, without forking.
13923 as_fn_set_status ()
13924 {
13925   return $1
13926 } # as_fn_set_status
13927
13928 # as_fn_exit STATUS
13929 # -----------------
13930 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13931 as_fn_exit ()
13932 {
13933   set +e
13934   as_fn_set_status $1
13935   exit $1
13936 } # as_fn_exit
13937
13938 # as_fn_unset VAR
13939 # ---------------
13940 # Portably unset VAR.
13941 as_fn_unset ()
13942 {
13943   { eval $1=; unset $1;}
13944 }
13945 as_unset=as_fn_unset
13946 # as_fn_append VAR VALUE
13947 # ----------------------
13948 # Append the text in VALUE to the end of the definition contained in VAR. Take
13949 # advantage of any shell optimizations that allow amortized linear growth over
13950 # repeated appends, instead of the typical quadratic growth present in naive
13951 # implementations.
13952 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13953   eval 'as_fn_append ()
13954   {
13955     eval $1+=\$2
13956   }'
13957 else
13958   as_fn_append ()
13959   {
13960     eval $1=\$$1\$2
13961   }
13962 fi # as_fn_append
13963
13964 # as_fn_arith ARG...
13965 # ------------------
13966 # Perform arithmetic evaluation on the ARGs, and store the result in the
13967 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13968 # must be portable across $(()) and expr.
13969 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13970   eval 'as_fn_arith ()
13971   {
13972     as_val=$(( $* ))
13973   }'
13974 else
13975   as_fn_arith ()
13976   {
13977     as_val=`expr "$@" || test $? -eq 1`
13978   }
13979 fi # as_fn_arith
13980
13981
13982 if expr a : '\(a\)' >/dev/null 2>&1 &&
13983    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13984   as_expr=expr
13985 else
13986   as_expr=false
13987 fi
13988
13989 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13990   as_basename=basename
13991 else
13992   as_basename=false
13993 fi
13994
13995 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13996   as_dirname=dirname
13997 else
13998   as_dirname=false
13999 fi
14000
14001 as_me=`$as_basename -- "$0" ||
14002 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14003          X"$0" : 'X\(//\)$' \| \
14004          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14005 $as_echo X/"$0" |
14006     sed '/^.*\/\([^/][^/]*\)\/*$/{
14007             s//\1/
14008             q
14009           }
14010           /^X\/\(\/\/\)$/{
14011             s//\1/
14012             q
14013           }
14014           /^X\/\(\/\).*/{
14015             s//\1/
14016             q
14017           }
14018           s/.*/./; q'`
14019
14020 # Avoid depending upon Character Ranges.
14021 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14022 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14023 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14024 as_cr_digits='0123456789'
14025 as_cr_alnum=$as_cr_Letters$as_cr_digits
14026
14027 ECHO_C= ECHO_N= ECHO_T=
14028 case `echo -n x` in #(((((
14029 -n*)
14030   case `echo 'xy\c'` in
14031   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14032   xy)  ECHO_C='\c';;
14033   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14034        ECHO_T=' ';;
14035   esac;;
14036 *)
14037   ECHO_N='-n';;
14038 esac
14039
14040 rm -f conf$$ conf$$.exe conf$$.file
14041 if test -d conf$$.dir; then
14042   rm -f conf$$.dir/conf$$.file
14043 else
14044   rm -f conf$$.dir
14045   mkdir conf$$.dir 2>/dev/null
14046 fi
14047 if (echo >conf$$.file) 2>/dev/null; then
14048   if ln -s conf$$.file conf$$ 2>/dev/null; then
14049     as_ln_s='ln -s'
14050     # ... but there are two gotchas:
14051     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14052     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14053     # In both cases, we have to default to `cp -p'.
14054     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14055       as_ln_s='cp -p'
14056   elif ln conf$$.file conf$$ 2>/dev/null; then
14057     as_ln_s=ln
14058   else
14059     as_ln_s='cp -p'
14060   fi
14061 else
14062   as_ln_s='cp -p'
14063 fi
14064 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14065 rmdir conf$$.dir 2>/dev/null
14066
14067
14068 # as_fn_mkdir_p
14069 # -------------
14070 # Create "$as_dir" as a directory, including parents if necessary.
14071 as_fn_mkdir_p ()
14072 {
14073
14074   case $as_dir in #(
14075   -*) as_dir=./$as_dir;;
14076   esac
14077   test -d "$as_dir" || eval $as_mkdir_p || {
14078     as_dirs=
14079     while :; do
14080       case $as_dir in #(
14081       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14082       *) as_qdir=$as_dir;;
14083       esac
14084       as_dirs="'$as_qdir' $as_dirs"
14085       as_dir=`$as_dirname -- "$as_dir" ||
14086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14087          X"$as_dir" : 'X\(//\)[^/]' \| \
14088          X"$as_dir" : 'X\(//\)$' \| \
14089          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14090 $as_echo X"$as_dir" |
14091     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14092             s//\1/
14093             q
14094           }
14095           /^X\(\/\/\)[^/].*/{
14096             s//\1/
14097             q
14098           }
14099           /^X\(\/\/\)$/{
14100             s//\1/
14101             q
14102           }
14103           /^X\(\/\).*/{
14104             s//\1/
14105             q
14106           }
14107           s/.*/./; q'`
14108       test -d "$as_dir" && break
14109     done
14110     test -z "$as_dirs" || eval "mkdir $as_dirs"
14111   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14112
14113
14114 } # as_fn_mkdir_p
14115 if mkdir -p . 2>/dev/null; then
14116   as_mkdir_p='mkdir -p "$as_dir"'
14117 else
14118   test -d ./-p && rmdir ./-p
14119   as_mkdir_p=false
14120 fi
14121
14122 if test -x / >/dev/null 2>&1; then
14123   as_test_x='test -x'
14124 else
14125   if ls -dL / >/dev/null 2>&1; then
14126     as_ls_L_option=L
14127   else
14128     as_ls_L_option=
14129   fi
14130   as_test_x='
14131     eval sh -c '\''
14132       if test -d "$1"; then
14133         test -d "$1/.";
14134       else
14135         case $1 in #(
14136         -*)set "./$1";;
14137         esac;
14138         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14139         ???[sx]*):;;*)false;;esac;fi
14140     '\'' sh
14141   '
14142 fi
14143 as_executable_p=$as_test_x
14144
14145 # Sed expression to map a string onto a valid CPP name.
14146 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14147
14148 # Sed expression to map a string onto a valid variable name.
14149 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14150
14151
14152 exec 6>&1
14153 ## ----------------------------------- ##
14154 ## Main body of $CONFIG_STATUS script. ##
14155 ## ----------------------------------- ##
14156 _ASEOF
14157 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14158
14159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14160 # Save the log message, to keep $0 and so on meaningful, and to
14161 # report actual input values of CONFIG_FILES etc. instead of their
14162 # values after options handling.
14163 ac_log="
14164 This file was extended by libffi $as_me 3.0.11-rc1, which was
14165 generated by GNU Autoconf 2.68.  Invocation command line was
14166
14167   CONFIG_FILES    = $CONFIG_FILES
14168   CONFIG_HEADERS  = $CONFIG_HEADERS
14169   CONFIG_LINKS    = $CONFIG_LINKS
14170   CONFIG_COMMANDS = $CONFIG_COMMANDS
14171   $ $0 $@
14172
14173 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14174 "
14175
14176 _ACEOF
14177
14178 case $ac_config_files in *"
14179 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14180 esac
14181
14182 case $ac_config_headers in *"
14183 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14184 esac
14185
14186
14187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14188 # Files that config.status was made for.
14189 config_files="$ac_config_files"
14190 config_headers="$ac_config_headers"
14191 config_links="$ac_config_links"
14192 config_commands="$ac_config_commands"
14193
14194 _ACEOF
14195
14196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14197 ac_cs_usage="\
14198 \`$as_me' instantiates files and other configuration actions
14199 from templates according to the current configuration.  Unless the files
14200 and actions are specified as TAGs, all are instantiated by default.
14201
14202 Usage: $0 [OPTION]... [TAG]...
14203
14204   -h, --help       print this help, then exit
14205   -V, --version    print version number and configuration settings, then exit
14206       --config     print configuration, then exit
14207   -q, --quiet, --silent
14208                    do not print progress messages
14209   -d, --debug      don't remove temporary files
14210       --recheck    update $as_me by reconfiguring in the same conditions
14211       --file=FILE[:TEMPLATE]
14212                    instantiate the configuration file FILE
14213       --header=FILE[:TEMPLATE]
14214                    instantiate the configuration header FILE
14215
14216 Configuration files:
14217 $config_files
14218
14219 Configuration headers:
14220 $config_headers
14221
14222 Configuration links:
14223 $config_links
14224
14225 Configuration commands:
14226 $config_commands
14227
14228 Report bugs to <http://sourceware.org/libffi.html>."
14229
14230 _ACEOF
14231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14232 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14233 ac_cs_version="\\
14234 libffi config.status 3.0.11-rc1
14235 configured by $0, generated by GNU Autoconf 2.68,
14236   with options \\"\$ac_cs_config\\"
14237
14238 Copyright (C) 2010 Free Software Foundation, Inc.
14239 This config.status script is free software; the Free Software Foundation
14240 gives unlimited permission to copy, distribute and modify it."
14241
14242 ac_pwd='$ac_pwd'
14243 srcdir='$srcdir'
14244 INSTALL='$INSTALL'
14245 MKDIR_P='$MKDIR_P'
14246 AWK='$AWK'
14247 test -n "\$AWK" || AWK=awk
14248 _ACEOF
14249
14250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14251 # The default lists apply if the user does not specify any file.
14252 ac_need_defaults=:
14253 while test $# != 0
14254 do
14255   case $1 in
14256   --*=?*)
14257     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14258     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14259     ac_shift=:
14260     ;;
14261   --*=)
14262     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14263     ac_optarg=
14264     ac_shift=:
14265     ;;
14266   *)
14267     ac_option=$1
14268     ac_optarg=$2
14269     ac_shift=shift
14270     ;;
14271   esac
14272
14273   case $ac_option in
14274   # Handling of the options.
14275   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14276     ac_cs_recheck=: ;;
14277   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14278     $as_echo "$ac_cs_version"; exit ;;
14279   --config | --confi | --conf | --con | --co | --c )
14280     $as_echo "$ac_cs_config"; exit ;;
14281   --debug | --debu | --deb | --de | --d | -d )
14282     debug=: ;;
14283   --file | --fil | --fi | --f )
14284     $ac_shift
14285     case $ac_optarg in
14286     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14287     '') as_fn_error $? "missing file argument" ;;
14288     esac
14289     as_fn_append CONFIG_FILES " '$ac_optarg'"
14290     ac_need_defaults=false;;
14291   --header | --heade | --head | --hea )
14292     $ac_shift
14293     case $ac_optarg in
14294     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14295     esac
14296     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14297     ac_need_defaults=false;;
14298   --he | --h)
14299     # Conflict between --help and --header
14300     as_fn_error $? "ambiguous option: \`$1'
14301 Try \`$0 --help' for more information.";;
14302   --help | --hel | -h )
14303     $as_echo "$ac_cs_usage"; exit ;;
14304   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14305   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14306     ac_cs_silent=: ;;
14307
14308   # This is an error.
14309   -*) as_fn_error $? "unrecognized option: \`$1'
14310 Try \`$0 --help' for more information." ;;
14311
14312   *) as_fn_append ac_config_targets " $1"
14313      ac_need_defaults=false ;;
14314
14315   esac
14316   shift
14317 done
14318
14319 ac_configure_extra_args=
14320
14321 if $ac_cs_silent; then
14322   exec 6>/dev/null
14323   ac_configure_extra_args="$ac_configure_extra_args --silent"
14324 fi
14325
14326 _ACEOF
14327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14328 if \$ac_cs_recheck; then
14329   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14330   shift
14331   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14332   CONFIG_SHELL='$SHELL'
14333   export CONFIG_SHELL
14334   exec "\$@"
14335 fi
14336
14337 _ACEOF
14338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14339 exec 5>>config.log
14340 {
14341   echo
14342   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14343 ## Running $as_me. ##
14344 _ASBOX
14345   $as_echo "$ac_log"
14346 } >&5
14347
14348 _ACEOF
14349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14350 #
14351 # INIT-COMMANDS
14352 #
14353 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14354
14355
14356 # The HP-UX ksh and POSIX shell print the target directory to stdout
14357 # if CDPATH is set.
14358 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14359
14360 sed_quote_subst='$sed_quote_subst'
14361 double_quote_subst='$double_quote_subst'
14362 delay_variable_subst='$delay_variable_subst'
14363 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14364 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14365 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14366 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14367 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14368 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14369 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14370 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14371 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14372 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14373 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14374 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14375 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14376 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14377 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14378 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14379 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14380 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14381 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14382 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14383 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14384 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14385 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14386 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14387 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14388 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14389 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14390 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14391 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14392 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14393 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14394 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14395 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14396 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14397 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14398 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14399 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14400 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14401 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14402 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14403 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14404 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14405 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14406 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14407 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14408 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14409 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14410 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14411 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14412 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14413 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14414 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14415 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14416 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14417 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14418 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"`'
14419 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14420 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14421 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14422 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14423 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14424 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14425 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14426 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14427 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14428 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14429 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14430 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14431 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14432 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14433 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14434 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14435 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14436 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14437 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14438 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14439 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14440 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14441 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14442 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14443 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14444 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14445 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14446 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14447 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14448 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14449 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14450 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14451 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14452 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14453 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14454 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14455 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14456 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14457 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14458 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14459 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14460 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14461 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14462 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14463 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14464 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14465 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14466 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14467 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14468 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14469 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14470 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14471 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14472 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14473 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14474 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14475 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14476 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14477 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14478 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14479 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14480 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14481 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14482 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14483 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14484 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14485 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14486 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14487 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14488 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14489 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14490 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14491 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14492 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14493
14494 LTCC='$LTCC'
14495 LTCFLAGS='$LTCFLAGS'
14496 compiler='$compiler_DEFAULT'
14497
14498 # A function that is used when there is no print builtin or printf.
14499 func_fallback_echo ()
14500 {
14501   eval 'cat <<_LTECHO_EOF
14502 \$1
14503 _LTECHO_EOF'
14504 }
14505
14506 # Quote evaled strings.
14507 for var in SHELL \
14508 ECHO \
14509 SED \
14510 GREP \
14511 EGREP \
14512 FGREP \
14513 LD \
14514 NM \
14515 LN_S \
14516 lt_SP2NL \
14517 lt_NL2SP \
14518 reload_flag \
14519 OBJDUMP \
14520 deplibs_check_method \
14521 file_magic_cmd \
14522 file_magic_glob \
14523 want_nocaseglob \
14524 DLLTOOL \
14525 sharedlib_from_linklib_cmd \
14526 AR \
14527 AR_FLAGS \
14528 archiver_list_spec \
14529 STRIP \
14530 RANLIB \
14531 CC \
14532 CFLAGS \
14533 compiler \
14534 lt_cv_sys_global_symbol_pipe \
14535 lt_cv_sys_global_symbol_to_cdecl \
14536 lt_cv_sys_global_symbol_to_c_name_address \
14537 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14538 nm_file_list_spec \
14539 lt_prog_compiler_no_builtin_flag \
14540 lt_prog_compiler_pic \
14541 lt_prog_compiler_wl \
14542 lt_prog_compiler_static \
14543 lt_cv_prog_compiler_c_o \
14544 need_locks \
14545 MANIFEST_TOOL \
14546 DSYMUTIL \
14547 NMEDIT \
14548 LIPO \
14549 OTOOL \
14550 OTOOL64 \
14551 shrext_cmds \
14552 export_dynamic_flag_spec \
14553 whole_archive_flag_spec \
14554 compiler_needs_object \
14555 with_gnu_ld \
14556 allow_undefined_flag \
14557 no_undefined_flag \
14558 hardcode_libdir_flag_spec \
14559 hardcode_libdir_flag_spec_ld \
14560 hardcode_libdir_separator \
14561 exclude_expsyms \
14562 include_expsyms \
14563 file_list_spec \
14564 variables_saved_for_relink \
14565 libname_spec \
14566 library_names_spec \
14567 soname_spec \
14568 install_override_mode \
14569 finish_eval \
14570 old_striplib \
14571 striplib; do
14572     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14573     *[\\\\\\\`\\"\\\$]*)
14574       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14575       ;;
14576     *)
14577       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14578       ;;
14579     esac
14580 done
14581
14582 # Double-quote double-evaled strings.
14583 for var in reload_cmds \
14584 old_postinstall_cmds \
14585 old_postuninstall_cmds \
14586 old_archive_cmds \
14587 extract_expsyms_cmds \
14588 old_archive_from_new_cmds \
14589 old_archive_from_expsyms_cmds \
14590 archive_cmds \
14591 archive_expsym_cmds \
14592 module_cmds \
14593 module_expsym_cmds \
14594 export_symbols_cmds \
14595 prelink_cmds \
14596 postlink_cmds \
14597 postinstall_cmds \
14598 postuninstall_cmds \
14599 finish_cmds \
14600 sys_lib_search_path_spec \
14601 sys_lib_dlsearch_path_spec; do
14602     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14603     *[\\\\\\\`\\"\\\$]*)
14604       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14605       ;;
14606     *)
14607       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14608       ;;
14609     esac
14610 done
14611
14612 ac_aux_dir='$ac_aux_dir'
14613 xsi_shell='$xsi_shell'
14614 lt_shell_append='$lt_shell_append'
14615
14616 # See if we are running on zsh, and set the options which allow our
14617 # commands through without removal of \ escapes INIT.
14618 if test -n "\${ZSH_VERSION+set}" ; then
14619    setopt NO_GLOB_SUBST
14620 fi
14621
14622
14623     PACKAGE='$PACKAGE'
14624     VERSION='$VERSION'
14625     TIMESTAMP='$TIMESTAMP'
14626     RM='$RM'
14627     ofile='$ofile'
14628
14629
14630
14631 TARGETDIR="$TARGETDIR"
14632
14633 _ACEOF
14634
14635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14636
14637 # Handling of arguments.
14638 for ac_config_target in $ac_config_targets
14639 do
14640   case $ac_config_target in
14641     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
14642     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14643     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14644     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
14645     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
14646     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
14647     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14648     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
14649     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14650     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14651     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14652     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
14653
14654   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14655   esac
14656 done
14657
14658
14659 # If the user did not use the arguments to specify the items to instantiate,
14660 # then the envvar interface is used.  Set only those that are not.
14661 # We use the long form for the default assignment because of an extremely
14662 # bizarre bug on SunOS 4.1.3.
14663 if $ac_need_defaults; then
14664   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14665   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14666   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14667   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14668 fi
14669
14670 # Have a temporary directory for convenience.  Make it in the build tree
14671 # simply because there is no reason against having it here, and in addition,
14672 # creating and moving files from /tmp can sometimes cause problems.
14673 # Hook for its removal unless debugging.
14674 # Note that there is a small window in which the directory will not be cleaned:
14675 # after its creation but before its name has been assigned to `$tmp'.
14676 $debug ||
14677 {
14678   tmp= ac_tmp=
14679   trap 'exit_status=$?
14680   : "${ac_tmp:=$tmp}"
14681   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14682 ' 0
14683   trap 'as_fn_exit 1' 1 2 13 15
14684 }
14685 # Create a (secure) tmp directory for tmp files.
14686
14687 {
14688   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14689   test -d "$tmp"
14690 }  ||
14691 {
14692   tmp=./conf$$-$RANDOM
14693   (umask 077 && mkdir "$tmp")
14694 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14695 ac_tmp=$tmp
14696
14697 # Set up the scripts for CONFIG_FILES section.
14698 # No need to generate them if there are no CONFIG_FILES.
14699 # This happens for instance with `./config.status config.h'.
14700 if test -n "$CONFIG_FILES"; then
14701
14702
14703 ac_cr=`echo X | tr X '\015'`
14704 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14705 # But we know of no other shell where ac_cr would be empty at this
14706 # point, so we can use a bashism as a fallback.
14707 if test "x$ac_cr" = x; then
14708   eval ac_cr=\$\'\\r\'
14709 fi
14710 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14711 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14712   ac_cs_awk_cr='\\r'
14713 else
14714   ac_cs_awk_cr=$ac_cr
14715 fi
14716
14717 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14718 _ACEOF
14719
14720
14721 {
14722   echo "cat >conf$$subs.awk <<_ACEOF" &&
14723   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14724   echo "_ACEOF"
14725 } >conf$$subs.sh ||
14726   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14727 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14728 ac_delim='%!_!# '
14729 for ac_last_try in false false false false false :; do
14730   . ./conf$$subs.sh ||
14731     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14732
14733   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14734   if test $ac_delim_n = $ac_delim_num; then
14735     break
14736   elif $ac_last_try; then
14737     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14738   else
14739     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14740   fi
14741 done
14742 rm -f conf$$subs.sh
14743
14744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14745 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14746 _ACEOF
14747 sed -n '
14748 h
14749 s/^/S["/; s/!.*/"]=/
14750 p
14751 g
14752 s/^[^!]*!//
14753 :repl
14754 t repl
14755 s/'"$ac_delim"'$//
14756 t delim
14757 :nl
14758 h
14759 s/\(.\{148\}\)..*/\1/
14760 t more1
14761 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14762 p
14763 n
14764 b repl
14765 :more1
14766 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14767 p
14768 g
14769 s/.\{148\}//
14770 t nl
14771 :delim
14772 h
14773 s/\(.\{148\}\)..*/\1/
14774 t more2
14775 s/["\\]/\\&/g; s/^/"/; s/$/"/
14776 p
14777 b
14778 :more2
14779 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14780 p
14781 g
14782 s/.\{148\}//
14783 t delim
14784 ' <conf$$subs.awk | sed '
14785 /^[^""]/{
14786   N
14787   s/\n//
14788 }
14789 ' >>$CONFIG_STATUS || ac_write_fail=1
14790 rm -f conf$$subs.awk
14791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14792 _ACAWK
14793 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14794   for (key in S) S_is_set[key] = 1
14795   FS = "\a"
14796
14797 }
14798 {
14799   line = $ 0
14800   nfields = split(line, field, "@")
14801   substed = 0
14802   len = length(field[1])
14803   for (i = 2; i < nfields; i++) {
14804     key = field[i]
14805     keylen = length(key)
14806     if (S_is_set[key]) {
14807       value = S[key]
14808       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14809       len += length(value) + length(field[++i])
14810       substed = 1
14811     } else
14812       len += 1 + keylen
14813   }
14814
14815   print line
14816 }
14817
14818 _ACAWK
14819 _ACEOF
14820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14821 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14822   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14823 else
14824   cat
14825 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14826   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14827 _ACEOF
14828
14829 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14830 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14831 # trailing colons and then remove the whole line if VPATH becomes empty
14832 # (actually we leave an empty line to preserve line numbers).
14833 if test "x$srcdir" = x.; then
14834   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14835 h
14836 s///
14837 s/^/:/
14838 s/[      ]*$/:/
14839 s/:\$(srcdir):/:/g
14840 s/:\${srcdir}:/:/g
14841 s/:@srcdir@:/:/g
14842 s/^:*//
14843 s/:*$//
14844 x
14845 s/\(=[   ]*\).*/\1/
14846 G
14847 s/\n//
14848 s/^[^=]*=[       ]*$//
14849 }'
14850 fi
14851
14852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14853 fi # test -n "$CONFIG_FILES"
14854
14855 # Set up the scripts for CONFIG_HEADERS section.
14856 # No need to generate them if there are no CONFIG_HEADERS.
14857 # This happens for instance with `./config.status Makefile'.
14858 if test -n "$CONFIG_HEADERS"; then
14859 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14860 BEGIN {
14861 _ACEOF
14862
14863 # Transform confdefs.h into an awk script `defines.awk', embedded as
14864 # here-document in config.status, that substitutes the proper values into
14865 # config.h.in to produce config.h.
14866
14867 # Create a delimiter string that does not exist in confdefs.h, to ease
14868 # handling of long lines.
14869 ac_delim='%!_!# '
14870 for ac_last_try in false false :; do
14871   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14872   if test -z "$ac_tt"; then
14873     break
14874   elif $ac_last_try; then
14875     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14876   else
14877     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14878   fi
14879 done
14880
14881 # For the awk script, D is an array of macro values keyed by name,
14882 # likewise P contains macro parameters if any.  Preserve backslash
14883 # newline sequences.
14884
14885 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14886 sed -n '
14887 s/.\{148\}/&'"$ac_delim"'/g
14888 t rset
14889 :rset
14890 s/^[     ]*#[    ]*define[       ][      ]*/ /
14891 t def
14892 d
14893 :def
14894 s/\\$//
14895 t bsnl
14896 s/["\\]/\\&/g
14897 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14898 D["\1"]=" \3"/p
14899 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14900 d
14901 :bsnl
14902 s/["\\]/\\&/g
14903 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14904 D["\1"]=" \3\\\\\\n"\\/p
14905 t cont
14906 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14907 t cont
14908 d
14909 :cont
14910 n
14911 s/.\{148\}/&'"$ac_delim"'/g
14912 t clear
14913 :clear
14914 s/\\$//
14915 t bsnlc
14916 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14917 d
14918 :bsnlc
14919 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14920 b cont
14921 ' <confdefs.h | sed '
14922 s/'"$ac_delim"'/"\\\
14923 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14924
14925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14926   for (key in D) D_is_set[key] = 1
14927   FS = "\a"
14928 }
14929 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14930   line = \$ 0
14931   split(line, arg, " ")
14932   if (arg[1] == "#") {
14933     defundef = arg[2]
14934     mac1 = arg[3]
14935   } else {
14936     defundef = substr(arg[1], 2)
14937     mac1 = arg[2]
14938   }
14939   split(mac1, mac2, "(") #)
14940   macro = mac2[1]
14941   prefix = substr(line, 1, index(line, defundef) - 1)
14942   if (D_is_set[macro]) {
14943     # Preserve the white space surrounding the "#".
14944     print prefix "define", macro P[macro] D[macro]
14945     next
14946   } else {
14947     # Replace #undef with comments.  This is necessary, for example,
14948     # in the case of _POSIX_SOURCE, which is predefined and required
14949     # on some systems where configure will not decide to define it.
14950     if (defundef == "undef") {
14951       print "/*", prefix defundef, macro, "*/"
14952       next
14953     }
14954   }
14955 }
14956 { print }
14957 _ACAWK
14958 _ACEOF
14959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14960   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14961 fi # test -n "$CONFIG_HEADERS"
14962
14963
14964 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
14965 shift
14966 for ac_tag
14967 do
14968   case $ac_tag in
14969   :[FHLC]) ac_mode=$ac_tag; continue;;
14970   esac
14971   case $ac_mode$ac_tag in
14972   :[FHL]*:*);;
14973   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14974   :[FH]-) ac_tag=-:-;;
14975   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14976   esac
14977   ac_save_IFS=$IFS
14978   IFS=:
14979   set x $ac_tag
14980   IFS=$ac_save_IFS
14981   shift
14982   ac_file=$1
14983   shift
14984
14985   case $ac_mode in
14986   :L) ac_source=$1;;
14987   :[FH])
14988     ac_file_inputs=
14989     for ac_f
14990     do
14991       case $ac_f in
14992       -) ac_f="$ac_tmp/stdin";;
14993       *) # Look for the file first in the build tree, then in the source tree
14994          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14995          # because $ac_f cannot contain `:'.
14996          test -f "$ac_f" ||
14997            case $ac_f in
14998            [\\/$]*) false;;
14999            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15000            esac ||
15001            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15002       esac
15003       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15004       as_fn_append ac_file_inputs " '$ac_f'"
15005     done
15006
15007     # Let's still pretend it is `configure' which instantiates (i.e., don't
15008     # use $as_me), people would be surprised to read:
15009     #    /* config.h.  Generated by config.status.  */
15010     configure_input='Generated from '`
15011           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15012         `' by configure.'
15013     if test x"$ac_file" != x-; then
15014       configure_input="$ac_file.  $configure_input"
15015       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15016 $as_echo "$as_me: creating $ac_file" >&6;}
15017     fi
15018     # Neutralize special characters interpreted by sed in replacement strings.
15019     case $configure_input in #(
15020     *\&* | *\|* | *\\* )
15021        ac_sed_conf_input=`$as_echo "$configure_input" |
15022        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15023     *) ac_sed_conf_input=$configure_input;;
15024     esac
15025
15026     case $ac_tag in
15027     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15028       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15029     esac
15030     ;;
15031   esac
15032
15033   ac_dir=`$as_dirname -- "$ac_file" ||
15034 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15035          X"$ac_file" : 'X\(//\)[^/]' \| \
15036          X"$ac_file" : 'X\(//\)$' \| \
15037          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15038 $as_echo X"$ac_file" |
15039     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15040             s//\1/
15041             q
15042           }
15043           /^X\(\/\/\)[^/].*/{
15044             s//\1/
15045             q
15046           }
15047           /^X\(\/\/\)$/{
15048             s//\1/
15049             q
15050           }
15051           /^X\(\/\).*/{
15052             s//\1/
15053             q
15054           }
15055           s/.*/./; q'`
15056   as_dir="$ac_dir"; as_fn_mkdir_p
15057   ac_builddir=.
15058
15059 case "$ac_dir" in
15060 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15061 *)
15062   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15063   # A ".." for each directory in $ac_dir_suffix.
15064   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15065   case $ac_top_builddir_sub in
15066   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15067   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15068   esac ;;
15069 esac
15070 ac_abs_top_builddir=$ac_pwd
15071 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15072 # for backward compatibility:
15073 ac_top_builddir=$ac_top_build_prefix
15074
15075 case $srcdir in
15076   .)  # We are building in place.
15077     ac_srcdir=.
15078     ac_top_srcdir=$ac_top_builddir_sub
15079     ac_abs_top_srcdir=$ac_pwd ;;
15080   [\\/]* | ?:[\\/]* )  # Absolute name.
15081     ac_srcdir=$srcdir$ac_dir_suffix;
15082     ac_top_srcdir=$srcdir
15083     ac_abs_top_srcdir=$srcdir ;;
15084   *) # Relative name.
15085     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15086     ac_top_srcdir=$ac_top_build_prefix$srcdir
15087     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15088 esac
15089 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15090
15091
15092   case $ac_mode in
15093   :F)
15094   #
15095   # CONFIG_FILE
15096   #
15097
15098   case $INSTALL in
15099   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15100   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15101   esac
15102   ac_MKDIR_P=$MKDIR_P
15103   case $MKDIR_P in
15104   [\\/$]* | ?:[\\/]* ) ;;
15105   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15106   esac
15107 _ACEOF
15108
15109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15110 # If the template does not know about datarootdir, expand it.
15111 # FIXME: This hack should be removed a few years after 2.60.
15112 ac_datarootdir_hack=; ac_datarootdir_seen=
15113 ac_sed_dataroot='
15114 /datarootdir/ {
15115   p
15116   q
15117 }
15118 /@datadir@/p
15119 /@docdir@/p
15120 /@infodir@/p
15121 /@localedir@/p
15122 /@mandir@/p'
15123 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15124 *datarootdir*) ac_datarootdir_seen=yes;;
15125 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15126   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15127 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15128 _ACEOF
15129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15130   ac_datarootdir_hack='
15131   s&@datadir@&$datadir&g
15132   s&@docdir@&$docdir&g
15133   s&@infodir@&$infodir&g
15134   s&@localedir@&$localedir&g
15135   s&@mandir@&$mandir&g
15136   s&\\\${datarootdir}&$datarootdir&g' ;;
15137 esac
15138 _ACEOF
15139
15140 # Neutralize VPATH when `$srcdir' = `.'.
15141 # Shell code in configure.ac might set extrasub.
15142 # FIXME: do we really want to maintain this feature?
15143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15144 ac_sed_extra="$ac_vpsub
15145 $extrasub
15146 _ACEOF
15147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15148 :t
15149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15150 s|@configure_input@|$ac_sed_conf_input|;t t
15151 s&@top_builddir@&$ac_top_builddir_sub&;t t
15152 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15153 s&@srcdir@&$ac_srcdir&;t t
15154 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15155 s&@top_srcdir@&$ac_top_srcdir&;t t
15156 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15157 s&@builddir@&$ac_builddir&;t t
15158 s&@abs_builddir@&$ac_abs_builddir&;t t
15159 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15160 s&@INSTALL@&$ac_INSTALL&;t t
15161 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15162 $ac_datarootdir_hack
15163 "
15164 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15165   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15166
15167 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15168   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15169   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15170       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15171   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15172 which seems to be undefined.  Please make sure it is defined" >&5
15173 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15174 which seems to be undefined.  Please make sure it is defined" >&2;}
15175
15176   rm -f "$ac_tmp/stdin"
15177   case $ac_file in
15178   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15179   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15180   esac \
15181   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15182  ;;
15183   :H)
15184   #
15185   # CONFIG_HEADER
15186   #
15187   if test x"$ac_file" != x-; then
15188     {
15189       $as_echo "/* $configure_input  */" \
15190       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15191     } >"$ac_tmp/config.h" \
15192       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15193     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15194       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15195 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15196     else
15197       rm -f "$ac_file"
15198       mv "$ac_tmp/config.h" "$ac_file" \
15199         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15200     fi
15201   else
15202     $as_echo "/* $configure_input  */" \
15203       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15204       || as_fn_error $? "could not create -" "$LINENO" 5
15205   fi
15206 # Compute "$ac_file"'s index in $config_headers.
15207 _am_arg="$ac_file"
15208 _am_stamp_count=1
15209 for _am_header in $config_headers :; do
15210   case $_am_header in
15211     $_am_arg | $_am_arg:* )
15212       break ;;
15213     * )
15214       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15215   esac
15216 done
15217 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15218 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15219          X"$_am_arg" : 'X\(//\)[^/]' \| \
15220          X"$_am_arg" : 'X\(//\)$' \| \
15221          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15222 $as_echo X"$_am_arg" |
15223     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15224             s//\1/
15225             q
15226           }
15227           /^X\(\/\/\)[^/].*/{
15228             s//\1/
15229             q
15230           }
15231           /^X\(\/\/\)$/{
15232             s//\1/
15233             q
15234           }
15235           /^X\(\/\).*/{
15236             s//\1/
15237             q
15238           }
15239           s/.*/./; q'`/stamp-h$_am_stamp_count
15240  ;;
15241   :L)
15242   #
15243   # CONFIG_LINK
15244   #
15245
15246   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15247     :
15248   else
15249     # Prefer the file from the source tree if names are identical.
15250     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15251       ac_source=$srcdir/$ac_source
15252     fi
15253
15254     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15255 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15256
15257     if test ! -r "$ac_source"; then
15258       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
15259     fi
15260     rm -f "$ac_file"
15261
15262     # Try a relative symlink, then a hard link, then a copy.
15263     case $ac_source in
15264     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15265         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15266     esac
15267     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15268       ln "$ac_source" "$ac_file" 2>/dev/null ||
15269       cp -p "$ac_source" "$ac_file" ||
15270       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15271   fi
15272  ;;
15273   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15274 $as_echo "$as_me: executing $ac_file commands" >&6;}
15275  ;;
15276   esac
15277
15278
15279   case $ac_file$ac_mode in
15280     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15281   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15282   # are listed without --file.  Let's play safe and only enable the eval
15283   # if we detect the quoting.
15284   case $CONFIG_FILES in
15285   *\'*) eval set x "$CONFIG_FILES" ;;
15286   *)   set x $CONFIG_FILES ;;
15287   esac
15288   shift
15289   for mf
15290   do
15291     # Strip MF so we end up with the name of the file.
15292     mf=`echo "$mf" | sed -e 's/:.*$//'`
15293     # Check whether this is an Automake generated Makefile or not.
15294     # We used to match only the files named `Makefile.in', but
15295     # some people rename them; so instead we look at the file content.
15296     # Grep'ing the first line is not enough: some people post-process
15297     # each Makefile.in and add a new line on top of each file to say so.
15298     # Grep'ing the whole file is not good either: AIX grep has a line
15299     # limit of 2048, but all sed's we know have understand at least 4000.
15300     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15301       dirpart=`$as_dirname -- "$mf" ||
15302 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15303          X"$mf" : 'X\(//\)[^/]' \| \
15304          X"$mf" : 'X\(//\)$' \| \
15305          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15306 $as_echo X"$mf" |
15307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15308             s//\1/
15309             q
15310           }
15311           /^X\(\/\/\)[^/].*/{
15312             s//\1/
15313             q
15314           }
15315           /^X\(\/\/\)$/{
15316             s//\1/
15317             q
15318           }
15319           /^X\(\/\).*/{
15320             s//\1/
15321             q
15322           }
15323           s/.*/./; q'`
15324     else
15325       continue
15326     fi
15327     # Extract the definition of DEPDIR, am__include, and am__quote
15328     # from the Makefile without running `make'.
15329     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15330     test -z "$DEPDIR" && continue
15331     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15332     test -z "am__include" && continue
15333     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15334     # When using ansi2knr, U may be empty or an underscore; expand it
15335     U=`sed -n 's/^U = //p' < "$mf"`
15336     # Find all dependency output files, they are included files with
15337     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15338     # simplest approach to changing $(DEPDIR) to its actual value in the
15339     # expansion.
15340     for file in `sed -n "
15341       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15342          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15343       # Make sure the directory exists.
15344       test -f "$dirpart/$file" && continue
15345       fdir=`$as_dirname -- "$file" ||
15346 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15347          X"$file" : 'X\(//\)[^/]' \| \
15348          X"$file" : 'X\(//\)$' \| \
15349          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15350 $as_echo X"$file" |
15351     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15352             s//\1/
15353             q
15354           }
15355           /^X\(\/\/\)[^/].*/{
15356             s//\1/
15357             q
15358           }
15359           /^X\(\/\/\)$/{
15360             s//\1/
15361             q
15362           }
15363           /^X\(\/\).*/{
15364             s//\1/
15365             q
15366           }
15367           s/.*/./; q'`
15368       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15369       # echo "creating $dirpart/$file"
15370       echo '# dummy' > "$dirpart/$file"
15371     done
15372   done
15373 }
15374  ;;
15375     "libtool":C)
15376
15377     # See if we are running on zsh, and set the options which allow our
15378     # commands through without removal of \ escapes.
15379     if test -n "${ZSH_VERSION+set}" ; then
15380       setopt NO_GLOB_SUBST
15381     fi
15382
15383     cfgfile="${ofile}T"
15384     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15385     $RM "$cfgfile"
15386
15387     cat <<_LT_EOF >> "$cfgfile"
15388 #! $SHELL
15389
15390 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15391 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15392 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15393 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15394 #
15395 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15396 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15397 #                 Inc.
15398 #   Written by Gordon Matzigkeit, 1996
15399 #
15400 #   This file is part of GNU Libtool.
15401 #
15402 # GNU Libtool is free software; you can redistribute it and/or
15403 # modify it under the terms of the GNU General Public License as
15404 # published by the Free Software Foundation; either version 2 of
15405 # the License, or (at your option) any later version.
15406 #
15407 # As a special exception to the GNU General Public License,
15408 # if you distribute this file as part of a program or library that
15409 # is built using GNU Libtool, you may include this file under the
15410 # same distribution terms that you use for the rest of that program.
15411 #
15412 # GNU Libtool is distributed in the hope that it will be useful,
15413 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15414 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15415 # GNU General Public License for more details.
15416 #
15417 # You should have received a copy of the GNU General Public License
15418 # along with GNU Libtool; see the file COPYING.  If not, a copy
15419 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15420 # obtained by writing to the Free Software Foundation, Inc.,
15421 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15422
15423
15424 # The names of the tagged configurations supported by this script.
15425 available_tags=""
15426
15427 # ### BEGIN LIBTOOL CONFIG
15428
15429 # Which release of libtool.m4 was used?
15430 macro_version=$macro_version
15431 macro_revision=$macro_revision
15432
15433 # Whether or not to build shared libraries.
15434 build_libtool_libs=$enable_shared
15435
15436 # Whether or not to build static libraries.
15437 build_old_libs=$enable_static
15438
15439 # What type of objects to build.
15440 pic_mode=$pic_mode
15441
15442 # Whether or not to optimize for fast installation.
15443 fast_install=$enable_fast_install
15444
15445 # Shell to use when invoking shell scripts.
15446 SHELL=$lt_SHELL
15447
15448 # An echo program that protects backslashes.
15449 ECHO=$lt_ECHO
15450
15451 # The host system.
15452 host_alias=$host_alias
15453 host=$host
15454 host_os=$host_os
15455
15456 # The build system.
15457 build_alias=$build_alias
15458 build=$build
15459 build_os=$build_os
15460
15461 # A sed program that does not truncate output.
15462 SED=$lt_SED
15463
15464 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15465 Xsed="\$SED -e 1s/^X//"
15466
15467 # A grep program that handles long lines.
15468 GREP=$lt_GREP
15469
15470 # An ERE matcher.
15471 EGREP=$lt_EGREP
15472
15473 # A literal string matcher.
15474 FGREP=$lt_FGREP
15475
15476 # A BSD- or MS-compatible name lister.
15477 NM=$lt_NM
15478
15479 # Whether we need soft or hard links.
15480 LN_S=$lt_LN_S
15481
15482 # What is the maximum length of a command?
15483 max_cmd_len=$max_cmd_len
15484
15485 # Object file suffix (normally "o").
15486 objext=$ac_objext
15487
15488 # Executable file suffix (normally "").
15489 exeext=$exeext
15490
15491 # whether the shell understands "unset".
15492 lt_unset=$lt_unset
15493
15494 # turn spaces into newlines.
15495 SP2NL=$lt_lt_SP2NL
15496
15497 # turn newlines into spaces.
15498 NL2SP=$lt_lt_NL2SP
15499
15500 # convert \$build file names to \$host format.
15501 to_host_file_cmd=$lt_cv_to_host_file_cmd
15502
15503 # convert \$build files to toolchain format.
15504 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15505
15506 # An object symbol dumper.
15507 OBJDUMP=$lt_OBJDUMP
15508
15509 # Method to check whether dependent libraries are shared objects.
15510 deplibs_check_method=$lt_deplibs_check_method
15511
15512 # Command to use when deplibs_check_method = "file_magic".
15513 file_magic_cmd=$lt_file_magic_cmd
15514
15515 # How to find potential files when deplibs_check_method = "file_magic".
15516 file_magic_glob=$lt_file_magic_glob
15517
15518 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15519 want_nocaseglob=$lt_want_nocaseglob
15520
15521 # DLL creation program.
15522 DLLTOOL=$lt_DLLTOOL
15523
15524 # Command to associate shared and link libraries.
15525 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15526
15527 # The archiver.
15528 AR=$lt_AR
15529
15530 # Flags to create an archive.
15531 AR_FLAGS=$lt_AR_FLAGS
15532
15533 # How to feed a file listing to the archiver.
15534 archiver_list_spec=$lt_archiver_list_spec
15535
15536 # A symbol stripping program.
15537 STRIP=$lt_STRIP
15538
15539 # Commands used to install an old-style archive.
15540 RANLIB=$lt_RANLIB
15541 old_postinstall_cmds=$lt_old_postinstall_cmds
15542 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15543
15544 # Whether to use a lock for old archive extraction.
15545 lock_old_archive_extraction=$lock_old_archive_extraction
15546
15547 # A C compiler.
15548 LTCC=$lt_CC
15549
15550 # LTCC compiler flags.
15551 LTCFLAGS=$lt_CFLAGS
15552
15553 # Take the output of nm and produce a listing of raw symbols and C names.
15554 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15555
15556 # Transform the output of nm in a proper C declaration.
15557 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15558
15559 # Transform the output of nm in a C name address pair.
15560 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15561
15562 # Transform the output of nm in a C name address pair when lib prefix is needed.
15563 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15564
15565 # Specify filename containing input files for \$NM.
15566 nm_file_list_spec=$lt_nm_file_list_spec
15567
15568 # The root where to search for dependent libraries,and in which our libraries should be installed.
15569 lt_sysroot=$lt_sysroot
15570
15571 # The name of the directory that contains temporary libtool files.
15572 objdir=$objdir
15573
15574 # Used to examine libraries when file_magic_cmd begins with "file".
15575 MAGIC_CMD=$MAGIC_CMD
15576
15577 # Must we lock files when doing compilation?
15578 need_locks=$lt_need_locks
15579
15580 # Manifest tool.
15581 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15582
15583 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15584 DSYMUTIL=$lt_DSYMUTIL
15585
15586 # Tool to change global to local symbols on Mac OS X.
15587 NMEDIT=$lt_NMEDIT
15588
15589 # Tool to manipulate fat objects and archives on Mac OS X.
15590 LIPO=$lt_LIPO
15591
15592 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15593 OTOOL=$lt_OTOOL
15594
15595 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15596 OTOOL64=$lt_OTOOL64
15597
15598 # Old archive suffix (normally "a").
15599 libext=$libext
15600
15601 # Shared library suffix (normally ".so").
15602 shrext_cmds=$lt_shrext_cmds
15603
15604 # The commands to extract the exported symbol list from a shared archive.
15605 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15606
15607 # Variables whose values should be saved in libtool wrapper scripts and
15608 # restored at link time.
15609 variables_saved_for_relink=$lt_variables_saved_for_relink
15610
15611 # Do we need the "lib" prefix for modules?
15612 need_lib_prefix=$need_lib_prefix
15613
15614 # Do we need a version for libraries?
15615 need_version=$need_version
15616
15617 # Library versioning type.
15618 version_type=$version_type
15619
15620 # Shared library runtime path variable.
15621 runpath_var=$runpath_var
15622
15623 # Shared library path variable.
15624 shlibpath_var=$shlibpath_var
15625
15626 # Is shlibpath searched before the hard-coded library search path?
15627 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15628
15629 # Format of library name prefix.
15630 libname_spec=$lt_libname_spec
15631
15632 # List of archive names.  First name is the real one, the rest are links.
15633 # The last name is the one that the linker finds with -lNAME
15634 library_names_spec=$lt_library_names_spec
15635
15636 # The coded name of the library, if different from the real name.
15637 soname_spec=$lt_soname_spec
15638
15639 # Permission mode override for installation of shared libraries.
15640 install_override_mode=$lt_install_override_mode
15641
15642 # Command to use after installation of a shared archive.
15643 postinstall_cmds=$lt_postinstall_cmds
15644
15645 # Command to use after uninstallation of a shared archive.
15646 postuninstall_cmds=$lt_postuninstall_cmds
15647
15648 # Commands used to finish a libtool library installation in a directory.
15649 finish_cmds=$lt_finish_cmds
15650
15651 # As "finish_cmds", except a single script fragment to be evaled but
15652 # not shown.
15653 finish_eval=$lt_finish_eval
15654
15655 # Whether we should hardcode library paths into libraries.
15656 hardcode_into_libs=$hardcode_into_libs
15657
15658 # Compile-time system search path for libraries.
15659 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15660
15661 # Run-time system search path for libraries.
15662 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15663
15664 # Whether dlopen is supported.
15665 dlopen_support=$enable_dlopen
15666
15667 # Whether dlopen of programs is supported.
15668 dlopen_self=$enable_dlopen_self
15669
15670 # Whether dlopen of statically linked programs is supported.
15671 dlopen_self_static=$enable_dlopen_self_static
15672
15673 # Commands to strip libraries.
15674 old_striplib=$lt_old_striplib
15675 striplib=$lt_striplib
15676
15677
15678 # The linker used to build libraries.
15679 LD=$lt_LD
15680
15681 # How to create reloadable object files.
15682 reload_flag=$lt_reload_flag
15683 reload_cmds=$lt_reload_cmds
15684
15685 # Commands used to build an old-style archive.
15686 old_archive_cmds=$lt_old_archive_cmds
15687
15688 # A language specific compiler.
15689 CC=$lt_compiler
15690
15691 # Is the compiler the GNU compiler?
15692 with_gcc=$GCC
15693
15694 # Compiler flag to turn off builtin functions.
15695 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15696
15697 # Additional compiler flags for building library objects.
15698 pic_flag=$lt_lt_prog_compiler_pic
15699
15700 # How to pass a linker flag through the compiler.
15701 wl=$lt_lt_prog_compiler_wl
15702
15703 # Compiler flag to prevent dynamic linking.
15704 link_static_flag=$lt_lt_prog_compiler_static
15705
15706 # Does compiler simultaneously support -c and -o options?
15707 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15708
15709 # Whether or not to add -lc for building shared libraries.
15710 build_libtool_need_lc=$archive_cmds_need_lc
15711
15712 # Whether or not to disallow shared libs when runtime libs are static.
15713 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15714
15715 # Compiler flag to allow reflexive dlopens.
15716 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15717
15718 # Compiler flag to generate shared objects directly from archives.
15719 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15720
15721 # Whether the compiler copes with passing no objects directly.
15722 compiler_needs_object=$lt_compiler_needs_object
15723
15724 # Create an old-style archive from a shared archive.
15725 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15726
15727 # Create a temporary old-style archive to link instead of a shared archive.
15728 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15729
15730 # Commands used to build a shared archive.
15731 archive_cmds=$lt_archive_cmds
15732 archive_expsym_cmds=$lt_archive_expsym_cmds
15733
15734 # Commands used to build a loadable module if different from building
15735 # a shared archive.
15736 module_cmds=$lt_module_cmds
15737 module_expsym_cmds=$lt_module_expsym_cmds
15738
15739 # Whether we are building with GNU ld or not.
15740 with_gnu_ld=$lt_with_gnu_ld
15741
15742 # Flag that allows shared libraries with undefined symbols to be built.
15743 allow_undefined_flag=$lt_allow_undefined_flag
15744
15745 # Flag that enforces no undefined symbols.
15746 no_undefined_flag=$lt_no_undefined_flag
15747
15748 # Flag to hardcode \$libdir into a binary during linking.
15749 # This must work even if \$libdir does not exist
15750 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15751
15752 # If ld is used when linking, flag to hardcode \$libdir into a binary
15753 # during linking.  This must work even if \$libdir does not exist.
15754 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15755
15756 # Whether we need a single "-rpath" flag with a separated argument.
15757 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15758
15759 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15760 # DIR into the resulting binary.
15761 hardcode_direct=$hardcode_direct
15762
15763 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15764 # DIR into the resulting binary and the resulting library dependency is
15765 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15766 # library is relocated.
15767 hardcode_direct_absolute=$hardcode_direct_absolute
15768
15769 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15770 # into the resulting binary.
15771 hardcode_minus_L=$hardcode_minus_L
15772
15773 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15774 # into the resulting binary.
15775 hardcode_shlibpath_var=$hardcode_shlibpath_var
15776
15777 # Set to "yes" if building a shared library automatically hardcodes DIR
15778 # into the library and all subsequent libraries and executables linked
15779 # against it.
15780 hardcode_automatic=$hardcode_automatic
15781
15782 # Set to yes if linker adds runtime paths of dependent libraries
15783 # to runtime path list.
15784 inherit_rpath=$inherit_rpath
15785
15786 # Whether libtool must link a program against all its dependency libraries.
15787 link_all_deplibs=$link_all_deplibs
15788
15789 # Set to "yes" if exported symbols are required.
15790 always_export_symbols=$always_export_symbols
15791
15792 # The commands to list exported symbols.
15793 export_symbols_cmds=$lt_export_symbols_cmds
15794
15795 # Symbols that should not be listed in the preloaded symbols.
15796 exclude_expsyms=$lt_exclude_expsyms
15797
15798 # Symbols that must always be exported.
15799 include_expsyms=$lt_include_expsyms
15800
15801 # Commands necessary for linking programs (against libraries) with templates.
15802 prelink_cmds=$lt_prelink_cmds
15803
15804 # Commands necessary for finishing linking programs.
15805 postlink_cmds=$lt_postlink_cmds
15806
15807 # Specify filename containing input files.
15808 file_list_spec=$lt_file_list_spec
15809
15810 # How to hardcode a shared library path into an executable.
15811 hardcode_action=$hardcode_action
15812
15813 # ### END LIBTOOL CONFIG
15814
15815 _LT_EOF
15816
15817   case $host_os in
15818   aix3*)
15819     cat <<\_LT_EOF >> "$cfgfile"
15820 # AIX sometimes has problems with the GCC collect2 program.  For some
15821 # reason, if we set the COLLECT_NAMES environment variable, the problems
15822 # vanish in a puff of smoke.
15823 if test "X${COLLECT_NAMES+set}" != Xset; then
15824   COLLECT_NAMES=
15825   export COLLECT_NAMES
15826 fi
15827 _LT_EOF
15828     ;;
15829   esac
15830
15831
15832 ltmain="$ac_aux_dir/ltmain.sh"
15833
15834
15835   # We use sed instead of cat because bash on DJGPP gets confused if
15836   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15837   # text mode, it properly converts lines to CR/LF.  This bash problem
15838   # is reportedly fixed, but why not run on old versions too?
15839   sed '$q' "$ltmain" >> "$cfgfile" \
15840      || (rm -f "$cfgfile"; exit 1)
15841
15842   if test x"$xsi_shell" = xyes; then
15843   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15844 func_dirname ()\
15845 {\
15846 \    case ${1} in\
15847 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15848 \      *  ) func_dirname_result="${3}" ;;\
15849 \    esac\
15850 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15851   && mv -f "$cfgfile.tmp" "$cfgfile" \
15852     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15853 test 0 -eq $? || _lt_function_replace_fail=:
15854
15855
15856   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15857 func_basename ()\
15858 {\
15859 \    func_basename_result="${1##*/}"\
15860 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15861   && mv -f "$cfgfile.tmp" "$cfgfile" \
15862     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15863 test 0 -eq $? || _lt_function_replace_fail=:
15864
15865
15866   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15867 func_dirname_and_basename ()\
15868 {\
15869 \    case ${1} in\
15870 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15871 \      *  ) func_dirname_result="${3}" ;;\
15872 \    esac\
15873 \    func_basename_result="${1##*/}"\
15874 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15875   && mv -f "$cfgfile.tmp" "$cfgfile" \
15876     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15877 test 0 -eq $? || _lt_function_replace_fail=:
15878
15879
15880   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15881 func_stripname ()\
15882 {\
15883 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15884 \    # positional parameters, so assign one to ordinary parameter first.\
15885 \    func_stripname_result=${3}\
15886 \    func_stripname_result=${func_stripname_result#"${1}"}\
15887 \    func_stripname_result=${func_stripname_result%"${2}"}\
15888 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15889   && mv -f "$cfgfile.tmp" "$cfgfile" \
15890     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15891 test 0 -eq $? || _lt_function_replace_fail=:
15892
15893
15894   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15895 func_split_long_opt ()\
15896 {\
15897 \    func_split_long_opt_name=${1%%=*}\
15898 \    func_split_long_opt_arg=${1#*=}\
15899 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15900   && mv -f "$cfgfile.tmp" "$cfgfile" \
15901     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15902 test 0 -eq $? || _lt_function_replace_fail=:
15903
15904
15905   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15906 func_split_short_opt ()\
15907 {\
15908 \    func_split_short_opt_arg=${1#??}\
15909 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15910 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15911   && mv -f "$cfgfile.tmp" "$cfgfile" \
15912     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15913 test 0 -eq $? || _lt_function_replace_fail=:
15914
15915
15916   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15917 func_lo2o ()\
15918 {\
15919 \    case ${1} in\
15920 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15921 \      *)    func_lo2o_result=${1} ;;\
15922 \    esac\
15923 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15924   && mv -f "$cfgfile.tmp" "$cfgfile" \
15925     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15926 test 0 -eq $? || _lt_function_replace_fail=:
15927
15928
15929   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15930 func_xform ()\
15931 {\
15932     func_xform_result=${1%.*}.lo\
15933 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15934   && mv -f "$cfgfile.tmp" "$cfgfile" \
15935     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15936 test 0 -eq $? || _lt_function_replace_fail=:
15937
15938
15939   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15940 func_arith ()\
15941 {\
15942     func_arith_result=$(( $* ))\
15943 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15944   && mv -f "$cfgfile.tmp" "$cfgfile" \
15945     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15946 test 0 -eq $? || _lt_function_replace_fail=:
15947
15948
15949   sed -e '/^func_len ()$/,/^} # func_len /c\
15950 func_len ()\
15951 {\
15952     func_len_result=${#1}\
15953 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15954   && mv -f "$cfgfile.tmp" "$cfgfile" \
15955     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15956 test 0 -eq $? || _lt_function_replace_fail=:
15957
15958 fi
15959
15960 if test x"$lt_shell_append" = xyes; then
15961   sed -e '/^func_append ()$/,/^} # func_append /c\
15962 func_append ()\
15963 {\
15964     eval "${1}+=\\${2}"\
15965 } # Extended-shell func_append 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_append_quoted ()$/,/^} # func_append_quoted /c\
15972 func_append_quoted ()\
15973 {\
15974 \    func_quote_for_eval "${2}"\
15975 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15976 } # Extended-shell func_append_quoted 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   # Save a `func_append' function call where possible by direct use of '+='
15983   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15984     && mv -f "$cfgfile.tmp" "$cfgfile" \
15985       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15986   test 0 -eq $? || _lt_function_replace_fail=:
15987 else
15988   # Save a `func_append' function call even when '+=' is not available
15989   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15990     && mv -f "$cfgfile.tmp" "$cfgfile" \
15991       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15992   test 0 -eq $? || _lt_function_replace_fail=:
15993 fi
15994
15995 if test x"$_lt_function_replace_fail" = x":"; then
15996   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15997 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15998 fi
15999
16000
16001    mv -f "$cfgfile" "$ofile" ||
16002     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16003   chmod +x "$ofile"
16004
16005  ;;
16006     "include":C) test -d include || mkdir include ;;
16007     "src":C)
16008 test -d src || mkdir src
16009 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
16010  ;;
16011
16012   esac
16013 done # for ac_tag
16014
16015
16016 as_fn_exit 0
16017 _ACEOF
16018 ac_clean_files=$ac_clean_files_save
16019
16020 test $ac_write_fail = 0 ||
16021   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16022
16023
16024 # configure is writing to config.log, and then calls config.status.
16025 # config.status does its own redirection, appending to config.log.
16026 # Unfortunately, on DOS this fails, as config.log is still kept open
16027 # by configure, so config.status won't be able to write to it; its
16028 # output is simply discarded.  So we exec the FD to /dev/null,
16029 # effectively closing config.log, so it can be properly (re)opened and
16030 # appended to by config.status.  When coming back to configure, we
16031 # need to make the FD available again.
16032 if test "$no_create" != yes; then
16033   ac_cs_success=:
16034   ac_config_status_args=
16035   test "$silent" = yes &&
16036     ac_config_status_args="$ac_config_status_args --quiet"
16037   exec 5>/dev/null
16038   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16039   exec 5>>config.log
16040   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16041   # would make configure fail if this is the last instruction.
16042   $ac_cs_success || as_fn_exit 1
16043 fi
16044 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16045   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16046 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16047 fi
16048