Add missing aarch64 configury bits
[platform/upstream/libffi.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libffi 3.0.11.
4 #
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://github.com/atgreen/libffi/issues about your
251 $0: system, including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libffi'
572 PACKAGE_TARNAME='libffi'
573 PACKAGE_VERSION='3.0.11'
574 PACKAGE_STRING='libffi 3.0.11'
575 PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
576 PACKAGE_URL=''
577
578 # Factoring default headers for most tests.
579 ac_includes_default="\
580 #include <stdio.h>
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
583 #endif
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
586 #endif
587 #ifdef STDC_HEADERS
588 # include <stdlib.h>
589 # include <stddef.h>
590 #else
591 # ifdef HAVE_STDLIB_H
592 #  include <stdlib.h>
593 # endif
594 #endif
595 #ifdef HAVE_STRING_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597 #  include <memory.h>
598 # endif
599 # include <string.h>
600 #endif
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
603 #endif
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
606 #endif
607 #ifdef HAVE_STDINT_H
608 # include <stdint.h>
609 #endif
610 #ifdef HAVE_UNISTD_H
611 # include <unistd.h>
612 #endif"
613
614 ac_subst_vars='am__EXEEXT_FALSE
615 am__EXEEXT_TRUE
616 LTLIBOBJS
617 LIBOBJS
618 toolexeclibdir
619 toolexecdir
620 FFI_DEBUG_FALSE
621 FFI_DEBUG_TRUE
622 TARGETDIR
623 TARGET
624 FFI_EXEC_TRAMPOLINE_TABLE
625 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
626 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
627 sys_symbol_underscore
628 HAVE_LONG_DOUBLE
629 ALLOCA
630 TILE_FALSE
631 TILE_TRUE
632 PA64_HPUX_FALSE
633 PA64_HPUX_TRUE
634 PA_HPUX_FALSE
635 PA_HPUX_TRUE
636 PA_LINUX_FALSE
637 PA_LINUX_TRUE
638 SH64_FALSE
639 SH64_TRUE
640 SH_FALSE
641 SH_TRUE
642 X86_64_FALSE
643 X86_64_TRUE
644 S390_FALSE
645 S390_TRUE
646 FRV_FALSE
647 FRV_TRUE
648 LIBFFI_CRIS_FALSE
649 LIBFFI_CRIS_TRUE
650 AVR32_FALSE
651 AVR32_TRUE
652 ARM_FALSE
653 ARM_TRUE
654 AARCH64_FALSE
655 AARCH64_TRUE
656 POWERPC_FREEBSD_FALSE
657 POWERPC_FREEBSD_TRUE
658 POWERPC_DARWIN_FALSE
659 POWERPC_DARWIN_TRUE
660 POWERPC_AIX_FALSE
661 POWERPC_AIX_TRUE
662 POWERPC_FALSE
663 POWERPC_TRUE
664 MOXIE_FALSE
665 MOXIE_TRUE
666 M68K_FALSE
667 M68K_TRUE
668 M32R_FALSE
669 M32R_TRUE
670 IA64_FALSE
671 IA64_TRUE
672 ALPHA_FALSE
673 ALPHA_TRUE
674 X86_DARWIN_FALSE
675 X86_DARWIN_TRUE
676 X86_WIN64_FALSE
677 X86_WIN64_TRUE
678 X86_WIN32_FALSE
679 X86_WIN32_TRUE
680 X86_FREEBSD_FALSE
681 X86_FREEBSD_TRUE
682 X86_FALSE
683 X86_TRUE
684 SPARC_FALSE
685 SPARC_TRUE
686 BFIN_FALSE
687 BFIN_TRUE
688 MIPS_FALSE
689 MIPS_TRUE
690 AM_LTLDFLAGS
691 AM_RUNTESTFLAGS
692 TESTSUBDIR_FALSE
693 TESTSUBDIR_TRUE
694 MAINT
695 MAINTAINER_MODE_FALSE
696 MAINTAINER_MODE_TRUE
697 PRTDIAG
698 CPP
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 MANIFEST_TOOL
705 RANLIB
706 ac_ct_AR
707 AR
708 DLLTOOL
709 OBJDUMP
710 LN_S
711 NM
712 ac_ct_DUMPBIN
713 DUMPBIN
714 LD
715 FGREP
716 EGREP
717 GREP
718 SED
719 LIBTOOL
720 am__fastdepCCAS_FALSE
721 am__fastdepCCAS_TRUE
722 CCASDEPMODE
723 CCASFLAGS
724 CCAS
725 am__fastdepCC_FALSE
726 am__fastdepCC_TRUE
727 CCDEPMODE
728 am__nodep
729 AMDEPBACKSLASH
730 AMDEP_FALSE
731 AMDEP_TRUE
732 am__quote
733 am__include
734 DEPDIR
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
741 CC
742 am__untar
743 am__tar
744 AMTAR
745 am__leading_dot
746 SET_MAKE
747 AWK
748 mkdir_p
749 MKDIR_P
750 INSTALL_STRIP_PROGRAM
751 STRIP
752 install_sh
753 MAKEINFO
754 AUTOHEADER
755 AUTOMAKE
756 AUTOCONF
757 ACLOCAL
758 VERSION
759 PACKAGE
760 CYGPATH_W
761 am__isrc
762 INSTALL_DATA
763 INSTALL_SCRIPT
764 INSTALL_PROGRAM
765 ax_enable_builddir_sed
766 target_os
767 target_vendor
768 target_cpu
769 target
770 host_os
771 host_vendor
772 host_cpu
773 host
774 build_os
775 build_vendor
776 build_cpu
777 build
778 target_alias
779 host_alias
780 build_alias
781 LIBS
782 ECHO_T
783 ECHO_N
784 ECHO_C
785 DEFS
786 mandir
787 localedir
788 libdir
789 psdir
790 pdfdir
791 dvidir
792 htmldir
793 infodir
794 docdir
795 oldincludedir
796 includedir
797 localstatedir
798 sharedstatedir
799 sysconfdir
800 datadir
801 datarootdir
802 libexecdir
803 sbindir
804 bindir
805 program_transform_name
806 prefix
807 exec_prefix
808 PACKAGE_URL
809 PACKAGE_BUGREPORT
810 PACKAGE_STRING
811 PACKAGE_VERSION
812 PACKAGE_TARNAME
813 PACKAGE_NAME
814 PATH_SEPARATOR
815 SHELL'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 enable_builddir
820 enable_dependency_tracking
821 enable_shared
822 enable_static
823 with_pic
824 enable_fast_install
825 with_gnu_ld
826 with_sysroot
827 enable_libtool_lock
828 enable_portable_binary
829 with_gcc_arch
830 enable_maintainer_mode
831 enable_pax_emutramp
832 enable_debug
833 enable_structs
834 enable_raw_api
835 enable_purify_safety
836 '
837       ac_precious_vars='build_alias
838 host_alias
839 target_alias
840 CCAS
841 CCASFLAGS
842 CPP
843 CPPFLAGS'
844
845
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
867
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
893
894 ac_prev=
895 ac_dashdash=
896 for ac_option
897 do
898   # If the previous option needs an argument, assign it.
899   if test -n "$ac_prev"; then
900     eval $ac_prev=\$ac_option
901     ac_prev=
902     continue
903   fi
904
905   case $ac_option in
906   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907   *=)   ac_optarg= ;;
908   *)    ac_optarg=yes ;;
909   esac
910
911   # Accept the important Cygnus configure options, so we can diagnose typos.
912
913   case $ac_dashdash$ac_option in
914   --)
915     ac_dashdash=yes ;;
916
917   -bindir | --bindir | --bindi | --bind | --bin | --bi)
918     ac_prev=bindir ;;
919   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920     bindir=$ac_optarg ;;
921
922   -build | --build | --buil | --bui | --bu)
923     ac_prev=build_alias ;;
924   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925     build_alias=$ac_optarg ;;
926
927   -cache-file | --cache-file | --cache-fil | --cache-fi \
928   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929     ac_prev=cache_file ;;
930   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932     cache_file=$ac_optarg ;;
933
934   --config-cache | -C)
935     cache_file=config.cache ;;
936
937   -datadir | --datadir | --datadi | --datad)
938     ac_prev=datadir ;;
939   -datadir=* | --datadir=* | --datadi=* | --datad=*)
940     datadir=$ac_optarg ;;
941
942   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943   | --dataroo | --dataro | --datar)
944     ac_prev=datarootdir ;;
945   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947     datarootdir=$ac_optarg ;;
948
949   -disable-* | --disable-*)
950     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953       as_fn_error $? "invalid feature name: $ac_useropt"
954     ac_useropt_orig=$ac_useropt
955     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956     case $ac_user_opts in
957       *"
958 "enable_$ac_useropt"
959 "*) ;;
960       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961          ac_unrecognized_sep=', ';;
962     esac
963     eval enable_$ac_useropt=no ;;
964
965   -docdir | --docdir | --docdi | --doc | --do)
966     ac_prev=docdir ;;
967   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968     docdir=$ac_optarg ;;
969
970   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971     ac_prev=dvidir ;;
972   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973     dvidir=$ac_optarg ;;
974
975   -enable-* | --enable-*)
976     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977     # Reject names that are not valid shell variable names.
978     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979       as_fn_error $? "invalid feature name: $ac_useropt"
980     ac_useropt_orig=$ac_useropt
981     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982     case $ac_user_opts in
983       *"
984 "enable_$ac_useropt"
985 "*) ;;
986       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987          ac_unrecognized_sep=', ';;
988     esac
989     eval enable_$ac_useropt=\$ac_optarg ;;
990
991   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993   | --exec | --exe | --ex)
994     ac_prev=exec_prefix ;;
995   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997   | --exec=* | --exe=* | --ex=*)
998     exec_prefix=$ac_optarg ;;
999
1000   -gas | --gas | --ga | --g)
1001     # Obsolete; use --with-gas.
1002     with_gas=yes ;;
1003
1004   -help | --help | --hel | --he | -h)
1005     ac_init_help=long ;;
1006   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007     ac_init_help=recursive ;;
1008   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009     ac_init_help=short ;;
1010
1011   -host | --host | --hos | --ho)
1012     ac_prev=host_alias ;;
1013   -host=* | --host=* | --hos=* | --ho=*)
1014     host_alias=$ac_optarg ;;
1015
1016   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017     ac_prev=htmldir ;;
1018   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019   | --ht=*)
1020     htmldir=$ac_optarg ;;
1021
1022   -includedir | --includedir | --includedi | --included | --include \
1023   | --includ | --inclu | --incl | --inc)
1024     ac_prev=includedir ;;
1025   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026   | --includ=* | --inclu=* | --incl=* | --inc=*)
1027     includedir=$ac_optarg ;;
1028
1029   -infodir | --infodir | --infodi | --infod | --info | --inf)
1030     ac_prev=infodir ;;
1031   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032     infodir=$ac_optarg ;;
1033
1034   -libdir | --libdir | --libdi | --libd)
1035     ac_prev=libdir ;;
1036   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037     libdir=$ac_optarg ;;
1038
1039   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040   | --libexe | --libex | --libe)
1041     ac_prev=libexecdir ;;
1042   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043   | --libexe=* | --libex=* | --libe=*)
1044     libexecdir=$ac_optarg ;;
1045
1046   -localedir | --localedir | --localedi | --localed | --locale)
1047     ac_prev=localedir ;;
1048   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049     localedir=$ac_optarg ;;
1050
1051   -localstatedir | --localstatedir | --localstatedi | --localstated \
1052   | --localstate | --localstat | --localsta | --localst | --locals)
1053     ac_prev=localstatedir ;;
1054   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056     localstatedir=$ac_optarg ;;
1057
1058   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059     ac_prev=mandir ;;
1060   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061     mandir=$ac_optarg ;;
1062
1063   -nfp | --nfp | --nf)
1064     # Obsolete; use --without-fp.
1065     with_fp=no ;;
1066
1067   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068   | --no-cr | --no-c | -n)
1069     no_create=yes ;;
1070
1071   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073     no_recursion=yes ;;
1074
1075   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077   | --oldin | --oldi | --old | --ol | --o)
1078     ac_prev=oldincludedir ;;
1079   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082     oldincludedir=$ac_optarg ;;
1083
1084   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085     ac_prev=prefix ;;
1086   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087     prefix=$ac_optarg ;;
1088
1089   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090   | --program-pre | --program-pr | --program-p)
1091     ac_prev=program_prefix ;;
1092   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094     program_prefix=$ac_optarg ;;
1095
1096   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097   | --program-suf | --program-su | --program-s)
1098     ac_prev=program_suffix ;;
1099   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101     program_suffix=$ac_optarg ;;
1102
1103   -program-transform-name | --program-transform-name \
1104   | --program-transform-nam | --program-transform-na \
1105   | --program-transform-n | --program-transform- \
1106   | --program-transform | --program-transfor \
1107   | --program-transfo | --program-transf \
1108   | --program-trans | --program-tran \
1109   | --progr-tra | --program-tr | --program-t)
1110     ac_prev=program_transform_name ;;
1111   -program-transform-name=* | --program-transform-name=* \
1112   | --program-transform-nam=* | --program-transform-na=* \
1113   | --program-transform-n=* | --program-transform-=* \
1114   | --program-transform=* | --program-transfor=* \
1115   | --program-transfo=* | --program-transf=* \
1116   | --program-trans=* | --program-tran=* \
1117   | --progr-tra=* | --program-tr=* | --program-t=*)
1118     program_transform_name=$ac_optarg ;;
1119
1120   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121     ac_prev=pdfdir ;;
1122   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123     pdfdir=$ac_optarg ;;
1124
1125   -psdir | --psdir | --psdi | --psd | --ps)
1126     ac_prev=psdir ;;
1127   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128     psdir=$ac_optarg ;;
1129
1130   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131   | -silent | --silent | --silen | --sile | --sil)
1132     silent=yes ;;
1133
1134   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135     ac_prev=sbindir ;;
1136   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137   | --sbi=* | --sb=*)
1138     sbindir=$ac_optarg ;;
1139
1140   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142   | --sharedst | --shareds | --shared | --share | --shar \
1143   | --sha | --sh)
1144     ac_prev=sharedstatedir ;;
1145   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148   | --sha=* | --sh=*)
1149     sharedstatedir=$ac_optarg ;;
1150
1151   -site | --site | --sit)
1152     ac_prev=site ;;
1153   -site=* | --site=* | --sit=*)
1154     site=$ac_optarg ;;
1155
1156   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157     ac_prev=srcdir ;;
1158   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159     srcdir=$ac_optarg ;;
1160
1161   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162   | --syscon | --sysco | --sysc | --sys | --sy)
1163     ac_prev=sysconfdir ;;
1164   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166     sysconfdir=$ac_optarg ;;
1167
1168   -target | --target | --targe | --targ | --tar | --ta | --t)
1169     ac_prev=target_alias ;;
1170   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171     target_alias=$ac_optarg ;;
1172
1173   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174     verbose=yes ;;
1175
1176   -version | --version | --versio | --versi | --vers | -V)
1177     ac_init_version=: ;;
1178
1179   -with-* | --with-*)
1180     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183       as_fn_error $? "invalid package name: $ac_useropt"
1184     ac_useropt_orig=$ac_useropt
1185     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186     case $ac_user_opts in
1187       *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191          ac_unrecognized_sep=', ';;
1192     esac
1193     eval with_$ac_useropt=\$ac_optarg ;;
1194
1195   -without-* | --without-*)
1196     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197     # Reject names that are not valid shell variable names.
1198     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199       as_fn_error $? "invalid package name: $ac_useropt"
1200     ac_useropt_orig=$ac_useropt
1201     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202     case $ac_user_opts in
1203       *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207          ac_unrecognized_sep=', ';;
1208     esac
1209     eval with_$ac_useropt=no ;;
1210
1211   --x)
1212     # Obsolete; use --with-x.
1213     with_x=yes ;;
1214
1215   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216   | --x-incl | --x-inc | --x-in | --x-i)
1217     ac_prev=x_includes ;;
1218   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220     x_includes=$ac_optarg ;;
1221
1222   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224     ac_prev=x_libraries ;;
1225   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227     x_libraries=$ac_optarg ;;
1228
1229   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information"
1231     ;;
1232
1233   *=*)
1234     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235     # Reject names that are not valid shell variable names.
1236     case $ac_envvar in #(
1237       '' | [0-9]* | *[!_$as_cr_alnum]* )
1238       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239     esac
1240     eval $ac_envvar=\$ac_optarg
1241     export $ac_envvar ;;
1242
1243   *)
1244     # FIXME: should be removed in autoconf 3.0.
1245     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249     ;;
1250
1251   esac
1252 done
1253
1254 if test -n "$ac_prev"; then
1255   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256   as_fn_error $? "missing argument to $ac_option"
1257 fi
1258
1259 if test -n "$ac_unrecognized_opts"; then
1260   case $enable_option_checking in
1261     no) ;;
1262     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264   esac
1265 fi
1266
1267 # Check all directory arguments for consistency.
1268 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269                 datadir sysconfdir sharedstatedir localstatedir includedir \
1270                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271                 libdir localedir mandir
1272 do
1273   eval ac_val=\$$ac_var
1274   # Remove trailing slashes.
1275   case $ac_val in
1276     */ )
1277       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278       eval $ac_var=\$ac_val;;
1279   esac
1280   # Be sure to have absolute directory names.
1281   case $ac_val in
1282     [\\/$]* | ?:[\\/]* )  continue;;
1283     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284   esac
1285   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1287
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1294
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297   if test "x$build_alias" = x; then
1298     cross_compiling=maybe
1299     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1300     If a cross compiler is detected then cross compile mode will be used" >&2
1301   elif test "x$build_alias" != "x$host_alias"; then
1302     cross_compiling=yes
1303   fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315   as_fn_error $? "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317   as_fn_error $? "pwd does not report name of working directory"
1318
1319
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322   ac_srcdir_defaulted=yes
1323   # Try the directory containing this script, then the parent directory.
1324   ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326          X"$as_myself" : 'X\(//\)[^/]' \| \
1327          X"$as_myself" : 'X\(//\)$' \| \
1328          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\/\)[^/].*/{
1335             s//\1/
1336             q
1337           }
1338           /^X\(\/\/\)$/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\).*/{
1343             s//\1/
1344             q
1345           }
1346           s/.*/./; q'`
1347   srcdir=$ac_confdir
1348   if test ! -r "$srcdir/$ac_unique_file"; then
1349     srcdir=..
1350   fi
1351 else
1352   ac_srcdir_defaulted=no
1353 fi
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357 fi
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361         pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364   srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374   eval ac_env_${ac_var}_value=\$${ac_var}
1375   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1378
1379 #
1380 # Report the --help message.
1381 #
1382 if test "$ac_init_help" = "long"; then
1383   # Omit some internal or obsolete options to make the list less imposing.
1384   # This message is too long to be a string in the A/UX 3.1 sh.
1385   cat <<_ACEOF
1386 \`configure' configures libffi 3.0.11 to adapt to many kinds of systems.
1387
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE.  See below for descriptions of some of the useful variables.
1392
1393 Defaults for the options are specified in brackets.
1394
1395 Configuration:
1396   -h, --help              display this help and exit
1397       --help=short        display options specific to this package
1398       --help=recursive    display the short help of all the included packages
1399   -V, --version           display version information and exit
1400   -q, --quiet, --silent   do not print \`checking ...' messages
1401       --cache-file=FILE   cache test results in FILE [disabled]
1402   -C, --config-cache      alias for \`--cache-file=config.cache'
1403   -n, --no-create         do not create output files
1404       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1405
1406 Installation directories:
1407   --prefix=PREFIX         install architecture-independent files in PREFIX
1408                           [$ac_default_prefix]
1409   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1410                           [PREFIX]
1411
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1416
1417 For better control, use the options below.
1418
1419 Fine tuning of the installation directories:
1420   --bindir=DIR            user executables [EPREFIX/bin]
1421   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1422   --libexecdir=DIR        program executables [EPREFIX/libexec]
1423   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1424   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1425   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1426   --libdir=DIR            object code libraries [EPREFIX/lib]
1427   --includedir=DIR        C header files [PREFIX/include]
1428   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1429   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1430   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1431   --infodir=DIR           info documentation [DATAROOTDIR/info]
1432   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1433   --mandir=DIR            man documentation [DATAROOTDIR/man]
1434   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1435   --htmldir=DIR           html documentation [DOCDIR]
1436   --dvidir=DIR            dvi documentation [DOCDIR]
1437   --pdfdir=DIR            pdf documentation [DOCDIR]
1438   --psdir=DIR             ps documentation [DOCDIR]
1439 _ACEOF
1440
1441   cat <<\_ACEOF
1442
1443 Program names:
1444   --program-prefix=PREFIX            prepend PREFIX to installed program names
1445   --program-suffix=SUFFIX            append SUFFIX to installed program names
1446   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1447
1448 System types:
1449   --build=BUILD     configure for building on BUILD [guessed]
1450   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1451   --target=TARGET   configure for building compilers for TARGET [HOST]
1452 _ACEOF
1453 fi
1454
1455 if test -n "$ac_init_help"; then
1456   case $ac_init_help in
1457      short | recursive ) echo "Configuration of libffi 3.0.11:";;
1458    esac
1459   cat <<\_ACEOF
1460
1461 Optional Features:
1462   --disable-option-checking  ignore unrecognized --enable/--with options
1463   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1464   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1465   --disable-builddir      disable automatic build in subdir of sources
1466
1467   --disable-dependency-tracking  speeds up one-time build
1468   --enable-dependency-tracking   do not reject slow dependency extractors
1469   --enable-shared[=PKGS]  build shared libraries [default=yes]
1470   --enable-static[=PKGS]  build static libraries [default=yes]
1471   --enable-fast-install[=PKGS]
1472                           optimize for fast installation [default=yes]
1473   --disable-libtool-lock  avoid locking (might break parallel builds)
1474   --enable-portable-binary
1475                           disable compiler optimizations that would produce
1476                           unportable binaries
1477   --enable-maintainer-mode  enable make rules and dependencies not useful
1478                           (and sometimes confusing) to the casual installer
1479   --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1480   --enable-debug          debugging mode
1481   --disable-structs       omit code for struct support
1482   --disable-raw-api       make the raw api unavailable
1483   --enable-purify-safety  purify-safe mode
1484
1485 Optional Packages:
1486   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1487   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1488   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1489                           both]
1490   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1491   --with-sysroot=DIR Search for dependent libraries within DIR
1492                         (or the compiler's sysroot if not specified).
1493   --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1494                           instead of guessing
1495
1496 Some influential environment variables:
1497   CC          C compiler command
1498   CFLAGS      C compiler flags
1499   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1500               nonstandard directory <lib dir>
1501   LIBS        libraries to pass to the linker, e.g. -l<library>
1502   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503               you have headers in a nonstandard directory <include dir>
1504   CCAS        assembler compiler command (defaults to CC)
1505   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1506   CPP         C preprocessor
1507
1508 Use these variables to override the choices made by `configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1510
1511 Report bugs to <http://github.com/atgreen/libffi/issues>.
1512 _ACEOF
1513 ac_status=$?
1514 fi
1515
1516 if test "$ac_init_help" = "recursive"; then
1517   # If there are subdirs, report their specific --help.
1518   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519     test -d "$ac_dir" ||
1520       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1521       continue
1522     ac_builddir=.
1523
1524 case "$ac_dir" in
1525 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *)
1527   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1528   # A ".." for each directory in $ac_dir_suffix.
1529   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1530   case $ac_top_builddir_sub in
1531   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533   esac ;;
1534 esac
1535 ac_abs_top_builddir=$ac_pwd
1536 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537 # for backward compatibility:
1538 ac_top_builddir=$ac_top_build_prefix
1539
1540 case $srcdir in
1541   .)  # We are building in place.
1542     ac_srcdir=.
1543     ac_top_srcdir=$ac_top_builddir_sub
1544     ac_abs_top_srcdir=$ac_pwd ;;
1545   [\\/]* | ?:[\\/]* )  # Absolute name.
1546     ac_srcdir=$srcdir$ac_dir_suffix;
1547     ac_top_srcdir=$srcdir
1548     ac_abs_top_srcdir=$srcdir ;;
1549   *) # Relative name.
1550     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551     ac_top_srcdir=$ac_top_build_prefix$srcdir
1552     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553 esac
1554 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555
1556     cd "$ac_dir" || { ac_status=$?; continue; }
1557     # Check for guested configure.
1558     if test -f "$ac_srcdir/configure.gnu"; then
1559       echo &&
1560       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561     elif test -f "$ac_srcdir/configure"; then
1562       echo &&
1563       $SHELL "$ac_srcdir/configure" --help=recursive
1564     else
1565       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566     fi || ac_status=$?
1567     cd "$ac_pwd" || { ac_status=$?; break; }
1568   done
1569 fi
1570
1571 test -n "$ac_init_help" && exit $ac_status
1572 if $ac_init_version; then
1573   cat <<\_ACEOF
1574 libffi configure 3.0.11
1575 generated by GNU Autoconf 2.68
1576
1577 Copyright (C) 2010 Free Software Foundation, Inc.
1578 This configure script is free software; the Free Software Foundation
1579 gives unlimited permission to copy, distribute and modify it.
1580 _ACEOF
1581   exit
1582 fi
1583
1584 ## ------------------------ ##
1585 ## Autoconf initialization. ##
1586 ## ------------------------ ##
1587
1588 # ac_fn_c_try_compile LINENO
1589 # --------------------------
1590 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_c_try_compile ()
1592 {
1593   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594   rm -f conftest.$ac_objext
1595   if { { ac_try="$ac_compile"
1596 case "(($ac_try" in
1597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598   *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602   (eval "$ac_compile") 2>conftest.err
1603   ac_status=$?
1604   if test -s conftest.err; then
1605     grep -v '^ *+' conftest.err >conftest.er1
1606     cat conftest.er1 >&5
1607     mv -f conftest.er1 conftest.err
1608   fi
1609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610   test $ac_status = 0; } && {
1611          test -z "$ac_c_werror_flag" ||
1612          test ! -s conftest.err
1613        } && test -s conftest.$ac_objext; then :
1614   ac_retval=0
1615 else
1616   $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619         ac_retval=1
1620 fi
1621   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622   as_fn_set_status $ac_retval
1623
1624 } # ac_fn_c_try_compile
1625
1626 # ac_fn_c_try_link LINENO
1627 # -----------------------
1628 # Try to link conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_link ()
1630 {
1631   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632   rm -f conftest.$ac_objext conftest$ac_exeext
1633   if { { ac_try="$ac_link"
1634 case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_link") 2>conftest.err
1641   ac_status=$?
1642   if test -s conftest.err; then
1643     grep -v '^ *+' conftest.err >conftest.er1
1644     cat conftest.er1 >&5
1645     mv -f conftest.er1 conftest.err
1646   fi
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } && {
1649          test -z "$ac_c_werror_flag" ||
1650          test ! -s conftest.err
1651        } && test -s conftest$ac_exeext && {
1652          test "$cross_compiling" = yes ||
1653          $as_test_x conftest$ac_exeext
1654        }; then :
1655   ac_retval=0
1656 else
1657   $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660         ac_retval=1
1661 fi
1662   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1663   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1664   # interfere with the next link command; also delete a directory that is
1665   # left behind by Apple's compiler.  We do this before executing the actions.
1666   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668   as_fn_set_status $ac_retval
1669
1670 } # ac_fn_c_try_link
1671
1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673 # -------------------------------------------------------
1674 # Tests whether HEADER exists and can be compiled using the include files in
1675 # INCLUDES, setting the cache variable VAR accordingly.
1676 ac_fn_c_check_header_compile ()
1677 {
1678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval \${$3+:} false; then :
1682   $as_echo_n "(cached) " >&6
1683 else
1684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h.  */
1686 $4
1687 #include <$2>
1688 _ACEOF
1689 if ac_fn_c_try_compile "$LINENO"; then :
1690   eval "$3=yes"
1691 else
1692   eval "$3=no"
1693 fi
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695 fi
1696 eval ac_res=\$$3
1697                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700
1701 } # ac_fn_c_check_header_compile
1702
1703 # ac_fn_c_try_cpp LINENO
1704 # ----------------------
1705 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_cpp ()
1707 {
1708   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709   if { { ac_try="$ac_cpp conftest.$ac_ext"
1710 case "(($ac_try" in
1711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712   *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1717   ac_status=$?
1718   if test -s conftest.err; then
1719     grep -v '^ *+' conftest.err >conftest.er1
1720     cat conftest.er1 >&5
1721     mv -f conftest.er1 conftest.err
1722   fi
1723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724   test $ac_status = 0; } > conftest.i && {
1725          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1726          test ! -s conftest.err
1727        }; then :
1728   ac_retval=0
1729 else
1730   $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733     ac_retval=1
1734 fi
1735   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736   as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_cpp
1739
1740 # ac_fn_c_try_run LINENO
1741 # ----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1743 # that executables *can* be run.
1744 ac_fn_c_try_run ()
1745 {
1746   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747   if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750   *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754   (eval "$ac_link") 2>&5
1755   ac_status=$?
1756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1758   { { case "(($ac_try" in
1759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760   *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764   (eval "$ac_try") 2>&5
1765   ac_status=$?
1766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767   test $ac_status = 0; }; }; then :
1768   ac_retval=0
1769 else
1770   $as_echo "$as_me: program exited with status $ac_status" >&5
1771        $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774        ac_retval=$ac_status
1775 fi
1776   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778   as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_run
1781
1782 # ac_fn_c_check_func LINENO FUNC VAR
1783 # ----------------------------------
1784 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1785 ac_fn_c_check_func ()
1786 {
1787   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if eval \${$3+:} false; then :
1791   $as_echo_n "(cached) " >&6
1792 else
1793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h.  */
1795 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1797 #define $2 innocuous_$2
1798
1799 /* System header to define __stub macros and hopefully few prototypes,
1800     which can conflict with char $2 (); below.
1801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1802     <limits.h> exists even on freestanding compilers.  */
1803
1804 #ifdef __STDC__
1805 # include <limits.h>
1806 #else
1807 # include <assert.h>
1808 #endif
1809
1810 #undef $2
1811
1812 /* Override any GCC internal prototype to avoid an error.
1813    Use char because int might match the return type of a GCC
1814    builtin and then its argument prototype would still apply.  */
1815 #ifdef __cplusplus
1816 extern "C"
1817 #endif
1818 char $2 ();
1819 /* The GNU C library defines this for functions which it implements
1820     to always fail with ENOSYS.  Some functions are actually named
1821     something starting with __ and the normal name is an alias.  */
1822 #if defined __stub_$2 || defined __stub___$2
1823 choke me
1824 #endif
1825
1826 int
1827 main ()
1828 {
1829 return $2 ();
1830   ;
1831   return 0;
1832 }
1833 _ACEOF
1834 if ac_fn_c_try_link "$LINENO"; then :
1835   eval "$3=yes"
1836 else
1837   eval "$3=no"
1838 fi
1839 rm -f core conftest.err conftest.$ac_objext \
1840     conftest$ac_exeext conftest.$ac_ext
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   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847 } # ac_fn_c_check_func
1848
1849 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1850 # -------------------------------------------------------
1851 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1852 # the include files in INCLUDES and setting the cache variable VAR
1853 # accordingly.
1854 ac_fn_c_check_header_mongrel ()
1855 {
1856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857   if eval \${$3+:} false; then :
1858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861   $as_echo_n "(cached) " >&6
1862 fi
1863 eval ac_res=\$$3
1864                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 else
1867   # Is the header compilable?
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1869 $as_echo_n "checking $2 usability... " >&6; }
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h.  */
1872 $4
1873 #include <$2>
1874 _ACEOF
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876   ac_header_compiler=yes
1877 else
1878   ac_header_compiler=no
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1882 $as_echo "$ac_header_compiler" >&6; }
1883
1884 # Is the header present?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1886 $as_echo_n "checking $2 presence... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h.  */
1889 #include <$2>
1890 _ACEOF
1891 if ac_fn_c_try_cpp "$LINENO"; then :
1892   ac_header_preproc=yes
1893 else
1894   ac_header_preproc=no
1895 fi
1896 rm -f conftest.err conftest.i conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1898 $as_echo "$ac_header_preproc" >&6; }
1899
1900 # So?  What about this header?
1901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1902   yes:no: )
1903     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1904 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1905     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1907     ;;
1908   no:yes:* )
1909     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1910 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1911     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1912 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1913     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1914 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1915     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1916 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1917     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1918 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1919 ( $as_echo "## ------------------------------------------------------ ##
1920 ## Report this to http://github.com/atgreen/libffi/issues ##
1921 ## ------------------------------------------------------ ##"
1922      ) | sed "s/^/$as_me: WARNING:     /" >&2
1923     ;;
1924 esac
1925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928   $as_echo_n "(cached) " >&6
1929 else
1930   eval "$3=\$ac_header_compiler"
1931 fi
1932 eval ac_res=\$$3
1933                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 fi
1936   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937
1938 } # ac_fn_c_check_header_mongrel
1939
1940 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1941 # -------------------------------------------
1942 # Tests whether TYPE exists after having included INCLUDES, setting cache
1943 # variable VAR accordingly.
1944 ac_fn_c_check_type ()
1945 {
1946   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950   $as_echo_n "(cached) " >&6
1951 else
1952   eval "$3=no"
1953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h.  */
1955 $4
1956 int
1957 main ()
1958 {
1959 if (sizeof ($2))
1960          return 0;
1961   ;
1962   return 0;
1963 }
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h.  */
1968 $4
1969 int
1970 main ()
1971 {
1972 if (sizeof (($2)))
1973             return 0;
1974   ;
1975   return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979
1980 else
1981   eval "$3=yes"
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 fi
1987 eval ac_res=\$$3
1988                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991
1992 } # ac_fn_c_check_type
1993
1994 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1995 # --------------------------------------------
1996 # Tries to find the compile-time value of EXPR in a program that includes
1997 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1998 # computed
1999 ac_fn_c_compute_int ()
2000 {
2001   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002   if test "$cross_compiling" = yes; then
2003     # Depending upon the size, compute the lo and hi bounds.
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h.  */
2006 $4
2007 int
2008 main ()
2009 {
2010 static int test_array [1 - 2 * !(($2) >= 0)];
2011 test_array [0] = 0
2012
2013   ;
2014   return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018   ac_lo=0 ac_mid=0
2019   while :; do
2020     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h.  */
2022 $4
2023 int
2024 main ()
2025 {
2026 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2027 test_array [0] = 0
2028
2029   ;
2030   return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034   ac_hi=$ac_mid; break
2035 else
2036   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2037                         if test $ac_lo -le $ac_mid; then
2038                           ac_lo= ac_hi=
2039                           break
2040                         fi
2041                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044   done
2045 else
2046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h.  */
2048 $4
2049 int
2050 main ()
2051 {
2052 static int test_array [1 - 2 * !(($2) < 0)];
2053 test_array [0] = 0
2054
2055   ;
2056   return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060   ac_hi=-1 ac_mid=-1
2061   while :; do
2062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h.  */
2064 $4
2065 int
2066 main ()
2067 {
2068 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2069 test_array [0] = 0
2070
2071   ;
2072   return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076   ac_lo=$ac_mid; break
2077 else
2078   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2079                         if test $ac_mid -le $ac_hi; then
2080                           ac_lo= ac_hi=
2081                           break
2082                         fi
2083                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086   done
2087 else
2088   ac_lo= ac_hi=
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 # Binary search between lo and hi bounds.
2094 while test "x$ac_lo" != "x$ac_hi"; do
2095   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h.  */
2098 $4
2099 int
2100 main ()
2101 {
2102 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2103 test_array [0] = 0
2104
2105   ;
2106   return 0;
2107 }
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110   ac_hi=$ac_mid
2111 else
2112   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 done
2116 case $ac_lo in #((
2117 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2118 '') ac_retval=1 ;;
2119 esac
2120   else
2121     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h.  */
2123 $4
2124 static long int longval () { return $2; }
2125 static unsigned long int ulongval () { return $2; }
2126 #include <stdio.h>
2127 #include <stdlib.h>
2128 int
2129 main ()
2130 {
2131
2132   FILE *f = fopen ("conftest.val", "w");
2133   if (! f)
2134     return 1;
2135   if (($2) < 0)
2136     {
2137       long int i = longval ();
2138       if (i != ($2))
2139         return 1;
2140       fprintf (f, "%ld", i);
2141     }
2142   else
2143     {
2144       unsigned long int i = ulongval ();
2145       if (i != ($2))
2146         return 1;
2147       fprintf (f, "%lu", i);
2148     }
2149   /* Do not output a trailing newline, as this causes \r\n confusion
2150      on some platforms.  */
2151   return ferror (f) || fclose (f) != 0;
2152
2153   ;
2154   return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_c_try_run "$LINENO"; then :
2158   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2159 else
2160   ac_retval=1
2161 fi
2162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2163   conftest.$ac_objext conftest.beam conftest.$ac_ext
2164 rm -f conftest.val
2165
2166   fi
2167   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168   as_fn_set_status $ac_retval
2169
2170 } # ac_fn_c_compute_int
2171 cat >config.log <<_ACEOF
2172 This file contains any messages produced by compilers while
2173 running configure, to aid debugging if configure makes a mistake.
2174
2175 It was created by libffi $as_me 3.0.11, which was
2176 generated by GNU Autoconf 2.68.  Invocation command line was
2177
2178   $ $0 $@
2179
2180 _ACEOF
2181 exec 5>>config.log
2182 {
2183 cat <<_ASUNAME
2184 ## --------- ##
2185 ## Platform. ##
2186 ## --------- ##
2187
2188 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2189 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2190 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2191 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2192 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2193
2194 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2195 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2196
2197 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2198 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2199 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2200 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2201 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2202 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2203 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2204
2205 _ASUNAME
2206
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2209 do
2210   IFS=$as_save_IFS
2211   test -z "$as_dir" && as_dir=.
2212     $as_echo "PATH: $as_dir"
2213   done
2214 IFS=$as_save_IFS
2215
2216 } >&5
2217
2218 cat >&5 <<_ACEOF
2219
2220
2221 ## ----------- ##
2222 ## Core tests. ##
2223 ## ----------- ##
2224
2225 _ACEOF
2226
2227
2228 # Keep a trace of the command line.
2229 # Strip out --no-create and --no-recursion so they do not pile up.
2230 # Strip out --silent because we don't want to record it for future runs.
2231 # Also quote any args containing shell meta-characters.
2232 # Make two passes to allow for proper duplicate-argument suppression.
2233 ac_configure_args=
2234 ac_configure_args0=
2235 ac_configure_args1=
2236 ac_must_keep_next=false
2237 for ac_pass in 1 2
2238 do
2239   for ac_arg
2240   do
2241     case $ac_arg in
2242     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2243     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2244     | -silent | --silent | --silen | --sile | --sil)
2245       continue ;;
2246     *\'*)
2247       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2248     esac
2249     case $ac_pass in
2250     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2251     2)
2252       as_fn_append ac_configure_args1 " '$ac_arg'"
2253       if test $ac_must_keep_next = true; then
2254         ac_must_keep_next=false # Got value, back to normal.
2255       else
2256         case $ac_arg in
2257           *=* | --config-cache | -C | -disable-* | --disable-* \
2258           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2259           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2260           | -with-* | --with-* | -without-* | --without-* | --x)
2261             case "$ac_configure_args0 " in
2262               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2263             esac
2264             ;;
2265           -* ) ac_must_keep_next=true ;;
2266         esac
2267       fi
2268       as_fn_append ac_configure_args " '$ac_arg'"
2269       ;;
2270     esac
2271   done
2272 done
2273 { ac_configure_args0=; unset ac_configure_args0;}
2274 { ac_configure_args1=; unset ac_configure_args1;}
2275
2276 # When interrupted or exit'd, cleanup temporary files, and complete
2277 # config.log.  We remove comments because anyway the quotes in there
2278 # would cause problems or look ugly.
2279 # WARNING: Use '\'' to represent an apostrophe within the trap.
2280 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2281 trap 'exit_status=$?
2282   # Save into config.log some information that might help in debugging.
2283   {
2284     echo
2285
2286     $as_echo "## ---------------- ##
2287 ## Cache variables. ##
2288 ## ---------------- ##"
2289     echo
2290     # The following way of writing the cache mishandles newlines in values,
2291 (
2292   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2293     eval ac_val=\$$ac_var
2294     case $ac_val in #(
2295     *${as_nl}*)
2296       case $ac_var in #(
2297       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2299       esac
2300       case $ac_var in #(
2301       _ | IFS | as_nl) ;; #(
2302       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2303       *) { eval $ac_var=; unset $ac_var;} ;;
2304       esac ;;
2305     esac
2306   done
2307   (set) 2>&1 |
2308     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2309     *${as_nl}ac_space=\ *)
2310       sed -n \
2311         "s/'\''/'\''\\\\'\'''\''/g;
2312           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2313       ;; #(
2314     *)
2315       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2316       ;;
2317     esac |
2318     sort
2319 )
2320     echo
2321
2322     $as_echo "## ----------------- ##
2323 ## Output variables. ##
2324 ## ----------------- ##"
2325     echo
2326     for ac_var in $ac_subst_vars
2327     do
2328       eval ac_val=\$$ac_var
2329       case $ac_val in
2330       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331       esac
2332       $as_echo "$ac_var='\''$ac_val'\''"
2333     done | sort
2334     echo
2335
2336     if test -n "$ac_subst_files"; then
2337       $as_echo "## ------------------- ##
2338 ## File substitutions. ##
2339 ## ------------------- ##"
2340       echo
2341       for ac_var in $ac_subst_files
2342       do
2343         eval ac_val=\$$ac_var
2344         case $ac_val in
2345         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2346         esac
2347         $as_echo "$ac_var='\''$ac_val'\''"
2348       done | sort
2349       echo
2350     fi
2351
2352     if test -s confdefs.h; then
2353       $as_echo "## ----------- ##
2354 ## confdefs.h. ##
2355 ## ----------- ##"
2356       echo
2357       cat confdefs.h
2358       echo
2359     fi
2360     test "$ac_signal" != 0 &&
2361       $as_echo "$as_me: caught signal $ac_signal"
2362     $as_echo "$as_me: exit $exit_status"
2363   } >&5
2364   rm -f core *.core core.conftest.* &&
2365     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2366     exit $exit_status
2367 ' 0
2368 for ac_signal in 1 2 13 15; do
2369   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2370 done
2371 ac_signal=0
2372
2373 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2374 rm -f -r conftest* confdefs.h
2375
2376 $as_echo "/* confdefs.h */" > confdefs.h
2377
2378 # Predefined preprocessor variables.
2379
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_NAME "$PACKAGE_NAME"
2382 _ACEOF
2383
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2386 _ACEOF
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2390 _ACEOF
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_STRING "$PACKAGE_STRING"
2394 _ACEOF
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2398 _ACEOF
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_URL "$PACKAGE_URL"
2402 _ACEOF
2403
2404
2405 # Let the site file select an alternate cache file if it wants to.
2406 # Prefer an explicitly selected file to automatically selected ones.
2407 ac_site_file1=NONE
2408 ac_site_file2=NONE
2409 if test -n "$CONFIG_SITE"; then
2410   # We do not want a PATH search for config.site.
2411   case $CONFIG_SITE in #((
2412     -*)  ac_site_file1=./$CONFIG_SITE;;
2413     */*) ac_site_file1=$CONFIG_SITE;;
2414     *)   ac_site_file1=./$CONFIG_SITE;;
2415   esac
2416 elif test "x$prefix" != xNONE; then
2417   ac_site_file1=$prefix/share/config.site
2418   ac_site_file2=$prefix/etc/config.site
2419 else
2420   ac_site_file1=$ac_default_prefix/share/config.site
2421   ac_site_file2=$ac_default_prefix/etc/config.site
2422 fi
2423 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2424 do
2425   test "x$ac_site_file" = xNONE && continue
2426   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2427     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2428 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2429     sed 's/^/| /' "$ac_site_file" >&5
2430     . "$ac_site_file" \
2431       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433 as_fn_error $? "failed to load site script $ac_site_file
2434 See \`config.log' for more details" "$LINENO" 5; }
2435   fi
2436 done
2437
2438 if test -r "$cache_file"; then
2439   # Some versions of bash will fail to source /dev/null (special files
2440   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2441   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2442     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2443 $as_echo "$as_me: loading cache $cache_file" >&6;}
2444     case $cache_file in
2445       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2446       *)                      . "./$cache_file";;
2447     esac
2448   fi
2449 else
2450   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2451 $as_echo "$as_me: creating cache $cache_file" >&6;}
2452   >$cache_file
2453 fi
2454
2455 # Check that the precious variables saved in the cache have kept the same
2456 # value.
2457 ac_cache_corrupted=false
2458 for ac_var in $ac_precious_vars; do
2459   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2460   eval ac_new_set=\$ac_env_${ac_var}_set
2461   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2462   eval ac_new_val=\$ac_env_${ac_var}_value
2463   case $ac_old_set,$ac_new_set in
2464     set,)
2465       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2466 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2467       ac_cache_corrupted=: ;;
2468     ,set)
2469       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2470 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2471       ac_cache_corrupted=: ;;
2472     ,);;
2473     *)
2474       if test "x$ac_old_val" != "x$ac_new_val"; then
2475         # differences in whitespace do not lead to failure.
2476         ac_old_val_w=`echo x $ac_old_val`
2477         ac_new_val_w=`echo x $ac_new_val`
2478         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2480 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2481           ac_cache_corrupted=:
2482         else
2483           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2484 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2485           eval $ac_var=\$ac_old_val
2486         fi
2487         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2488 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2489         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2490 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2491       fi;;
2492   esac
2493   # Pass precious variables to config.status.
2494   if test "$ac_new_set" = set; then
2495     case $ac_new_val in
2496     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2497     *) ac_arg=$ac_var=$ac_new_val ;;
2498     esac
2499     case " $ac_configure_args " in
2500       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2501       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2502     esac
2503   fi
2504 done
2505 if $ac_cache_corrupted; then
2506   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2510   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2511 fi
2512 ## -------------------- ##
2513 ## Main body of script. ##
2514 ## -------------------- ##
2515
2516 ac_ext=c
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521
2522
2523 ac_config_headers="$ac_config_headers fficonfig.h"
2524
2525
2526 ac_aux_dir=
2527 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2528   if test -f "$ac_dir/install-sh"; then
2529     ac_aux_dir=$ac_dir
2530     ac_install_sh="$ac_aux_dir/install-sh -c"
2531     break
2532   elif test -f "$ac_dir/install.sh"; then
2533     ac_aux_dir=$ac_dir
2534     ac_install_sh="$ac_aux_dir/install.sh -c"
2535     break
2536   elif test -f "$ac_dir/shtool"; then
2537     ac_aux_dir=$ac_dir
2538     ac_install_sh="$ac_aux_dir/shtool install -c"
2539     break
2540   fi
2541 done
2542 if test -z "$ac_aux_dir"; then
2543   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2544 fi
2545
2546 # These three variables are undocumented and unsupported,
2547 # and are intended to be withdrawn in a future Autoconf release.
2548 # They can cause serious problems if a builder's source tree is in a directory
2549 # whose full name contains unusual characters.
2550 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2551 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2552 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2553
2554
2555 # Make sure we can run config.sub.
2556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2557   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2558
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2560 $as_echo_n "checking build system type... " >&6; }
2561 if ${ac_cv_build+:} false; then :
2562   $as_echo_n "(cached) " >&6
2563 else
2564   ac_build_alias=$build_alias
2565 test "x$ac_build_alias" = x &&
2566   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2567 test "x$ac_build_alias" = x &&
2568   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2569 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2570   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2571
2572 fi
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2574 $as_echo "$ac_cv_build" >&6; }
2575 case $ac_cv_build in
2576 *-*-*) ;;
2577 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2578 esac
2579 build=$ac_cv_build
2580 ac_save_IFS=$IFS; IFS='-'
2581 set x $ac_cv_build
2582 shift
2583 build_cpu=$1
2584 build_vendor=$2
2585 shift; shift
2586 # Remember, the first character of IFS is used to create $*,
2587 # except with old shells:
2588 build_os=$*
2589 IFS=$ac_save_IFS
2590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2591
2592
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2594 $as_echo_n "checking host system type... " >&6; }
2595 if ${ac_cv_host+:} false; then :
2596   $as_echo_n "(cached) " >&6
2597 else
2598   if test "x$host_alias" = x; then
2599   ac_cv_host=$ac_cv_build
2600 else
2601   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2602     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2603 fi
2604
2605 fi
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2607 $as_echo "$ac_cv_host" >&6; }
2608 case $ac_cv_host in
2609 *-*-*) ;;
2610 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2611 esac
2612 host=$ac_cv_host
2613 ac_save_IFS=$IFS; IFS='-'
2614 set x $ac_cv_host
2615 shift
2616 host_cpu=$1
2617 host_vendor=$2
2618 shift; shift
2619 # Remember, the first character of IFS is used to create $*,
2620 # except with old shells:
2621 host_os=$*
2622 IFS=$ac_save_IFS
2623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2624
2625
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2627 $as_echo_n "checking target system type... " >&6; }
2628 if ${ac_cv_target+:} false; then :
2629   $as_echo_n "(cached) " >&6
2630 else
2631   if test "x$target_alias" = x; then
2632   ac_cv_target=$ac_cv_host
2633 else
2634   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2635     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2636 fi
2637
2638 fi
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2640 $as_echo "$ac_cv_target" >&6; }
2641 case $ac_cv_target in
2642 *-*-*) ;;
2643 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2644 esac
2645 target=$ac_cv_target
2646 ac_save_IFS=$IFS; IFS='-'
2647 set x $ac_cv_target
2648 shift
2649 target_cpu=$1
2650 target_vendor=$2
2651 shift; shift
2652 # Remember, the first character of IFS is used to create $*,
2653 # except with old shells:
2654 target_os=$*
2655 IFS=$ac_save_IFS
2656 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2657
2658
2659 # The aliases save the names the user supplied, while $host etc.
2660 # will get canonicalized.
2661 test -n "$target_alias" &&
2662   test "$program_prefix$program_suffix$program_transform_name" = \
2663     NONENONEs,x,x, &&
2664   program_prefix=${target_alias}-
2665
2666 target_alias=${target_alias-$host_alias}
2667
2668 . ${srcdir}/configure.host
2669
2670
2671    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2672    if test "${ac_configure_args+set}" != "set" ; then
2673       ac_configure_args=
2674       for ac_arg in ${1+"$@"}; do
2675          ac_configure_args="$ac_configure_args '$ac_arg'"
2676       done
2677    fi
2678
2679 # expand $ac_aux_dir to an absolute path
2680 am_aux_dir=`cd $ac_aux_dir && pwd`
2681
2682
2683 ax_enable_builddir="."
2684 # Check whether --enable-builddir was given.
2685 if test "${enable_builddir+set}" = set; then :
2686   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2687 else
2688   ax_enable_builddir="auto"
2689 fi
2690
2691 if test ".$ac_srcdir_defaulted" != ".no" ; then
2692 if test ".$srcdir" = ".." ; then
2693   if test -f config.status ; then
2694     { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2695 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2696   else
2697     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2698     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2699     test ".$TARGET" = "." && TARGET="$target"
2700     test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2701     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2702       as_dir=$ax_enable_builddir; as_fn_mkdir_p
2703       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2704       cd $ax_enable_builddir
2705       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2706         rm conftest.tmp
2707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2708 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2709       else
2710         as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2711       fi
2712       srcdir=`echo "$ax_enable_builddir" |
2713               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2714       # going to restart from subdirectory location
2715       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2716       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2717       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2718       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2719       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2720 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2721       case "$0" in # restart
2722        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2723        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2724       esac ; exit $?
2725     fi
2726   fi
2727 fi fi
2728 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2729 # Extract the first word of "gsed sed", so it can be a program name with args.
2730 set dummy gsed sed; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2734   $as_echo_n "(cached) " >&6
2735 else
2736   case $ax_enable_builddir_sed in
2737   [\\/]* | ?:[\\/]*)
2738   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2739   ;;
2740   *)
2741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744   IFS=$as_save_IFS
2745   test -z "$as_dir" && as_dir=.
2746     for ac_exec_ext in '' $ac_executable_extensions; do
2747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750     break 2
2751   fi
2752 done
2753   done
2754 IFS=$as_save_IFS
2755
2756   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2757   ;;
2758 esac
2759 fi
2760 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2761 if test -n "$ax_enable_builddir_sed"; then
2762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2763 $as_echo "$ax_enable_builddir_sed" >&6; }
2764 else
2765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2767 fi
2768
2769
2770 ax_enable_builddir_auxdir="$am_aux_dir"
2771 ac_config_commands="$ac_config_commands buildir"
2772
2773
2774 am__api_version='1.11'
2775
2776 # Find a good install program.  We prefer a C program (faster),
2777 # so one script is as good as another.  But avoid the broken or
2778 # incompatible versions:
2779 # SysV /etc/install, /usr/sbin/install
2780 # SunOS /usr/etc/install
2781 # IRIX /sbin/install
2782 # AIX /bin/install
2783 # AmigaOS /C/install, which installs bootblocks on floppy discs
2784 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2785 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2786 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2787 # OS/2's system install, which has a completely different semantic
2788 # ./install, which can be erroneously created by make from ./install.sh.
2789 # Reject install programs that cannot install multiple files.
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2791 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2792 if test -z "$INSTALL"; then
2793 if ${ac_cv_path_install+:} false; then :
2794   $as_echo_n "(cached) " >&6
2795 else
2796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801     # Account for people who put trailing slashes in PATH elements.
2802 case $as_dir/ in #((
2803   ./ | .// | /[cC]/* | \
2804   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2805   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2806   /usr/ucb/* ) ;;
2807   *)
2808     # OSF1 and SCO ODT 3.0 have their own names for install.
2809     # Don't use installbsd from OSF since it installs stuff as root
2810     # by default.
2811     for ac_prog in ginstall scoinst install; do
2812       for ac_exec_ext in '' $ac_executable_extensions; do
2813         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2814           if test $ac_prog = install &&
2815             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2816             # AIX install.  It has an incompatible calling convention.
2817             :
2818           elif test $ac_prog = install &&
2819             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2820             # program-specific install script used by HP pwplus--don't use.
2821             :
2822           else
2823             rm -rf conftest.one conftest.two conftest.dir
2824             echo one > conftest.one
2825             echo two > conftest.two
2826             mkdir conftest.dir
2827             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2828               test -s conftest.one && test -s conftest.two &&
2829               test -s conftest.dir/conftest.one &&
2830               test -s conftest.dir/conftest.two
2831             then
2832               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2833               break 3
2834             fi
2835           fi
2836         fi
2837       done
2838     done
2839     ;;
2840 esac
2841
2842   done
2843 IFS=$as_save_IFS
2844
2845 rm -rf conftest.one conftest.two conftest.dir
2846
2847 fi
2848   if test "${ac_cv_path_install+set}" = set; then
2849     INSTALL=$ac_cv_path_install
2850   else
2851     # As a last resort, use the slow shell script.  Don't cache a
2852     # value for INSTALL within a source directory, because that will
2853     # break other packages using the cache if that directory is
2854     # removed, or if the value is a relative name.
2855     INSTALL=$ac_install_sh
2856   fi
2857 fi
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2859 $as_echo "$INSTALL" >&6; }
2860
2861 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2862 # It thinks the first close brace ends the variable substitution.
2863 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2864
2865 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2866
2867 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2870 $as_echo_n "checking whether build environment is sane... " >&6; }
2871 # Just in case
2872 sleep 1
2873 echo timestamp > conftest.file
2874 # Reject unsafe characters in $srcdir or the absolute working directory
2875 # name.  Accept space and tab only in the latter.
2876 am_lf='
2877 '
2878 case `pwd` in
2879   *[\\\"\#\$\&\'\`$am_lf]*)
2880     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2881 esac
2882 case $srcdir in
2883   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2884     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2885 esac
2886
2887 # Do `set' in a subshell so we don't clobber the current shell's
2888 # arguments.  Must try -L first in case configure is actually a
2889 # symlink; some systems play weird games with the mod time of symlinks
2890 # (eg FreeBSD returns the mod time of the symlink's containing
2891 # directory).
2892 if (
2893    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2894    if test "$*" = "X"; then
2895       # -L didn't work.
2896       set X `ls -t "$srcdir/configure" conftest.file`
2897    fi
2898    rm -f conftest.file
2899    if test "$*" != "X $srcdir/configure conftest.file" \
2900       && test "$*" != "X conftest.file $srcdir/configure"; then
2901
2902       # If neither matched, then we have a broken ls.  This can happen
2903       # if, for instance, CONFIG_SHELL is bash and it inherits a
2904       # broken ls alias from the environment.  This has actually
2905       # happened.  Such a system could not be considered "sane".
2906       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2907 alias in your environment" "$LINENO" 5
2908    fi
2909
2910    test "$2" = conftest.file
2911    )
2912 then
2913    # Ok.
2914    :
2915 else
2916    as_fn_error $? "newly created file is older than distributed files!
2917 Check your system clock" "$LINENO" 5
2918 fi
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2920 $as_echo "yes" >&6; }
2921 test "$program_prefix" != NONE &&
2922   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2923 # Use a double $ so make ignores it.
2924 test "$program_suffix" != NONE &&
2925   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2926 # Double any \ or $.
2927 # By default was `s,x,x', remove it if useless.
2928 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2929 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2930
2931 if test x"${MISSING+set}" != xset; then
2932   case $am_aux_dir in
2933   *\ * | *\     *)
2934     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2935   *)
2936     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2937   esac
2938 fi
2939 # Use eval to expand $SHELL
2940 if eval "$MISSING --run true"; then
2941   am_missing_run="$MISSING --run "
2942 else
2943   am_missing_run=
2944   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2945 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2946 fi
2947
2948 if test x"${install_sh}" != xset; then
2949   case $am_aux_dir in
2950   *\ * | *\     *)
2951     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2952   *)
2953     install_sh="\${SHELL} $am_aux_dir/install-sh"
2954   esac
2955 fi
2956
2957 # Installed binaries are usually stripped using `strip' when the user
2958 # run `make install-strip'.  However `strip' might not be the right
2959 # tool to use in cross-compilation environments, therefore Automake
2960 # will honor the `STRIP' environment variable to overrule this program.
2961 if test "$cross_compiling" != no; then
2962   if test -n "$ac_tool_prefix"; then
2963   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}strip; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_STRIP+:} false; then :
2968   $as_echo_n "(cached) " >&6
2969 else
2970   if test -n "$STRIP"; then
2971   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976   IFS=$as_save_IFS
2977   test -z "$as_dir" && as_dir=.
2978     for ac_exec_ext in '' $ac_executable_extensions; do
2979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982     break 2
2983   fi
2984 done
2985   done
2986 IFS=$as_save_IFS
2987
2988 fi
2989 fi
2990 STRIP=$ac_cv_prog_STRIP
2991 if test -n "$STRIP"; then
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2993 $as_echo "$STRIP" >&6; }
2994 else
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 fi
2998
2999
3000 fi
3001 if test -z "$ac_cv_prog_STRIP"; then
3002   ac_ct_STRIP=$STRIP
3003   # Extract the first word of "strip", so it can be a program name with args.
3004 set dummy strip; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3008   $as_echo_n "(cached) " >&6
3009 else
3010   if test -n "$ac_ct_STRIP"; then
3011   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016   IFS=$as_save_IFS
3017   test -z "$as_dir" && as_dir=.
3018     for ac_exec_ext in '' $ac_executable_extensions; do
3019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020     ac_cv_prog_ac_ct_STRIP="strip"
3021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022     break 2
3023   fi
3024 done
3025   done
3026 IFS=$as_save_IFS
3027
3028 fi
3029 fi
3030 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3031 if test -n "$ac_ct_STRIP"; then
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3033 $as_echo "$ac_ct_STRIP" >&6; }
3034 else
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 fi
3038
3039   if test "x$ac_ct_STRIP" = x; then
3040     STRIP=":"
3041   else
3042     case $cross_compiling:$ac_tool_warned in
3043 yes:)
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046 ac_tool_warned=yes ;;
3047 esac
3048     STRIP=$ac_ct_STRIP
3049   fi
3050 else
3051   STRIP="$ac_cv_prog_STRIP"
3052 fi
3053
3054 fi
3055 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3056
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3058 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3059 if test -z "$MKDIR_P"; then
3060   if ${ac_cv_path_mkdir+:} false; then :
3061   $as_echo_n "(cached) " >&6
3062 else
3063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3065 do
3066   IFS=$as_save_IFS
3067   test -z "$as_dir" && as_dir=.
3068     for ac_prog in mkdir gmkdir; do
3069          for ac_exec_ext in '' $ac_executable_extensions; do
3070            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3071            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3072              'mkdir (GNU coreutils) '* | \
3073              'mkdir (coreutils) '* | \
3074              'mkdir (fileutils) '4.1*)
3075                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3076                break 3;;
3077            esac
3078          done
3079        done
3080   done
3081 IFS=$as_save_IFS
3082
3083 fi
3084
3085   test -d ./--version && rmdir ./--version
3086   if test "${ac_cv_path_mkdir+set}" = set; then
3087     MKDIR_P="$ac_cv_path_mkdir -p"
3088   else
3089     # As a last resort, use the slow shell script.  Don't cache a
3090     # value for MKDIR_P within a source directory, because that will
3091     # break other packages using the cache if that directory is
3092     # removed, or if the value is a relative name.
3093     MKDIR_P="$ac_install_sh -d"
3094   fi
3095 fi
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3097 $as_echo "$MKDIR_P" >&6; }
3098
3099 mkdir_p="$MKDIR_P"
3100 case $mkdir_p in
3101   [\\/$]* | ?:[\\/]*) ;;
3102   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3103 esac
3104
3105 for ac_prog in gawk mawk nawk awk
3106 do
3107   # Extract the first word of "$ac_prog", so it can be a program name with args.
3108 set dummy $ac_prog; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if ${ac_cv_prog_AWK+:} false; then :
3112   $as_echo_n "(cached) " >&6
3113 else
3114   if test -n "$AWK"; then
3115   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3119 do
3120   IFS=$as_save_IFS
3121   test -z "$as_dir" && as_dir=.
3122     for ac_exec_ext in '' $ac_executable_extensions; do
3123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124     ac_cv_prog_AWK="$ac_prog"
3125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126     break 2
3127   fi
3128 done
3129   done
3130 IFS=$as_save_IFS
3131
3132 fi
3133 fi
3134 AWK=$ac_cv_prog_AWK
3135 if test -n "$AWK"; then
3136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3137 $as_echo "$AWK" >&6; }
3138 else
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3141 fi
3142
3143
3144   test -n "$AWK" && break
3145 done
3146
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3148 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3149 set x ${MAKE-make}
3150 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3151 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3152   $as_echo_n "(cached) " >&6
3153 else
3154   cat >conftest.make <<\_ACEOF
3155 SHELL = /bin/sh
3156 all:
3157         @echo '@@@%%%=$(MAKE)=@@@%%%'
3158 _ACEOF
3159 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3160 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3161   *@@@%%%=?*=@@@%%%*)
3162     eval ac_cv_prog_make_${ac_make}_set=yes;;
3163   *)
3164     eval ac_cv_prog_make_${ac_make}_set=no;;
3165 esac
3166 rm -f conftest.make
3167 fi
3168 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170 $as_echo "yes" >&6; }
3171   SET_MAKE=
3172 else
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175   SET_MAKE="MAKE=${MAKE-make}"
3176 fi
3177
3178 rm -rf .tst 2>/dev/null
3179 mkdir .tst 2>/dev/null
3180 if test -d .tst; then
3181   am__leading_dot=.
3182 else
3183   am__leading_dot=_
3184 fi
3185 rmdir .tst 2>/dev/null
3186
3187 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3188   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3189   # is not polluted with repeated "-I."
3190   am__isrc=' -I$(srcdir)'
3191   # test to see if srcdir already configured
3192   if test -f $srcdir/config.status; then
3193     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3194   fi
3195 fi
3196
3197 # test whether we have cygpath
3198 if test -z "$CYGPATH_W"; then
3199   if (cygpath --version) >/dev/null 2>/dev/null; then
3200     CYGPATH_W='cygpath -w'
3201   else
3202     CYGPATH_W=echo
3203   fi
3204 fi
3205
3206
3207 # Define the identity of the package.
3208  PACKAGE='libffi'
3209  VERSION='3.0.11'
3210
3211
3212 cat >>confdefs.h <<_ACEOF
3213 #define PACKAGE "$PACKAGE"
3214 _ACEOF
3215
3216
3217 cat >>confdefs.h <<_ACEOF
3218 #define VERSION "$VERSION"
3219 _ACEOF
3220
3221 # Some tools Automake needs.
3222
3223 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3224
3225
3226 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3227
3228
3229 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3230
3231
3232 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3233
3234
3235 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3236
3237 # We need awk for the "check" target.  The system "awk" is bad on
3238 # some platforms.
3239 # Always define AMTAR for backward compatibility.  Yes, it's still used
3240 # in the wild :-(  We should find a proper way to deprecate it ...
3241 AMTAR='$${TAR-tar}'
3242
3243 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3244
3245
3246
3247
3248
3249
3250 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3251 # We must force CC to /not/ be precious variables; otherwise
3252 # the wrong, non-multilib-adjusted value will be used in multilibs.
3253 # As a side effect, we have to subst CFLAGS ourselves.
3254 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3255 # defaults of its own if none are provided.
3256
3257
3258
3259 save_CFLAGS=$CFLAGS
3260 ac_ext=c
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265 if test -n "$ac_tool_prefix"; then
3266   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_CC+:} false; then :
3271   $as_echo_n "(cached) " >&6
3272 else
3273   if test -n "$CC"; then
3274   ac_cv_prog_CC="$CC" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281     for ac_exec_ext in '' $ac_executable_extensions; do
3282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285     break 2
3286   fi
3287 done
3288   done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 CC=$ac_cv_prog_CC
3294 if test -n "$CC"; then
3295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3297 else
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 fi
3301
3302
3303 fi
3304 if test -z "$ac_cv_prog_CC"; then
3305   ac_ct_CC=$CC
3306   # Extract the first word of "gcc", so it can be a program name with args.
3307 set dummy gcc; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3311   $as_echo_n "(cached) " >&6
3312 else
3313   if test -n "$ac_ct_CC"; then
3314   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321     for ac_exec_ext in '' $ac_executable_extensions; do
3322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323     ac_cv_prog_ac_ct_CC="gcc"
3324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325     break 2
3326   fi
3327 done
3328   done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3334 if test -n "$ac_ct_CC"; then
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3336 $as_echo "$ac_ct_CC" >&6; }
3337 else
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 fi
3341
3342   if test "x$ac_ct_CC" = x; then
3343     CC=""
3344   else
3345     case $cross_compiling:$ac_tool_warned in
3346 yes:)
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3349 ac_tool_warned=yes ;;
3350 esac
3351     CC=$ac_ct_CC
3352   fi
3353 else
3354   CC="$ac_cv_prog_CC"
3355 fi
3356
3357 if test -z "$CC"; then
3358           if test -n "$ac_tool_prefix"; then
3359     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3360 set dummy ${ac_tool_prefix}cc; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_CC+:} false; then :
3364   $as_echo_n "(cached) " >&6
3365 else
3366   if test -n "$CC"; then
3367   ac_cv_prog_CC="$CC" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3371 do
3372   IFS=$as_save_IFS
3373   test -z "$as_dir" && as_dir=.
3374     for ac_exec_ext in '' $ac_executable_extensions; do
3375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3376     ac_cv_prog_CC="${ac_tool_prefix}cc"
3377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378     break 2
3379   fi
3380 done
3381   done
3382 IFS=$as_save_IFS
3383
3384 fi
3385 fi
3386 CC=$ac_cv_prog_CC
3387 if test -n "$CC"; then
3388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3389 $as_echo "$CC" >&6; }
3390 else
3391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3393 fi
3394
3395
3396   fi
3397 fi
3398 if test -z "$CC"; then
3399   # Extract the first word of "cc", so it can be a program name with args.
3400 set dummy cc; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if ${ac_cv_prog_CC+:} false; then :
3404   $as_echo_n "(cached) " >&6
3405 else
3406   if test -n "$CC"; then
3407   ac_cv_prog_CC="$CC" # Let the user override the test.
3408 else
3409   ac_prog_rejected=no
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3412 do
3413   IFS=$as_save_IFS
3414   test -z "$as_dir" && as_dir=.
3415     for ac_exec_ext in '' $ac_executable_extensions; do
3416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3418        ac_prog_rejected=yes
3419        continue
3420      fi
3421     ac_cv_prog_CC="cc"
3422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423     break 2
3424   fi
3425 done
3426   done
3427 IFS=$as_save_IFS
3428
3429 if test $ac_prog_rejected = yes; then
3430   # We found a bogon in the path, so make sure we never use it.
3431   set dummy $ac_cv_prog_CC
3432   shift
3433   if test $# != 0; then
3434     # We chose a different compiler from the bogus one.
3435     # However, it has the same basename, so the bogon will be chosen
3436     # first if we set CC to just the basename; use the full file name.
3437     shift
3438     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3439   fi
3440 fi
3441 fi
3442 fi
3443 CC=$ac_cv_prog_CC
3444 if test -n "$CC"; then
3445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3446 $as_echo "$CC" >&6; }
3447 else
3448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3450 fi
3451
3452
3453 fi
3454 if test -z "$CC"; then
3455   if test -n "$ac_tool_prefix"; then
3456   for ac_prog in cl.exe
3457   do
3458     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if ${ac_cv_prog_CC+:} false; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   if test -n "$CC"; then
3466   ac_cv_prog_CC="$CC" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471   IFS=$as_save_IFS
3472   test -z "$as_dir" && as_dir=.
3473     for ac_exec_ext in '' $ac_executable_extensions; do
3474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480   done
3481 IFS=$as_save_IFS
3482
3483 fi
3484 fi
3485 CC=$ac_cv_prog_CC
3486 if test -n "$CC"; then
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3489 else
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3492 fi
3493
3494
3495     test -n "$CC" && break
3496   done
3497 fi
3498 if test -z "$CC"; then
3499   ac_ct_CC=$CC
3500   for ac_prog in cl.exe
3501 do
3502   # Extract the first word of "$ac_prog", so it can be a program name with args.
3503 set dummy $ac_prog; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3507   $as_echo_n "(cached) " >&6
3508 else
3509   if test -n "$ac_ct_CC"; then
3510   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3511 else
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515   IFS=$as_save_IFS
3516   test -z "$as_dir" && as_dir=.
3517     for ac_exec_ext in '' $ac_executable_extensions; do
3518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519     ac_cv_prog_ac_ct_CC="$ac_prog"
3520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521     break 2
3522   fi
3523 done
3524   done
3525 IFS=$as_save_IFS
3526
3527 fi
3528 fi
3529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3530 if test -n "$ac_ct_CC"; then
3531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3532 $as_echo "$ac_ct_CC" >&6; }
3533 else
3534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3536 fi
3537
3538
3539   test -n "$ac_ct_CC" && break
3540 done
3541
3542   if test "x$ac_ct_CC" = x; then
3543     CC=""
3544   else
3545     case $cross_compiling:$ac_tool_warned in
3546 yes:)
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3549 ac_tool_warned=yes ;;
3550 esac
3551     CC=$ac_ct_CC
3552   fi
3553 fi
3554
3555 fi
3556
3557
3558 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 as_fn_error $? "no acceptable C compiler found in \$PATH
3561 See \`config.log' for more details" "$LINENO" 5; }
3562
3563 # Provide some information about the compiler.
3564 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3565 set X $ac_compile
3566 ac_compiler=$2
3567 for ac_option in --version -v -V -qversion; do
3568   { { ac_try="$ac_compiler $ac_option >&5"
3569 case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3576   ac_status=$?
3577   if test -s conftest.err; then
3578     sed '10a\
3579 ... rest of stderr output deleted ...
3580          10q' conftest.err >conftest.er1
3581     cat conftest.er1 >&5
3582   fi
3583   rm -f conftest.er1 conftest.err
3584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585   test $ac_status = 0; }
3586 done
3587
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h.  */
3590
3591 int
3592 main ()
3593 {
3594
3595   ;
3596   return 0;
3597 }
3598 _ACEOF
3599 ac_clean_files_save=$ac_clean_files
3600 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3601 # Try to create an executable without -o first, disregard a.out.
3602 # It will help us diagnose broken compilers, and finding out an intuition
3603 # of exeext.
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3605 $as_echo_n "checking whether the C compiler works... " >&6; }
3606 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3607
3608 # The possible output files:
3609 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3610
3611 ac_rmfiles=
3612 for ac_file in $ac_files
3613 do
3614   case $ac_file in
3615     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3616     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3617   esac
3618 done
3619 rm -f $ac_rmfiles
3620
3621 if { { ac_try="$ac_link_default"
3622 case "(($ac_try" in
3623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624   *) ac_try_echo=$ac_try;;
3625 esac
3626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627 $as_echo "$ac_try_echo"; } >&5
3628   (eval "$ac_link_default") 2>&5
3629   ac_status=$?
3630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631   test $ac_status = 0; }; then :
3632   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3633 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3634 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3635 # so that the user can short-circuit this test for compilers unknown to
3636 # Autoconf.
3637 for ac_file in $ac_files ''
3638 do
3639   test -f "$ac_file" || continue
3640   case $ac_file in
3641     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3642         ;;
3643     [ab].out )
3644         # We found the default executable, but exeext='' is most
3645         # certainly right.
3646         break;;
3647     *.* )
3648         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3649         then :; else
3650            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3651         fi
3652         # We set ac_cv_exeext here because the later test for it is not
3653         # safe: cross compilers may not add the suffix if given an `-o'
3654         # argument, so we may need to know it at that point already.
3655         # Even if this section looks crufty: it has the advantage of
3656         # actually working.
3657         break;;
3658     * )
3659         break;;
3660   esac
3661 done
3662 test "$ac_cv_exeext" = no && ac_cv_exeext=
3663
3664 else
3665   ac_file=''
3666 fi
3667 if test -z "$ac_file"; then :
3668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3670 $as_echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3672
3673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675 as_fn_error 77 "C compiler cannot create executables
3676 See \`config.log' for more details" "$LINENO" 5; }
3677 else
3678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3679 $as_echo "yes" >&6; }
3680 fi
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3682 $as_echo_n "checking for C compiler default output file name... " >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3684 $as_echo "$ac_file" >&6; }
3685 ac_exeext=$ac_cv_exeext
3686
3687 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3688 ac_clean_files=$ac_clean_files_save
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3690 $as_echo_n "checking for suffix of executables... " >&6; }
3691 if { { ac_try="$ac_link"
3692 case "(($ac_try" in
3693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694   *) ac_try_echo=$ac_try;;
3695 esac
3696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697 $as_echo "$ac_try_echo"; } >&5
3698   (eval "$ac_link") 2>&5
3699   ac_status=$?
3700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701   test $ac_status = 0; }; then :
3702   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3703 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3704 # work properly (i.e., refer to `conftest.exe'), while it won't with
3705 # `rm'.
3706 for ac_file in conftest.exe conftest conftest.*; do
3707   test -f "$ac_file" || continue
3708   case $ac_file in
3709     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3710     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3711           break;;
3712     * ) break;;
3713   esac
3714 done
3715 else
3716   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3719 See \`config.log' for more details" "$LINENO" 5; }
3720 fi
3721 rm -f conftest conftest$ac_cv_exeext
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3723 $as_echo "$ac_cv_exeext" >&6; }
3724
3725 rm -f conftest.$ac_ext
3726 EXEEXT=$ac_cv_exeext
3727 ac_exeext=$EXEEXT
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h.  */
3730 #include <stdio.h>
3731 int
3732 main ()
3733 {
3734 FILE *f = fopen ("conftest.out", "w");
3735  return ferror (f) || fclose (f) != 0;
3736
3737   ;
3738   return 0;
3739 }
3740 _ACEOF
3741 ac_clean_files="$ac_clean_files conftest.out"
3742 # Check that the compiler produces executables we can run.  If not, either
3743 # the compiler is broken, or we cross compile.
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3745 $as_echo_n "checking whether we are cross compiling... " >&6; }
3746 if test "$cross_compiling" != yes; then
3747   { { ac_try="$ac_link"
3748 case "(($ac_try" in
3749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750   *) ac_try_echo=$ac_try;;
3751 esac
3752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3753 $as_echo "$ac_try_echo"; } >&5
3754   (eval "$ac_link") 2>&5
3755   ac_status=$?
3756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3757   test $ac_status = 0; }
3758   if { ac_try='./conftest$ac_cv_exeext'
3759   { { case "(($ac_try" in
3760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761   *) ac_try_echo=$ac_try;;
3762 esac
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 $as_echo "$ac_try_echo"; } >&5
3765   (eval "$ac_try") 2>&5
3766   ac_status=$?
3767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768   test $ac_status = 0; }; }; then
3769     cross_compiling=no
3770   else
3771     if test "$cross_compiling" = maybe; then
3772         cross_compiling=yes
3773     else
3774         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776 as_fn_error $? "cannot run C compiled programs.
3777 If you meant to cross compile, use \`--host'.
3778 See \`config.log' for more details" "$LINENO" 5; }
3779     fi
3780   fi
3781 fi
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3783 $as_echo "$cross_compiling" >&6; }
3784
3785 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3786 ac_clean_files=$ac_clean_files_save
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3788 $as_echo_n "checking for suffix of object files... " >&6; }
3789 if ${ac_cv_objext+:} false; then :
3790   $as_echo_n "(cached) " >&6
3791 else
3792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h.  */
3794
3795 int
3796 main ()
3797 {
3798
3799   ;
3800   return 0;
3801 }
3802 _ACEOF
3803 rm -f conftest.o conftest.obj
3804 if { { ac_try="$ac_compile"
3805 case "(($ac_try" in
3806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807   *) ac_try_echo=$ac_try;;
3808 esac
3809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810 $as_echo "$ac_try_echo"; } >&5
3811   (eval "$ac_compile") 2>&5
3812   ac_status=$?
3813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814   test $ac_status = 0; }; then :
3815   for ac_file in conftest.o conftest.obj conftest.*; do
3816   test -f "$ac_file" || continue;
3817   case $ac_file in
3818     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3819     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3820        break;;
3821   esac
3822 done
3823 else
3824   $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error $? "cannot compute suffix of object files: cannot compile
3830 See \`config.log' for more details" "$LINENO" 5; }
3831 fi
3832 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3835 $as_echo "$ac_cv_objext" >&6; }
3836 OBJEXT=$ac_cv_objext
3837 ac_objext=$OBJEXT
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3839 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3840 if ${ac_cv_c_compiler_gnu+:} false; then :
3841   $as_echo_n "(cached) " >&6
3842 else
3843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h.  */
3845
3846 int
3847 main ()
3848 {
3849 #ifndef __GNUC__
3850        choke me
3851 #endif
3852
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 if ac_fn_c_try_compile "$LINENO"; then :
3858   ac_compiler_gnu=yes
3859 else
3860   ac_compiler_gnu=no
3861 fi
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3864
3865 fi
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3867 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3868 if test $ac_compiler_gnu = yes; then
3869   GCC=yes
3870 else
3871   GCC=
3872 fi
3873 ac_test_CFLAGS=${CFLAGS+set}
3874 ac_save_CFLAGS=$CFLAGS
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3876 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3877 if ${ac_cv_prog_cc_g+:} false; then :
3878   $as_echo_n "(cached) " >&6
3879 else
3880   ac_save_c_werror_flag=$ac_c_werror_flag
3881    ac_c_werror_flag=yes
3882    ac_cv_prog_cc_g=no
3883    CFLAGS="-g"
3884    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h.  */
3886
3887 int
3888 main ()
3889 {
3890
3891   ;
3892   return 0;
3893 }
3894 _ACEOF
3895 if ac_fn_c_try_compile "$LINENO"; then :
3896   ac_cv_prog_cc_g=yes
3897 else
3898   CFLAGS=""
3899       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h.  */
3901
3902 int
3903 main ()
3904 {
3905
3906   ;
3907   return 0;
3908 }
3909 _ACEOF
3910 if ac_fn_c_try_compile "$LINENO"; then :
3911
3912 else
3913   ac_c_werror_flag=$ac_save_c_werror_flag
3914          CFLAGS="-g"
3915          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h.  */
3917
3918 int
3919 main ()
3920 {
3921
3922   ;
3923   return 0;
3924 }
3925 _ACEOF
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927   ac_cv_prog_cc_g=yes
3928 fi
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 fi
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 fi
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934    ac_c_werror_flag=$ac_save_c_werror_flag
3935 fi
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3937 $as_echo "$ac_cv_prog_cc_g" >&6; }
3938 if test "$ac_test_CFLAGS" = set; then
3939   CFLAGS=$ac_save_CFLAGS
3940 elif test $ac_cv_prog_cc_g = yes; then
3941   if test "$GCC" = yes; then
3942     CFLAGS="-g -O2"
3943   else
3944     CFLAGS="-g"
3945   fi
3946 else
3947   if test "$GCC" = yes; then
3948     CFLAGS="-O2"
3949   else
3950     CFLAGS=
3951   fi
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3954 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3955 if ${ac_cv_prog_cc_c89+:} false; then :
3956   $as_echo_n "(cached) " >&6
3957 else
3958   ac_cv_prog_cc_c89=no
3959 ac_save_CC=$CC
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h.  */
3962 #include <stdarg.h>
3963 #include <stdio.h>
3964 #include <sys/types.h>
3965 #include <sys/stat.h>
3966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3967 struct buf { int x; };
3968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3969 static char *e (p, i)
3970      char **p;
3971      int i;
3972 {
3973   return p[i];
3974 }
3975 static char *f (char * (*g) (char **, int), char **p, ...)
3976 {
3977   char *s;
3978   va_list v;
3979   va_start (v,p);
3980   s = g (p, va_arg (v,int));
3981   va_end (v);
3982   return s;
3983 }
3984
3985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3986    function prototypes and stuff, but not '\xHH' hex character constants.
3987    These don't provoke an error unfortunately, instead are silently treated
3988    as 'x'.  The following induces an error, until -std is added to get
3989    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3990    array size at least.  It's necessary to write '\x00'==0 to get something
3991    that's true only with -std.  */
3992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3993
3994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3995    inside strings and character constants.  */
3996 #define FOO(x) 'x'
3997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3998
3999 int test (int i, double x);
4000 struct s1 {int (*f) (int a);};
4001 struct s2 {int (*f) (double a);};
4002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4003 int argc;
4004 char **argv;
4005 int
4006 main ()
4007 {
4008 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4009   ;
4010   return 0;
4011 }
4012 _ACEOF
4013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4014         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4015 do
4016   CC="$ac_save_CC $ac_arg"
4017   if ac_fn_c_try_compile "$LINENO"; then :
4018   ac_cv_prog_cc_c89=$ac_arg
4019 fi
4020 rm -f core conftest.err conftest.$ac_objext
4021   test "x$ac_cv_prog_cc_c89" != "xno" && break
4022 done
4023 rm -f conftest.$ac_ext
4024 CC=$ac_save_CC
4025
4026 fi
4027 # AC_CACHE_VAL
4028 case "x$ac_cv_prog_cc_c89" in
4029   x)
4030     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4031 $as_echo "none needed" >&6; } ;;
4032   xno)
4033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4034 $as_echo "unsupported" >&6; } ;;
4035   *)
4036     CC="$CC $ac_cv_prog_cc_c89"
4037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4038 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4039 esac
4040 if test "x$ac_cv_prog_cc_c89" != xno; then :
4041
4042 fi
4043
4044 ac_ext=c
4045 ac_cpp='$CPP $CPPFLAGS'
4046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049 DEPDIR="${am__leading_dot}deps"
4050
4051 ac_config_commands="$ac_config_commands depfiles"
4052
4053
4054 am_make=${MAKE-make}
4055 cat > confinc << 'END'
4056 am__doit:
4057         @echo this is the am__doit target
4058 .PHONY: am__doit
4059 END
4060 # If we don't find an include directive, just comment out the code.
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4062 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4063 am__include="#"
4064 am__quote=
4065 _am_result=none
4066 # First try GNU make style include.
4067 echo "include confinc" > confmf
4068 # Ignore all kinds of additional output from `make'.
4069 case `$am_make -s -f confmf 2> /dev/null` in #(
4070 *the\ am__doit\ target*)
4071   am__include=include
4072   am__quote=
4073   _am_result=GNU
4074   ;;
4075 esac
4076 # Now try BSD make style include.
4077 if test "$am__include" = "#"; then
4078    echo '.include "confinc"' > confmf
4079    case `$am_make -s -f confmf 2> /dev/null` in #(
4080    *the\ am__doit\ target*)
4081      am__include=.include
4082      am__quote="\""
4083      _am_result=BSD
4084      ;;
4085    esac
4086 fi
4087
4088
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4090 $as_echo "$_am_result" >&6; }
4091 rm -f confinc confmf
4092
4093 # Check whether --enable-dependency-tracking was given.
4094 if test "${enable_dependency_tracking+set}" = set; then :
4095   enableval=$enable_dependency_tracking;
4096 fi
4097
4098 if test "x$enable_dependency_tracking" != xno; then
4099   am_depcomp="$ac_aux_dir/depcomp"
4100   AMDEPBACKSLASH='\'
4101   am__nodep='_no'
4102 fi
4103  if test "x$enable_dependency_tracking" != xno; then
4104   AMDEP_TRUE=
4105   AMDEP_FALSE='#'
4106 else
4107   AMDEP_TRUE='#'
4108   AMDEP_FALSE=
4109 fi
4110
4111
4112
4113 depcc="$CC"   am_compiler_list=
4114
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4116 $as_echo_n "checking dependency style of $depcc... " >&6; }
4117 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4118   $as_echo_n "(cached) " >&6
4119 else
4120   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4121   # We make a subdir and do the tests there.  Otherwise we can end up
4122   # making bogus files that we don't know about and never remove.  For
4123   # instance it was reported that on HP-UX the gcc test will end up
4124   # making a dummy file named `D' -- because `-MD' means `put the output
4125   # in D'.
4126   rm -rf conftest.dir
4127   mkdir conftest.dir
4128   # Copy depcomp to subdir because otherwise we won't find it if we're
4129   # using a relative directory.
4130   cp "$am_depcomp" conftest.dir
4131   cd conftest.dir
4132   # We will build objects and dependencies in a subdirectory because
4133   # it helps to detect inapplicable dependency modes.  For instance
4134   # both Tru64's cc and ICC support -MD to output dependencies as a
4135   # side effect of compilation, but ICC will put the dependencies in
4136   # the current directory while Tru64 will put them in the object
4137   # directory.
4138   mkdir sub
4139
4140   am_cv_CC_dependencies_compiler_type=none
4141   if test "$am_compiler_list" = ""; then
4142      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4143   fi
4144   am__universal=false
4145   case " $depcc " in #(
4146      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4147      esac
4148
4149   for depmode in $am_compiler_list; do
4150     # Setup a source with many dependencies, because some compilers
4151     # like to wrap large dependency lists on column 80 (with \), and
4152     # we should not choose a depcomp mode which is confused by this.
4153     #
4154     # We need to recreate these files for each test, as the compiler may
4155     # overwrite some of them when testing with obscure command lines.
4156     # This happens at least with the AIX C compiler.
4157     : > sub/conftest.c
4158     for i in 1 2 3 4 5 6; do
4159       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4160       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4161       # Solaris 8's {/usr,}/bin/sh.
4162       touch sub/conftst$i.h
4163     done
4164     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4165
4166     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4167     # mode.  It turns out that the SunPro C++ compiler does not properly
4168     # handle `-M -o', and we need to detect this.  Also, some Intel
4169     # versions had trouble with output in subdirs
4170     am__obj=sub/conftest.${OBJEXT-o}
4171     am__minus_obj="-o $am__obj"
4172     case $depmode in
4173     gcc)
4174       # This depmode causes a compiler race in universal mode.
4175       test "$am__universal" = false || continue
4176       ;;
4177     nosideeffect)
4178       # after this tag, mechanisms are not by side-effect, so they'll
4179       # only be used when explicitly requested
4180       if test "x$enable_dependency_tracking" = xyes; then
4181         continue
4182       else
4183         break
4184       fi
4185       ;;
4186     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4187       # This compiler won't grok `-c -o', but also, the minuso test has
4188       # not run yet.  These depmodes are late enough in the game, and
4189       # so weak that their functioning should not be impacted.
4190       am__obj=conftest.${OBJEXT-o}
4191       am__minus_obj=
4192       ;;
4193     none) break ;;
4194     esac
4195     if depmode=$depmode \
4196        source=sub/conftest.c object=$am__obj \
4197        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4198        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4199          >/dev/null 2>conftest.err &&
4200        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4201        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4202        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4203        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4204       # icc doesn't choke on unknown options, it will just issue warnings
4205       # or remarks (even with -Werror).  So we grep stderr for any message
4206       # that says an option was ignored or not supported.
4207       # When given -MP, icc 7.0 and 7.1 complain thusly:
4208       #   icc: Command line warning: ignoring option '-M'; no argument required
4209       # The diagnosis changed in icc 8.0:
4210       #   icc: Command line remark: option '-MP' not supported
4211       if (grep 'ignoring option' conftest.err ||
4212           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4213         am_cv_CC_dependencies_compiler_type=$depmode
4214         break
4215       fi
4216     fi
4217   done
4218
4219   cd ..
4220   rm -rf conftest.dir
4221 else
4222   am_cv_CC_dependencies_compiler_type=none
4223 fi
4224
4225 fi
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4227 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4228 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4229
4230  if
4231   test "x$enable_dependency_tracking" != xno \
4232   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4233   am__fastdepCC_TRUE=
4234   am__fastdepCC_FALSE='#'
4235 else
4236   am__fastdepCC_TRUE='#'
4237   am__fastdepCC_FALSE=
4238 fi
4239
4240
4241 CFLAGS=$save_CFLAGS
4242
4243
4244
4245
4246
4247 # By default we simply use the C compiler to build assembly code.
4248
4249 test "${CCAS+set}" = set || CCAS=$CC
4250 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4251
4252
4253
4254 depcc="$CCAS"   am_compiler_list=
4255
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4257 $as_echo_n "checking dependency style of $depcc... " >&6; }
4258 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4259   $as_echo_n "(cached) " >&6
4260 else
4261   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4262   # We make a subdir and do the tests there.  Otherwise we can end up
4263   # making bogus files that we don't know about and never remove.  For
4264   # instance it was reported that on HP-UX the gcc test will end up
4265   # making a dummy file named `D' -- because `-MD' means `put the output
4266   # in D'.
4267   rm -rf conftest.dir
4268   mkdir conftest.dir
4269   # Copy depcomp to subdir because otherwise we won't find it if we're
4270   # using a relative directory.
4271   cp "$am_depcomp" conftest.dir
4272   cd conftest.dir
4273   # We will build objects and dependencies in a subdirectory because
4274   # it helps to detect inapplicable dependency modes.  For instance
4275   # both Tru64's cc and ICC support -MD to output dependencies as a
4276   # side effect of compilation, but ICC will put the dependencies in
4277   # the current directory while Tru64 will put them in the object
4278   # directory.
4279   mkdir sub
4280
4281   am_cv_CCAS_dependencies_compiler_type=none
4282   if test "$am_compiler_list" = ""; then
4283      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4284   fi
4285   am__universal=false
4286
4287
4288   for depmode in $am_compiler_list; do
4289     # Setup a source with many dependencies, because some compilers
4290     # like to wrap large dependency lists on column 80 (with \), and
4291     # we should not choose a depcomp mode which is confused by this.
4292     #
4293     # We need to recreate these files for each test, as the compiler may
4294     # overwrite some of them when testing with obscure command lines.
4295     # This happens at least with the AIX C compiler.
4296     : > sub/conftest.c
4297     for i in 1 2 3 4 5 6; do
4298       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4299       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4300       # Solaris 8's {/usr,}/bin/sh.
4301       touch sub/conftst$i.h
4302     done
4303     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4304
4305     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4306     # mode.  It turns out that the SunPro C++ compiler does not properly
4307     # handle `-M -o', and we need to detect this.  Also, some Intel
4308     # versions had trouble with output in subdirs
4309     am__obj=sub/conftest.${OBJEXT-o}
4310     am__minus_obj="-o $am__obj"
4311     case $depmode in
4312     gcc)
4313       # This depmode causes a compiler race in universal mode.
4314       test "$am__universal" = false || continue
4315       ;;
4316     nosideeffect)
4317       # after this tag, mechanisms are not by side-effect, so they'll
4318       # only be used when explicitly requested
4319       if test "x$enable_dependency_tracking" = xyes; then
4320         continue
4321       else
4322         break
4323       fi
4324       ;;
4325     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4326       # This compiler won't grok `-c -o', but also, the minuso test has
4327       # not run yet.  These depmodes are late enough in the game, and
4328       # so weak that their functioning should not be impacted.
4329       am__obj=conftest.${OBJEXT-o}
4330       am__minus_obj=
4331       ;;
4332     none) break ;;
4333     esac
4334     if depmode=$depmode \
4335        source=sub/conftest.c object=$am__obj \
4336        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4337        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4338          >/dev/null 2>conftest.err &&
4339        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4340        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4341        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4342        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4343       # icc doesn't choke on unknown options, it will just issue warnings
4344       # or remarks (even with -Werror).  So we grep stderr for any message
4345       # that says an option was ignored or not supported.
4346       # When given -MP, icc 7.0 and 7.1 complain thusly:
4347       #   icc: Command line warning: ignoring option '-M'; no argument required
4348       # The diagnosis changed in icc 8.0:
4349       #   icc: Command line remark: option '-MP' not supported
4350       if (grep 'ignoring option' conftest.err ||
4351           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4352         am_cv_CCAS_dependencies_compiler_type=$depmode
4353         break
4354       fi
4355     fi
4356   done
4357
4358   cd ..
4359   rm -rf conftest.dir
4360 else
4361   am_cv_CCAS_dependencies_compiler_type=none
4362 fi
4363
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4366 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4367 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4368
4369  if
4370   test "x$enable_dependency_tracking" != xno \
4371   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4372   am__fastdepCCAS_TRUE=
4373   am__fastdepCCAS_FALSE='#'
4374 else
4375   am__fastdepCCAS_TRUE='#'
4376   am__fastdepCCAS_FALSE=
4377 fi
4378
4379
4380 if test "x$CC" != xcc; then
4381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4382 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4383 else
4384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4385 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4386 fi
4387 set dummy $CC; ac_cc=`$as_echo "$2" |
4388                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4389 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4390   $as_echo_n "(cached) " >&6
4391 else
4392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h.  */
4394
4395 int
4396 main ()
4397 {
4398
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403 # Make sure it works both with $CC and with simple cc.
4404 # We do the test twice because some compilers refuse to overwrite an
4405 # existing .o file with -o, though they will create one.
4406 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4407 rm -f conftest2.*
4408 if { { case "(($ac_try" in
4409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410   *) ac_try_echo=$ac_try;;
4411 esac
4412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4413 $as_echo "$ac_try_echo"; } >&5
4414   (eval "$ac_try") 2>&5
4415   ac_status=$?
4416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4417   test $ac_status = 0; } &&
4418    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 $as_echo "$ac_try_echo"; } >&5
4424   (eval "$ac_try") 2>&5
4425   ac_status=$?
4426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427   test $ac_status = 0; };
4428 then
4429   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4430   if test "x$CC" != xcc; then
4431     # Test first that cc exists at all.
4432     if { ac_try='cc -c conftest.$ac_ext >&5'
4433   { { case "(($ac_try" in
4434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435   *) ac_try_echo=$ac_try;;
4436 esac
4437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438 $as_echo "$ac_try_echo"; } >&5
4439   (eval "$ac_try") 2>&5
4440   ac_status=$?
4441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4442   test $ac_status = 0; }; }; then
4443       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4444       rm -f conftest2.*
4445       if { { case "(($ac_try" in
4446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447   *) ac_try_echo=$ac_try;;
4448 esac
4449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4450 $as_echo "$ac_try_echo"; } >&5
4451   (eval "$ac_try") 2>&5
4452   ac_status=$?
4453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4454   test $ac_status = 0; } &&
4455          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457   *) ac_try_echo=$ac_try;;
4458 esac
4459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460 $as_echo "$ac_try_echo"; } >&5
4461   (eval "$ac_try") 2>&5
4462   ac_status=$?
4463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4464   test $ac_status = 0; };
4465       then
4466         # cc works too.
4467         :
4468       else
4469         # cc exists but doesn't like -o.
4470         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4471       fi
4472     fi
4473   fi
4474 else
4475   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4476 fi
4477 rm -f core conftest*
4478
4479 fi
4480 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4482 $as_echo "yes" >&6; }
4483 else
4484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4486
4487 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4488
4489 fi
4490
4491 # FIXME: we rely on the cache variable name because
4492 # there is no other way.
4493 set dummy $CC
4494 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4495 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4496 if test "$am_t" != yes; then
4497    # Losing compiler, so override with the script.
4498    # FIXME: It is wrong to rewrite CC.
4499    # But if we don't then we get into trouble of one sort or another.
4500    # A longer-term fix would be to have automake use am__CC in this case,
4501    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4502    CC="$am_aux_dir/compile $CC"
4503 fi
4504
4505
4506 case `pwd` in
4507   *\ * | *\     *)
4508     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4509 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4510 esac
4511
4512
4513
4514 macro_version='2.4.2'
4515 macro_revision='1.3337'
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529 ltmain="$ac_aux_dir/ltmain.sh"
4530
4531 # Backslashify metacharacters that are still active within
4532 # double-quoted strings.
4533 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4534
4535 # Same as above, but do not quote variable references.
4536 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4537
4538 # Sed substitution to delay expansion of an escaped shell variable in a
4539 # double_quote_subst'ed string.
4540 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4541
4542 # Sed substitution to delay expansion of an escaped single quote.
4543 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4544
4545 # Sed substitution to avoid accidental globbing in evaled expressions
4546 no_glob_subst='s/\*/\\\*/g'
4547
4548 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4549 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4550 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4551
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4553 $as_echo_n "checking how to print strings... " >&6; }
4554 # Test print first, because it will be a builtin if present.
4555 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4556    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4557   ECHO='print -r --'
4558 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4559   ECHO='printf %s\n'
4560 else
4561   # Use this function as a fallback that always works.
4562   func_fallback_echo ()
4563   {
4564     eval 'cat <<_LTECHO_EOF
4565 $1
4566 _LTECHO_EOF'
4567   }
4568   ECHO='func_fallback_echo'
4569 fi
4570
4571 # func_echo_all arg...
4572 # Invoke $ECHO with all args, space-separated.
4573 func_echo_all ()
4574 {
4575     $ECHO ""
4576 }
4577
4578 case "$ECHO" in
4579   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4580 $as_echo "printf" >&6; } ;;
4581   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4582 $as_echo "print -r" >&6; } ;;
4583   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4584 $as_echo "cat" >&6; } ;;
4585 esac
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4601 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4602 if ${ac_cv_path_SED+:} false; then :
4603   $as_echo_n "(cached) " >&6
4604 else
4605             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4606      for ac_i in 1 2 3 4 5 6 7; do
4607        ac_script="$ac_script$as_nl$ac_script"
4608      done
4609      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4610      { ac_script=; unset ac_script;}
4611      if test -z "$SED"; then
4612   ac_path_SED_found=false
4613   # Loop through the user's path and test for each of PROGNAME-LIST
4614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619     for ac_prog in sed gsed; do
4620     for ac_exec_ext in '' $ac_executable_extensions; do
4621       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4622       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4623 # Check for GNU ac_path_SED and select it if it is found.
4624   # Check for GNU $ac_path_SED
4625 case `"$ac_path_SED" --version 2>&1` in
4626 *GNU*)
4627   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4628 *)
4629   ac_count=0
4630   $as_echo_n 0123456789 >"conftest.in"
4631   while :
4632   do
4633     cat "conftest.in" "conftest.in" >"conftest.tmp"
4634     mv "conftest.tmp" "conftest.in"
4635     cp "conftest.in" "conftest.nl"
4636     $as_echo '' >> "conftest.nl"
4637     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639     as_fn_arith $ac_count + 1 && ac_count=$as_val
4640     if test $ac_count -gt ${ac_path_SED_max-0}; then
4641       # Best one so far, save it but keep looking for a better one
4642       ac_cv_path_SED="$ac_path_SED"
4643       ac_path_SED_max=$ac_count
4644     fi
4645     # 10*(2^10) chars as input seems more than enough
4646     test $ac_count -gt 10 && break
4647   done
4648   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4649 esac
4650
4651       $ac_path_SED_found && break 3
4652     done
4653   done
4654   done
4655 IFS=$as_save_IFS
4656   if test -z "$ac_cv_path_SED"; then
4657     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4658   fi
4659 else
4660   ac_cv_path_SED=$SED
4661 fi
4662
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4665 $as_echo "$ac_cv_path_SED" >&6; }
4666  SED="$ac_cv_path_SED"
4667   rm -f conftest.sed
4668
4669 test -z "$SED" && SED=sed
4670 Xsed="$SED -e 1s/^X//"
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4683 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4684 if ${ac_cv_path_GREP+:} false; then :
4685   $as_echo_n "(cached) " >&6
4686 else
4687   if test -z "$GREP"; then
4688   ac_path_GREP_found=false
4689   # Loop through the user's path and test for each of PROGNAME-LIST
4690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4692 do
4693   IFS=$as_save_IFS
4694   test -z "$as_dir" && as_dir=.
4695     for ac_prog in grep ggrep; do
4696     for ac_exec_ext in '' $ac_executable_extensions; do
4697       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4698       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4699 # Check for GNU ac_path_GREP and select it if it is found.
4700   # Check for GNU $ac_path_GREP
4701 case `"$ac_path_GREP" --version 2>&1` in
4702 *GNU*)
4703   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4704 *)
4705   ac_count=0
4706   $as_echo_n 0123456789 >"conftest.in"
4707   while :
4708   do
4709     cat "conftest.in" "conftest.in" >"conftest.tmp"
4710     mv "conftest.tmp" "conftest.in"
4711     cp "conftest.in" "conftest.nl"
4712     $as_echo 'GREP' >> "conftest.nl"
4713     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4714     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4715     as_fn_arith $ac_count + 1 && ac_count=$as_val
4716     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4717       # Best one so far, save it but keep looking for a better one
4718       ac_cv_path_GREP="$ac_path_GREP"
4719       ac_path_GREP_max=$ac_count
4720     fi
4721     # 10*(2^10) chars as input seems more than enough
4722     test $ac_count -gt 10 && break
4723   done
4724   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4725 esac
4726
4727       $ac_path_GREP_found && break 3
4728     done
4729   done
4730   done
4731 IFS=$as_save_IFS
4732   if test -z "$ac_cv_path_GREP"; then
4733     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4734   fi
4735 else
4736   ac_cv_path_GREP=$GREP
4737 fi
4738
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4741 $as_echo "$ac_cv_path_GREP" >&6; }
4742  GREP="$ac_cv_path_GREP"
4743
4744
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4746 $as_echo_n "checking for egrep... " >&6; }
4747 if ${ac_cv_path_EGREP+:} false; then :
4748   $as_echo_n "(cached) " >&6
4749 else
4750   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4751    then ac_cv_path_EGREP="$GREP -E"
4752    else
4753      if test -z "$EGREP"; then
4754   ac_path_EGREP_found=false
4755   # Loop through the user's path and test for each of PROGNAME-LIST
4756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4758 do
4759   IFS=$as_save_IFS
4760   test -z "$as_dir" && as_dir=.
4761     for ac_prog in egrep; do
4762     for ac_exec_ext in '' $ac_executable_extensions; do
4763       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4764       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4765 # Check for GNU ac_path_EGREP and select it if it is found.
4766   # Check for GNU $ac_path_EGREP
4767 case `"$ac_path_EGREP" --version 2>&1` in
4768 *GNU*)
4769   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4770 *)
4771   ac_count=0
4772   $as_echo_n 0123456789 >"conftest.in"
4773   while :
4774   do
4775     cat "conftest.in" "conftest.in" >"conftest.tmp"
4776     mv "conftest.tmp" "conftest.in"
4777     cp "conftest.in" "conftest.nl"
4778     $as_echo 'EGREP' >> "conftest.nl"
4779     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4780     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4781     as_fn_arith $ac_count + 1 && ac_count=$as_val
4782     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4783       # Best one so far, save it but keep looking for a better one
4784       ac_cv_path_EGREP="$ac_path_EGREP"
4785       ac_path_EGREP_max=$ac_count
4786     fi
4787     # 10*(2^10) chars as input seems more than enough
4788     test $ac_count -gt 10 && break
4789   done
4790   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4791 esac
4792
4793       $ac_path_EGREP_found && break 3
4794     done
4795   done
4796   done
4797 IFS=$as_save_IFS
4798   if test -z "$ac_cv_path_EGREP"; then
4799     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4800   fi
4801 else
4802   ac_cv_path_EGREP=$EGREP
4803 fi
4804
4805    fi
4806 fi
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4808 $as_echo "$ac_cv_path_EGREP" >&6; }
4809  EGREP="$ac_cv_path_EGREP"
4810
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4813 $as_echo_n "checking for fgrep... " >&6; }
4814 if ${ac_cv_path_FGREP+:} false; then :
4815   $as_echo_n "(cached) " >&6
4816 else
4817   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4818    then ac_cv_path_FGREP="$GREP -F"
4819    else
4820      if test -z "$FGREP"; then
4821   ac_path_FGREP_found=false
4822   # Loop through the user's path and test for each of PROGNAME-LIST
4823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828     for ac_prog in fgrep; do
4829     for ac_exec_ext in '' $ac_executable_extensions; do
4830       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4831       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4832 # Check for GNU ac_path_FGREP and select it if it is found.
4833   # Check for GNU $ac_path_FGREP
4834 case `"$ac_path_FGREP" --version 2>&1` in
4835 *GNU*)
4836   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4837 *)
4838   ac_count=0
4839   $as_echo_n 0123456789 >"conftest.in"
4840   while :
4841   do
4842     cat "conftest.in" "conftest.in" >"conftest.tmp"
4843     mv "conftest.tmp" "conftest.in"
4844     cp "conftest.in" "conftest.nl"
4845     $as_echo 'FGREP' >> "conftest.nl"
4846     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4847     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4848     as_fn_arith $ac_count + 1 && ac_count=$as_val
4849     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4850       # Best one so far, save it but keep looking for a better one
4851       ac_cv_path_FGREP="$ac_path_FGREP"
4852       ac_path_FGREP_max=$ac_count
4853     fi
4854     # 10*(2^10) chars as input seems more than enough
4855     test $ac_count -gt 10 && break
4856   done
4857   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4858 esac
4859
4860       $ac_path_FGREP_found && break 3
4861     done
4862   done
4863   done
4864 IFS=$as_save_IFS
4865   if test -z "$ac_cv_path_FGREP"; then
4866     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4867   fi
4868 else
4869   ac_cv_path_FGREP=$FGREP
4870 fi
4871
4872    fi
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4875 $as_echo "$ac_cv_path_FGREP" >&6; }
4876  FGREP="$ac_cv_path_FGREP"
4877
4878
4879 test -z "$GREP" && GREP=grep
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899 # Check whether --with-gnu-ld was given.
4900 if test "${with_gnu_ld+set}" = set; then :
4901   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4902 else
4903   with_gnu_ld=no
4904 fi
4905
4906 ac_prog=ld
4907 if test "$GCC" = yes; then
4908   # Check if gcc -print-prog-name=ld gives a path.
4909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4910 $as_echo_n "checking for ld used by $CC... " >&6; }
4911   case $host in
4912   *-*-mingw*)
4913     # gcc leaves a trailing carriage return which upsets mingw
4914     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4915   *)
4916     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4917   esac
4918   case $ac_prog in
4919     # Accept absolute paths.
4920     [\\/]* | ?:[\\/]*)
4921       re_direlt='/[^/][^/]*/\.\./'
4922       # Canonicalize the pathname of ld
4923       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4924       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4925         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4926       done
4927       test -z "$LD" && LD="$ac_prog"
4928       ;;
4929   "")
4930     # If it fails, then pretend we aren't using GCC.
4931     ac_prog=ld
4932     ;;
4933   *)
4934     # If it is relative, then search for the first ld in PATH.
4935     with_gnu_ld=unknown
4936     ;;
4937   esac
4938 elif test "$with_gnu_ld" = yes; then
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4940 $as_echo_n "checking for GNU ld... " >&6; }
4941 else
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4943 $as_echo_n "checking for non-GNU ld... " >&6; }
4944 fi
4945 if ${lt_cv_path_LD+:} false; then :
4946   $as_echo_n "(cached) " >&6
4947 else
4948   if test -z "$LD"; then
4949   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4950   for ac_dir in $PATH; do
4951     IFS="$lt_save_ifs"
4952     test -z "$ac_dir" && ac_dir=.
4953     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4954       lt_cv_path_LD="$ac_dir/$ac_prog"
4955       # Check to see if the program is GNU ld.  I'd rather use --version,
4956       # but apparently some variants of GNU ld only accept -v.
4957       # Break only if it was the GNU/non-GNU ld that we prefer.
4958       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4959       *GNU* | *'with BFD'*)
4960         test "$with_gnu_ld" != no && break
4961         ;;
4962       *)
4963         test "$with_gnu_ld" != yes && break
4964         ;;
4965       esac
4966     fi
4967   done
4968   IFS="$lt_save_ifs"
4969 else
4970   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4971 fi
4972 fi
4973
4974 LD="$lt_cv_path_LD"
4975 if test -n "$LD"; then
4976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4977 $as_echo "$LD" >&6; }
4978 else
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4981 fi
4982 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4984 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4985 if ${lt_cv_prog_gnu_ld+:} false; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4989 case `$LD -v 2>&1 </dev/null` in
4990 *GNU* | *'with BFD'*)
4991   lt_cv_prog_gnu_ld=yes
4992   ;;
4993 *)
4994   lt_cv_prog_gnu_ld=no
4995   ;;
4996 esac
4997 fi
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4999 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5000 with_gnu_ld=$lt_cv_prog_gnu_ld
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5011 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5012 if ${lt_cv_path_NM+:} false; then :
5013   $as_echo_n "(cached) " >&6
5014 else
5015   if test -n "$NM"; then
5016   # Let the user override the test.
5017   lt_cv_path_NM="$NM"
5018 else
5019   lt_nm_to_check="${ac_tool_prefix}nm"
5020   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5021     lt_nm_to_check="$lt_nm_to_check nm"
5022   fi
5023   for lt_tmp_nm in $lt_nm_to_check; do
5024     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5025     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5026       IFS="$lt_save_ifs"
5027       test -z "$ac_dir" && ac_dir=.
5028       tmp_nm="$ac_dir/$lt_tmp_nm"
5029       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5030         # Check to see if the nm accepts a BSD-compat flag.
5031         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5032         #   nm: unknown option "B" ignored
5033         # Tru64's nm complains that /dev/null is an invalid object file
5034         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5035         */dev/null* | *'Invalid file or object type'*)
5036           lt_cv_path_NM="$tmp_nm -B"
5037           break
5038           ;;
5039         *)
5040           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5041           */dev/null*)
5042             lt_cv_path_NM="$tmp_nm -p"
5043             break
5044             ;;
5045           *)
5046             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5047             continue # so that we can try to find one that supports BSD flags
5048             ;;
5049           esac
5050           ;;
5051         esac
5052       fi
5053     done
5054     IFS="$lt_save_ifs"
5055   done
5056   : ${lt_cv_path_NM=no}
5057 fi
5058 fi
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5060 $as_echo "$lt_cv_path_NM" >&6; }
5061 if test "$lt_cv_path_NM" != "no"; then
5062   NM="$lt_cv_path_NM"
5063 else
5064   # Didn't find any BSD compatible name lister, look for dumpbin.
5065   if test -n "$DUMPBIN"; then :
5066     # Let the user override the test.
5067   else
5068     if test -n "$ac_tool_prefix"; then
5069   for ac_prog in dumpbin "link -dump"
5070   do
5071     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_DUMPBIN+:} false; then :
5076   $as_echo_n "(cached) " >&6
5077 else
5078   if test -n "$DUMPBIN"; then
5079   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084   IFS=$as_save_IFS
5085   test -z "$as_dir" && as_dir=.
5086     for ac_exec_ext in '' $ac_executable_extensions; do
5087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090     break 2
5091   fi
5092 done
5093   done
5094 IFS=$as_save_IFS
5095
5096 fi
5097 fi
5098 DUMPBIN=$ac_cv_prog_DUMPBIN
5099 if test -n "$DUMPBIN"; then
5100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5101 $as_echo "$DUMPBIN" >&6; }
5102 else
5103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5105 fi
5106
5107
5108     test -n "$DUMPBIN" && break
5109   done
5110 fi
5111 if test -z "$DUMPBIN"; then
5112   ac_ct_DUMPBIN=$DUMPBIN
5113   for ac_prog in dumpbin "link -dump"
5114 do
5115   # Extract the first word of "$ac_prog", so it can be a program name with args.
5116 set dummy $ac_prog; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5120   $as_echo_n "(cached) " >&6
5121 else
5122   if test -n "$ac_ct_DUMPBIN"; then
5123   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128   IFS=$as_save_IFS
5129   test -z "$as_dir" && as_dir=.
5130     for ac_exec_ext in '' $ac_executable_extensions; do
5131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134     break 2
5135   fi
5136 done
5137   done
5138 IFS=$as_save_IFS
5139
5140 fi
5141 fi
5142 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5143 if test -n "$ac_ct_DUMPBIN"; then
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5145 $as_echo "$ac_ct_DUMPBIN" >&6; }
5146 else
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151
5152   test -n "$ac_ct_DUMPBIN" && break
5153 done
5154
5155   if test "x$ac_ct_DUMPBIN" = x; then
5156     DUMPBIN=":"
5157   else
5158     case $cross_compiling:$ac_tool_warned in
5159 yes:)
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162 ac_tool_warned=yes ;;
5163 esac
5164     DUMPBIN=$ac_ct_DUMPBIN
5165   fi
5166 fi
5167
5168     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5169     *COFF*)
5170       DUMPBIN="$DUMPBIN -symbols"
5171       ;;
5172     *)
5173       DUMPBIN=:
5174       ;;
5175     esac
5176   fi
5177
5178   if test "$DUMPBIN" != ":"; then
5179     NM="$DUMPBIN"
5180   fi
5181 fi
5182 test -z "$NM" && NM=nm
5183
5184
5185
5186
5187
5188
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5190 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5191 if ${lt_cv_nm_interface+:} false; then :
5192   $as_echo_n "(cached) " >&6
5193 else
5194   lt_cv_nm_interface="BSD nm"
5195   echo "int some_variable = 0;" > conftest.$ac_ext
5196   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5197   (eval "$ac_compile" 2>conftest.err)
5198   cat conftest.err >&5
5199   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5200   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5201   cat conftest.err >&5
5202   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5203   cat conftest.out >&5
5204   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5205     lt_cv_nm_interface="MS dumpbin"
5206   fi
5207   rm -f conftest*
5208 fi
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5210 $as_echo "$lt_cv_nm_interface" >&6; }
5211
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5213 $as_echo_n "checking whether ln -s works... " >&6; }
5214 LN_S=$as_ln_s
5215 if test "$LN_S" = "ln -s"; then
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5217 $as_echo "yes" >&6; }
5218 else
5219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5220 $as_echo "no, using $LN_S" >&6; }
5221 fi
5222
5223 # find the maximum length of command line arguments
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5225 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5226 if ${lt_cv_sys_max_cmd_len+:} false; then :
5227   $as_echo_n "(cached) " >&6
5228 else
5229     i=0
5230   teststring="ABCD"
5231
5232   case $build_os in
5233   msdosdjgpp*)
5234     # On DJGPP, this test can blow up pretty badly due to problems in libc
5235     # (any single argument exceeding 2000 bytes causes a buffer overrun
5236     # during glob expansion).  Even if it were fixed, the result of this
5237     # check would be larger than it should be.
5238     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5239     ;;
5240
5241   gnu*)
5242     # Under GNU Hurd, this test is not required because there is
5243     # no limit to the length of command line arguments.
5244     # Libtool will interpret -1 as no limit whatsoever
5245     lt_cv_sys_max_cmd_len=-1;
5246     ;;
5247
5248   cygwin* | mingw* | cegcc*)
5249     # On Win9x/ME, this test blows up -- it succeeds, but takes
5250     # about 5 minutes as the teststring grows exponentially.
5251     # Worse, since 9x/ME are not pre-emptively multitasking,
5252     # you end up with a "frozen" computer, even though with patience
5253     # the test eventually succeeds (with a max line length of 256k).
5254     # Instead, let's just punt: use the minimum linelength reported by
5255     # all of the supported platforms: 8192 (on NT/2K/XP).
5256     lt_cv_sys_max_cmd_len=8192;
5257     ;;
5258
5259   mint*)
5260     # On MiNT this can take a long time and run out of memory.
5261     lt_cv_sys_max_cmd_len=8192;
5262     ;;
5263
5264   amigaos*)
5265     # On AmigaOS with pdksh, this test takes hours, literally.
5266     # So we just punt and use a minimum line length of 8192.
5267     lt_cv_sys_max_cmd_len=8192;
5268     ;;
5269
5270   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5271     # This has been around since 386BSD, at least.  Likely further.
5272     if test -x /sbin/sysctl; then
5273       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5274     elif test -x /usr/sbin/sysctl; then
5275       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5276     else
5277       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5278     fi
5279     # And add a safety zone
5280     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5281     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5282     ;;
5283
5284   interix*)
5285     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5286     lt_cv_sys_max_cmd_len=196608
5287     ;;
5288
5289   os2*)
5290     # The test takes a long time on OS/2.
5291     lt_cv_sys_max_cmd_len=8192
5292     ;;
5293
5294   osf*)
5295     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5296     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5297     # nice to cause kernel panics so lets avoid the loop below.
5298     # First set a reasonable default.
5299     lt_cv_sys_max_cmd_len=16384
5300     #
5301     if test -x /sbin/sysconfig; then
5302       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5303         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5304       esac
5305     fi
5306     ;;
5307   sco3.2v5*)
5308     lt_cv_sys_max_cmd_len=102400
5309     ;;
5310   sysv5* | sco5v6* | sysv4.2uw2*)
5311     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5312     if test -n "$kargmax"; then
5313       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5314     else
5315       lt_cv_sys_max_cmd_len=32768
5316     fi
5317     ;;
5318   *)
5319     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5320     if test -n "$lt_cv_sys_max_cmd_len"; then
5321       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5322       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5323     else
5324       # Make teststring a little bigger before we do anything with it.
5325       # a 1K string should be a reasonable start.
5326       for i in 1 2 3 4 5 6 7 8 ; do
5327         teststring=$teststring$teststring
5328       done
5329       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5330       # If test is not a shell built-in, we'll probably end up computing a
5331       # maximum length that is only half of the actual maximum length, but
5332       # we can't tell.
5333       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5334                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5335               test $i != 17 # 1/2 MB should be enough
5336       do
5337         i=`expr $i + 1`
5338         teststring=$teststring$teststring
5339       done
5340       # Only check the string length outside the loop.
5341       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5342       teststring=
5343       # Add a significant safety factor because C++ compilers can tack on
5344       # massive amounts of additional arguments before passing them to the
5345       # linker.  It appears as though 1/2 is a usable value.
5346       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5347     fi
5348     ;;
5349   esac
5350
5351 fi
5352
5353 if test -n $lt_cv_sys_max_cmd_len ; then
5354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5355 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5356 else
5357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5358 $as_echo "none" >&6; }
5359 fi
5360 max_cmd_len=$lt_cv_sys_max_cmd_len
5361
5362
5363
5364
5365
5366
5367 : ${CP="cp -f"}
5368 : ${MV="mv -f"}
5369 : ${RM="rm -f"}
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5372 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5373 # Try some XSI features
5374 xsi_shell=no
5375 ( _lt_dummy="a/b/c"
5376   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5377       = c,a/b,b/c, \
5378     && eval 'test $(( 1 + 1 )) -eq 2 \
5379     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5380   && xsi_shell=yes
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5382 $as_echo "$xsi_shell" >&6; }
5383
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5386 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5387 lt_shell_append=no
5388 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5389     >/dev/null 2>&1 \
5390   && lt_shell_append=yes
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5392 $as_echo "$lt_shell_append" >&6; }
5393
5394
5395 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5396   lt_unset=unset
5397 else
5398   lt_unset=false
5399 fi
5400
5401
5402
5403
5404
5405 # test EBCDIC or ASCII
5406 case `echo X|tr X '\101'` in
5407  A) # ASCII based system
5408     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5409   lt_SP2NL='tr \040 \012'
5410   lt_NL2SP='tr \015\012 \040\040'
5411   ;;
5412  *) # EBCDIC based system
5413   lt_SP2NL='tr \100 \n'
5414   lt_NL2SP='tr \r\n \100\100'
5415   ;;
5416 esac
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5427 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5428 if ${lt_cv_to_host_file_cmd+:} false; then :
5429   $as_echo_n "(cached) " >&6
5430 else
5431   case $host in
5432   *-*-mingw* )
5433     case $build in
5434       *-*-mingw* ) # actually msys
5435         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5436         ;;
5437       *-*-cygwin* )
5438         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5439         ;;
5440       * ) # otherwise, assume *nix
5441         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5442         ;;
5443     esac
5444     ;;
5445   *-*-cygwin* )
5446     case $build in
5447       *-*-mingw* ) # actually msys
5448         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5449         ;;
5450       *-*-cygwin* )
5451         lt_cv_to_host_file_cmd=func_convert_file_noop
5452         ;;
5453       * ) # otherwise, assume *nix
5454         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5455         ;;
5456     esac
5457     ;;
5458   * ) # unhandled hosts (and "normal" native builds)
5459     lt_cv_to_host_file_cmd=func_convert_file_noop
5460     ;;
5461 esac
5462
5463 fi
5464
5465 to_host_file_cmd=$lt_cv_to_host_file_cmd
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5467 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5468
5469
5470
5471
5472
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5474 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5475 if ${lt_cv_to_tool_file_cmd+:} false; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   #assume ordinary cross tools, or native build.
5479 lt_cv_to_tool_file_cmd=func_convert_file_noop
5480 case $host in
5481   *-*-mingw* )
5482     case $build in
5483       *-*-mingw* ) # actually msys
5484         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5485         ;;
5486     esac
5487     ;;
5488 esac
5489
5490 fi
5491
5492 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5494 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5495
5496
5497
5498
5499
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5501 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5502 if ${lt_cv_ld_reload_flag+:} false; then :
5503   $as_echo_n "(cached) " >&6
5504 else
5505   lt_cv_ld_reload_flag='-r'
5506 fi
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5508 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5509 reload_flag=$lt_cv_ld_reload_flag
5510 case $reload_flag in
5511 "" | " "*) ;;
5512 *) reload_flag=" $reload_flag" ;;
5513 esac
5514 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5515 case $host_os in
5516   cygwin* | mingw* | pw32* | cegcc*)
5517     if test "$GCC" != yes; then
5518       reload_cmds=false
5519     fi
5520     ;;
5521   darwin*)
5522     if test "$GCC" = yes; then
5523       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5524     else
5525       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5526     fi
5527     ;;
5528 esac
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538 if test -n "$ac_tool_prefix"; then
5539   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5540 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if ${ac_cv_prog_OBJDUMP+:} false; then :
5544   $as_echo_n "(cached) " >&6
5545 else
5546   if test -n "$OBJDUMP"; then
5547   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552   IFS=$as_save_IFS
5553   test -z "$as_dir" && as_dir=.
5554     for ac_exec_ext in '' $ac_executable_extensions; do
5555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558     break 2
5559   fi
5560 done
5561   done
5562 IFS=$as_save_IFS
5563
5564 fi
5565 fi
5566 OBJDUMP=$ac_cv_prog_OBJDUMP
5567 if test -n "$OBJDUMP"; then
5568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5569 $as_echo "$OBJDUMP" >&6; }
5570 else
5571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574
5575
5576 fi
5577 if test -z "$ac_cv_prog_OBJDUMP"; then
5578   ac_ct_OBJDUMP=$OBJDUMP
5579   # Extract the first word of "objdump", so it can be a program name with args.
5580 set dummy objdump; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5584   $as_echo_n "(cached) " >&6
5585 else
5586   if test -n "$ac_ct_OBJDUMP"; then
5587   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592   IFS=$as_save_IFS
5593   test -z "$as_dir" && as_dir=.
5594     for ac_exec_ext in '' $ac_executable_extensions; do
5595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598     break 2
5599   fi
5600 done
5601   done
5602 IFS=$as_save_IFS
5603
5604 fi
5605 fi
5606 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5607 if test -n "$ac_ct_OBJDUMP"; then
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5609 $as_echo "$ac_ct_OBJDUMP" >&6; }
5610 else
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5613 fi
5614
5615   if test "x$ac_ct_OBJDUMP" = x; then
5616     OBJDUMP="false"
5617   else
5618     case $cross_compiling:$ac_tool_warned in
5619 yes:)
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5622 ac_tool_warned=yes ;;
5623 esac
5624     OBJDUMP=$ac_ct_OBJDUMP
5625   fi
5626 else
5627   OBJDUMP="$ac_cv_prog_OBJDUMP"
5628 fi
5629
5630 test -z "$OBJDUMP" && OBJDUMP=objdump
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5641 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5642 if ${lt_cv_deplibs_check_method+:} false; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   lt_cv_file_magic_cmd='$MAGIC_CMD'
5646 lt_cv_file_magic_test_file=
5647 lt_cv_deplibs_check_method='unknown'
5648 # Need to set the preceding variable on all platforms that support
5649 # interlibrary dependencies.
5650 # 'none' -- dependencies not supported.
5651 # `unknown' -- same as none, but documents that we really don't know.
5652 # 'pass_all' -- all dependencies passed with no checks.
5653 # 'test_compile' -- check by making test program.
5654 # 'file_magic [[regex]]' -- check by looking for files in library path
5655 # which responds to the $file_magic_cmd with a given extended regex.
5656 # If you have `file' or equivalent on your system and you're not sure
5657 # whether `pass_all' will *always* work, you probably want this one.
5658
5659 case $host_os in
5660 aix[4-9]*)
5661   lt_cv_deplibs_check_method=pass_all
5662   ;;
5663
5664 beos*)
5665   lt_cv_deplibs_check_method=pass_all
5666   ;;
5667
5668 bsdi[45]*)
5669   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5670   lt_cv_file_magic_cmd='/usr/bin/file -L'
5671   lt_cv_file_magic_test_file=/shlib/libc.so
5672   ;;
5673
5674 cygwin*)
5675   # func_win32_libid is a shell function defined in ltmain.sh
5676   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5677   lt_cv_file_magic_cmd='func_win32_libid'
5678   ;;
5679
5680 mingw* | pw32*)
5681   # Base MSYS/MinGW do not provide the 'file' command needed by
5682   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5683   # unless we find 'file', for example because we are cross-compiling.
5684   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5685   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5686     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5687     lt_cv_file_magic_cmd='func_win32_libid'
5688   else
5689     # Keep this pattern in sync with the one in func_win32_libid.
5690     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5691     lt_cv_file_magic_cmd='$OBJDUMP -f'
5692   fi
5693   ;;
5694
5695 cegcc*)
5696   # use the weaker test based on 'objdump'. See mingw*.
5697   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5698   lt_cv_file_magic_cmd='$OBJDUMP -f'
5699   ;;
5700
5701 darwin* | rhapsody*)
5702   lt_cv_deplibs_check_method=pass_all
5703   ;;
5704
5705 freebsd* | dragonfly*)
5706   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5707     case $host_cpu in
5708     i*86 )
5709       # Not sure whether the presence of OpenBSD here was a mistake.
5710       # Let's accept both of them until this is cleared up.
5711       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5712       lt_cv_file_magic_cmd=/usr/bin/file
5713       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5714       ;;
5715     esac
5716   else
5717     lt_cv_deplibs_check_method=pass_all
5718   fi
5719   ;;
5720
5721 gnu*)
5722   lt_cv_deplibs_check_method=pass_all
5723   ;;
5724
5725 haiku*)
5726   lt_cv_deplibs_check_method=pass_all
5727   ;;
5728
5729 hpux10.20* | hpux11*)
5730   lt_cv_file_magic_cmd=/usr/bin/file
5731   case $host_cpu in
5732   ia64*)
5733     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5734     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5735     ;;
5736   hppa*64*)
5737     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]'
5738     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5739     ;;
5740   *)
5741     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5742     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5743     ;;
5744   esac
5745   ;;
5746
5747 interix[3-9]*)
5748   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5749   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5750   ;;
5751
5752 irix5* | irix6* | nonstopux*)
5753   case $LD in
5754   *-32|*"-32 ") libmagic=32-bit;;
5755   *-n32|*"-n32 ") libmagic=N32;;
5756   *-64|*"-64 ") libmagic=64-bit;;
5757   *) libmagic=never-match;;
5758   esac
5759   lt_cv_deplibs_check_method=pass_all
5760   ;;
5761
5762 # This must be glibc/ELF.
5763 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5764   lt_cv_deplibs_check_method=pass_all
5765   ;;
5766
5767 netbsd*)
5768   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5769     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5770   else
5771     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5772   fi
5773   ;;
5774
5775 newos6*)
5776   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5777   lt_cv_file_magic_cmd=/usr/bin/file
5778   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5779   ;;
5780
5781 *nto* | *qnx*)
5782   lt_cv_deplibs_check_method=pass_all
5783   ;;
5784
5785 openbsd*)
5786   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5787     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5788   else
5789     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5790   fi
5791   ;;
5792
5793 osf3* | osf4* | osf5*)
5794   lt_cv_deplibs_check_method=pass_all
5795   ;;
5796
5797 rdos*)
5798   lt_cv_deplibs_check_method=pass_all
5799   ;;
5800
5801 solaris*)
5802   lt_cv_deplibs_check_method=pass_all
5803   ;;
5804
5805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5806   lt_cv_deplibs_check_method=pass_all
5807   ;;
5808
5809 sysv4 | sysv4.3*)
5810   case $host_vendor in
5811   motorola)
5812     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]'
5813     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5814     ;;
5815   ncr)
5816     lt_cv_deplibs_check_method=pass_all
5817     ;;
5818   sequent)
5819     lt_cv_file_magic_cmd='/bin/file'
5820     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5821     ;;
5822   sni)
5823     lt_cv_file_magic_cmd='/bin/file'
5824     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5825     lt_cv_file_magic_test_file=/lib/libc.so
5826     ;;
5827   siemens)
5828     lt_cv_deplibs_check_method=pass_all
5829     ;;
5830   pc)
5831     lt_cv_deplibs_check_method=pass_all
5832     ;;
5833   esac
5834   ;;
5835
5836 tpf*)
5837   lt_cv_deplibs_check_method=pass_all
5838   ;;
5839 esac
5840
5841 fi
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5843 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5844
5845 file_magic_glob=
5846 want_nocaseglob=no
5847 if test "$build" = "$host"; then
5848   case $host_os in
5849   mingw* | pw32*)
5850     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5851       want_nocaseglob=yes
5852     else
5853       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5854     fi
5855     ;;
5856   esac
5857 fi
5858
5859 file_magic_cmd=$lt_cv_file_magic_cmd
5860 deplibs_check_method=$lt_cv_deplibs_check_method
5861 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884 if test -n "$ac_tool_prefix"; then
5885   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if ${ac_cv_prog_DLLTOOL+:} false; then :
5890   $as_echo_n "(cached) " >&6
5891 else
5892   if test -n "$DLLTOOL"; then
5893   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900     for ac_exec_ext in '' $ac_executable_extensions; do
5901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907   done
5908 IFS=$as_save_IFS
5909
5910 fi
5911 fi
5912 DLLTOOL=$ac_cv_prog_DLLTOOL
5913 if test -n "$DLLTOOL"; then
5914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5915 $as_echo "$DLLTOOL" >&6; }
5916 else
5917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5919 fi
5920
5921
5922 fi
5923 if test -z "$ac_cv_prog_DLLTOOL"; then
5924   ac_ct_DLLTOOL=$DLLTOOL
5925   # Extract the first word of "dlltool", so it can be a program name with args.
5926 set dummy dlltool; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   if test -n "$ac_ct_DLLTOOL"; then
5933   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940     for ac_exec_ext in '' $ac_executable_extensions; do
5941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947   done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5953 if test -n "$ac_ct_DLLTOOL"; then
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5955 $as_echo "$ac_ct_DLLTOOL" >&6; }
5956 else
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960
5961   if test "x$ac_ct_DLLTOOL" = x; then
5962     DLLTOOL="false"
5963   else
5964     case $cross_compiling:$ac_tool_warned in
5965 yes:)
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968 ac_tool_warned=yes ;;
5969 esac
5970     DLLTOOL=$ac_ct_DLLTOOL
5971   fi
5972 else
5973   DLLTOOL="$ac_cv_prog_DLLTOOL"
5974 fi
5975
5976 test -z "$DLLTOOL" && DLLTOOL=dlltool
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5988 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5989 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5990   $as_echo_n "(cached) " >&6
5991 else
5992   lt_cv_sharedlib_from_linklib_cmd='unknown'
5993
5994 case $host_os in
5995 cygwin* | mingw* | pw32* | cegcc*)
5996   # two different shell functions defined in ltmain.sh
5997   # decide which to use based on capabilities of $DLLTOOL
5998   case `$DLLTOOL --help 2>&1` in
5999   *--identify-strict*)
6000     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6001     ;;
6002   *)
6003     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6004     ;;
6005   esac
6006   ;;
6007 *)
6008   # fallback: assume linklib IS sharedlib
6009   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6010   ;;
6011 esac
6012
6013 fi
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6015 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6016 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6017 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6018
6019
6020
6021
6022
6023
6024
6025
6026 if test -n "$ac_tool_prefix"; then
6027   for ac_prog in ar
6028   do
6029     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if ${ac_cv_prog_AR+:} false; then :
6034   $as_echo_n "(cached) " >&6
6035 else
6036   if test -n "$AR"; then
6037   ac_cv_prog_AR="$AR" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042   IFS=$as_save_IFS
6043   test -z "$as_dir" && as_dir=.
6044     for ac_exec_ext in '' $ac_executable_extensions; do
6045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048     break 2
6049   fi
6050 done
6051   done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 AR=$ac_cv_prog_AR
6057 if test -n "$AR"; then
6058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6059 $as_echo "$AR" >&6; }
6060 else
6061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6063 fi
6064
6065
6066     test -n "$AR" && break
6067   done
6068 fi
6069 if test -z "$AR"; then
6070   ac_ct_AR=$AR
6071   for ac_prog in ar
6072 do
6073   # Extract the first word of "$ac_prog", so it can be a program name with args.
6074 set dummy $ac_prog; ac_word=$2
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 $as_echo_n "checking for $ac_word... " >&6; }
6077 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6078   $as_echo_n "(cached) " >&6
6079 else
6080   if test -n "$ac_ct_AR"; then
6081   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086   IFS=$as_save_IFS
6087   test -z "$as_dir" && as_dir=.
6088     for ac_exec_ext in '' $ac_executable_extensions; do
6089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6090     ac_cv_prog_ac_ct_AR="$ac_prog"
6091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092     break 2
6093   fi
6094 done
6095   done
6096 IFS=$as_save_IFS
6097
6098 fi
6099 fi
6100 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6101 if test -n "$ac_ct_AR"; then
6102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6103 $as_echo "$ac_ct_AR" >&6; }
6104 else
6105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6107 fi
6108
6109
6110   test -n "$ac_ct_AR" && break
6111 done
6112
6113   if test "x$ac_ct_AR" = x; then
6114     AR="false"
6115   else
6116     case $cross_compiling:$ac_tool_warned in
6117 yes:)
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120 ac_tool_warned=yes ;;
6121 esac
6122     AR=$ac_ct_AR
6123   fi
6124 fi
6125
6126 : ${AR=ar}
6127 : ${AR_FLAGS=cru}
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6140 $as_echo_n "checking for archiver @FILE support... " >&6; }
6141 if ${lt_cv_ar_at_file+:} false; then :
6142   $as_echo_n "(cached) " >&6
6143 else
6144   lt_cv_ar_at_file=no
6145    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h.  */
6147
6148 int
6149 main ()
6150 {
6151
6152   ;
6153   return 0;
6154 }
6155 _ACEOF
6156 if ac_fn_c_try_compile "$LINENO"; then :
6157   echo conftest.$ac_objext > conftest.lst
6158       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6159       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6160   (eval $lt_ar_try) 2>&5
6161   ac_status=$?
6162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6163   test $ac_status = 0; }
6164       if test "$ac_status" -eq 0; then
6165         # Ensure the archiver fails upon bogus file names.
6166         rm -f conftest.$ac_objext libconftest.a
6167         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6168   (eval $lt_ar_try) 2>&5
6169   ac_status=$?
6170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6171   test $ac_status = 0; }
6172         if test "$ac_status" -ne 0; then
6173           lt_cv_ar_at_file=@
6174         fi
6175       fi
6176       rm -f conftest.* libconftest.a
6177
6178 fi
6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6183 $as_echo "$lt_cv_ar_at_file" >&6; }
6184
6185 if test "x$lt_cv_ar_at_file" = xno; then
6186   archiver_list_spec=
6187 else
6188   archiver_list_spec=$lt_cv_ar_at_file
6189 fi
6190
6191
6192
6193
6194
6195
6196
6197 if test -n "$ac_tool_prefix"; then
6198   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6199 set dummy ${ac_tool_prefix}strip; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if ${ac_cv_prog_STRIP+:} false; then :
6203   $as_echo_n "(cached) " >&6
6204 else
6205   if test -n "$STRIP"; then
6206   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6210 do
6211   IFS=$as_save_IFS
6212   test -z "$as_dir" && as_dir=.
6213     for ac_exec_ext in '' $ac_executable_extensions; do
6214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217     break 2
6218   fi
6219 done
6220   done
6221 IFS=$as_save_IFS
6222
6223 fi
6224 fi
6225 STRIP=$ac_cv_prog_STRIP
6226 if test -n "$STRIP"; then
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6228 $as_echo "$STRIP" >&6; }
6229 else
6230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6232 fi
6233
6234
6235 fi
6236 if test -z "$ac_cv_prog_STRIP"; then
6237   ac_ct_STRIP=$STRIP
6238   # Extract the first word of "strip", so it can be a program name with args.
6239 set dummy strip; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6243   $as_echo_n "(cached) " >&6
6244 else
6245   if test -n "$ac_ct_STRIP"; then
6246   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251   IFS=$as_save_IFS
6252   test -z "$as_dir" && as_dir=.
6253     for ac_exec_ext in '' $ac_executable_extensions; do
6254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255     ac_cv_prog_ac_ct_STRIP="strip"
6256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257     break 2
6258   fi
6259 done
6260   done
6261 IFS=$as_save_IFS
6262
6263 fi
6264 fi
6265 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6266 if test -n "$ac_ct_STRIP"; then
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6268 $as_echo "$ac_ct_STRIP" >&6; }
6269 else
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6272 fi
6273
6274   if test "x$ac_ct_STRIP" = x; then
6275     STRIP=":"
6276   else
6277     case $cross_compiling:$ac_tool_warned in
6278 yes:)
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281 ac_tool_warned=yes ;;
6282 esac
6283     STRIP=$ac_ct_STRIP
6284   fi
6285 else
6286   STRIP="$ac_cv_prog_STRIP"
6287 fi
6288
6289 test -z "$STRIP" && STRIP=:
6290
6291
6292
6293
6294
6295
6296 if test -n "$ac_tool_prefix"; then
6297   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6298 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if ${ac_cv_prog_RANLIB+:} false; then :
6302   $as_echo_n "(cached) " >&6
6303 else
6304   if test -n "$RANLIB"; then
6305   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310   IFS=$as_save_IFS
6311   test -z "$as_dir" && as_dir=.
6312     for ac_exec_ext in '' $ac_executable_extensions; do
6313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316     break 2
6317   fi
6318 done
6319   done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 RANLIB=$ac_cv_prog_RANLIB
6325 if test -n "$RANLIB"; then
6326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6327 $as_echo "$RANLIB" >&6; }
6328 else
6329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6331 fi
6332
6333
6334 fi
6335 if test -z "$ac_cv_prog_RANLIB"; then
6336   ac_ct_RANLIB=$RANLIB
6337   # Extract the first word of "ranlib", so it can be a program name with args.
6338 set dummy ranlib; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6342   $as_echo_n "(cached) " >&6
6343 else
6344   if test -n "$ac_ct_RANLIB"; then
6345   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350   IFS=$as_save_IFS
6351   test -z "$as_dir" && as_dir=.
6352     for ac_exec_ext in '' $ac_executable_extensions; do
6353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354     ac_cv_prog_ac_ct_RANLIB="ranlib"
6355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356     break 2
6357   fi
6358 done
6359   done
6360 IFS=$as_save_IFS
6361
6362 fi
6363 fi
6364 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6365 if test -n "$ac_ct_RANLIB"; then
6366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6367 $as_echo "$ac_ct_RANLIB" >&6; }
6368 else
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372
6373   if test "x$ac_ct_RANLIB" = x; then
6374     RANLIB=":"
6375   else
6376     case $cross_compiling:$ac_tool_warned in
6377 yes:)
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380 ac_tool_warned=yes ;;
6381 esac
6382     RANLIB=$ac_ct_RANLIB
6383   fi
6384 else
6385   RANLIB="$ac_cv_prog_RANLIB"
6386 fi
6387
6388 test -z "$RANLIB" && RANLIB=:
6389
6390
6391
6392
6393
6394
6395 # Determine commands to create old-style static archives.
6396 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6397 old_postinstall_cmds='chmod 644 $oldlib'
6398 old_postuninstall_cmds=
6399
6400 if test -n "$RANLIB"; then
6401   case $host_os in
6402   openbsd*)
6403     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6404     ;;
6405   *)
6406     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6407     ;;
6408   esac
6409   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6410 fi
6411
6412 case $host_os in
6413   darwin*)
6414     lock_old_archive_extraction=yes ;;
6415   *)
6416     lock_old_archive_extraction=no ;;
6417 esac
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457 # If no C compiler was specified, use CC.
6458 LTCC=${LTCC-"$CC"}
6459
6460 # If no C compiler flags were specified, use CFLAGS.
6461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6462
6463 # Allow CC to be a program name with arguments.
6464 compiler=$CC
6465
6466
6467 # Check for command to grab the raw symbol name followed by C symbol from nm.
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6469 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6470 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6471   $as_echo_n "(cached) " >&6
6472 else
6473
6474 # These are sane defaults that work on at least a few old systems.
6475 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6476
6477 # Character class describing NM global symbol codes.
6478 symcode='[BCDEGRST]'
6479
6480 # Regexp to match symbols that can be accessed directly from C.
6481 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6482
6483 # Define system-specific variables.
6484 case $host_os in
6485 aix*)
6486   symcode='[BCDT]'
6487   ;;
6488 cygwin* | mingw* | pw32* | cegcc*)
6489   symcode='[ABCDGISTW]'
6490   ;;
6491 hpux*)
6492   if test "$host_cpu" = ia64; then
6493     symcode='[ABCDEGRST]'
6494   fi
6495   ;;
6496 irix* | nonstopux*)
6497   symcode='[BCDEGRST]'
6498   ;;
6499 osf*)
6500   symcode='[BCDEGQRST]'
6501   ;;
6502 solaris*)
6503   symcode='[BDRT]'
6504   ;;
6505 sco3.2v5*)
6506   symcode='[DT]'
6507   ;;
6508 sysv4.2uw2*)
6509   symcode='[DT]'
6510   ;;
6511 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6512   symcode='[ABDT]'
6513   ;;
6514 sysv4)
6515   symcode='[DFNSTU]'
6516   ;;
6517 esac
6518
6519 # If we're using GNU nm, then use its standard symbol codes.
6520 case `$NM -V 2>&1` in
6521 *GNU* | *'with BFD'*)
6522   symcode='[ABCDGIRSTW]' ;;
6523 esac
6524
6525 # Transform an extracted symbol line into a proper C declaration.
6526 # Some systems (esp. on ia64) link data and code symbols differently,
6527 # so use this general approach.
6528 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6529
6530 # Transform an extracted symbol line into symbol name and symbol address
6531 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6532 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'"
6533
6534 # Handle CRLF in mingw tool chain
6535 opt_cr=
6536 case $build_os in
6537 mingw*)
6538   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6539   ;;
6540 esac
6541
6542 # Try without a prefix underscore, then with it.
6543 for ac_symprfx in "" "_"; do
6544
6545   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6546   symxfrm="\\1 $ac_symprfx\\2 \\2"
6547
6548   # Write the raw and C identifiers.
6549   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6550     # Fake it for dumpbin and say T for any non-static function
6551     # and D for any global variable.
6552     # Also find C++ and __fastcall symbols from MSVC++,
6553     # which start with @ or ?.
6554     lt_cv_sys_global_symbol_pipe="$AWK '"\
6555 "     {last_section=section; section=\$ 3};"\
6556 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6557 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6558 "     \$ 0!~/External *\|/{next};"\
6559 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6560 "     {if(hide[section]) next};"\
6561 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6562 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6563 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6564 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6565 "     ' prfx=^$ac_symprfx"
6566   else
6567     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6568   fi
6569   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6570
6571   # Check to see that the pipe works correctly.
6572   pipe_works=no
6573
6574   rm -f conftest*
6575   cat > conftest.$ac_ext <<_LT_EOF
6576 #ifdef __cplusplus
6577 extern "C" {
6578 #endif
6579 char nm_test_var;
6580 void nm_test_func(void);
6581 void nm_test_func(void){}
6582 #ifdef __cplusplus
6583 }
6584 #endif
6585 int main(){nm_test_var='a';nm_test_func();return(0);}
6586 _LT_EOF
6587
6588   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6589   (eval $ac_compile) 2>&5
6590   ac_status=$?
6591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6592   test $ac_status = 0; }; then
6593     # Now try to grab the symbols.
6594     nlist=conftest.nm
6595     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6596   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6597   ac_status=$?
6598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6599   test $ac_status = 0; } && test -s "$nlist"; then
6600       # Try sorting and uniquifying the output.
6601       if sort "$nlist" | uniq > "$nlist"T; then
6602         mv -f "$nlist"T "$nlist"
6603       else
6604         rm -f "$nlist"T
6605       fi
6606
6607       # Make sure that we snagged all the symbols we need.
6608       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6609         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6610           cat <<_LT_EOF > conftest.$ac_ext
6611 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6612 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6613 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6614    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6615 # define LT_DLSYM_CONST
6616 #elif defined(__osf__)
6617 /* This system does not cope well with relocations in const data.  */
6618 # define LT_DLSYM_CONST
6619 #else
6620 # define LT_DLSYM_CONST const
6621 #endif
6622
6623 #ifdef __cplusplus
6624 extern "C" {
6625 #endif
6626
6627 _LT_EOF
6628           # Now generate the symbol file.
6629           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6630
6631           cat <<_LT_EOF >> conftest.$ac_ext
6632
6633 /* The mapping between symbol names and symbols.  */
6634 LT_DLSYM_CONST struct {
6635   const char *name;
6636   void       *address;
6637 }
6638 lt__PROGRAM__LTX_preloaded_symbols[] =
6639 {
6640   { "@PROGRAM@", (void *) 0 },
6641 _LT_EOF
6642           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6643           cat <<\_LT_EOF >> conftest.$ac_ext
6644   {0, (void *) 0}
6645 };
6646
6647 /* This works around a problem in FreeBSD linker */
6648 #ifdef FREEBSD_WORKAROUND
6649 static const void *lt_preloaded_setup() {
6650   return lt__PROGRAM__LTX_preloaded_symbols;
6651 }
6652 #endif
6653
6654 #ifdef __cplusplus
6655 }
6656 #endif
6657 _LT_EOF
6658           # Now try linking the two files.
6659           mv conftest.$ac_objext conftstm.$ac_objext
6660           lt_globsym_save_LIBS=$LIBS
6661           lt_globsym_save_CFLAGS=$CFLAGS
6662           LIBS="conftstm.$ac_objext"
6663           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6664           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6665   (eval $ac_link) 2>&5
6666   ac_status=$?
6667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6668   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6669             pipe_works=yes
6670           fi
6671           LIBS=$lt_globsym_save_LIBS
6672           CFLAGS=$lt_globsym_save_CFLAGS
6673         else
6674           echo "cannot find nm_test_func in $nlist" >&5
6675         fi
6676       else
6677         echo "cannot find nm_test_var in $nlist" >&5
6678       fi
6679     else
6680       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6681     fi
6682   else
6683     echo "$progname: failed program was:" >&5
6684     cat conftest.$ac_ext >&5
6685   fi
6686   rm -rf conftest* conftst*
6687
6688   # Do not use the global_symbol_pipe unless it works.
6689   if test "$pipe_works" = yes; then
6690     break
6691   else
6692     lt_cv_sys_global_symbol_pipe=
6693   fi
6694 done
6695
6696 fi
6697
6698 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6699   lt_cv_sys_global_symbol_to_cdecl=
6700 fi
6701 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6703 $as_echo "failed" >&6; }
6704 else
6705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6706 $as_echo "ok" >&6; }
6707 fi
6708
6709 # Response file support.
6710 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6711   nm_file_list_spec='@'
6712 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6713   nm_file_list_spec='@'
6714 fi
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6743 $as_echo_n "checking for sysroot... " >&6; }
6744
6745 # Check whether --with-sysroot was given.
6746 if test "${with_sysroot+set}" = set; then :
6747   withval=$with_sysroot;
6748 else
6749   with_sysroot=no
6750 fi
6751
6752
6753 lt_sysroot=
6754 case ${with_sysroot} in #(
6755  yes)
6756    if test "$GCC" = yes; then
6757      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6758    fi
6759    ;; #(
6760  /*)
6761    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6762    ;; #(
6763  no|'')
6764    ;; #(
6765  *)
6766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6767 $as_echo "${with_sysroot}" >&6; }
6768    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6769    ;;
6770 esac
6771
6772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6773 $as_echo "${lt_sysroot:-no}" >&6; }
6774
6775
6776
6777
6778
6779 # Check whether --enable-libtool-lock was given.
6780 if test "${enable_libtool_lock+set}" = set; then :
6781   enableval=$enable_libtool_lock;
6782 fi
6783
6784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6785
6786 # Some flags need to be propagated to the compiler or linker for good
6787 # libtool support.
6788 case $host in
6789 ia64-*-hpux*)
6790   # Find out which ABI we are using.
6791   echo 'int i;' > conftest.$ac_ext
6792   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6793   (eval $ac_compile) 2>&5
6794   ac_status=$?
6795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6796   test $ac_status = 0; }; then
6797     case `/usr/bin/file conftest.$ac_objext` in
6798       *ELF-32*)
6799         HPUX_IA64_MODE="32"
6800         ;;
6801       *ELF-64*)
6802         HPUX_IA64_MODE="64"
6803         ;;
6804     esac
6805   fi
6806   rm -rf conftest*
6807   ;;
6808 *-*-irix6*)
6809   # Find out which ABI we are using.
6810   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6811   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6812   (eval $ac_compile) 2>&5
6813   ac_status=$?
6814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6815   test $ac_status = 0; }; then
6816     if test "$lt_cv_prog_gnu_ld" = yes; then
6817       case `/usr/bin/file conftest.$ac_objext` in
6818         *32-bit*)
6819           LD="${LD-ld} -melf32bsmip"
6820           ;;
6821         *N32*)
6822           LD="${LD-ld} -melf32bmipn32"
6823           ;;
6824         *64-bit*)
6825           LD="${LD-ld} -melf64bmip"
6826         ;;
6827       esac
6828     else
6829       case `/usr/bin/file conftest.$ac_objext` in
6830         *32-bit*)
6831           LD="${LD-ld} -32"
6832           ;;
6833         *N32*)
6834           LD="${LD-ld} -n32"
6835           ;;
6836         *64-bit*)
6837           LD="${LD-ld} -64"
6838           ;;
6839       esac
6840     fi
6841   fi
6842   rm -rf conftest*
6843   ;;
6844
6845 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6846 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6847   # Find out which ABI we are using.
6848   echo 'int i;' > conftest.$ac_ext
6849   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6850   (eval $ac_compile) 2>&5
6851   ac_status=$?
6852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6853   test $ac_status = 0; }; then
6854     case `/usr/bin/file conftest.o` in
6855       *32-bit*)
6856         case $host in
6857           x86_64-*kfreebsd*-gnu)
6858             LD="${LD-ld} -m elf_i386_fbsd"
6859             ;;
6860           x86_64-*linux*)
6861             LD="${LD-ld} -m elf_i386"
6862             ;;
6863           ppc64-*linux*|powerpc64-*linux*)
6864             LD="${LD-ld} -m elf32ppclinux"
6865             ;;
6866           s390x-*linux*)
6867             LD="${LD-ld} -m elf_s390"
6868             ;;
6869           sparc64-*linux*)
6870             LD="${LD-ld} -m elf32_sparc"
6871             ;;
6872         esac
6873         ;;
6874       *64-bit*)
6875         case $host in
6876           x86_64-*kfreebsd*-gnu)
6877             LD="${LD-ld} -m elf_x86_64_fbsd"
6878             ;;
6879           x86_64-*linux*)
6880             LD="${LD-ld} -m elf_x86_64"
6881             ;;
6882           ppc*-*linux*|powerpc*-*linux*)
6883             LD="${LD-ld} -m elf64ppc"
6884             ;;
6885           s390*-*linux*|s390*-*tpf*)
6886             LD="${LD-ld} -m elf64_s390"
6887             ;;
6888           sparc*-*linux*)
6889             LD="${LD-ld} -m elf64_sparc"
6890             ;;
6891         esac
6892         ;;
6893     esac
6894   fi
6895   rm -rf conftest*
6896   ;;
6897
6898 *-*-sco3.2v5*)
6899   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6900   SAVE_CFLAGS="$CFLAGS"
6901   CFLAGS="$CFLAGS -belf"
6902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6903 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6904 if ${lt_cv_cc_needs_belf+:} false; then :
6905   $as_echo_n "(cached) " >&6
6906 else
6907   ac_ext=c
6908 ac_cpp='$CPP $CPPFLAGS'
6909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6912
6913      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h.  */
6915
6916 int
6917 main ()
6918 {
6919
6920   ;
6921   return 0;
6922 }
6923 _ACEOF
6924 if ac_fn_c_try_link "$LINENO"; then :
6925   lt_cv_cc_needs_belf=yes
6926 else
6927   lt_cv_cc_needs_belf=no
6928 fi
6929 rm -f core conftest.err conftest.$ac_objext \
6930     conftest$ac_exeext conftest.$ac_ext
6931      ac_ext=c
6932 ac_cpp='$CPP $CPPFLAGS'
6933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6936
6937 fi
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6939 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6940   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6941     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6942     CFLAGS="$SAVE_CFLAGS"
6943   fi
6944   ;;
6945 *-*solaris*)
6946   # Find out which ABI we are using.
6947   echo 'int i;' > conftest.$ac_ext
6948   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6949   (eval $ac_compile) 2>&5
6950   ac_status=$?
6951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6952   test $ac_status = 0; }; then
6953     case `/usr/bin/file conftest.o` in
6954     *64-bit*)
6955       case $lt_cv_prog_gnu_ld in
6956       yes*)
6957         case $host in
6958         i?86-*-solaris*)
6959           LD="${LD-ld} -m elf_x86_64"
6960           ;;
6961         sparc*-*-solaris*)
6962           LD="${LD-ld} -m elf64_sparc"
6963           ;;
6964         esac
6965         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6966         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6967           LD="${LD-ld}_sol2"
6968         fi
6969         ;;
6970       *)
6971         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6972           LD="${LD-ld} -64"
6973         fi
6974         ;;
6975       esac
6976       ;;
6977     esac
6978   fi
6979   rm -rf conftest*
6980   ;;
6981 esac
6982
6983 need_locks="$enable_libtool_lock"
6984
6985 if test -n "$ac_tool_prefix"; then
6986   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6987 set dummy ${ac_tool_prefix}mt; ac_word=$2
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6991   $as_echo_n "(cached) " >&6
6992 else
6993   if test -n "$MANIFEST_TOOL"; then
6994   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6995 else
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6998 do
6999   IFS=$as_save_IFS
7000   test -z "$as_dir" && as_dir=.
7001     for ac_exec_ext in '' $ac_executable_extensions; do
7002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7003     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005     break 2
7006   fi
7007 done
7008   done
7009 IFS=$as_save_IFS
7010
7011 fi
7012 fi
7013 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7014 if test -n "$MANIFEST_TOOL"; then
7015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7016 $as_echo "$MANIFEST_TOOL" >&6; }
7017 else
7018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7020 fi
7021
7022
7023 fi
7024 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7025   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7026   # Extract the first word of "mt", so it can be a program name with args.
7027 set dummy mt; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7031   $as_echo_n "(cached) " >&6
7032 else
7033   if test -n "$ac_ct_MANIFEST_TOOL"; then
7034   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7035 else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7038 do
7039   IFS=$as_save_IFS
7040   test -z "$as_dir" && as_dir=.
7041     for ac_exec_ext in '' $ac_executable_extensions; do
7042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7043     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045     break 2
7046   fi
7047 done
7048   done
7049 IFS=$as_save_IFS
7050
7051 fi
7052 fi
7053 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7054 if test -n "$ac_ct_MANIFEST_TOOL"; then
7055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7056 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7057 else
7058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7060 fi
7061
7062   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7063     MANIFEST_TOOL=":"
7064   else
7065     case $cross_compiling:$ac_tool_warned in
7066 yes:)
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069 ac_tool_warned=yes ;;
7070 esac
7071     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7072   fi
7073 else
7074   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7075 fi
7076
7077 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7079 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7080 if ${lt_cv_path_mainfest_tool+:} false; then :
7081   $as_echo_n "(cached) " >&6
7082 else
7083   lt_cv_path_mainfest_tool=no
7084   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7085   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7086   cat conftest.err >&5
7087   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7088     lt_cv_path_mainfest_tool=yes
7089   fi
7090   rm -f conftest*
7091 fi
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7093 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7094 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7095   MANIFEST_TOOL=:
7096 fi
7097
7098
7099
7100
7101
7102
7103   case $host_os in
7104     rhapsody* | darwin*)
7105     if test -n "$ac_tool_prefix"; then
7106   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7107 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109 $as_echo_n "checking for $ac_word... " >&6; }
7110 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7111   $as_echo_n "(cached) " >&6
7112 else
7113   if test -n "$DSYMUTIL"; then
7114   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7118 do
7119   IFS=$as_save_IFS
7120   test -z "$as_dir" && as_dir=.
7121     for ac_exec_ext in '' $ac_executable_extensions; do
7122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7123     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125     break 2
7126   fi
7127 done
7128   done
7129 IFS=$as_save_IFS
7130
7131 fi
7132 fi
7133 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7134 if test -n "$DSYMUTIL"; then
7135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7136 $as_echo "$DSYMUTIL" >&6; }
7137 else
7138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7140 fi
7141
7142
7143 fi
7144 if test -z "$ac_cv_prog_DSYMUTIL"; then
7145   ac_ct_DSYMUTIL=$DSYMUTIL
7146   # Extract the first word of "dsymutil", so it can be a program name with args.
7147 set dummy dsymutil; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7151   $as_echo_n "(cached) " >&6
7152 else
7153   if test -n "$ac_ct_DSYMUTIL"; then
7154   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159   IFS=$as_save_IFS
7160   test -z "$as_dir" && as_dir=.
7161     for ac_exec_ext in '' $ac_executable_extensions; do
7162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165     break 2
7166   fi
7167 done
7168   done
7169 IFS=$as_save_IFS
7170
7171 fi
7172 fi
7173 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7174 if test -n "$ac_ct_DSYMUTIL"; then
7175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7176 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7177 else
7178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 fi
7181
7182   if test "x$ac_ct_DSYMUTIL" = x; then
7183     DSYMUTIL=":"
7184   else
7185     case $cross_compiling:$ac_tool_warned in
7186 yes:)
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7189 ac_tool_warned=yes ;;
7190 esac
7191     DSYMUTIL=$ac_ct_DSYMUTIL
7192   fi
7193 else
7194   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7195 fi
7196
7197     if test -n "$ac_tool_prefix"; then
7198   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7199 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201 $as_echo_n "checking for $ac_word... " >&6; }
7202 if ${ac_cv_prog_NMEDIT+:} false; then :
7203   $as_echo_n "(cached) " >&6
7204 else
7205   if test -n "$NMEDIT"; then
7206   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7207 else
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7210 do
7211   IFS=$as_save_IFS
7212   test -z "$as_dir" && as_dir=.
7213     for ac_exec_ext in '' $ac_executable_extensions; do
7214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7215     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217     break 2
7218   fi
7219 done
7220   done
7221 IFS=$as_save_IFS
7222
7223 fi
7224 fi
7225 NMEDIT=$ac_cv_prog_NMEDIT
7226 if test -n "$NMEDIT"; then
7227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7228 $as_echo "$NMEDIT" >&6; }
7229 else
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 $as_echo "no" >&6; }
7232 fi
7233
7234
7235 fi
7236 if test -z "$ac_cv_prog_NMEDIT"; then
7237   ac_ct_NMEDIT=$NMEDIT
7238   # Extract the first word of "nmedit", so it can be a program name with args.
7239 set dummy nmedit; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7243   $as_echo_n "(cached) " >&6
7244 else
7245   if test -n "$ac_ct_NMEDIT"; then
7246   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251   IFS=$as_save_IFS
7252   test -z "$as_dir" && as_dir=.
7253     for ac_exec_ext in '' $ac_executable_extensions; do
7254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7255     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257     break 2
7258   fi
7259 done
7260   done
7261 IFS=$as_save_IFS
7262
7263 fi
7264 fi
7265 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7266 if test -n "$ac_ct_NMEDIT"; then
7267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7268 $as_echo "$ac_ct_NMEDIT" >&6; }
7269 else
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7272 fi
7273
7274   if test "x$ac_ct_NMEDIT" = x; then
7275     NMEDIT=":"
7276   else
7277     case $cross_compiling:$ac_tool_warned in
7278 yes:)
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7281 ac_tool_warned=yes ;;
7282 esac
7283     NMEDIT=$ac_ct_NMEDIT
7284   fi
7285 else
7286   NMEDIT="$ac_cv_prog_NMEDIT"
7287 fi
7288
7289     if test -n "$ac_tool_prefix"; then
7290   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7291 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_prog_LIPO+:} false; then :
7295   $as_echo_n "(cached) " >&6
7296 else
7297   if test -n "$LIPO"; then
7298   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303   IFS=$as_save_IFS
7304   test -z "$as_dir" && as_dir=.
7305     for ac_exec_ext in '' $ac_executable_extensions; do
7306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7307     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309     break 2
7310   fi
7311 done
7312   done
7313 IFS=$as_save_IFS
7314
7315 fi
7316 fi
7317 LIPO=$ac_cv_prog_LIPO
7318 if test -n "$LIPO"; then
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7320 $as_echo "$LIPO" >&6; }
7321 else
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7324 fi
7325
7326
7327 fi
7328 if test -z "$ac_cv_prog_LIPO"; then
7329   ac_ct_LIPO=$LIPO
7330   # Extract the first word of "lipo", so it can be a program name with args.
7331 set dummy lipo; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7335   $as_echo_n "(cached) " >&6
7336 else
7337   if test -n "$ac_ct_LIPO"; then
7338   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345     for ac_exec_ext in '' $ac_executable_extensions; do
7346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7347     ac_cv_prog_ac_ct_LIPO="lipo"
7348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352   done
7353 IFS=$as_save_IFS
7354
7355 fi
7356 fi
7357 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7358 if test -n "$ac_ct_LIPO"; then
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7360 $as_echo "$ac_ct_LIPO" >&6; }
7361 else
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7364 fi
7365
7366   if test "x$ac_ct_LIPO" = x; then
7367     LIPO=":"
7368   else
7369     case $cross_compiling:$ac_tool_warned in
7370 yes:)
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373 ac_tool_warned=yes ;;
7374 esac
7375     LIPO=$ac_ct_LIPO
7376   fi
7377 else
7378   LIPO="$ac_cv_prog_LIPO"
7379 fi
7380
7381     if test -n "$ac_tool_prefix"; then
7382   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7383 set dummy ${ac_tool_prefix}otool; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_prog_OTOOL+:} false; then :
7387   $as_echo_n "(cached) " >&6
7388 else
7389   if test -n "$OTOOL"; then
7390   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7391 else
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7394 do
7395   IFS=$as_save_IFS
7396   test -z "$as_dir" && as_dir=.
7397     for ac_exec_ext in '' $ac_executable_extensions; do
7398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401     break 2
7402   fi
7403 done
7404   done
7405 IFS=$as_save_IFS
7406
7407 fi
7408 fi
7409 OTOOL=$ac_cv_prog_OTOOL
7410 if test -n "$OTOOL"; then
7411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7412 $as_echo "$OTOOL" >&6; }
7413 else
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7416 fi
7417
7418
7419 fi
7420 if test -z "$ac_cv_prog_OTOOL"; then
7421   ac_ct_OTOOL=$OTOOL
7422   # Extract the first word of "otool", so it can be a program name with args.
7423 set dummy otool; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7427   $as_echo_n "(cached) " >&6
7428 else
7429   if test -n "$ac_ct_OTOOL"; then
7430   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7431 else
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7434 do
7435   IFS=$as_save_IFS
7436   test -z "$as_dir" && as_dir=.
7437     for ac_exec_ext in '' $ac_executable_extensions; do
7438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439     ac_cv_prog_ac_ct_OTOOL="otool"
7440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441     break 2
7442   fi
7443 done
7444   done
7445 IFS=$as_save_IFS
7446
7447 fi
7448 fi
7449 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7450 if test -n "$ac_ct_OTOOL"; then
7451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7452 $as_echo "$ac_ct_OTOOL" >&6; }
7453 else
7454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7456 fi
7457
7458   if test "x$ac_ct_OTOOL" = x; then
7459     OTOOL=":"
7460   else
7461     case $cross_compiling:$ac_tool_warned in
7462 yes:)
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7465 ac_tool_warned=yes ;;
7466 esac
7467     OTOOL=$ac_ct_OTOOL
7468   fi
7469 else
7470   OTOOL="$ac_cv_prog_OTOOL"
7471 fi
7472
7473     if test -n "$ac_tool_prefix"; then
7474   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7475 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_OTOOL64+:} false; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   if test -n "$OTOOL64"; then
7482   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489     for ac_exec_ext in '' $ac_executable_extensions; do
7490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496   done
7497 IFS=$as_save_IFS
7498
7499 fi
7500 fi
7501 OTOOL64=$ac_cv_prog_OTOOL64
7502 if test -n "$OTOOL64"; then
7503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7504 $as_echo "$OTOOL64" >&6; }
7505 else
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7508 fi
7509
7510
7511 fi
7512 if test -z "$ac_cv_prog_OTOOL64"; then
7513   ac_ct_OTOOL64=$OTOOL64
7514   # Extract the first word of "otool64", so it can be a program name with args.
7515 set dummy otool64; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7519   $as_echo_n "(cached) " >&6
7520 else
7521   if test -n "$ac_ct_OTOOL64"; then
7522   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529     for ac_exec_ext in '' $ac_executable_extensions; do
7530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531     ac_cv_prog_ac_ct_OTOOL64="otool64"
7532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536   done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7542 if test -n "$ac_ct_OTOOL64"; then
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7544 $as_echo "$ac_ct_OTOOL64" >&6; }
7545 else
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550   if test "x$ac_ct_OTOOL64" = x; then
7551     OTOOL64=":"
7552   else
7553     case $cross_compiling:$ac_tool_warned in
7554 yes:)
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned=yes ;;
7558 esac
7559     OTOOL64=$ac_ct_OTOOL64
7560   fi
7561 else
7562   OTOOL64="$ac_cv_prog_OTOOL64"
7563 fi
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7592 $as_echo_n "checking for -single_module linker flag... " >&6; }
7593 if ${lt_cv_apple_cc_single_mod+:} false; then :
7594   $as_echo_n "(cached) " >&6
7595 else
7596   lt_cv_apple_cc_single_mod=no
7597       if test -z "${LT_MULTI_MODULE}"; then
7598         # By default we will add the -single_module flag. You can override
7599         # by either setting the environment variable LT_MULTI_MODULE
7600         # non-empty at configure time, or by adding -multi_module to the
7601         # link flags.
7602         rm -rf libconftest.dylib*
7603         echo "int foo(void){return 1;}" > conftest.c
7604         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7605 -dynamiclib -Wl,-single_module conftest.c" >&5
7606         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7607           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7608         _lt_result=$?
7609         # If there is a non-empty error log, and "single_module"
7610         # appears in it, assume the flag caused a linker warning
7611         if test -s conftest.err && $GREP single_module conftest.err; then
7612           cat conftest.err >&5
7613         # Otherwise, if the output was created with a 0 exit code from
7614         # the compiler, it worked.
7615         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7616           lt_cv_apple_cc_single_mod=yes
7617         else
7618           cat conftest.err >&5
7619         fi
7620         rm -rf libconftest.dylib*
7621         rm -f conftest.*
7622       fi
7623 fi
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7625 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7626
7627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7628 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7629 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7630   $as_echo_n "(cached) " >&6
7631 else
7632   lt_cv_ld_exported_symbols_list=no
7633       save_LDFLAGS=$LDFLAGS
7634       echo "_main" > conftest.sym
7635       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7636       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h.  */
7638
7639 int
7640 main ()
7641 {
7642
7643   ;
7644   return 0;
7645 }
7646 _ACEOF
7647 if ac_fn_c_try_link "$LINENO"; then :
7648   lt_cv_ld_exported_symbols_list=yes
7649 else
7650   lt_cv_ld_exported_symbols_list=no
7651 fi
7652 rm -f core conftest.err conftest.$ac_objext \
7653     conftest$ac_exeext conftest.$ac_ext
7654         LDFLAGS="$save_LDFLAGS"
7655
7656 fi
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7658 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7659
7660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7661 $as_echo_n "checking for -force_load linker flag... " >&6; }
7662 if ${lt_cv_ld_force_load+:} false; then :
7663   $as_echo_n "(cached) " >&6
7664 else
7665   lt_cv_ld_force_load=no
7666       cat > conftest.c << _LT_EOF
7667 int forced_loaded() { return 2;}
7668 _LT_EOF
7669       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7670       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7671       echo "$AR cru libconftest.a conftest.o" >&5
7672       $AR cru libconftest.a conftest.o 2>&5
7673       echo "$RANLIB libconftest.a" >&5
7674       $RANLIB libconftest.a 2>&5
7675       cat > conftest.c << _LT_EOF
7676 int main() { return 0;}
7677 _LT_EOF
7678       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7679       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7680       _lt_result=$?
7681       if test -s conftest.err && $GREP force_load conftest.err; then
7682         cat conftest.err >&5
7683       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7684         lt_cv_ld_force_load=yes
7685       else
7686         cat conftest.err >&5
7687       fi
7688         rm -f conftest.err libconftest.a conftest conftest.c
7689         rm -rf conftest.dSYM
7690
7691 fi
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7693 $as_echo "$lt_cv_ld_force_load" >&6; }
7694     case $host_os in
7695     rhapsody* | darwin1.[012])
7696       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7697     darwin1.*)
7698       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7699     darwin*) # darwin 5.x on
7700       # if running on 10.5 or later, the deployment target defaults
7701       # to the OS version, if on x86, and 10.4, the deployment
7702       # target defaults to 10.4. Don't you love it?
7703       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7704         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7705           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7706         10.[012]*)
7707           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7708         10.*)
7709           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7710       esac
7711     ;;
7712   esac
7713     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7714       _lt_dar_single_mod='$single_module'
7715     fi
7716     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7717       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7718     else
7719       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7720     fi
7721     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7722       _lt_dsymutil='~$DSYMUTIL $lib || :'
7723     else
7724       _lt_dsymutil=
7725     fi
7726     ;;
7727   esac
7728
7729 ac_ext=c
7730 ac_cpp='$CPP $CPPFLAGS'
7731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7735 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7736 # On Suns, sometimes $CPP names a directory.
7737 if test -n "$CPP" && test -d "$CPP"; then
7738   CPP=
7739 fi
7740 if test -z "$CPP"; then
7741   if ${ac_cv_prog_CPP+:} false; then :
7742   $as_echo_n "(cached) " >&6
7743 else
7744       # Double quotes because CPP needs to be expanded
7745     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7746     do
7747       ac_preproc_ok=false
7748 for ac_c_preproc_warn_flag in '' yes
7749 do
7750   # Use a header file that comes with gcc, so configuring glibc
7751   # with a fresh cross-compiler works.
7752   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7753   # <limits.h> exists even on freestanding compilers.
7754   # On the NeXT, cc -E runs the code through the compiler's parser,
7755   # not just through cpp. "Syntax error" is here to catch this case.
7756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h.  */
7758 #ifdef __STDC__
7759 # include <limits.h>
7760 #else
7761 # include <assert.h>
7762 #endif
7763                      Syntax error
7764 _ACEOF
7765 if ac_fn_c_try_cpp "$LINENO"; then :
7766
7767 else
7768   # Broken: fails on valid input.
7769 continue
7770 fi
7771 rm -f conftest.err conftest.i conftest.$ac_ext
7772
7773   # OK, works on sane cases.  Now check whether nonexistent headers
7774   # can be detected and how.
7775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h.  */
7777 #include <ac_nonexistent.h>
7778 _ACEOF
7779 if ac_fn_c_try_cpp "$LINENO"; then :
7780   # Broken: success on invalid input.
7781 continue
7782 else
7783   # Passes both tests.
7784 ac_preproc_ok=:
7785 break
7786 fi
7787 rm -f conftest.err conftest.i conftest.$ac_ext
7788
7789 done
7790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7791 rm -f conftest.i conftest.err conftest.$ac_ext
7792 if $ac_preproc_ok; then :
7793   break
7794 fi
7795
7796     done
7797     ac_cv_prog_CPP=$CPP
7798
7799 fi
7800   CPP=$ac_cv_prog_CPP
7801 else
7802   ac_cv_prog_CPP=$CPP
7803 fi
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7805 $as_echo "$CPP" >&6; }
7806 ac_preproc_ok=false
7807 for ac_c_preproc_warn_flag in '' yes
7808 do
7809   # Use a header file that comes with gcc, so configuring glibc
7810   # with a fresh cross-compiler works.
7811   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7812   # <limits.h> exists even on freestanding compilers.
7813   # On the NeXT, cc -E runs the code through the compiler's parser,
7814   # not just through cpp. "Syntax error" is here to catch this case.
7815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h.  */
7817 #ifdef __STDC__
7818 # include <limits.h>
7819 #else
7820 # include <assert.h>
7821 #endif
7822                      Syntax error
7823 _ACEOF
7824 if ac_fn_c_try_cpp "$LINENO"; then :
7825
7826 else
7827   # Broken: fails on valid input.
7828 continue
7829 fi
7830 rm -f conftest.err conftest.i conftest.$ac_ext
7831
7832   # OK, works on sane cases.  Now check whether nonexistent headers
7833   # can be detected and how.
7834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h.  */
7836 #include <ac_nonexistent.h>
7837 _ACEOF
7838 if ac_fn_c_try_cpp "$LINENO"; then :
7839   # Broken: success on invalid input.
7840 continue
7841 else
7842   # Passes both tests.
7843 ac_preproc_ok=:
7844 break
7845 fi
7846 rm -f conftest.err conftest.i conftest.$ac_ext
7847
7848 done
7849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7850 rm -f conftest.i conftest.err conftest.$ac_ext
7851 if $ac_preproc_ok; then :
7852
7853 else
7854   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7856 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7857 See \`config.log' for more details" "$LINENO" 5; }
7858 fi
7859
7860 ac_ext=c
7861 ac_cpp='$CPP $CPPFLAGS'
7862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7865
7866
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7868 $as_echo_n "checking for ANSI C header files... " >&6; }
7869 if ${ac_cv_header_stdc+:} false; then :
7870   $as_echo_n "(cached) " >&6
7871 else
7872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h.  */
7874 #include <stdlib.h>
7875 #include <stdarg.h>
7876 #include <string.h>
7877 #include <float.h>
7878
7879 int
7880 main ()
7881 {
7882
7883   ;
7884   return 0;
7885 }
7886 _ACEOF
7887 if ac_fn_c_try_compile "$LINENO"; then :
7888   ac_cv_header_stdc=yes
7889 else
7890   ac_cv_header_stdc=no
7891 fi
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7893
7894 if test $ac_cv_header_stdc = yes; then
7895   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h.  */
7898 #include <string.h>
7899
7900 _ACEOF
7901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7902   $EGREP "memchr" >/dev/null 2>&1; then :
7903
7904 else
7905   ac_cv_header_stdc=no
7906 fi
7907 rm -f conftest*
7908
7909 fi
7910
7911 if test $ac_cv_header_stdc = yes; then
7912   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h.  */
7915 #include <stdlib.h>
7916
7917 _ACEOF
7918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7919   $EGREP "free" >/dev/null 2>&1; then :
7920
7921 else
7922   ac_cv_header_stdc=no
7923 fi
7924 rm -f conftest*
7925
7926 fi
7927
7928 if test $ac_cv_header_stdc = yes; then
7929   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7930   if test "$cross_compiling" = yes; then :
7931   :
7932 else
7933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h.  */
7935 #include <ctype.h>
7936 #include <stdlib.h>
7937 #if ((' ' & 0x0FF) == 0x020)
7938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7940 #else
7941 # define ISLOWER(c) \
7942                    (('a' <= (c) && (c) <= 'i') \
7943                      || ('j' <= (c) && (c) <= 'r') \
7944                      || ('s' <= (c) && (c) <= 'z'))
7945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7946 #endif
7947
7948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7949 int
7950 main ()
7951 {
7952   int i;
7953   for (i = 0; i < 256; i++)
7954     if (XOR (islower (i), ISLOWER (i))
7955         || toupper (i) != TOUPPER (i))
7956       return 2;
7957   return 0;
7958 }
7959 _ACEOF
7960 if ac_fn_c_try_run "$LINENO"; then :
7961
7962 else
7963   ac_cv_header_stdc=no
7964 fi
7965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7966   conftest.$ac_objext conftest.beam conftest.$ac_ext
7967 fi
7968
7969 fi
7970 fi
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7972 $as_echo "$ac_cv_header_stdc" >&6; }
7973 if test $ac_cv_header_stdc = yes; then
7974
7975 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7976
7977 fi
7978
7979 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7980 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7981                   inttypes.h stdint.h unistd.h
7982 do :
7983   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7984 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7985 "
7986 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7987   cat >>confdefs.h <<_ACEOF
7988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7989 _ACEOF
7990
7991 fi
7992
7993 done
7994
7995
7996 for ac_header in dlfcn.h
7997 do :
7998   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7999 "
8000 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8001   cat >>confdefs.h <<_ACEOF
8002 #define HAVE_DLFCN_H 1
8003 _ACEOF
8004
8005 fi
8006
8007 done
8008
8009
8010
8011
8012
8013 # Set options
8014
8015
8016
8017         enable_dlopen=no
8018
8019
8020   enable_win32_dll=no
8021
8022
8023             # Check whether --enable-shared was given.
8024 if test "${enable_shared+set}" = set; then :
8025   enableval=$enable_shared; p=${PACKAGE-default}
8026     case $enableval in
8027     yes) enable_shared=yes ;;
8028     no) enable_shared=no ;;
8029     *)
8030       enable_shared=no
8031       # Look at the argument we got.  We use all the common list separators.
8032       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8033       for pkg in $enableval; do
8034         IFS="$lt_save_ifs"
8035         if test "X$pkg" = "X$p"; then
8036           enable_shared=yes
8037         fi
8038       done
8039       IFS="$lt_save_ifs"
8040       ;;
8041     esac
8042 else
8043   enable_shared=yes
8044 fi
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054   # Check whether --enable-static was given.
8055 if test "${enable_static+set}" = set; then :
8056   enableval=$enable_static; p=${PACKAGE-default}
8057     case $enableval in
8058     yes) enable_static=yes ;;
8059     no) enable_static=no ;;
8060     *)
8061      enable_static=no
8062       # Look at the argument we got.  We use all the common list separators.
8063       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8064       for pkg in $enableval; do
8065         IFS="$lt_save_ifs"
8066         if test "X$pkg" = "X$p"; then
8067           enable_static=yes
8068         fi
8069       done
8070       IFS="$lt_save_ifs"
8071       ;;
8072     esac
8073 else
8074   enable_static=yes
8075 fi
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086 # Check whether --with-pic was given.
8087 if test "${with_pic+set}" = set; then :
8088   withval=$with_pic; lt_p=${PACKAGE-default}
8089     case $withval in
8090     yes|no) pic_mode=$withval ;;
8091     *)
8092       pic_mode=default
8093       # Look at the argument we got.  We use all the common list separators.
8094       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8095       for lt_pkg in $withval; do
8096         IFS="$lt_save_ifs"
8097         if test "X$lt_pkg" = "X$lt_p"; then
8098           pic_mode=yes
8099         fi
8100       done
8101       IFS="$lt_save_ifs"
8102       ;;
8103     esac
8104 else
8105   pic_mode=default
8106 fi
8107
8108
8109 test -z "$pic_mode" && pic_mode=default
8110
8111
8112
8113
8114
8115
8116
8117   # Check whether --enable-fast-install was given.
8118 if test "${enable_fast_install+set}" = set; then :
8119   enableval=$enable_fast_install; p=${PACKAGE-default}
8120     case $enableval in
8121     yes) enable_fast_install=yes ;;
8122     no) enable_fast_install=no ;;
8123     *)
8124       enable_fast_install=no
8125       # Look at the argument we got.  We use all the common list separators.
8126       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8127       for pkg in $enableval; do
8128         IFS="$lt_save_ifs"
8129         if test "X$pkg" = "X$p"; then
8130           enable_fast_install=yes
8131         fi
8132       done
8133       IFS="$lt_save_ifs"
8134       ;;
8135     esac
8136 else
8137   enable_fast_install=yes
8138 fi
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150 # This can be used to rebuild libtool when needed
8151 LIBTOOL_DEPS="$ltmain"
8152
8153 # Always use our own libtool.
8154 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185 test -z "$LN_S" && LN_S="ln -s"
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200 if test -n "${ZSH_VERSION+set}" ; then
8201    setopt NO_GLOB_SUBST
8202 fi
8203
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8205 $as_echo_n "checking for objdir... " >&6; }
8206 if ${lt_cv_objdir+:} false; then :
8207   $as_echo_n "(cached) " >&6
8208 else
8209   rm -f .libs 2>/dev/null
8210 mkdir .libs 2>/dev/null
8211 if test -d .libs; then
8212   lt_cv_objdir=.libs
8213 else
8214   # MS-DOS does not allow filenames that begin with a dot.
8215   lt_cv_objdir=_libs
8216 fi
8217 rmdir .libs 2>/dev/null
8218 fi
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8220 $as_echo "$lt_cv_objdir" >&6; }
8221 objdir=$lt_cv_objdir
8222
8223
8224
8225
8226
8227 cat >>confdefs.h <<_ACEOF
8228 #define LT_OBJDIR "$lt_cv_objdir/"
8229 _ACEOF
8230
8231
8232
8233
8234 case $host_os in
8235 aix3*)
8236   # AIX sometimes has problems with the GCC collect2 program.  For some
8237   # reason, if we set the COLLECT_NAMES environment variable, the problems
8238   # vanish in a puff of smoke.
8239   if test "X${COLLECT_NAMES+set}" != Xset; then
8240     COLLECT_NAMES=
8241     export COLLECT_NAMES
8242   fi
8243   ;;
8244 esac
8245
8246 # Global variables:
8247 ofile=libtool
8248 can_build_shared=yes
8249
8250 # All known linkers require a `.a' archive for static linking (except MSVC,
8251 # which needs '.lib').
8252 libext=a
8253
8254 with_gnu_ld="$lt_cv_prog_gnu_ld"
8255
8256 old_CC="$CC"
8257 old_CFLAGS="$CFLAGS"
8258
8259 # Set sane defaults for various variables
8260 test -z "$CC" && CC=cc
8261 test -z "$LTCC" && LTCC=$CC
8262 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8263 test -z "$LD" && LD=ld
8264 test -z "$ac_objext" && ac_objext=o
8265
8266 for cc_temp in $compiler""; do
8267   case $cc_temp in
8268     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8269     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8270     \-*) ;;
8271     *) break;;
8272   esac
8273 done
8274 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8275
8276
8277 # Only perform the check for file, if the check method requires it
8278 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8279 case $deplibs_check_method in
8280 file_magic*)
8281   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8283 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8284 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8285   $as_echo_n "(cached) " >&6
8286 else
8287   case $MAGIC_CMD in
8288 [\\/*] |  ?:[\\/]*)
8289   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8290   ;;
8291 *)
8292   lt_save_MAGIC_CMD="$MAGIC_CMD"
8293   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8294   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8295   for ac_dir in $ac_dummy; do
8296     IFS="$lt_save_ifs"
8297     test -z "$ac_dir" && ac_dir=.
8298     if test -f $ac_dir/${ac_tool_prefix}file; then
8299       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8300       if test -n "$file_magic_test_file"; then
8301         case $deplibs_check_method in
8302         "file_magic "*)
8303           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8304           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8305           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8306             $EGREP "$file_magic_regex" > /dev/null; then
8307             :
8308           else
8309             cat <<_LT_EOF 1>&2
8310
8311 *** Warning: the command libtool uses to detect shared libraries,
8312 *** $file_magic_cmd, produces output that libtool cannot recognize.
8313 *** The result is that libtool may fail to recognize shared libraries
8314 *** as such.  This will affect the creation of libtool libraries that
8315 *** depend on shared libraries, but programs linked with such libtool
8316 *** libraries will work regardless of this problem.  Nevertheless, you
8317 *** may want to report the problem to your system manager and/or to
8318 *** bug-libtool@gnu.org
8319
8320 _LT_EOF
8321           fi ;;
8322         esac
8323       fi
8324       break
8325     fi
8326   done
8327   IFS="$lt_save_ifs"
8328   MAGIC_CMD="$lt_save_MAGIC_CMD"
8329   ;;
8330 esac
8331 fi
8332
8333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8334 if test -n "$MAGIC_CMD"; then
8335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8336 $as_echo "$MAGIC_CMD" >&6; }
8337 else
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8340 fi
8341
8342
8343
8344
8345
8346 if test -z "$lt_cv_path_MAGIC_CMD"; then
8347   if test -n "$ac_tool_prefix"; then
8348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8349 $as_echo_n "checking for file... " >&6; }
8350 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8351   $as_echo_n "(cached) " >&6
8352 else
8353   case $MAGIC_CMD in
8354 [\\/*] |  ?:[\\/]*)
8355   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8356   ;;
8357 *)
8358   lt_save_MAGIC_CMD="$MAGIC_CMD"
8359   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8360   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8361   for ac_dir in $ac_dummy; do
8362     IFS="$lt_save_ifs"
8363     test -z "$ac_dir" && ac_dir=.
8364     if test -f $ac_dir/file; then
8365       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8366       if test -n "$file_magic_test_file"; then
8367         case $deplibs_check_method in
8368         "file_magic "*)
8369           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8370           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8371           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8372             $EGREP "$file_magic_regex" > /dev/null; then
8373             :
8374           else
8375             cat <<_LT_EOF 1>&2
8376
8377 *** Warning: the command libtool uses to detect shared libraries,
8378 *** $file_magic_cmd, produces output that libtool cannot recognize.
8379 *** The result is that libtool may fail to recognize shared libraries
8380 *** as such.  This will affect the creation of libtool libraries that
8381 *** depend on shared libraries, but programs linked with such libtool
8382 *** libraries will work regardless of this problem.  Nevertheless, you
8383 *** may want to report the problem to your system manager and/or to
8384 *** bug-libtool@gnu.org
8385
8386 _LT_EOF
8387           fi ;;
8388         esac
8389       fi
8390       break
8391     fi
8392   done
8393   IFS="$lt_save_ifs"
8394   MAGIC_CMD="$lt_save_MAGIC_CMD"
8395   ;;
8396 esac
8397 fi
8398
8399 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8400 if test -n "$MAGIC_CMD"; then
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8402 $as_echo "$MAGIC_CMD" >&6; }
8403 else
8404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8406 fi
8407
8408
8409   else
8410     MAGIC_CMD=:
8411   fi
8412 fi
8413
8414   fi
8415   ;;
8416 esac
8417
8418 # Use C for the default configuration in the libtool script
8419
8420 lt_save_CC="$CC"
8421 ac_ext=c
8422 ac_cpp='$CPP $CPPFLAGS'
8423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8426
8427
8428 # Source file extension for C test sources.
8429 ac_ext=c
8430
8431 # Object file extension for compiled C test sources.
8432 objext=o
8433 objext=$objext
8434
8435 # Code to be used in simple compile tests
8436 lt_simple_compile_test_code="int some_variable = 0;"
8437
8438 # Code to be used in simple link tests
8439 lt_simple_link_test_code='int main(){return(0);}'
8440
8441
8442
8443
8444
8445
8446
8447 # If no C compiler was specified, use CC.
8448 LTCC=${LTCC-"$CC"}
8449
8450 # If no C compiler flags were specified, use CFLAGS.
8451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8452
8453 # Allow CC to be a program name with arguments.
8454 compiler=$CC
8455
8456 # Save the default compiler, since it gets overwritten when the other
8457 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8458 compiler_DEFAULT=$CC
8459
8460 # save warnings/boilerplate of simple test code
8461 ac_outfile=conftest.$ac_objext
8462 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8463 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8464 _lt_compiler_boilerplate=`cat conftest.err`
8465 $RM conftest*
8466
8467 ac_outfile=conftest.$ac_objext
8468 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8469 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8470 _lt_linker_boilerplate=`cat conftest.err`
8471 $RM -r conftest*
8472
8473
8474 if test -n "$compiler"; then
8475
8476 lt_prog_compiler_no_builtin_flag=
8477
8478 if test "$GCC" = yes; then
8479   case $cc_basename in
8480   nvcc*)
8481     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8482   *)
8483     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8484   esac
8485
8486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8487 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8488 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8489   $as_echo_n "(cached) " >&6
8490 else
8491   lt_cv_prog_compiler_rtti_exceptions=no
8492    ac_outfile=conftest.$ac_objext
8493    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8494    lt_compiler_flag="-fno-rtti -fno-exceptions"
8495    # Insert the option either (1) after the last *FLAGS variable, or
8496    # (2) before a word containing "conftest.", or (3) at the end.
8497    # Note that $ac_compile itself does not contain backslashes and begins
8498    # with a dollar sign (not a hyphen), so the echo should work correctly.
8499    # The option is referenced via a variable to avoid confusing sed.
8500    lt_compile=`echo "$ac_compile" | $SED \
8501    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8502    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8503    -e 's:$: $lt_compiler_flag:'`
8504    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8505    (eval "$lt_compile" 2>conftest.err)
8506    ac_status=$?
8507    cat conftest.err >&5
8508    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509    if (exit $ac_status) && test -s "$ac_outfile"; then
8510      # The compiler can only warn and ignore the option if not recognized
8511      # So say no if there are warnings other than the usual output.
8512      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8513      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8514      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8515        lt_cv_prog_compiler_rtti_exceptions=yes
8516      fi
8517    fi
8518    $RM conftest*
8519
8520 fi
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8522 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8523
8524 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8525     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8526 else
8527     :
8528 fi
8529
8530 fi
8531
8532
8533
8534
8535
8536
8537   lt_prog_compiler_wl=
8538 lt_prog_compiler_pic=
8539 lt_prog_compiler_static=
8540
8541
8542   if test "$GCC" = yes; then
8543     lt_prog_compiler_wl='-Wl,'
8544     lt_prog_compiler_static='-static'
8545
8546     case $host_os in
8547       aix*)
8548       # All AIX code is PIC.
8549       if test "$host_cpu" = ia64; then
8550         # AIX 5 now supports IA64 processor
8551         lt_prog_compiler_static='-Bstatic'
8552       fi
8553       ;;
8554
8555     amigaos*)
8556       case $host_cpu in
8557       powerpc)
8558             # see comment about AmigaOS4 .so support
8559             lt_prog_compiler_pic='-fPIC'
8560         ;;
8561       m68k)
8562             # FIXME: we need at least 68020 code to build shared libraries, but
8563             # adding the `-m68020' flag to GCC prevents building anything better,
8564             # like `-m68040'.
8565             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8566         ;;
8567       esac
8568       ;;
8569
8570     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8571       # PIC is the default for these OSes.
8572       ;;
8573
8574     mingw* | cygwin* | pw32* | os2* | cegcc*)
8575       # This hack is so that the source file can tell whether it is being
8576       # built for inclusion in a dll (and should export symbols for example).
8577       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8578       # (--disable-auto-import) libraries
8579       lt_prog_compiler_pic='-DDLL_EXPORT'
8580       ;;
8581
8582     darwin* | rhapsody*)
8583       # PIC is the default on this platform
8584       # Common symbols not allowed in MH_DYLIB files
8585       lt_prog_compiler_pic='-fno-common'
8586       ;;
8587
8588     haiku*)
8589       # PIC is the default for Haiku.
8590       # The "-static" flag exists, but is broken.
8591       lt_prog_compiler_static=
8592       ;;
8593
8594     hpux*)
8595       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8596       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8597       # sets the default TLS model and affects inlining.
8598       case $host_cpu in
8599       hppa*64*)
8600         # +Z the default
8601         ;;
8602       *)
8603         lt_prog_compiler_pic='-fPIC'
8604         ;;
8605       esac
8606       ;;
8607
8608     interix[3-9]*)
8609       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8610       # Instead, we relocate shared libraries at runtime.
8611       ;;
8612
8613     msdosdjgpp*)
8614       # Just because we use GCC doesn't mean we suddenly get shared libraries
8615       # on systems that don't support them.
8616       lt_prog_compiler_can_build_shared=no
8617       enable_shared=no
8618       ;;
8619
8620     *nto* | *qnx*)
8621       # QNX uses GNU C++, but need to define -shared option too, otherwise
8622       # it will coredump.
8623       lt_prog_compiler_pic='-fPIC -shared'
8624       ;;
8625
8626     sysv4*MP*)
8627       if test -d /usr/nec; then
8628         lt_prog_compiler_pic=-Kconform_pic
8629       fi
8630       ;;
8631
8632     *)
8633       lt_prog_compiler_pic='-fPIC'
8634       ;;
8635     esac
8636
8637     case $cc_basename in
8638     nvcc*) # Cuda Compiler Driver 2.2
8639       lt_prog_compiler_wl='-Xlinker '
8640       if test -n "$lt_prog_compiler_pic"; then
8641         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8642       fi
8643       ;;
8644     esac
8645   else
8646     # PORTME Check for flag to pass linker flags through the system compiler.
8647     case $host_os in
8648     aix*)
8649       lt_prog_compiler_wl='-Wl,'
8650       if test "$host_cpu" = ia64; then
8651         # AIX 5 now supports IA64 processor
8652         lt_prog_compiler_static='-Bstatic'
8653       else
8654         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8655       fi
8656       ;;
8657
8658     mingw* | cygwin* | pw32* | os2* | cegcc*)
8659       # This hack is so that the source file can tell whether it is being
8660       # built for inclusion in a dll (and should export symbols for example).
8661       lt_prog_compiler_pic='-DDLL_EXPORT'
8662       ;;
8663
8664     hpux9* | hpux10* | hpux11*)
8665       lt_prog_compiler_wl='-Wl,'
8666       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8667       # not for PA HP-UX.
8668       case $host_cpu in
8669       hppa*64*|ia64*)
8670         # +Z the default
8671         ;;
8672       *)
8673         lt_prog_compiler_pic='+Z'
8674         ;;
8675       esac
8676       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8677       lt_prog_compiler_static='${wl}-a ${wl}archive'
8678       ;;
8679
8680     irix5* | irix6* | nonstopux*)
8681       lt_prog_compiler_wl='-Wl,'
8682       # PIC (with -KPIC) is the default.
8683       lt_prog_compiler_static='-non_shared'
8684       ;;
8685
8686     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8687       case $cc_basename in
8688       # old Intel for x86_64 which still supported -KPIC.
8689       ecc*)
8690         lt_prog_compiler_wl='-Wl,'
8691         lt_prog_compiler_pic='-KPIC'
8692         lt_prog_compiler_static='-static'
8693         ;;
8694       # icc used to be incompatible with GCC.
8695       # ICC 10 doesn't accept -KPIC any more.
8696       icc* | ifort*)
8697         lt_prog_compiler_wl='-Wl,'
8698         lt_prog_compiler_pic='-fPIC'
8699         lt_prog_compiler_static='-static'
8700         ;;
8701       # Lahey Fortran 8.1.
8702       lf95*)
8703         lt_prog_compiler_wl='-Wl,'
8704         lt_prog_compiler_pic='--shared'
8705         lt_prog_compiler_static='--static'
8706         ;;
8707       nagfor*)
8708         # NAG Fortran compiler
8709         lt_prog_compiler_wl='-Wl,-Wl,,'
8710         lt_prog_compiler_pic='-PIC'
8711         lt_prog_compiler_static='-Bstatic'
8712         ;;
8713       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8714         # Portland Group compilers (*not* the Pentium gcc compiler,
8715         # which looks to be a dead project)
8716         lt_prog_compiler_wl='-Wl,'
8717         lt_prog_compiler_pic='-fpic'
8718         lt_prog_compiler_static='-Bstatic'
8719         ;;
8720       ccc*)
8721         lt_prog_compiler_wl='-Wl,'
8722         # All Alpha code is PIC.
8723         lt_prog_compiler_static='-non_shared'
8724         ;;
8725       xl* | bgxl* | bgf* | mpixl*)
8726         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8727         lt_prog_compiler_wl='-Wl,'
8728         lt_prog_compiler_pic='-qpic'
8729         lt_prog_compiler_static='-qstaticlink'
8730         ;;
8731       *)
8732         case `$CC -V 2>&1 | sed 5q` in
8733         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8734           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8735           lt_prog_compiler_pic='-KPIC'
8736           lt_prog_compiler_static='-Bstatic'
8737           lt_prog_compiler_wl=''
8738           ;;
8739         *Sun\ F* | *Sun*Fortran*)
8740           lt_prog_compiler_pic='-KPIC'
8741           lt_prog_compiler_static='-Bstatic'
8742           lt_prog_compiler_wl='-Qoption ld '
8743           ;;
8744         *Sun\ C*)
8745           # Sun C 5.9
8746           lt_prog_compiler_pic='-KPIC'
8747           lt_prog_compiler_static='-Bstatic'
8748           lt_prog_compiler_wl='-Wl,'
8749           ;;
8750         *Intel*\ [CF]*Compiler*)
8751           lt_prog_compiler_wl='-Wl,'
8752           lt_prog_compiler_pic='-fPIC'
8753           lt_prog_compiler_static='-static'
8754           ;;
8755         *Portland\ Group*)
8756           lt_prog_compiler_wl='-Wl,'
8757           lt_prog_compiler_pic='-fpic'
8758           lt_prog_compiler_static='-Bstatic'
8759           ;;
8760         esac
8761         ;;
8762       esac
8763       ;;
8764
8765     newsos6)
8766       lt_prog_compiler_pic='-KPIC'
8767       lt_prog_compiler_static='-Bstatic'
8768       ;;
8769
8770     *nto* | *qnx*)
8771       # QNX uses GNU C++, but need to define -shared option too, otherwise
8772       # it will coredump.
8773       lt_prog_compiler_pic='-fPIC -shared'
8774       ;;
8775
8776     osf3* | osf4* | osf5*)
8777       lt_prog_compiler_wl='-Wl,'
8778       # All OSF/1 code is PIC.
8779       lt_prog_compiler_static='-non_shared'
8780       ;;
8781
8782     rdos*)
8783       lt_prog_compiler_static='-non_shared'
8784       ;;
8785
8786     solaris*)
8787       lt_prog_compiler_pic='-KPIC'
8788       lt_prog_compiler_static='-Bstatic'
8789       case $cc_basename in
8790       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8791         lt_prog_compiler_wl='-Qoption ld ';;
8792       *)
8793         lt_prog_compiler_wl='-Wl,';;
8794       esac
8795       ;;
8796
8797     sunos4*)
8798       lt_prog_compiler_wl='-Qoption ld '
8799       lt_prog_compiler_pic='-PIC'
8800       lt_prog_compiler_static='-Bstatic'
8801       ;;
8802
8803     sysv4 | sysv4.2uw2* | sysv4.3*)
8804       lt_prog_compiler_wl='-Wl,'
8805       lt_prog_compiler_pic='-KPIC'
8806       lt_prog_compiler_static='-Bstatic'
8807       ;;
8808
8809     sysv4*MP*)
8810       if test -d /usr/nec ;then
8811         lt_prog_compiler_pic='-Kconform_pic'
8812         lt_prog_compiler_static='-Bstatic'
8813       fi
8814       ;;
8815
8816     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8817       lt_prog_compiler_wl='-Wl,'
8818       lt_prog_compiler_pic='-KPIC'
8819       lt_prog_compiler_static='-Bstatic'
8820       ;;
8821
8822     unicos*)
8823       lt_prog_compiler_wl='-Wl,'
8824       lt_prog_compiler_can_build_shared=no
8825       ;;
8826
8827     uts4*)
8828       lt_prog_compiler_pic='-pic'
8829       lt_prog_compiler_static='-Bstatic'
8830       ;;
8831
8832     *)
8833       lt_prog_compiler_can_build_shared=no
8834       ;;
8835     esac
8836   fi
8837
8838 case $host_os in
8839   # For platforms which do not support PIC, -DPIC is meaningless:
8840   *djgpp*)
8841     lt_prog_compiler_pic=
8842     ;;
8843   *)
8844     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8845     ;;
8846 esac
8847
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8849 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8850 if ${lt_cv_prog_compiler_pic+:} false; then :
8851   $as_echo_n "(cached) " >&6
8852 else
8853   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8854 fi
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8856 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8857 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8858
8859 #
8860 # Check to make sure the PIC flag actually works.
8861 #
8862 if test -n "$lt_prog_compiler_pic"; then
8863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8864 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8865 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8866   $as_echo_n "(cached) " >&6
8867 else
8868   lt_cv_prog_compiler_pic_works=no
8869    ac_outfile=conftest.$ac_objext
8870    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8871    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8872    # Insert the option either (1) after the last *FLAGS variable, or
8873    # (2) before a word containing "conftest.", or (3) at the end.
8874    # Note that $ac_compile itself does not contain backslashes and begins
8875    # with a dollar sign (not a hyphen), so the echo should work correctly.
8876    # The option is referenced via a variable to avoid confusing sed.
8877    lt_compile=`echo "$ac_compile" | $SED \
8878    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8879    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8880    -e 's:$: $lt_compiler_flag:'`
8881    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8882    (eval "$lt_compile" 2>conftest.err)
8883    ac_status=$?
8884    cat conftest.err >&5
8885    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886    if (exit $ac_status) && test -s "$ac_outfile"; then
8887      # The compiler can only warn and ignore the option if not recognized
8888      # So say no if there are warnings other than the usual output.
8889      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8890      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8891      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8892        lt_cv_prog_compiler_pic_works=yes
8893      fi
8894    fi
8895    $RM conftest*
8896
8897 fi
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8899 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8900
8901 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8902     case $lt_prog_compiler_pic in
8903      "" | " "*) ;;
8904      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8905      esac
8906 else
8907     lt_prog_compiler_pic=
8908      lt_prog_compiler_can_build_shared=no
8909 fi
8910
8911 fi
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923 #
8924 # Check to make sure the static flag actually works.
8925 #
8926 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8928 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8929 if ${lt_cv_prog_compiler_static_works+:} false; then :
8930   $as_echo_n "(cached) " >&6
8931 else
8932   lt_cv_prog_compiler_static_works=no
8933    save_LDFLAGS="$LDFLAGS"
8934    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8935    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8936    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8937      # The linker can only warn and ignore the option if not recognized
8938      # So say no if there are warnings
8939      if test -s conftest.err; then
8940        # Append any errors to the config.log.
8941        cat conftest.err 1>&5
8942        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8943        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8944        if diff conftest.exp conftest.er2 >/dev/null; then
8945          lt_cv_prog_compiler_static_works=yes
8946        fi
8947      else
8948        lt_cv_prog_compiler_static_works=yes
8949      fi
8950    fi
8951    $RM -r conftest*
8952    LDFLAGS="$save_LDFLAGS"
8953
8954 fi
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8956 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8957
8958 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8959     :
8960 else
8961     lt_prog_compiler_static=
8962 fi
8963
8964
8965
8966
8967
8968
8969
8970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8971 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8972 if ${lt_cv_prog_compiler_c_o+:} false; then :
8973   $as_echo_n "(cached) " >&6
8974 else
8975   lt_cv_prog_compiler_c_o=no
8976    $RM -r conftest 2>/dev/null
8977    mkdir conftest
8978    cd conftest
8979    mkdir out
8980    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8981
8982    lt_compiler_flag="-o out/conftest2.$ac_objext"
8983    # Insert the option either (1) after the last *FLAGS variable, or
8984    # (2) before a word containing "conftest.", or (3) at the end.
8985    # Note that $ac_compile itself does not contain backslashes and begins
8986    # with a dollar sign (not a hyphen), so the echo should work correctly.
8987    lt_compile=`echo "$ac_compile" | $SED \
8988    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8989    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8990    -e 's:$: $lt_compiler_flag:'`
8991    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8992    (eval "$lt_compile" 2>out/conftest.err)
8993    ac_status=$?
8994    cat out/conftest.err >&5
8995    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8997    then
8998      # The compiler can only warn and ignore the option if not recognized
8999      # So say no if there are warnings
9000      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9001      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9002      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9003        lt_cv_prog_compiler_c_o=yes
9004      fi
9005    fi
9006    chmod u+w . 2>&5
9007    $RM conftest*
9008    # SGI C++ compiler will create directory out/ii_files/ for
9009    # template instantiation
9010    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9011    $RM out/* && rmdir out
9012    cd ..
9013    $RM -r conftest
9014    $RM conftest*
9015
9016 fi
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9018 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9019
9020
9021
9022
9023
9024
9025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9026 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9027 if ${lt_cv_prog_compiler_c_o+:} false; then :
9028   $as_echo_n "(cached) " >&6
9029 else
9030   lt_cv_prog_compiler_c_o=no
9031    $RM -r conftest 2>/dev/null
9032    mkdir conftest
9033    cd conftest
9034    mkdir out
9035    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9036
9037    lt_compiler_flag="-o out/conftest2.$ac_objext"
9038    # Insert the option either (1) after the last *FLAGS variable, or
9039    # (2) before a word containing "conftest.", or (3) at the end.
9040    # Note that $ac_compile itself does not contain backslashes and begins
9041    # with a dollar sign (not a hyphen), so the echo should work correctly.
9042    lt_compile=`echo "$ac_compile" | $SED \
9043    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9044    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9045    -e 's:$: $lt_compiler_flag:'`
9046    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9047    (eval "$lt_compile" 2>out/conftest.err)
9048    ac_status=$?
9049    cat out/conftest.err >&5
9050    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9052    then
9053      # The compiler can only warn and ignore the option if not recognized
9054      # So say no if there are warnings
9055      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9056      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9057      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9058        lt_cv_prog_compiler_c_o=yes
9059      fi
9060    fi
9061    chmod u+w . 2>&5
9062    $RM conftest*
9063    # SGI C++ compiler will create directory out/ii_files/ for
9064    # template instantiation
9065    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9066    $RM out/* && rmdir out
9067    cd ..
9068    $RM -r conftest
9069    $RM conftest*
9070
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9073 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9074
9075
9076
9077
9078 hard_links="nottested"
9079 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9080   # do not overwrite the value of need_locks provided by the user
9081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9082 $as_echo_n "checking if we can lock with hard links... " >&6; }
9083   hard_links=yes
9084   $RM conftest*
9085   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9086   touch conftest.a
9087   ln conftest.a conftest.b 2>&5 || hard_links=no
9088   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9090 $as_echo "$hard_links" >&6; }
9091   if test "$hard_links" = no; then
9092     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9093 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9094     need_locks=warn
9095   fi
9096 else
9097   need_locks=no
9098 fi
9099
9100
9101
9102
9103
9104
9105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9106 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9107
9108   runpath_var=
9109   allow_undefined_flag=
9110   always_export_symbols=no
9111   archive_cmds=
9112   archive_expsym_cmds=
9113   compiler_needs_object=no
9114   enable_shared_with_static_runtimes=no
9115   export_dynamic_flag_spec=
9116   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9117   hardcode_automatic=no
9118   hardcode_direct=no
9119   hardcode_direct_absolute=no
9120   hardcode_libdir_flag_spec=
9121   hardcode_libdir_separator=
9122   hardcode_minus_L=no
9123   hardcode_shlibpath_var=unsupported
9124   inherit_rpath=no
9125   link_all_deplibs=unknown
9126   module_cmds=
9127   module_expsym_cmds=
9128   old_archive_from_new_cmds=
9129   old_archive_from_expsyms_cmds=
9130   thread_safe_flag_spec=
9131   whole_archive_flag_spec=
9132   # include_expsyms should be a list of space-separated symbols to be *always*
9133   # included in the symbol list
9134   include_expsyms=
9135   # exclude_expsyms can be an extended regexp of symbols to exclude
9136   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9137   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9138   # as well as any symbol that contains `d'.
9139   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9140   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9141   # platforms (ab)use it in PIC code, but their linkers get confused if
9142   # the symbol is explicitly referenced.  Since portable code cannot
9143   # rely on this symbol name, it's probably fine to never include it in
9144   # preloaded symbol tables.
9145   # Exclude shared library initialization/finalization symbols.
9146   extract_expsyms_cmds=
9147
9148   case $host_os in
9149   cygwin* | mingw* | pw32* | cegcc*)
9150     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9151     # When not using gcc, we currently assume that we are using
9152     # Microsoft Visual C++.
9153     if test "$GCC" != yes; then
9154       with_gnu_ld=no
9155     fi
9156     ;;
9157   interix*)
9158     # we just hope/assume this is gcc and not c89 (= MSVC++)
9159     with_gnu_ld=yes
9160     ;;
9161   openbsd*)
9162     with_gnu_ld=no
9163     ;;
9164   esac
9165
9166   ld_shlibs=yes
9167
9168   # On some targets, GNU ld is compatible enough with the native linker
9169   # that we're better off using the native interface for both.
9170   lt_use_gnu_ld_interface=no
9171   if test "$with_gnu_ld" = yes; then
9172     case $host_os in
9173       aix*)
9174         # The AIX port of GNU ld has always aspired to compatibility
9175         # with the native linker.  However, as the warning in the GNU ld
9176         # block says, versions before 2.19.5* couldn't really create working
9177         # shared libraries, regardless of the interface used.
9178         case `$LD -v 2>&1` in
9179           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9180           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9181           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9182           *)
9183             lt_use_gnu_ld_interface=yes
9184             ;;
9185         esac
9186         ;;
9187       *)
9188         lt_use_gnu_ld_interface=yes
9189         ;;
9190     esac
9191   fi
9192
9193   if test "$lt_use_gnu_ld_interface" = yes; then
9194     # If archive_cmds runs LD, not CC, wlarc should be empty
9195     wlarc='${wl}'
9196
9197     # Set some defaults for GNU ld with shared library support. These
9198     # are reset later if shared libraries are not supported. Putting them
9199     # here allows them to be overridden if necessary.
9200     runpath_var=LD_RUN_PATH
9201     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9202     export_dynamic_flag_spec='${wl}--export-dynamic'
9203     # ancient GNU ld didn't support --whole-archive et. al.
9204     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9205       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9206     else
9207       whole_archive_flag_spec=
9208     fi
9209     supports_anon_versioning=no
9210     case `$LD -v 2>&1` in
9211       *GNU\ gold*) supports_anon_versioning=yes ;;
9212       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9213       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9214       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9215       *\ 2.11.*) ;; # other 2.11 versions
9216       *) supports_anon_versioning=yes ;;
9217     esac
9218
9219     # See if GNU ld supports shared libraries.
9220     case $host_os in
9221     aix[3-9]*)
9222       # On AIX/PPC, the GNU linker is very broken
9223       if test "$host_cpu" != ia64; then
9224         ld_shlibs=no
9225         cat <<_LT_EOF 1>&2
9226
9227 *** Warning: the GNU linker, at least up to release 2.19, is reported
9228 *** to be unable to reliably create shared libraries on AIX.
9229 *** Therefore, libtool is disabling shared libraries support.  If you
9230 *** really care for shared libraries, you may want to install binutils
9231 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9232 *** You will then need to restart the configuration process.
9233
9234 _LT_EOF
9235       fi
9236       ;;
9237
9238     amigaos*)
9239       case $host_cpu in
9240       powerpc)
9241             # see comment about AmigaOS4 .so support
9242             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9243             archive_expsym_cmds=''
9244         ;;
9245       m68k)
9246             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)'
9247             hardcode_libdir_flag_spec='-L$libdir'
9248             hardcode_minus_L=yes
9249         ;;
9250       esac
9251       ;;
9252
9253     beos*)
9254       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9255         allow_undefined_flag=unsupported
9256         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9257         # support --undefined.  This deserves some investigation.  FIXME
9258         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259       else
9260         ld_shlibs=no
9261       fi
9262       ;;
9263
9264     cygwin* | mingw* | pw32* | cegcc*)
9265       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9266       # as there is no search path for DLLs.
9267       hardcode_libdir_flag_spec='-L$libdir'
9268       export_dynamic_flag_spec='${wl}--export-all-symbols'
9269       allow_undefined_flag=unsupported
9270       always_export_symbols=no
9271       enable_shared_with_static_runtimes=yes
9272       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'
9273       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9274
9275       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9276         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9277         # If the export-symbols file already is a .def file (1st line
9278         # is EXPORTS), use it as is; otherwise, prepend...
9279         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9280           cp $export_symbols $output_objdir/$soname.def;
9281         else
9282           echo EXPORTS > $output_objdir/$soname.def;
9283           cat $export_symbols >> $output_objdir/$soname.def;
9284         fi~
9285         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9286       else
9287         ld_shlibs=no
9288       fi
9289       ;;
9290
9291     haiku*)
9292       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293       link_all_deplibs=yes
9294       ;;
9295
9296     interix[3-9]*)
9297       hardcode_direct=no
9298       hardcode_shlibpath_var=no
9299       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9300       export_dynamic_flag_spec='${wl}-E'
9301       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9302       # Instead, shared libraries are loaded at an image base (0x10000000 by
9303       # default) and relocated if they conflict, which is a slow very memory
9304       # consuming and fragmenting process.  To avoid this, we pick a random,
9305       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9306       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9307       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9308       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'
9309       ;;
9310
9311     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9312       tmp_diet=no
9313       if test "$host_os" = linux-dietlibc; then
9314         case $cc_basename in
9315           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9316         esac
9317       fi
9318       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9319          && test "$tmp_diet" = no
9320       then
9321         tmp_addflag=' $pic_flag'
9322         tmp_sharedflag='-shared'
9323         case $cc_basename,$host_cpu in
9324         pgcc*)                          # Portland Group C compiler
9325           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'
9326           tmp_addflag=' $pic_flag'
9327           ;;
9328         pgf77* | pgf90* | pgf95* | pgfortran*)
9329                                         # Portland Group f77 and f90 compilers
9330           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'
9331           tmp_addflag=' $pic_flag -Mnomain' ;;
9332         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9333           tmp_addflag=' -i_dynamic' ;;
9334         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9335           tmp_addflag=' -i_dynamic -nofor_main' ;;
9336         ifc* | ifort*)                  # Intel Fortran compiler
9337           tmp_addflag=' -nofor_main' ;;
9338         lf95*)                          # Lahey Fortran 8.1
9339           whole_archive_flag_spec=
9340           tmp_sharedflag='--shared' ;;
9341         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9342           tmp_sharedflag='-qmkshrobj'
9343           tmp_addflag= ;;
9344         nvcc*)  # Cuda Compiler Driver 2.2
9345           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'
9346           compiler_needs_object=yes
9347           ;;
9348         esac
9349         case `$CC -V 2>&1 | sed 5q` in
9350         *Sun\ C*)                       # Sun C 5.9
9351           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'
9352           compiler_needs_object=yes
9353           tmp_sharedflag='-G' ;;
9354         *Sun\ F*)                       # Sun Fortran 8.3
9355           tmp_sharedflag='-G' ;;
9356         esac
9357         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358
9359         if test "x$supports_anon_versioning" = xyes; then
9360           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9361             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9362             echo "local: *; };" >> $output_objdir/$libname.ver~
9363             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9364         fi
9365
9366         case $cc_basename in
9367         xlf* | bgf* | bgxlf* | mpixlf*)
9368           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9369           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9370           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9371           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9372           if test "x$supports_anon_versioning" = xyes; then
9373             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9374               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9375               echo "local: *; };" >> $output_objdir/$libname.ver~
9376               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9377           fi
9378           ;;
9379         esac
9380       else
9381         ld_shlibs=no
9382       fi
9383       ;;
9384
9385     netbsd*)
9386       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9387         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9388         wlarc=
9389       else
9390         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9392       fi
9393       ;;
9394
9395     solaris*)
9396       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9397         ld_shlibs=no
9398         cat <<_LT_EOF 1>&2
9399
9400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9401 *** create shared libraries on Solaris systems.  Therefore, libtool
9402 *** is disabling shared libraries support.  We urge you to upgrade GNU
9403 *** binutils to release 2.9.1 or newer.  Another option is to modify
9404 *** your PATH or compiler configuration so that the native linker is
9405 *** used, and then restart.
9406
9407 _LT_EOF
9408       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9409         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9410         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9411       else
9412         ld_shlibs=no
9413       fi
9414       ;;
9415
9416     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9417       case `$LD -v 2>&1` in
9418         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9419         ld_shlibs=no
9420         cat <<_LT_EOF 1>&2
9421
9422 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9423 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9424 *** is disabling shared libraries support.  We urge you to upgrade GNU
9425 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9426 *** your PATH or compiler configuration so that the native linker is
9427 *** used, and then restart.
9428
9429 _LT_EOF
9430         ;;
9431         *)
9432           # For security reasons, it is highly recommended that you always
9433           # use absolute paths for naming shared libraries, and exclude the
9434           # DT_RUNPATH tag from executables and libraries.  But doing so
9435           # requires that you compile everything twice, which is a pain.
9436           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9437             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9438             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9440           else
9441             ld_shlibs=no
9442           fi
9443         ;;
9444       esac
9445       ;;
9446
9447     sunos4*)
9448       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9449       wlarc=
9450       hardcode_direct=yes
9451       hardcode_shlibpath_var=no
9452       ;;
9453
9454     *)
9455       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9456         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9457         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9458       else
9459         ld_shlibs=no
9460       fi
9461       ;;
9462     esac
9463
9464     if test "$ld_shlibs" = no; then
9465       runpath_var=
9466       hardcode_libdir_flag_spec=
9467       export_dynamic_flag_spec=
9468       whole_archive_flag_spec=
9469     fi
9470   else
9471     # PORTME fill in a description of your system's linker (not GNU ld)
9472     case $host_os in
9473     aix3*)
9474       allow_undefined_flag=unsupported
9475       always_export_symbols=yes
9476       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'
9477       # Note: this linker hardcodes the directories in LIBPATH if there
9478       # are no directories specified by -L.
9479       hardcode_minus_L=yes
9480       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9481         # Neither direct hardcoding nor static linking is supported with a
9482         # broken collect2.
9483         hardcode_direct=unsupported
9484       fi
9485       ;;
9486
9487     aix[4-9]*)
9488       if test "$host_cpu" = ia64; then
9489         # On IA64, the linker does run time linking by default, so we don't
9490         # have to do anything special.
9491         aix_use_runtimelinking=no
9492         exp_sym_flag='-Bexport'
9493         no_entry_flag=""
9494       else
9495         # If we're using GNU nm, then we don't want the "-C" option.
9496         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9497         # Also, AIX nm treats weak defined symbols like other global
9498         # defined symbols, whereas GNU nm marks them as "W".
9499         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9500           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'
9501         else
9502           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'
9503         fi
9504         aix_use_runtimelinking=no
9505
9506         # Test if we are trying to use run time linking or normal
9507         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9508         # need to do runtime linking.
9509         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9510           for ld_flag in $LDFLAGS; do
9511           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9512             aix_use_runtimelinking=yes
9513             break
9514           fi
9515           done
9516           ;;
9517         esac
9518
9519         exp_sym_flag='-bexport'
9520         no_entry_flag='-bnoentry'
9521       fi
9522
9523       # When large executables or shared objects are built, AIX ld can
9524       # have problems creating the table of contents.  If linking a library
9525       # or program results in "error TOC overflow" add -mminimal-toc to
9526       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9527       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9528
9529       archive_cmds=''
9530       hardcode_direct=yes
9531       hardcode_direct_absolute=yes
9532       hardcode_libdir_separator=':'
9533       link_all_deplibs=yes
9534       file_list_spec='${wl}-f,'
9535
9536       if test "$GCC" = yes; then
9537         case $host_os in aix4.[012]|aix4.[012].*)
9538         # We only want to do this on AIX 4.2 and lower, the check
9539         # below for broken collect2 doesn't work under 4.3+
9540           collect2name=`${CC} -print-prog-name=collect2`
9541           if test -f "$collect2name" &&
9542            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9543           then
9544           # We have reworked collect2
9545           :
9546           else
9547           # We have old collect2
9548           hardcode_direct=unsupported
9549           # It fails to find uninstalled libraries when the uninstalled
9550           # path is not listed in the libpath.  Setting hardcode_minus_L
9551           # to unsupported forces relinking
9552           hardcode_minus_L=yes
9553           hardcode_libdir_flag_spec='-L$libdir'
9554           hardcode_libdir_separator=
9555           fi
9556           ;;
9557         esac
9558         shared_flag='-shared'
9559         if test "$aix_use_runtimelinking" = yes; then
9560           shared_flag="$shared_flag "'${wl}-G'
9561         fi
9562       else
9563         # not using gcc
9564         if test "$host_cpu" = ia64; then
9565         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9566         # chokes on -Wl,-G. The following line is correct:
9567           shared_flag='-G'
9568         else
9569           if test "$aix_use_runtimelinking" = yes; then
9570             shared_flag='${wl}-G'
9571           else
9572             shared_flag='${wl}-bM:SRE'
9573           fi
9574         fi
9575       fi
9576
9577       export_dynamic_flag_spec='${wl}-bexpall'
9578       # It seems that -bexpall does not export symbols beginning with
9579       # underscore (_), so it is better to generate a list of symbols to export.
9580       always_export_symbols=yes
9581       if test "$aix_use_runtimelinking" = yes; then
9582         # Warning - without using the other runtime loading flags (-brtl),
9583         # -berok will link without error, but may produce a broken library.
9584         allow_undefined_flag='-berok'
9585         # Determine the default libpath from the value encoded in an
9586         # empty executable.
9587         if test "${lt_cv_aix_libpath+set}" = set; then
9588   aix_libpath=$lt_cv_aix_libpath
9589 else
9590   if ${lt_cv_aix_libpath_+:} false; then :
9591   $as_echo_n "(cached) " >&6
9592 else
9593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h.  */
9595
9596 int
9597 main ()
9598 {
9599
9600   ;
9601   return 0;
9602 }
9603 _ACEOF
9604 if ac_fn_c_try_link "$LINENO"; then :
9605
9606   lt_aix_libpath_sed='
9607       /Import File Strings/,/^$/ {
9608           /^0/ {
9609               s/^0  *\([^ ]*\) *$/\1/
9610               p
9611           }
9612       }'
9613   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9614   # Check for a 64-bit object if we didn't find anything.
9615   if test -z "$lt_cv_aix_libpath_"; then
9616     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9617   fi
9618 fi
9619 rm -f core conftest.err conftest.$ac_objext \
9620     conftest$ac_exeext conftest.$ac_ext
9621   if test -z "$lt_cv_aix_libpath_"; then
9622     lt_cv_aix_libpath_="/usr/lib:/lib"
9623   fi
9624
9625 fi
9626
9627   aix_libpath=$lt_cv_aix_libpath_
9628 fi
9629
9630         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9631         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"
9632       else
9633         if test "$host_cpu" = ia64; then
9634           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9635           allow_undefined_flag="-z nodefs"
9636           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"
9637         else
9638          # Determine the default libpath from the value encoded in an
9639          # empty executable.
9640          if test "${lt_cv_aix_libpath+set}" = set; then
9641   aix_libpath=$lt_cv_aix_libpath
9642 else
9643   if ${lt_cv_aix_libpath_+:} false; then :
9644   $as_echo_n "(cached) " >&6
9645 else
9646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h.  */
9648
9649 int
9650 main ()
9651 {
9652
9653   ;
9654   return 0;
9655 }
9656 _ACEOF
9657 if ac_fn_c_try_link "$LINENO"; then :
9658
9659   lt_aix_libpath_sed='
9660       /Import File Strings/,/^$/ {
9661           /^0/ {
9662               s/^0  *\([^ ]*\) *$/\1/
9663               p
9664           }
9665       }'
9666   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9667   # Check for a 64-bit object if we didn't find anything.
9668   if test -z "$lt_cv_aix_libpath_"; then
9669     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9670   fi
9671 fi
9672 rm -f core conftest.err conftest.$ac_objext \
9673     conftest$ac_exeext conftest.$ac_ext
9674   if test -z "$lt_cv_aix_libpath_"; then
9675     lt_cv_aix_libpath_="/usr/lib:/lib"
9676   fi
9677
9678 fi
9679
9680   aix_libpath=$lt_cv_aix_libpath_
9681 fi
9682
9683          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9684           # Warning - without using the other run time loading flags,
9685           # -berok will link without error, but may produce a broken library.
9686           no_undefined_flag=' ${wl}-bernotok'
9687           allow_undefined_flag=' ${wl}-berok'
9688           if test "$with_gnu_ld" = yes; then
9689             # We only use this code for GNU lds that support --whole-archive.
9690             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9691           else
9692             # Exported symbols can be pulled into shared objects from archives
9693             whole_archive_flag_spec='$convenience'
9694           fi
9695           archive_cmds_need_lc=yes
9696           # This is similar to how AIX traditionally builds its shared libraries.
9697           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'
9698         fi
9699       fi
9700       ;;
9701
9702     amigaos*)
9703       case $host_cpu in
9704       powerpc)
9705             # see comment about AmigaOS4 .so support
9706             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9707             archive_expsym_cmds=''
9708         ;;
9709       m68k)
9710             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)'
9711             hardcode_libdir_flag_spec='-L$libdir'
9712             hardcode_minus_L=yes
9713         ;;
9714       esac
9715       ;;
9716
9717     bsdi[45]*)
9718       export_dynamic_flag_spec=-rdynamic
9719       ;;
9720
9721     cygwin* | mingw* | pw32* | cegcc*)
9722       # When not using gcc, we currently assume that we are using
9723       # Microsoft Visual C++.
9724       # hardcode_libdir_flag_spec is actually meaningless, as there is
9725       # no search path for DLLs.
9726       case $cc_basename in
9727       cl*)
9728         # Native MSVC
9729         hardcode_libdir_flag_spec=' '
9730         allow_undefined_flag=unsupported
9731         always_export_symbols=yes
9732         file_list_spec='@'
9733         # Tell ltmain to make .lib files, not .a files.
9734         libext=lib
9735         # Tell ltmain to make .dll files, not .so files.
9736         shrext_cmds=".dll"
9737         # FIXME: Setting linknames here is a bad hack.
9738         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9739         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9740             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9741           else
9742             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9743           fi~
9744           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9745           linknames='
9746         # The linker will not automatically build a static lib if we build a DLL.
9747         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9748         enable_shared_with_static_runtimes=yes
9749         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9750         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9751         # Don't use ranlib
9752         old_postinstall_cmds='chmod 644 $oldlib'
9753         postlink_cmds='lt_outputfile="@OUTPUT@"~
9754           lt_tool_outputfile="@TOOL_OUTPUT@"~
9755           case $lt_outputfile in
9756             *.exe|*.EXE) ;;
9757             *)
9758               lt_outputfile="$lt_outputfile.exe"
9759               lt_tool_outputfile="$lt_tool_outputfile.exe"
9760               ;;
9761           esac~
9762           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9763             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9764             $RM "$lt_outputfile.manifest";
9765           fi'
9766         ;;
9767       *)
9768         # Assume MSVC wrapper
9769         hardcode_libdir_flag_spec=' '
9770         allow_undefined_flag=unsupported
9771         # Tell ltmain to make .lib files, not .a files.
9772         libext=lib
9773         # Tell ltmain to make .dll files, not .so files.
9774         shrext_cmds=".dll"
9775         # FIXME: Setting linknames here is a bad hack.
9776         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9777         # The linker will automatically build a .lib file if we build a DLL.
9778         old_archive_from_new_cmds='true'
9779         # FIXME: Should let the user specify the lib program.
9780         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9781         enable_shared_with_static_runtimes=yes
9782         ;;
9783       esac
9784       ;;
9785
9786     darwin* | rhapsody*)
9787
9788
9789   archive_cmds_need_lc=no
9790   hardcode_direct=no
9791   hardcode_automatic=yes
9792   hardcode_shlibpath_var=unsupported
9793   if test "$lt_cv_ld_force_load" = "yes"; then
9794     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\"`'
9795
9796   else
9797     whole_archive_flag_spec=''
9798   fi
9799   link_all_deplibs=yes
9800   allow_undefined_flag="$_lt_dar_allow_undefined"
9801   case $cc_basename in
9802      ifort*) _lt_dar_can_shared=yes ;;
9803      *) _lt_dar_can_shared=$GCC ;;
9804   esac
9805   if test "$_lt_dar_can_shared" = "yes"; then
9806     output_verbose_link_cmd=func_echo_all
9807     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9808     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9809     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}"
9810     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}"
9811
9812   else
9813   ld_shlibs=no
9814   fi
9815
9816       ;;
9817
9818     dgux*)
9819       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9820       hardcode_libdir_flag_spec='-L$libdir'
9821       hardcode_shlibpath_var=no
9822       ;;
9823
9824     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9825     # support.  Future versions do this automatically, but an explicit c++rt0.o
9826     # does not break anything, and helps significantly (at the cost of a little
9827     # extra space).
9828     freebsd2.2*)
9829       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9830       hardcode_libdir_flag_spec='-R$libdir'
9831       hardcode_direct=yes
9832       hardcode_shlibpath_var=no
9833       ;;
9834
9835     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9836     freebsd2.*)
9837       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9838       hardcode_direct=yes
9839       hardcode_minus_L=yes
9840       hardcode_shlibpath_var=no
9841       ;;
9842
9843     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9844     freebsd* | dragonfly*)
9845       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9846       hardcode_libdir_flag_spec='-R$libdir'
9847       hardcode_direct=yes
9848       hardcode_shlibpath_var=no
9849       ;;
9850
9851     hpux9*)
9852       if test "$GCC" = yes; then
9853         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'
9854       else
9855         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'
9856       fi
9857       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9858       hardcode_libdir_separator=:
9859       hardcode_direct=yes
9860
9861       # hardcode_minus_L: Not really in the search PATH,
9862       # but as the default location of the library.
9863       hardcode_minus_L=yes
9864       export_dynamic_flag_spec='${wl}-E'
9865       ;;
9866
9867     hpux10*)
9868       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9869         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9870       else
9871         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9872       fi
9873       if test "$with_gnu_ld" = no; then
9874         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9875         hardcode_libdir_separator=:
9876         hardcode_direct=yes
9877         hardcode_direct_absolute=yes
9878         export_dynamic_flag_spec='${wl}-E'
9879         # hardcode_minus_L: Not really in the search PATH,
9880         # but as the default location of the library.
9881         hardcode_minus_L=yes
9882       fi
9883       ;;
9884
9885     hpux11*)
9886       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9887         case $host_cpu in
9888         hppa*64*)
9889           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9890           ;;
9891         ia64*)
9892           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9893           ;;
9894         *)
9895           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9896           ;;
9897         esac
9898       else
9899         case $host_cpu in
9900         hppa*64*)
9901           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9902           ;;
9903         ia64*)
9904           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9905           ;;
9906         *)
9907
9908           # Older versions of the 11.00 compiler do not understand -b yet
9909           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9910           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9911 $as_echo_n "checking if $CC understands -b... " >&6; }
9912 if ${lt_cv_prog_compiler__b+:} false; then :
9913   $as_echo_n "(cached) " >&6
9914 else
9915   lt_cv_prog_compiler__b=no
9916    save_LDFLAGS="$LDFLAGS"
9917    LDFLAGS="$LDFLAGS -b"
9918    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9919    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9920      # The linker can only warn and ignore the option if not recognized
9921      # So say no if there are warnings
9922      if test -s conftest.err; then
9923        # Append any errors to the config.log.
9924        cat conftest.err 1>&5
9925        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9926        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9927        if diff conftest.exp conftest.er2 >/dev/null; then
9928          lt_cv_prog_compiler__b=yes
9929        fi
9930      else
9931        lt_cv_prog_compiler__b=yes
9932      fi
9933    fi
9934    $RM -r conftest*
9935    LDFLAGS="$save_LDFLAGS"
9936
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9939 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9940
9941 if test x"$lt_cv_prog_compiler__b" = xyes; then
9942     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9943 else
9944     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9945 fi
9946
9947           ;;
9948         esac
9949       fi
9950       if test "$with_gnu_ld" = no; then
9951         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9952         hardcode_libdir_separator=:
9953
9954         case $host_cpu in
9955         hppa*64*|ia64*)
9956           hardcode_direct=no
9957           hardcode_shlibpath_var=no
9958           ;;
9959         *)
9960           hardcode_direct=yes
9961           hardcode_direct_absolute=yes
9962           export_dynamic_flag_spec='${wl}-E'
9963
9964           # hardcode_minus_L: Not really in the search PATH,
9965           # but as the default location of the library.
9966           hardcode_minus_L=yes
9967           ;;
9968         esac
9969       fi
9970       ;;
9971
9972     irix5* | irix6* | nonstopux*)
9973       if test "$GCC" = yes; then
9974         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'
9975         # Try to use the -exported_symbol ld option, if it does not
9976         # work, assume that -exports_file does not work either and
9977         # implicitly export all symbols.
9978         # This should be the same for all languages, so no per-tag cache variable.
9979         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9980 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9981 if ${lt_cv_irix_exported_symbol+:} false; then :
9982   $as_echo_n "(cached) " >&6
9983 else
9984   save_LDFLAGS="$LDFLAGS"
9985            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9986            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h.  */
9988 int foo (void) { return 0; }
9989 _ACEOF
9990 if ac_fn_c_try_link "$LINENO"; then :
9991   lt_cv_irix_exported_symbol=yes
9992 else
9993   lt_cv_irix_exported_symbol=no
9994 fi
9995 rm -f core conftest.err conftest.$ac_objext \
9996     conftest$ac_exeext conftest.$ac_ext
9997            LDFLAGS="$save_LDFLAGS"
9998 fi
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10000 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10001         if test "$lt_cv_irix_exported_symbol" = yes; then
10002           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'
10003         fi
10004       else
10005         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'
10006         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'
10007       fi
10008       archive_cmds_need_lc='no'
10009       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10010       hardcode_libdir_separator=:
10011       inherit_rpath=yes
10012       link_all_deplibs=yes
10013       ;;
10014
10015     netbsd*)
10016       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10017         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10018       else
10019         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10020       fi
10021       hardcode_libdir_flag_spec='-R$libdir'
10022       hardcode_direct=yes
10023       hardcode_shlibpath_var=no
10024       ;;
10025
10026     newsos6)
10027       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10028       hardcode_direct=yes
10029       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10030       hardcode_libdir_separator=:
10031       hardcode_shlibpath_var=no
10032       ;;
10033
10034     *nto* | *qnx*)
10035       ;;
10036
10037     openbsd*)
10038       if test -f /usr/libexec/ld.so; then
10039         hardcode_direct=yes
10040         hardcode_shlibpath_var=no
10041         hardcode_direct_absolute=yes
10042         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10043           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10044           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10045           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10046           export_dynamic_flag_spec='${wl}-E'
10047         else
10048           case $host_os in
10049            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10050              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10051              hardcode_libdir_flag_spec='-R$libdir'
10052              ;;
10053            *)
10054              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10055              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10056              ;;
10057           esac
10058         fi
10059       else
10060         ld_shlibs=no
10061       fi
10062       ;;
10063
10064     os2*)
10065       hardcode_libdir_flag_spec='-L$libdir'
10066       hardcode_minus_L=yes
10067       allow_undefined_flag=unsupported
10068       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'
10069       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10070       ;;
10071
10072     osf3*)
10073       if test "$GCC" = yes; then
10074         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10075         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'
10076       else
10077         allow_undefined_flag=' -expect_unresolved \*'
10078         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'
10079       fi
10080       archive_cmds_need_lc='no'
10081       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10082       hardcode_libdir_separator=:
10083       ;;
10084
10085     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10086       if test "$GCC" = yes; then
10087         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10088         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'
10089         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10090       else
10091         allow_undefined_flag=' -expect_unresolved \*'
10092         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'
10093         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~
10094         $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'
10095
10096         # Both c and cxx compiler support -rpath directly
10097         hardcode_libdir_flag_spec='-rpath $libdir'
10098       fi
10099       archive_cmds_need_lc='no'
10100       hardcode_libdir_separator=:
10101       ;;
10102
10103     solaris*)
10104       no_undefined_flag=' -z defs'
10105       if test "$GCC" = yes; then
10106         wlarc='${wl}'
10107         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10108         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10109           $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'
10110       else
10111         case `$CC -V 2>&1` in
10112         *"Compilers 5.0"*)
10113           wlarc=''
10114           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10116           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10117           ;;
10118         *)
10119           wlarc='${wl}'
10120           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10121           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10122           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10123           ;;
10124         esac
10125       fi
10126       hardcode_libdir_flag_spec='-R$libdir'
10127       hardcode_shlibpath_var=no
10128       case $host_os in
10129       solaris2.[0-5] | solaris2.[0-5].*) ;;
10130       *)
10131         # The compiler driver will combine and reorder linker options,
10132         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10133         # but is careful enough not to reorder.
10134         # Supported since Solaris 2.6 (maybe 2.5.1?)
10135         if test "$GCC" = yes; then
10136           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10137         else
10138           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10139         fi
10140         ;;
10141       esac
10142       link_all_deplibs=yes
10143       ;;
10144
10145     sunos4*)
10146       if test "x$host_vendor" = xsequent; then
10147         # Use $CC to link under sequent, because it throws in some extra .o
10148         # files that make .init and .fini sections work.
10149         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10150       else
10151         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10152       fi
10153       hardcode_libdir_flag_spec='-L$libdir'
10154       hardcode_direct=yes
10155       hardcode_minus_L=yes
10156       hardcode_shlibpath_var=no
10157       ;;
10158
10159     sysv4)
10160       case $host_vendor in
10161         sni)
10162           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10163           hardcode_direct=yes # is this really true???
10164         ;;
10165         siemens)
10166           ## LD is ld it makes a PLAMLIB
10167           ## CC just makes a GrossModule.
10168           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10169           reload_cmds='$CC -r -o $output$reload_objs'
10170           hardcode_direct=no
10171         ;;
10172         motorola)
10173           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10174           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10175         ;;
10176       esac
10177       runpath_var='LD_RUN_PATH'
10178       hardcode_shlibpath_var=no
10179       ;;
10180
10181     sysv4.3*)
10182       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10183       hardcode_shlibpath_var=no
10184       export_dynamic_flag_spec='-Bexport'
10185       ;;
10186
10187     sysv4*MP*)
10188       if test -d /usr/nec; then
10189         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190         hardcode_shlibpath_var=no
10191         runpath_var=LD_RUN_PATH
10192         hardcode_runpath_var=yes
10193         ld_shlibs=yes
10194       fi
10195       ;;
10196
10197     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10198       no_undefined_flag='${wl}-z,text'
10199       archive_cmds_need_lc=no
10200       hardcode_shlibpath_var=no
10201       runpath_var='LD_RUN_PATH'
10202
10203       if test "$GCC" = yes; then
10204         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10205         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10206       else
10207         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10209       fi
10210       ;;
10211
10212     sysv5* | sco3.2v5* | sco5v6*)
10213       # Note: We can NOT use -z defs as we might desire, because we do not
10214       # link with -lc, and that would cause any symbols used from libc to
10215       # always be unresolved, which means just about no library would
10216       # ever link correctly.  If we're not using GNU ld we use -z text
10217       # though, which does catch some bad symbols but isn't as heavy-handed
10218       # as -z defs.
10219       no_undefined_flag='${wl}-z,text'
10220       allow_undefined_flag='${wl}-z,nodefs'
10221       archive_cmds_need_lc=no
10222       hardcode_shlibpath_var=no
10223       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10224       hardcode_libdir_separator=':'
10225       link_all_deplibs=yes
10226       export_dynamic_flag_spec='${wl}-Bexport'
10227       runpath_var='LD_RUN_PATH'
10228
10229       if test "$GCC" = yes; then
10230         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10231         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232       else
10233         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235       fi
10236       ;;
10237
10238     uts4*)
10239       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10240       hardcode_libdir_flag_spec='-L$libdir'
10241       hardcode_shlibpath_var=no
10242       ;;
10243
10244     *)
10245       ld_shlibs=no
10246       ;;
10247     esac
10248
10249     if test x$host_vendor = xsni; then
10250       case $host in
10251       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10252         export_dynamic_flag_spec='${wl}-Blargedynsym'
10253         ;;
10254       esac
10255     fi
10256   fi
10257
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10259 $as_echo "$ld_shlibs" >&6; }
10260 test "$ld_shlibs" = no && can_build_shared=no
10261
10262 with_gnu_ld=$with_gnu_ld
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278 #
10279 # Do we need to explicitly link libc?
10280 #
10281 case "x$archive_cmds_need_lc" in
10282 x|xyes)
10283   # Assume -lc should be added
10284   archive_cmds_need_lc=yes
10285
10286   if test "$enable_shared" = yes && test "$GCC" = yes; then
10287     case $archive_cmds in
10288     *'~'*)
10289       # FIXME: we may have to deal with multi-command sequences.
10290       ;;
10291     '$CC '*)
10292       # Test whether the compiler implicitly links with -lc since on some
10293       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10294       # to ld, don't add -lc before -lgcc.
10295       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10296 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10297 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10298   $as_echo_n "(cached) " >&6
10299 else
10300   $RM conftest*
10301         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10302
10303         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10304   (eval $ac_compile) 2>&5
10305   ac_status=$?
10306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10307   test $ac_status = 0; } 2>conftest.err; then
10308           soname=conftest
10309           lib=conftest
10310           libobjs=conftest.$ac_objext
10311           deplibs=
10312           wl=$lt_prog_compiler_wl
10313           pic_flag=$lt_prog_compiler_pic
10314           compiler_flags=-v
10315           linker_flags=-v
10316           verstring=
10317           output_objdir=.
10318           libname=conftest
10319           lt_save_allow_undefined_flag=$allow_undefined_flag
10320           allow_undefined_flag=
10321           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10322   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10323   ac_status=$?
10324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10325   test $ac_status = 0; }
10326           then
10327             lt_cv_archive_cmds_need_lc=no
10328           else
10329             lt_cv_archive_cmds_need_lc=yes
10330           fi
10331           allow_undefined_flag=$lt_save_allow_undefined_flag
10332         else
10333           cat conftest.err 1>&5
10334         fi
10335         $RM conftest*
10336
10337 fi
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10339 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10340       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10341       ;;
10342     esac
10343   fi
10344   ;;
10345 esac
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10499 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10500
10501 if test "$GCC" = yes; then
10502   case $host_os in
10503     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10504     *) lt_awk_arg="/^libraries:/" ;;
10505   esac
10506   case $host_os in
10507     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10508     *) lt_sed_strip_eq="s,=/,/,g" ;;
10509   esac
10510   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10511   case $lt_search_path_spec in
10512   *\;*)
10513     # if the path contains ";" then we assume it to be the separator
10514     # otherwise default to the standard path separator (i.e. ":") - it is
10515     # assumed that no part of a normal pathname contains ";" but that should
10516     # okay in the real world where ";" in dirpaths is itself problematic.
10517     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10518     ;;
10519   *)
10520     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10521     ;;
10522   esac
10523   # Ok, now we have the path, separated by spaces, we can step through it
10524   # and add multilib dir if necessary.
10525   lt_tmp_lt_search_path_spec=
10526   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10527   for lt_sys_path in $lt_search_path_spec; do
10528     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10529       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10530     else
10531       test -d "$lt_sys_path" && \
10532         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10533     fi
10534   done
10535   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10536 BEGIN {RS=" "; FS="/|\n";} {
10537   lt_foo="";
10538   lt_count=0;
10539   for (lt_i = NF; lt_i > 0; lt_i--) {
10540     if ($lt_i != "" && $lt_i != ".") {
10541       if ($lt_i == "..") {
10542         lt_count++;
10543       } else {
10544         if (lt_count == 0) {
10545           lt_foo="/" $lt_i lt_foo;
10546         } else {
10547           lt_count--;
10548         }
10549       }
10550     }
10551   }
10552   if (lt_foo != "") { lt_freq[lt_foo]++; }
10553   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10554 }'`
10555   # AWK program above erroneously prepends '/' to C:/dos/paths
10556   # for these hosts.
10557   case $host_os in
10558     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10559       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10560   esac
10561   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10562 else
10563   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10564 fi
10565 library_names_spec=
10566 libname_spec='lib$name'
10567 soname_spec=
10568 shrext_cmds=".so"
10569 postinstall_cmds=
10570 postuninstall_cmds=
10571 finish_cmds=
10572 finish_eval=
10573 shlibpath_var=
10574 shlibpath_overrides_runpath=unknown
10575 version_type=none
10576 dynamic_linker="$host_os ld.so"
10577 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10578 need_lib_prefix=unknown
10579 hardcode_into_libs=no
10580
10581 # when you set need_version to no, make sure it does not cause -set_version
10582 # flags to be left without arguments
10583 need_version=unknown
10584
10585 case $host_os in
10586 aix3*)
10587   version_type=linux # correct to gnu/linux during the next big refactor
10588   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10589   shlibpath_var=LIBPATH
10590
10591   # AIX 3 has no versioning support, so we append a major version to the name.
10592   soname_spec='${libname}${release}${shared_ext}$major'
10593   ;;
10594
10595 aix[4-9]*)
10596   version_type=linux # correct to gnu/linux during the next big refactor
10597   need_lib_prefix=no
10598   need_version=no
10599   hardcode_into_libs=yes
10600   if test "$host_cpu" = ia64; then
10601     # AIX 5 supports IA64
10602     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10603     shlibpath_var=LD_LIBRARY_PATH
10604   else
10605     # With GCC up to 2.95.x, collect2 would create an import file
10606     # for dependence libraries.  The import file would start with
10607     # the line `#! .'.  This would cause the generated library to
10608     # depend on `.', always an invalid library.  This was fixed in
10609     # development snapshots of GCC prior to 3.0.
10610     case $host_os in
10611       aix4 | aix4.[01] | aix4.[01].*)
10612       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10613            echo ' yes '
10614            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10615         :
10616       else
10617         can_build_shared=no
10618       fi
10619       ;;
10620     esac
10621     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10622     # soname into executable. Probably we can add versioning support to
10623     # collect2, so additional links can be useful in future.
10624     if test "$aix_use_runtimelinking" = yes; then
10625       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10626       # instead of lib<name>.a to let people know that these are not
10627       # typical AIX shared libraries.
10628       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629     else
10630       # We preserve .a as extension for shared libraries through AIX4.2
10631       # and later when we are not doing run time linking.
10632       library_names_spec='${libname}${release}.a $libname.a'
10633       soname_spec='${libname}${release}${shared_ext}$major'
10634     fi
10635     shlibpath_var=LIBPATH
10636   fi
10637   ;;
10638
10639 amigaos*)
10640   case $host_cpu in
10641   powerpc)
10642     # Since July 2007 AmigaOS4 officially supports .so libraries.
10643     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645     ;;
10646   m68k)
10647     library_names_spec='$libname.ixlibrary $libname.a'
10648     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10649     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'
10650     ;;
10651   esac
10652   ;;
10653
10654 beos*)
10655   library_names_spec='${libname}${shared_ext}'
10656   dynamic_linker="$host_os ld.so"
10657   shlibpath_var=LIBRARY_PATH
10658   ;;
10659
10660 bsdi[45]*)
10661   version_type=linux # correct to gnu/linux during the next big refactor
10662   need_version=no
10663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664   soname_spec='${libname}${release}${shared_ext}$major'
10665   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10666   shlibpath_var=LD_LIBRARY_PATH
10667   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10668   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10669   # the default ld.so.conf also contains /usr/contrib/lib and
10670   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10671   # libtool to hard-code these into programs
10672   ;;
10673
10674 cygwin* | mingw* | pw32* | cegcc*)
10675   version_type=windows
10676   shrext_cmds=".dll"
10677   need_version=no
10678   need_lib_prefix=no
10679
10680   case $GCC,$cc_basename in
10681   yes,*)
10682     # gcc
10683     library_names_spec='$libname.dll.a'
10684     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10685     postinstall_cmds='base_file=`basename \${file}`~
10686       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10687       dldir=$destdir/`dirname \$dlpath`~
10688       test -d \$dldir || mkdir -p \$dldir~
10689       $install_prog $dir/$dlname \$dldir/$dlname~
10690       chmod a+x \$dldir/$dlname~
10691       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10692         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10693       fi'
10694     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10695       dlpath=$dir/\$dldll~
10696        $RM \$dlpath'
10697     shlibpath_overrides_runpath=yes
10698
10699     case $host_os in
10700     cygwin*)
10701       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10702       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10703
10704       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10705       ;;
10706     mingw* | cegcc*)
10707       # MinGW DLLs use traditional 'lib' prefix
10708       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10709       ;;
10710     pw32*)
10711       # pw32 DLLs use 'pw' prefix rather than 'lib'
10712       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10713       ;;
10714     esac
10715     dynamic_linker='Win32 ld.exe'
10716     ;;
10717
10718   *,cl*)
10719     # Native MSVC
10720     libname_spec='$name'
10721     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10722     library_names_spec='${libname}.dll.lib'
10723
10724     case $build_os in
10725     mingw*)
10726       sys_lib_search_path_spec=
10727       lt_save_ifs=$IFS
10728       IFS=';'
10729       for lt_path in $LIB
10730       do
10731         IFS=$lt_save_ifs
10732         # Let DOS variable expansion print the short 8.3 style file name.
10733         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10734         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10735       done
10736       IFS=$lt_save_ifs
10737       # Convert to MSYS style.
10738       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10739       ;;
10740     cygwin*)
10741       # Convert to unix form, then to dos form, then back to unix form
10742       # but this time dos style (no spaces!) so that the unix form looks
10743       # like /cygdrive/c/PROGRA~1:/cygdr...
10744       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10745       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10746       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10747       ;;
10748     *)
10749       sys_lib_search_path_spec="$LIB"
10750       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10751         # It is most probably a Windows format PATH.
10752         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10753       else
10754         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10755       fi
10756       # FIXME: find the short name or the path components, as spaces are
10757       # common. (e.g. "Program Files" -> "PROGRA~1")
10758       ;;
10759     esac
10760
10761     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10762     postinstall_cmds='base_file=`basename \${file}`~
10763       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10764       dldir=$destdir/`dirname \$dlpath`~
10765       test -d \$dldir || mkdir -p \$dldir~
10766       $install_prog $dir/$dlname \$dldir/$dlname'
10767     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10768       dlpath=$dir/\$dldll~
10769        $RM \$dlpath'
10770     shlibpath_overrides_runpath=yes
10771     dynamic_linker='Win32 link.exe'
10772     ;;
10773
10774   *)
10775     # Assume MSVC wrapper
10776     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10777     dynamic_linker='Win32 ld.exe'
10778     ;;
10779   esac
10780   # FIXME: first we should search . and the directory the executable is in
10781   shlibpath_var=PATH
10782   ;;
10783
10784 darwin* | rhapsody*)
10785   dynamic_linker="$host_os dyld"
10786   version_type=darwin
10787   need_lib_prefix=no
10788   need_version=no
10789   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10790   soname_spec='${libname}${release}${major}$shared_ext'
10791   shlibpath_overrides_runpath=yes
10792   shlibpath_var=DYLD_LIBRARY_PATH
10793   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10794
10795   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10796   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10797   ;;
10798
10799 dgux*)
10800   version_type=linux # correct to gnu/linux during the next big refactor
10801   need_lib_prefix=no
10802   need_version=no
10803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10804   soname_spec='${libname}${release}${shared_ext}$major'
10805   shlibpath_var=LD_LIBRARY_PATH
10806   ;;
10807
10808 freebsd* | dragonfly*)
10809   # DragonFly does not have aout.  When/if they implement a new
10810   # versioning mechanism, adjust this.
10811   if test -x /usr/bin/objformat; then
10812     objformat=`/usr/bin/objformat`
10813   else
10814     case $host_os in
10815     freebsd[23].*) objformat=aout ;;
10816     *) objformat=elf ;;
10817     esac
10818   fi
10819   version_type=freebsd-$objformat
10820   case $version_type in
10821     freebsd-elf*)
10822       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10823       need_version=no
10824       need_lib_prefix=no
10825       ;;
10826     freebsd-*)
10827       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10828       need_version=yes
10829       ;;
10830   esac
10831   shlibpath_var=LD_LIBRARY_PATH
10832   case $host_os in
10833   freebsd2.*)
10834     shlibpath_overrides_runpath=yes
10835     ;;
10836   freebsd3.[01]* | freebsdelf3.[01]*)
10837     shlibpath_overrides_runpath=yes
10838     hardcode_into_libs=yes
10839     ;;
10840   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10841   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10842     shlibpath_overrides_runpath=no
10843     hardcode_into_libs=yes
10844     ;;
10845   *) # from 4.6 on, and DragonFly
10846     shlibpath_overrides_runpath=yes
10847     hardcode_into_libs=yes
10848     ;;
10849   esac
10850   ;;
10851
10852 gnu*)
10853   version_type=linux # correct to gnu/linux during the next big refactor
10854   need_lib_prefix=no
10855   need_version=no
10856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10857   soname_spec='${libname}${release}${shared_ext}$major'
10858   shlibpath_var=LD_LIBRARY_PATH
10859   shlibpath_overrides_runpath=no
10860   hardcode_into_libs=yes
10861   ;;
10862
10863 haiku*)
10864   version_type=linux # correct to gnu/linux during the next big refactor
10865   need_lib_prefix=no
10866   need_version=no
10867   dynamic_linker="$host_os runtime_loader"
10868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10869   soname_spec='${libname}${release}${shared_ext}$major'
10870   shlibpath_var=LIBRARY_PATH
10871   shlibpath_overrides_runpath=yes
10872   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10873   hardcode_into_libs=yes
10874   ;;
10875
10876 hpux9* | hpux10* | hpux11*)
10877   # Give a soname corresponding to the major version so that dld.sl refuses to
10878   # link against other versions.
10879   version_type=sunos
10880   need_lib_prefix=no
10881   need_version=no
10882   case $host_cpu in
10883   ia64*)
10884     shrext_cmds='.so'
10885     hardcode_into_libs=yes
10886     dynamic_linker="$host_os dld.so"
10887     shlibpath_var=LD_LIBRARY_PATH
10888     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890     soname_spec='${libname}${release}${shared_ext}$major'
10891     if test "X$HPUX_IA64_MODE" = X32; then
10892       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10893     else
10894       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10895     fi
10896     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10897     ;;
10898   hppa*64*)
10899     shrext_cmds='.sl'
10900     hardcode_into_libs=yes
10901     dynamic_linker="$host_os dld.sl"
10902     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10903     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905     soname_spec='${libname}${release}${shared_ext}$major'
10906     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10907     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10908     ;;
10909   *)
10910     shrext_cmds='.sl'
10911     dynamic_linker="$host_os dld.sl"
10912     shlibpath_var=SHLIB_PATH
10913     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10914     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10915     soname_spec='${libname}${release}${shared_ext}$major'
10916     ;;
10917   esac
10918   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10919   postinstall_cmds='chmod 555 $lib'
10920   # or fails outright, so override atomically:
10921   install_override_mode=555
10922   ;;
10923
10924 interix[3-9]*)
10925   version_type=linux # correct to gnu/linux during the next big refactor
10926   need_lib_prefix=no
10927   need_version=no
10928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10929   soname_spec='${libname}${release}${shared_ext}$major'
10930   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10931   shlibpath_var=LD_LIBRARY_PATH
10932   shlibpath_overrides_runpath=no
10933   hardcode_into_libs=yes
10934   ;;
10935
10936 irix5* | irix6* | nonstopux*)
10937   case $host_os in
10938     nonstopux*) version_type=nonstopux ;;
10939     *)
10940         if test "$lt_cv_prog_gnu_ld" = yes; then
10941                 version_type=linux # correct to gnu/linux during the next big refactor
10942         else
10943                 version_type=irix
10944         fi ;;
10945   esac
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}${release}${shared_ext} $libname${shared_ext}'
10950   case $host_os in
10951   irix5* | nonstopux*)
10952     libsuff= shlibsuff=
10953     ;;
10954   *)
10955     case $LD in # libtool.m4 will add one of these switches to LD
10956     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10957       libsuff= shlibsuff= libmagic=32-bit;;
10958     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10959       libsuff=32 shlibsuff=N32 libmagic=N32;;
10960     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10961       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10962     *) libsuff= shlibsuff= libmagic=never-match;;
10963     esac
10964     ;;
10965   esac
10966   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10967   shlibpath_overrides_runpath=no
10968   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10969   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10970   hardcode_into_libs=yes
10971   ;;
10972
10973 # No shared lib support for Linux oldld, aout, or coff.
10974 linux*oldld* | linux*aout* | linux*coff*)
10975   dynamic_linker=no
10976   ;;
10977
10978 # This must be glibc/ELF.
10979 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10980   version_type=linux # correct to gnu/linux during the next big refactor
10981   need_lib_prefix=no
10982   need_version=no
10983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984   soname_spec='${libname}${release}${shared_ext}$major'
10985   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10986   shlibpath_var=LD_LIBRARY_PATH
10987   shlibpath_overrides_runpath=no
10988
10989   # Some binutils ld are patched to set DT_RUNPATH
10990   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10991   $as_echo_n "(cached) " >&6
10992 else
10993   lt_cv_shlibpath_overrides_runpath=no
10994     save_LDFLAGS=$LDFLAGS
10995     save_libdir=$libdir
10996     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10997          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10998     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h.  */
11000
11001 int
11002 main ()
11003 {
11004
11005   ;
11006   return 0;
11007 }
11008 _ACEOF
11009 if ac_fn_c_try_link "$LINENO"; then :
11010   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11011   lt_cv_shlibpath_overrides_runpath=yes
11012 fi
11013 fi
11014 rm -f core conftest.err conftest.$ac_objext \
11015     conftest$ac_exeext conftest.$ac_ext
11016     LDFLAGS=$save_LDFLAGS
11017     libdir=$save_libdir
11018
11019 fi
11020
11021   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11022
11023   # This implies no fast_install, which is unacceptable.
11024   # Some rework will be needed to allow for fast_install
11025   # before this can be enabled.
11026   hardcode_into_libs=yes
11027
11028   # Add ABI-specific directories to the system library path.
11029   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11030
11031   # Append ld.so.conf contents to the search path
11032   if test -f /etc/ld.so.conf; then
11033     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' ' '`
11034     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11035
11036   fi
11037
11038   # We used to test for /lib/ld.so.1 and disable shared libraries on
11039   # powerpc, because MkLinux only supported shared libraries with the
11040   # GNU dynamic linker.  Since this was broken with cross compilers,
11041   # most powerpc-linux boxes support dynamic linking these days and
11042   # people can always --disable-shared, the test was removed, and we
11043   # assume the GNU/Linux dynamic linker is in use.
11044   dynamic_linker='GNU/Linux ld.so'
11045   ;;
11046
11047 netbsd*)
11048   version_type=sunos
11049   need_lib_prefix=no
11050   need_version=no
11051   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11053     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11054     dynamic_linker='NetBSD (a.out) ld.so'
11055   else
11056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11057     soname_spec='${libname}${release}${shared_ext}$major'
11058     dynamic_linker='NetBSD ld.elf_so'
11059   fi
11060   shlibpath_var=LD_LIBRARY_PATH
11061   shlibpath_overrides_runpath=yes
11062   hardcode_into_libs=yes
11063   ;;
11064
11065 newsos6)
11066   version_type=linux # correct to gnu/linux during the next big refactor
11067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068   shlibpath_var=LD_LIBRARY_PATH
11069   shlibpath_overrides_runpath=yes
11070   ;;
11071
11072 *nto* | *qnx*)
11073   version_type=qnx
11074   need_lib_prefix=no
11075   need_version=no
11076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077   soname_spec='${libname}${release}${shared_ext}$major'
11078   shlibpath_var=LD_LIBRARY_PATH
11079   shlibpath_overrides_runpath=no
11080   hardcode_into_libs=yes
11081   dynamic_linker='ldqnx.so'
11082   ;;
11083
11084 openbsd*)
11085   version_type=sunos
11086   sys_lib_dlsearch_path_spec="/usr/lib"
11087   need_lib_prefix=no
11088   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11089   case $host_os in
11090     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11091     *)                          need_version=no  ;;
11092   esac
11093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11094   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11095   shlibpath_var=LD_LIBRARY_PATH
11096   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11097     case $host_os in
11098       openbsd2.[89] | openbsd2.[89].*)
11099         shlibpath_overrides_runpath=no
11100         ;;
11101       *)
11102         shlibpath_overrides_runpath=yes
11103         ;;
11104       esac
11105   else
11106     shlibpath_overrides_runpath=yes
11107   fi
11108   ;;
11109
11110 os2*)
11111   libname_spec='$name'
11112   shrext_cmds=".dll"
11113   need_lib_prefix=no
11114   library_names_spec='$libname${shared_ext} $libname.a'
11115   dynamic_linker='OS/2 ld.exe'
11116   shlibpath_var=LIBPATH
11117   ;;
11118
11119 osf3* | osf4* | osf5*)
11120   version_type=osf
11121   need_lib_prefix=no
11122   need_version=no
11123   soname_spec='${libname}${release}${shared_ext}$major'
11124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125   shlibpath_var=LD_LIBRARY_PATH
11126   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11127   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11128   ;;
11129
11130 rdos*)
11131   dynamic_linker=no
11132   ;;
11133
11134 solaris*)
11135   version_type=linux # correct to gnu/linux during the next big refactor
11136   need_lib_prefix=no
11137   need_version=no
11138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139   soname_spec='${libname}${release}${shared_ext}$major'
11140   shlibpath_var=LD_LIBRARY_PATH
11141   shlibpath_overrides_runpath=yes
11142   hardcode_into_libs=yes
11143   # ldd complains unless libraries are executable
11144   postinstall_cmds='chmod +x $lib'
11145   ;;
11146
11147 sunos4*)
11148   version_type=sunos
11149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11150   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11151   shlibpath_var=LD_LIBRARY_PATH
11152   shlibpath_overrides_runpath=yes
11153   if test "$with_gnu_ld" = yes; then
11154     need_lib_prefix=no
11155   fi
11156   need_version=yes
11157   ;;
11158
11159 sysv4 | sysv4.3*)
11160   version_type=linux # correct to gnu/linux during the next big refactor
11161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162   soname_spec='${libname}${release}${shared_ext}$major'
11163   shlibpath_var=LD_LIBRARY_PATH
11164   case $host_vendor in
11165     sni)
11166       shlibpath_overrides_runpath=no
11167       need_lib_prefix=no
11168       runpath_var=LD_RUN_PATH
11169       ;;
11170     siemens)
11171       need_lib_prefix=no
11172       ;;
11173     motorola)
11174       need_lib_prefix=no
11175       need_version=no
11176       shlibpath_overrides_runpath=no
11177       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11178       ;;
11179   esac
11180   ;;
11181
11182 sysv4*MP*)
11183   if test -d /usr/nec ;then
11184     version_type=linux # correct to gnu/linux during the next big refactor
11185     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11186     soname_spec='$libname${shared_ext}.$major'
11187     shlibpath_var=LD_LIBRARY_PATH
11188   fi
11189   ;;
11190
11191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11192   version_type=freebsd-elf
11193   need_lib_prefix=no
11194   need_version=no
11195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11196   soname_spec='${libname}${release}${shared_ext}$major'
11197   shlibpath_var=LD_LIBRARY_PATH
11198   shlibpath_overrides_runpath=yes
11199   hardcode_into_libs=yes
11200   if test "$with_gnu_ld" = yes; then
11201     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11202   else
11203     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11204     case $host_os in
11205       sco3.2v5*)
11206         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11207         ;;
11208     esac
11209   fi
11210   sys_lib_dlsearch_path_spec='/usr/lib'
11211   ;;
11212
11213 tpf*)
11214   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11215   version_type=linux # correct to gnu/linux during the next big refactor
11216   need_lib_prefix=no
11217   need_version=no
11218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219   shlibpath_var=LD_LIBRARY_PATH
11220   shlibpath_overrides_runpath=no
11221   hardcode_into_libs=yes
11222   ;;
11223
11224 uts4*)
11225   version_type=linux # correct to gnu/linux during the next big refactor
11226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11227   soname_spec='${libname}${release}${shared_ext}$major'
11228   shlibpath_var=LD_LIBRARY_PATH
11229   ;;
11230
11231 *)
11232   dynamic_linker=no
11233   ;;
11234 esac
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11236 $as_echo "$dynamic_linker" >&6; }
11237 test "$dynamic_linker" = no && can_build_shared=no
11238
11239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11240 if test "$GCC" = yes; then
11241   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11242 fi
11243
11244 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11245   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11246 fi
11247 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11248   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11249 fi
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11343 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11344 hardcode_action=
11345 if test -n "$hardcode_libdir_flag_spec" ||
11346    test -n "$runpath_var" ||
11347    test "X$hardcode_automatic" = "Xyes" ; then
11348
11349   # We can hardcode non-existent directories.
11350   if test "$hardcode_direct" != no &&
11351      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11352      # have to relink, otherwise we might link with an installed library
11353      # when we should be linking with a yet-to-be-installed one
11354      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11355      test "$hardcode_minus_L" != no; then
11356     # Linking always hardcodes the temporary library directory.
11357     hardcode_action=relink
11358   else
11359     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11360     hardcode_action=immediate
11361   fi
11362 else
11363   # We cannot hardcode anything, or else we can only hardcode existing
11364   # directories.
11365   hardcode_action=unsupported
11366 fi
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11368 $as_echo "$hardcode_action" >&6; }
11369
11370 if test "$hardcode_action" = relink ||
11371    test "$inherit_rpath" = yes; then
11372   # Fast installation is not supported
11373   enable_fast_install=no
11374 elif test "$shlibpath_overrides_runpath" = yes ||
11375      test "$enable_shared" = no; then
11376   # Fast installation is not necessary
11377   enable_fast_install=needless
11378 fi
11379
11380
11381
11382
11383
11384
11385   if test "x$enable_dlopen" != xyes; then
11386   enable_dlopen=unknown
11387   enable_dlopen_self=unknown
11388   enable_dlopen_self_static=unknown
11389 else
11390   lt_cv_dlopen=no
11391   lt_cv_dlopen_libs=
11392
11393   case $host_os in
11394   beos*)
11395     lt_cv_dlopen="load_add_on"
11396     lt_cv_dlopen_libs=
11397     lt_cv_dlopen_self=yes
11398     ;;
11399
11400   mingw* | pw32* | cegcc*)
11401     lt_cv_dlopen="LoadLibrary"
11402     lt_cv_dlopen_libs=
11403     ;;
11404
11405   cygwin*)
11406     lt_cv_dlopen="dlopen"
11407     lt_cv_dlopen_libs=
11408     ;;
11409
11410   darwin*)
11411   # if libdl is installed we need to link against it
11412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11413 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11414 if ${ac_cv_lib_dl_dlopen+:} false; then :
11415   $as_echo_n "(cached) " >&6
11416 else
11417   ac_check_lib_save_LIBS=$LIBS
11418 LIBS="-ldl  $LIBS"
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h.  */
11421
11422 /* Override any GCC internal prototype to avoid an error.
11423    Use char because int might match the return type of a GCC
11424    builtin and then its argument prototype would still apply.  */
11425 #ifdef __cplusplus
11426 extern "C"
11427 #endif
11428 char dlopen ();
11429 int
11430 main ()
11431 {
11432 return dlopen ();
11433   ;
11434   return 0;
11435 }
11436 _ACEOF
11437 if ac_fn_c_try_link "$LINENO"; then :
11438   ac_cv_lib_dl_dlopen=yes
11439 else
11440   ac_cv_lib_dl_dlopen=no
11441 fi
11442 rm -f core conftest.err conftest.$ac_objext \
11443     conftest$ac_exeext conftest.$ac_ext
11444 LIBS=$ac_check_lib_save_LIBS
11445 fi
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11447 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11448 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11449   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11450 else
11451
11452     lt_cv_dlopen="dyld"
11453     lt_cv_dlopen_libs=
11454     lt_cv_dlopen_self=yes
11455
11456 fi
11457
11458     ;;
11459
11460   *)
11461     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11462 if test "x$ac_cv_func_shl_load" = xyes; then :
11463   lt_cv_dlopen="shl_load"
11464 else
11465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11466 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11467 if ${ac_cv_lib_dld_shl_load+:} false; then :
11468   $as_echo_n "(cached) " >&6
11469 else
11470   ac_check_lib_save_LIBS=$LIBS
11471 LIBS="-ldld  $LIBS"
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h.  */
11474
11475 /* Override any GCC internal prototype to avoid an error.
11476    Use char because int might match the return type of a GCC
11477    builtin and then its argument prototype would still apply.  */
11478 #ifdef __cplusplus
11479 extern "C"
11480 #endif
11481 char shl_load ();
11482 int
11483 main ()
11484 {
11485 return shl_load ();
11486   ;
11487   return 0;
11488 }
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491   ac_cv_lib_dld_shl_load=yes
11492 else
11493   ac_cv_lib_dld_shl_load=no
11494 fi
11495 rm -f core conftest.err conftest.$ac_objext \
11496     conftest$ac_exeext conftest.$ac_ext
11497 LIBS=$ac_check_lib_save_LIBS
11498 fi
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11500 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11501 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11502   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11503 else
11504   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11505 if test "x$ac_cv_func_dlopen" = xyes; then :
11506   lt_cv_dlopen="dlopen"
11507 else
11508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11509 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11510 if ${ac_cv_lib_dl_dlopen+:} false; then :
11511   $as_echo_n "(cached) " >&6
11512 else
11513   ac_check_lib_save_LIBS=$LIBS
11514 LIBS="-ldl  $LIBS"
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h.  */
11517
11518 /* Override any GCC internal prototype to avoid an error.
11519    Use char because int might match the return type of a GCC
11520    builtin and then its argument prototype would still apply.  */
11521 #ifdef __cplusplus
11522 extern "C"
11523 #endif
11524 char dlopen ();
11525 int
11526 main ()
11527 {
11528 return dlopen ();
11529   ;
11530   return 0;
11531 }
11532 _ACEOF
11533 if ac_fn_c_try_link "$LINENO"; then :
11534   ac_cv_lib_dl_dlopen=yes
11535 else
11536   ac_cv_lib_dl_dlopen=no
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext \
11539     conftest$ac_exeext conftest.$ac_ext
11540 LIBS=$ac_check_lib_save_LIBS
11541 fi
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11543 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11544 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11545   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11546 else
11547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11548 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11549 if ${ac_cv_lib_svld_dlopen+:} false; then :
11550   $as_echo_n "(cached) " >&6
11551 else
11552   ac_check_lib_save_LIBS=$LIBS
11553 LIBS="-lsvld  $LIBS"
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h.  */
11556
11557 /* Override any GCC internal prototype to avoid an error.
11558    Use char because int might match the return type of a GCC
11559    builtin and then its argument prototype would still apply.  */
11560 #ifdef __cplusplus
11561 extern "C"
11562 #endif
11563 char dlopen ();
11564 int
11565 main ()
11566 {
11567 return dlopen ();
11568   ;
11569   return 0;
11570 }
11571 _ACEOF
11572 if ac_fn_c_try_link "$LINENO"; then :
11573   ac_cv_lib_svld_dlopen=yes
11574 else
11575   ac_cv_lib_svld_dlopen=no
11576 fi
11577 rm -f core conftest.err conftest.$ac_objext \
11578     conftest$ac_exeext conftest.$ac_ext
11579 LIBS=$ac_check_lib_save_LIBS
11580 fi
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11582 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11583 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11584   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11585 else
11586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11587 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11588 if ${ac_cv_lib_dld_dld_link+:} false; then :
11589   $as_echo_n "(cached) " >&6
11590 else
11591   ac_check_lib_save_LIBS=$LIBS
11592 LIBS="-ldld  $LIBS"
11593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594 /* end confdefs.h.  */
11595
11596 /* Override any GCC internal prototype to avoid an error.
11597    Use char because int might match the return type of a GCC
11598    builtin and then its argument prototype would still apply.  */
11599 #ifdef __cplusplus
11600 extern "C"
11601 #endif
11602 char dld_link ();
11603 int
11604 main ()
11605 {
11606 return dld_link ();
11607   ;
11608   return 0;
11609 }
11610 _ACEOF
11611 if ac_fn_c_try_link "$LINENO"; then :
11612   ac_cv_lib_dld_dld_link=yes
11613 else
11614   ac_cv_lib_dld_dld_link=no
11615 fi
11616 rm -f core conftest.err conftest.$ac_objext \
11617     conftest$ac_exeext conftest.$ac_ext
11618 LIBS=$ac_check_lib_save_LIBS
11619 fi
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11621 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11622 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11623   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11624 fi
11625
11626
11627 fi
11628
11629
11630 fi
11631
11632
11633 fi
11634
11635
11636 fi
11637
11638
11639 fi
11640
11641     ;;
11642   esac
11643
11644   if test "x$lt_cv_dlopen" != xno; then
11645     enable_dlopen=yes
11646   else
11647     enable_dlopen=no
11648   fi
11649
11650   case $lt_cv_dlopen in
11651   dlopen)
11652     save_CPPFLAGS="$CPPFLAGS"
11653     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11654
11655     save_LDFLAGS="$LDFLAGS"
11656     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11657
11658     save_LIBS="$LIBS"
11659     LIBS="$lt_cv_dlopen_libs $LIBS"
11660
11661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11662 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11663 if ${lt_cv_dlopen_self+:} false; then :
11664   $as_echo_n "(cached) " >&6
11665 else
11666           if test "$cross_compiling" = yes; then :
11667   lt_cv_dlopen_self=cross
11668 else
11669   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11670   lt_status=$lt_dlunknown
11671   cat > conftest.$ac_ext <<_LT_EOF
11672 #line $LINENO "configure"
11673 #include "confdefs.h"
11674
11675 #if HAVE_DLFCN_H
11676 #include <dlfcn.h>
11677 #endif
11678
11679 #include <stdio.h>
11680
11681 #ifdef RTLD_GLOBAL
11682 #  define LT_DLGLOBAL           RTLD_GLOBAL
11683 #else
11684 #  ifdef DL_GLOBAL
11685 #    define LT_DLGLOBAL         DL_GLOBAL
11686 #  else
11687 #    define LT_DLGLOBAL         0
11688 #  endif
11689 #endif
11690
11691 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11692    find out it does not work in some platform. */
11693 #ifndef LT_DLLAZY_OR_NOW
11694 #  ifdef RTLD_LAZY
11695 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11696 #  else
11697 #    ifdef DL_LAZY
11698 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11699 #    else
11700 #      ifdef RTLD_NOW
11701 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11702 #      else
11703 #        ifdef DL_NOW
11704 #          define LT_DLLAZY_OR_NOW      DL_NOW
11705 #        else
11706 #          define LT_DLLAZY_OR_NOW      0
11707 #        endif
11708 #      endif
11709 #    endif
11710 #  endif
11711 #endif
11712
11713 /* When -fvisbility=hidden is used, assume the code has been annotated
11714    correspondingly for the symbols needed.  */
11715 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11716 int fnord () __attribute__((visibility("default")));
11717 #endif
11718
11719 int fnord () { return 42; }
11720 int main ()
11721 {
11722   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11723   int status = $lt_dlunknown;
11724
11725   if (self)
11726     {
11727       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11728       else
11729         {
11730           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11731           else puts (dlerror ());
11732         }
11733       /* dlclose (self); */
11734     }
11735   else
11736     puts (dlerror ());
11737
11738   return status;
11739 }
11740 _LT_EOF
11741   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11742   (eval $ac_link) 2>&5
11743   ac_status=$?
11744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11745   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11746     (./conftest; exit; ) >&5 2>/dev/null
11747     lt_status=$?
11748     case x$lt_status in
11749       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11750       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11751       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11752     esac
11753   else :
11754     # compilation failed
11755     lt_cv_dlopen_self=no
11756   fi
11757 fi
11758 rm -fr conftest*
11759
11760
11761 fi
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11763 $as_echo "$lt_cv_dlopen_self" >&6; }
11764
11765     if test "x$lt_cv_dlopen_self" = xyes; then
11766       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11767       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11768 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11769 if ${lt_cv_dlopen_self_static+:} false; then :
11770   $as_echo_n "(cached) " >&6
11771 else
11772           if test "$cross_compiling" = yes; then :
11773   lt_cv_dlopen_self_static=cross
11774 else
11775   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11776   lt_status=$lt_dlunknown
11777   cat > conftest.$ac_ext <<_LT_EOF
11778 #line $LINENO "configure"
11779 #include "confdefs.h"
11780
11781 #if HAVE_DLFCN_H
11782 #include <dlfcn.h>
11783 #endif
11784
11785 #include <stdio.h>
11786
11787 #ifdef RTLD_GLOBAL
11788 #  define LT_DLGLOBAL           RTLD_GLOBAL
11789 #else
11790 #  ifdef DL_GLOBAL
11791 #    define LT_DLGLOBAL         DL_GLOBAL
11792 #  else
11793 #    define LT_DLGLOBAL         0
11794 #  endif
11795 #endif
11796
11797 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11798    find out it does not work in some platform. */
11799 #ifndef LT_DLLAZY_OR_NOW
11800 #  ifdef RTLD_LAZY
11801 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11802 #  else
11803 #    ifdef DL_LAZY
11804 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11805 #    else
11806 #      ifdef RTLD_NOW
11807 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11808 #      else
11809 #        ifdef DL_NOW
11810 #          define LT_DLLAZY_OR_NOW      DL_NOW
11811 #        else
11812 #          define LT_DLLAZY_OR_NOW      0
11813 #        endif
11814 #      endif
11815 #    endif
11816 #  endif
11817 #endif
11818
11819 /* When -fvisbility=hidden is used, assume the code has been annotated
11820    correspondingly for the symbols needed.  */
11821 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11822 int fnord () __attribute__((visibility("default")));
11823 #endif
11824
11825 int fnord () { return 42; }
11826 int main ()
11827 {
11828   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11829   int status = $lt_dlunknown;
11830
11831   if (self)
11832     {
11833       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11834       else
11835         {
11836           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11837           else puts (dlerror ());
11838         }
11839       /* dlclose (self); */
11840     }
11841   else
11842     puts (dlerror ());
11843
11844   return status;
11845 }
11846 _LT_EOF
11847   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11848   (eval $ac_link) 2>&5
11849   ac_status=$?
11850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11851   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11852     (./conftest; exit; ) >&5 2>/dev/null
11853     lt_status=$?
11854     case x$lt_status in
11855       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11856       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11857       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11858     esac
11859   else :
11860     # compilation failed
11861     lt_cv_dlopen_self_static=no
11862   fi
11863 fi
11864 rm -fr conftest*
11865
11866
11867 fi
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11869 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11870     fi
11871
11872     CPPFLAGS="$save_CPPFLAGS"
11873     LDFLAGS="$save_LDFLAGS"
11874     LIBS="$save_LIBS"
11875     ;;
11876   esac
11877
11878   case $lt_cv_dlopen_self in
11879   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11880   *) enable_dlopen_self=unknown ;;
11881   esac
11882
11883   case $lt_cv_dlopen_self_static in
11884   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11885   *) enable_dlopen_self_static=unknown ;;
11886   esac
11887 fi
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905 striplib=
11906 old_striplib=
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11908 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11909 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11910   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11911   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11913 $as_echo "yes" >&6; }
11914 else
11915 # FIXME - insert some real tests, host_os isn't really good enough
11916   case $host_os in
11917   darwin*)
11918     if test -n "$STRIP" ; then
11919       striplib="$STRIP -x"
11920       old_striplib="$STRIP -S"
11921       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11922 $as_echo "yes" >&6; }
11923     else
11924       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11926     fi
11927     ;;
11928   *)
11929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11931     ;;
11932   esac
11933 fi
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946   # Report which library types will actually be built
11947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11948 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11950 $as_echo "$can_build_shared" >&6; }
11951
11952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11953 $as_echo_n "checking whether to build shared libraries... " >&6; }
11954   test "$can_build_shared" = "no" && enable_shared=no
11955
11956   # On AIX, shared libraries and static libraries use the same namespace, and
11957   # are all built from PIC.
11958   case $host_os in
11959   aix3*)
11960     test "$enable_shared" = yes && enable_static=no
11961     if test -n "$RANLIB"; then
11962       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11963       postinstall_cmds='$RANLIB $lib'
11964     fi
11965     ;;
11966
11967   aix[4-9]*)
11968     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11969       test "$enable_shared" = yes && enable_static=no
11970     fi
11971     ;;
11972   esac
11973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11974 $as_echo "$enable_shared" >&6; }
11975
11976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11977 $as_echo_n "checking whether to build static libraries... " >&6; }
11978   # Make sure either enable_shared or enable_static is yes.
11979   test "$enable_shared" = yes || enable_static=yes
11980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11981 $as_echo "$enable_static" >&6; }
11982
11983
11984
11985
11986 fi
11987 ac_ext=c
11988 ac_cpp='$CPP $CPPFLAGS'
11989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11992
11993 CC="$lt_save_CC"
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009         ac_config_commands="$ac_config_commands libtool"
12010
12011
12012
12013
12014 # Only expand once:
12015
12016
12017
12018
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
12020 $as_echo_n "checking for C compiler vendor... " >&6; }
12021 if ${ax_cv_c_compiler_vendor+:} false; then :
12022   $as_echo_n "(cached) " >&6
12023 else
12024   # note: don't check for gcc first since some other compilers define __GNUC__
12025   vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
12026            ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
12027            pathscale: __PATHCC__,__PATHSCALE__
12028            clang:     __clang__
12029            gnu:       __GNUC__
12030            sun:       __SUNPRO_C,__SUNPRO_CC
12031            hp:        __HP_cc,__HP_aCC
12032            dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
12033            borland:   __BORLANDC__,__TURBOC__
12034            comeau:    __COMO__
12035            cray:      _CRAYC
12036            kai:       __KCC
12037            lcc:       __LCC__
12038            sgi:       __sgi,sgi
12039            microsoft: _MSC_VER
12040            metrowerks: __MWERKS__
12041            watcom:    __WATCOMC__
12042            portland:  __PGI
12043            unknown:   UNKNOWN"
12044   for ventest in $vendors; do
12045     case $ventest in
12046       *:) vendor=$ventest; continue ;;
12047       *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12048     esac
12049     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h.  */
12051
12052 int
12053 main ()
12054 {
12055
12056       #if !($vencpp)
12057         thisisanerror;
12058       #endif
12059
12060   ;
12061   return 0;
12062 }
12063 _ACEOF
12064 if ac_fn_c_try_compile "$LINENO"; then :
12065   break
12066 fi
12067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068   done
12069   ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12070
12071 fi
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12073 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12074
12075
12076
12077
12078
12079
12080 # Check whether --enable-portable-binary was given.
12081 if test "${enable_portable_binary+set}" = set; then :
12082   enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12083 else
12084   acx_maxopt_portable=no
12085 fi
12086
12087
12088 # Try to determine "good" native compiler flags if none specified via CFLAGS
12089 if test "$ac_test_CFLAGS" != "set"; then
12090   CFLAGS=""
12091   case $ax_cv_c_compiler_vendor in
12092     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12093          if test "x$acx_maxopt_portable" = xno; then
12094            CFLAGS="$CFLAGS -arch host"
12095          fi;;
12096
12097     sun) CFLAGS="-native -fast -xO5 -dalign"
12098          if test "x$acx_maxopt_portable" = xyes; then
12099            CFLAGS="$CFLAGS -xarch=generic"
12100          fi;;
12101
12102     hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
12103          if test "x$acx_maxopt_portable" = xyes; then
12104            CFLAGS="$CFLAGS +DAportable"
12105          fi;;
12106
12107     ibm) if test "x$acx_maxopt_portable" = xno; then
12108            xlc_opt="-qarch=auto -qtune=auto"
12109          else
12110            xlc_opt="-qtune=auto"
12111          fi
12112          as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12114 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12115 if eval \${$as_CACHEVAR+:} false; then :
12116   $as_echo_n "(cached) " >&6
12117 else
12118
12119   ax_check_save_flags=$CFLAGS
12120   CFLAGS="$CFLAGS  $xlc_opt"
12121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h.  */
12123
12124 int
12125 main ()
12126 {
12127
12128   ;
12129   return 0;
12130 }
12131 _ACEOF
12132 if ac_fn_c_try_compile "$LINENO"; then :
12133   eval "$as_CACHEVAR=yes"
12134 else
12135   eval "$as_CACHEVAR=no"
12136 fi
12137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12138   CFLAGS=$ax_check_save_flags
12139 fi
12140 eval ac_res=\$$as_CACHEVAR
12141                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12142 $as_echo "$ac_res" >&6; }
12143 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12144   CFLAGS="-O3 -qansialias -w $xlc_opt"
12145 else
12146   CFLAGS="-O3 -qansialias -w"
12147                 echo "******************************************************"
12148                 echo "*  You seem to have the IBM  C compiler.  It is      *"
12149                 echo "*  recommended for best performance that you use:    *"
12150                 echo "*                                                    *"
12151                 echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12152                 echo "*                      ^^^        ^^^                *"
12153                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
12154                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
12155                 echo "*  and re-run configure.)  For more info, man cc.    *"
12156                 echo "******************************************************"
12157 fi
12158
12159          ;;
12160
12161     intel) CFLAGS="-O3 -ansi_alias"
12162         if test "x$acx_maxopt_portable" = xno; then
12163           icc_archflag=unknown
12164           icc_flags=""
12165           case $host_cpu in
12166             i686*|x86_64*)
12167               # icc accepts gcc assembly syntax, so these should work:
12168
12169 ac_ext=c
12170 ac_cpp='$CPP $CPPFLAGS'
12171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12174
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12176 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12177 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12178   $as_echo_n "(cached) " >&6
12179 else
12180   if test "$cross_compiling" = yes; then :
12181   ax_cv_gcc_x86_cpuid_0=unknown
12182 else
12183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184 /* end confdefs.h.  */
12185 #include <stdio.h>
12186 int
12187 main ()
12188 {
12189
12190      int op = 0, eax, ebx, ecx, edx;
12191      FILE *f;
12192       __asm__("cpuid"
12193         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12194         : "a" (op));
12195      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12196      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12197      fclose(f);
12198      return 0;
12199
12200   ;
12201   return 0;
12202 }
12203 _ACEOF
12204 if ac_fn_c_try_run "$LINENO"; then :
12205   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12206 else
12207   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12208 fi
12209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12210   conftest.$ac_objext conftest.beam conftest.$ac_ext
12211 fi
12212
12213 fi
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12215 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12216 ac_ext=c
12217 ac_cpp='$CPP $CPPFLAGS'
12218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12221
12222
12223
12224 ac_ext=c
12225 ac_cpp='$CPP $CPPFLAGS'
12226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12229
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12231 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12232 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12233   $as_echo_n "(cached) " >&6
12234 else
12235   if test "$cross_compiling" = yes; then :
12236   ax_cv_gcc_x86_cpuid_1=unknown
12237 else
12238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h.  */
12240 #include <stdio.h>
12241 int
12242 main ()
12243 {
12244
12245      int op = 1, eax, ebx, ecx, edx;
12246      FILE *f;
12247       __asm__("cpuid"
12248         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12249         : "a" (op));
12250      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12251      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12252      fclose(f);
12253      return 0;
12254
12255   ;
12256   return 0;
12257 }
12258 _ACEOF
12259 if ac_fn_c_try_run "$LINENO"; then :
12260   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12261 else
12262   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12263 fi
12264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12265   conftest.$ac_objext conftest.beam conftest.$ac_ext
12266 fi
12267
12268 fi
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12270 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12271 ac_ext=c
12272 ac_cpp='$CPP $CPPFLAGS'
12273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12276
12277
12278               case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12279                 *:756e6547:*:*) # Intel
12280                   case $ax_cv_gcc_x86_cpuid_1 in
12281                     *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12282                     *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12283                     *f??:*:*:*) icc_flags="-xN -xW -xK";;
12284                   esac ;;
12285               esac ;;
12286           esac
12287           if test "x$icc_flags" != x; then
12288             for flag in $icc_flags; do
12289               as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12291 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12292 if eval \${$as_CACHEVAR+:} false; then :
12293   $as_echo_n "(cached) " >&6
12294 else
12295
12296   ax_check_save_flags=$CFLAGS
12297   CFLAGS="$CFLAGS  $flag"
12298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h.  */
12300
12301 int
12302 main ()
12303 {
12304
12305   ;
12306   return 0;
12307 }
12308 _ACEOF
12309 if ac_fn_c_try_compile "$LINENO"; then :
12310   eval "$as_CACHEVAR=yes"
12311 else
12312   eval "$as_CACHEVAR=no"
12313 fi
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12315   CFLAGS=$ax_check_save_flags
12316 fi
12317 eval ac_res=\$$as_CACHEVAR
12318                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12319 $as_echo "$ac_res" >&6; }
12320 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12321   icc_archflag=$flag; break
12322 else
12323   :
12324 fi
12325
12326             done
12327           fi
12328           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12329 $as_echo_n "checking for icc architecture flag... " >&6; }
12330           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12331 $as_echo "$icc_archflag" >&6; }
12332           if test "x$icc_archflag" != xunknown; then
12333             CFLAGS="$CFLAGS $icc_archflag"
12334           fi
12335         fi
12336         ;;
12337
12338     gnu)
12339      # default optimization flags for gcc on all systems
12340      CFLAGS="-O3 -fomit-frame-pointer"
12341
12342      # -malign-double for x86 systems
12343      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
12344 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
12345 if ${ax_cv_check_cflags___malign_double+:} false; then :
12346   $as_echo_n "(cached) " >&6
12347 else
12348
12349   ax_check_save_flags=$CFLAGS
12350   CFLAGS="$CFLAGS  -malign-double"
12351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h.  */
12353
12354 int
12355 main ()
12356 {
12357
12358   ;
12359   return 0;
12360 }
12361 _ACEOF
12362 if ac_fn_c_try_compile "$LINENO"; then :
12363   ax_cv_check_cflags___malign_double=yes
12364 else
12365   ax_cv_check_cflags___malign_double=no
12366 fi
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368   CFLAGS=$ax_check_save_flags
12369 fi
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___malign_double" >&5
12371 $as_echo "$ax_cv_check_cflags___malign_double" >&6; }
12372 if test x"$ax_cv_check_cflags___malign_double" = xyes; then :
12373   CFLAGS="$CFLAGS -malign-double"
12374 else
12375   :
12376 fi
12377
12378
12379      #  -fstrict-aliasing for gcc-2.95+
12380      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12381 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12382 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12383   $as_echo_n "(cached) " >&6
12384 else
12385
12386   ax_check_save_flags=$CFLAGS
12387   CFLAGS="$CFLAGS  -fstrict-aliasing"
12388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h.  */
12390
12391 int
12392 main ()
12393 {
12394
12395   ;
12396   return 0;
12397 }
12398 _ACEOF
12399 if ac_fn_c_try_compile "$LINENO"; then :
12400   ax_cv_check_cflags___fstrict_aliasing=yes
12401 else
12402   ax_cv_check_cflags___fstrict_aliasing=no
12403 fi
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405   CFLAGS=$ax_check_save_flags
12406 fi
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12408 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12409 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12410   CFLAGS="$CFLAGS -fstrict-aliasing"
12411 else
12412   :
12413 fi
12414
12415
12416      # note that we enable "unsafe" fp optimization with other compilers, too
12417      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12418 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12419 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12420   $as_echo_n "(cached) " >&6
12421 else
12422
12423   ax_check_save_flags=$CFLAGS
12424   CFLAGS="$CFLAGS  -ffast-math"
12425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h.  */
12427
12428 int
12429 main ()
12430 {
12431
12432   ;
12433   return 0;
12434 }
12435 _ACEOF
12436 if ac_fn_c_try_compile "$LINENO"; then :
12437   ax_cv_check_cflags___ffast_math=yes
12438 else
12439   ax_cv_check_cflags___ffast_math=no
12440 fi
12441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12442   CFLAGS=$ax_check_save_flags
12443 fi
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12445 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12446 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12447   CFLAGS="$CFLAGS -ffast-math"
12448 else
12449   :
12450 fi
12451
12452
12453
12454
12455
12456
12457 # Check whether --with-gcc-arch was given.
12458 if test "${with_gcc_arch+set}" = set; then :
12459   withval=$with_gcc_arch; ax_gcc_arch=$withval
12460 else
12461   ax_gcc_arch=yes
12462 fi
12463
12464
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12466 $as_echo_n "checking for gcc architecture flag... " >&6; }
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12468 $as_echo "" >&6; }
12469 if ${ax_cv_gcc_archflag+:} false; then :
12470   $as_echo_n "(cached) " >&6
12471 else
12472
12473 ax_cv_gcc_archflag="unknown"
12474
12475 if test "$GCC" = yes; then
12476
12477 if test "x$ax_gcc_arch" = xyes; then
12478 ax_gcc_arch=""
12479 if test "$cross_compiling" = no; then
12480 case $host_cpu in
12481   i[3456]86*|x86_64*) # use cpuid codes
12482
12483 ac_ext=c
12484 ac_cpp='$CPP $CPPFLAGS'
12485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12488
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12490 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12491 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12492   $as_echo_n "(cached) " >&6
12493 else
12494   if test "$cross_compiling" = yes; then :
12495   ax_cv_gcc_x86_cpuid_0=unknown
12496 else
12497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h.  */
12499 #include <stdio.h>
12500 int
12501 main ()
12502 {
12503
12504      int op = 0, eax, ebx, ecx, edx;
12505      FILE *f;
12506       __asm__("cpuid"
12507         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12508         : "a" (op));
12509      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12510      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12511      fclose(f);
12512      return 0;
12513
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 if ac_fn_c_try_run "$LINENO"; then :
12519   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12520 else
12521   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12522 fi
12523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12524   conftest.$ac_objext conftest.beam conftest.$ac_ext
12525 fi
12526
12527 fi
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12529 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12530 ac_ext=c
12531 ac_cpp='$CPP $CPPFLAGS'
12532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12535
12536
12537
12538 ac_ext=c
12539 ac_cpp='$CPP $CPPFLAGS'
12540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12543
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12545 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12546 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12547   $as_echo_n "(cached) " >&6
12548 else
12549   if test "$cross_compiling" = yes; then :
12550   ax_cv_gcc_x86_cpuid_1=unknown
12551 else
12552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h.  */
12554 #include <stdio.h>
12555 int
12556 main ()
12557 {
12558
12559      int op = 1, eax, ebx, ecx, edx;
12560      FILE *f;
12561       __asm__("cpuid"
12562         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12563         : "a" (op));
12564      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12565      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12566      fclose(f);
12567      return 0;
12568
12569   ;
12570   return 0;
12571 }
12572 _ACEOF
12573 if ac_fn_c_try_run "$LINENO"; then :
12574   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12575 else
12576   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12577 fi
12578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12579   conftest.$ac_objext conftest.beam conftest.$ac_ext
12580 fi
12581
12582 fi
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12584 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12585 ac_ext=c
12586 ac_cpp='$CPP $CPPFLAGS'
12587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12590
12591
12592      case $ax_cv_gcc_x86_cpuid_0 in
12593        *:756e6547:*:*) # Intel
12594           case $ax_cv_gcc_x86_cpuid_1 in
12595             *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12596             *5??:*:*:*) ax_gcc_arch=pentium ;;
12597             *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12598             *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12599             *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12600             *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12601             *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12602             *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12603             *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12604             *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12605             *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12606             *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12607             *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12608             *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12609             ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12610                 case $host_cpu in
12611                   x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12612                   *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12613                 esac ;;
12614             ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12615           esac ;;
12616        *:68747541:*:*) # AMD
12617           case $ax_cv_gcc_x86_cpuid_1 in
12618             *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12619             *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12620             *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12621             *60?:*:*:*) ax_gcc_arch=k7 ;;
12622             *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12623             *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12624             *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12625             *6[68a]?:*:*:*)
12626
12627 ac_ext=c
12628 ac_cpp='$CPP $CPPFLAGS'
12629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12632
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12634 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12635 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12636   $as_echo_n "(cached) " >&6
12637 else
12638   if test "$cross_compiling" = yes; then :
12639   ax_cv_gcc_x86_cpuid_0x80000006=unknown
12640 else
12641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h.  */
12643 #include <stdio.h>
12644 int
12645 main ()
12646 {
12647
12648      int op = 0x80000006, eax, ebx, ecx, edx;
12649      FILE *f;
12650       __asm__("cpuid"
12651         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12652         : "a" (op));
12653      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12654      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12655      fclose(f);
12656      return 0;
12657
12658   ;
12659   return 0;
12660 }
12661 _ACEOF
12662 if ac_fn_c_try_run "$LINENO"; then :
12663   ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12664 else
12665   ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12666 fi
12667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12668   conftest.$ac_objext conftest.beam conftest.$ac_ext
12669 fi
12670
12671 fi
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12673 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12674 ac_ext=c
12675 ac_cpp='$CPP $CPPFLAGS'
12676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12679
12680  # L2 cache size
12681                case $ax_cv_gcc_x86_cpuid_0x80000006 in
12682                  *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12683                         ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12684                  *) ax_gcc_arch="athlon-4 athlon k7" ;;
12685                esac ;;
12686             ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12687             ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12688             ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12689             ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12690             ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12691             ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12692             *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12693           esac ;;
12694         *:746e6543:*:*) # IDT
12695            case $ax_cv_gcc_x86_cpuid_1 in
12696              *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12697              *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12698              *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12699              *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12700            esac ;;
12701      esac
12702      if test x"$ax_gcc_arch" = x; then # fallback
12703         case $host_cpu in
12704           i586*) ax_gcc_arch=pentium ;;
12705           i686*) ax_gcc_arch=pentiumpro ;;
12706         esac
12707      fi
12708      ;;
12709
12710   sparc*)
12711      # Extract the first word of "prtdiag", so it can be a program name with args.
12712 set dummy prtdiag; ac_word=$2
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12714 $as_echo_n "checking for $ac_word... " >&6; }
12715 if ${ac_cv_path_PRTDIAG+:} false; then :
12716   $as_echo_n "(cached) " >&6
12717 else
12718   case $PRTDIAG in
12719   [\\/]* | ?:[\\/]*)
12720   ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12721   ;;
12722   *)
12723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12725 for as_dir in $as_dummy
12726 do
12727   IFS=$as_save_IFS
12728   test -z "$as_dir" && as_dir=.
12729     for ac_exec_ext in '' $ac_executable_extensions; do
12730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12731     ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12733     break 2
12734   fi
12735 done
12736   done
12737 IFS=$as_save_IFS
12738
12739   test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12740   ;;
12741 esac
12742 fi
12743 PRTDIAG=$ac_cv_path_PRTDIAG
12744 if test -n "$PRTDIAG"; then
12745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12746 $as_echo "$PRTDIAG" >&6; }
12747 else
12748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12750 fi
12751
12752
12753      cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
12754      cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12755      case $cputype in
12756          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12757          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12758          *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12759          *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12760          *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12761          *cypress*) ax_gcc_arch=cypress ;;
12762      esac ;;
12763
12764   alphaev5) ax_gcc_arch=ev5 ;;
12765   alphaev56) ax_gcc_arch=ev56 ;;
12766   alphapca56) ax_gcc_arch="pca56 ev56" ;;
12767   alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12768   alphaev6) ax_gcc_arch=ev6 ;;
12769   alphaev67) ax_gcc_arch=ev67 ;;
12770   alphaev68) ax_gcc_arch="ev68 ev67" ;;
12771   alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12772   alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12773   alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12774
12775   powerpc*)
12776      cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
12777      cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12778      case $cputype in
12779        *750*) ax_gcc_arch="750 G3" ;;
12780        *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12781        *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12782        *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12783        *970*) ax_gcc_arch="970 G5 power4";;
12784        *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12785        *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12786        603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12787        *) ax_gcc_arch=$cputype ;;
12788      esac
12789      ax_gcc_arch="$ax_gcc_arch powerpc"
12790      ;;
12791 esac
12792 fi # not cross-compiling
12793 fi # guess arch
12794
12795 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12796 for arch in $ax_gcc_arch; do
12797   if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12798     flags="-mtune=$arch"
12799     # -mcpu=$arch and m$arch generate nonportable code on every arch except
12800     # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
12801     case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12802   else
12803     flags="-march=$arch -mcpu=$arch -m$arch"
12804   fi
12805   for flag in $flags; do
12806     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12808 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12809 if eval \${$as_CACHEVAR+:} false; then :
12810   $as_echo_n "(cached) " >&6
12811 else
12812
12813   ax_check_save_flags=$CFLAGS
12814   CFLAGS="$CFLAGS  $flag"
12815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h.  */
12817
12818 int
12819 main ()
12820 {
12821
12822   ;
12823   return 0;
12824 }
12825 _ACEOF
12826 if ac_fn_c_try_compile "$LINENO"; then :
12827   eval "$as_CACHEVAR=yes"
12828 else
12829   eval "$as_CACHEVAR=no"
12830 fi
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832   CFLAGS=$ax_check_save_flags
12833 fi
12834 eval ac_res=\$$as_CACHEVAR
12835                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12836 $as_echo "$ac_res" >&6; }
12837 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12838   ax_cv_gcc_archflag=$flag; break
12839 else
12840   :
12841 fi
12842
12843   done
12844   test "x$ax_cv_gcc_archflag" = xunknown || break
12845 done
12846 fi
12847
12848 fi # $GCC=yes
12849
12850 fi
12851
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12853 $as_echo_n "checking for gcc architecture flag... " >&6; }
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12855 $as_echo "$ax_cv_gcc_archflag" >&6; }
12856 if test "x$ax_cv_gcc_archflag" = xunknown; then
12857   :
12858 else
12859   CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12860 fi
12861
12862      ;;
12863   esac
12864
12865   if test -z "$CFLAGS"; then
12866         echo ""
12867         echo "********************************************************"
12868         echo "* WARNING: Don't know the best CFLAGS for this system  *"
12869         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12870         echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12871         echo "********************************************************"
12872         echo ""
12873         CFLAGS="-O3"
12874   fi
12875
12876   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12878 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12879 if eval \${$as_CACHEVAR+:} false; then :
12880   $as_echo_n "(cached) " >&6
12881 else
12882
12883   ax_check_save_flags=$CFLAGS
12884   CFLAGS="$CFLAGS  $CFLAGS"
12885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h.  */
12887
12888 int
12889 main ()
12890 {
12891
12892   ;
12893   return 0;
12894 }
12895 _ACEOF
12896 if ac_fn_c_try_compile "$LINENO"; then :
12897   eval "$as_CACHEVAR=yes"
12898 else
12899   eval "$as_CACHEVAR=no"
12900 fi
12901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12902   CFLAGS=$ax_check_save_flags
12903 fi
12904 eval ac_res=\$$as_CACHEVAR
12905                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12906 $as_echo "$ac_res" >&6; }
12907 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12908   :
12909 else
12910
12911         echo ""
12912         echo "********************************************************"
12913         echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
12914         echo "* your compiler.                                       *"
12915         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12916         echo "********************************************************"
12917         echo ""
12918         CFLAGS=""
12919
12920 fi
12921
12922
12923 fi
12924
12925 if ${CFLAGS+:} false; then :
12926   case " $CFLAGS " in
12927     *"  "*)
12928       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
12929   (: CFLAGS already contains ) 2>&5
12930   ac_status=$?
12931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12932   test $ac_status = 0; }
12933       ;;
12934     *)
12935       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
12936   (: CFLAGS="$CFLAGS ") 2>&5
12937   ac_status=$?
12938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12939   test $ac_status = 0; }
12940       CFLAGS="$CFLAGS "
12941       ;;
12942    esac
12943 else
12944   CFLAGS=""
12945 fi
12946
12947 ac_ext=c
12948 ac_cpp='$CPP $CPPFLAGS'
12949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12952
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
12954 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
12955 if ${ac_cv_cflags_warn_all+:} false; then :
12956   $as_echo_n "(cached) " >&6
12957 else
12958   ac_cv_cflags_warn_all="no, unknown"
12959 ac_save_CFLAGS="$CFLAGS"
12960 for ac_arg in "-warn all  % -warn all"      "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
12961 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
12962    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h.  */
12964
12965 int
12966 main ()
12967 {
12968
12969   ;
12970   return 0;
12971 }
12972 _ACEOF
12973 if ac_fn_c_try_compile "$LINENO"; then :
12974   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
12975 fi
12976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12977 done
12978 CFLAGS="$ac_save_CFLAGS"
12979
12980 fi
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
12982 $as_echo "$ac_cv_cflags_warn_all" >&6; }
12983
12984 case ".$ac_cv_cflags_warn_all" in
12985      .ok|.ok,*)  ;;
12986    .|.no|.no,*)  ;;
12987    *) if ${CFLAGS+:} false; then :
12988   case " $CFLAGS " in
12989     *" $ac_cv_cflags_warn_all "*)
12990       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
12991   (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
12992   ac_status=$?
12993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12994   test $ac_status = 0; }
12995       ;;
12996     *)
12997       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
12998   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
12999   ac_status=$?
13000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13001   test $ac_status = 0; }
13002       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13003       ;;
13004    esac
13005 else
13006   CFLAGS="$ac_cv_cflags_warn_all"
13007 fi
13008  ;;
13009 esac
13010
13011 ac_ext=c
13012 ac_cpp='$CPP $CPPFLAGS'
13013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13016
13017
13018 if test "x$GCC" = "xyes"; then
13019   CFLAGS="$CFLAGS -fexceptions"
13020 fi
13021
13022
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13024 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13025     # Check whether --enable-maintainer-mode was given.
13026 if test "${enable_maintainer_mode+set}" = set; then :
13027   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13028 else
13029   USE_MAINTAINER_MODE=no
13030 fi
13031
13032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13033 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13034    if test $USE_MAINTAINER_MODE = yes; then
13035   MAINTAINER_MODE_TRUE=
13036   MAINTAINER_MODE_FALSE='#'
13037 else
13038   MAINTAINER_MODE_TRUE='#'
13039   MAINTAINER_MODE_FALSE=
13040 fi
13041
13042   MAINT=$MAINTAINER_MODE_TRUE
13043
13044
13045
13046 for ac_header in sys/mman.h
13047 do :
13048   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13049 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13050   cat >>confdefs.h <<_ACEOF
13051 #define HAVE_SYS_MMAN_H 1
13052 _ACEOF
13053
13054 fi
13055
13056 done
13057
13058 for ac_func in mmap
13059 do :
13060   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13061 if test "x$ac_cv_func_mmap" = xyes; then :
13062   cat >>confdefs.h <<_ACEOF
13063 #define HAVE_MMAP 1
13064 _ACEOF
13065
13066 fi
13067 done
13068
13069
13070 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13071 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13072   libffi_header_sys_mman_h=yes
13073 else
13074   libffi_header_sys_mman_h=no
13075 fi
13076
13077
13078 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13079 if test "x$ac_cv_func_mmap" = xyes; then :
13080   libffi_func_mmap=yes
13081 else
13082   libffi_func_mmap=no
13083 fi
13084
13085 if test "$libffi_header_sys_mman_h" != yes \
13086  || test "$libffi_func_mmap" != yes; then
13087    ac_cv_func_mmap_file=no
13088    ac_cv_func_mmap_dev_zero=no
13089    ac_cv_func_mmap_anon=no
13090 else
13091    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13092 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13093 if ${ac_cv_func_mmap_file+:} false; then :
13094   $as_echo_n "(cached) " >&6
13095 else
13096   # Add a system to this blacklist if
13097    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13098    # memory area containing the same data that you'd get if you applied
13099    # read() to the same fd.  The only system known to have a problem here
13100    # is VMS, where text files have record structure.
13101    case "$host_os" in
13102      vms* | ultrix*)
13103         ac_cv_func_mmap_file=no ;;
13104      *)
13105         ac_cv_func_mmap_file=yes;;
13106    esac
13107 fi
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13109 $as_echo "$ac_cv_func_mmap_file" >&6; }
13110    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13111 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13112 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13113   $as_echo_n "(cached) " >&6
13114 else
13115   # Add a system to this blacklist if it has mmap() but /dev/zero
13116    # does not exist, or if mmapping /dev/zero does not give anonymous
13117    # zeroed pages with both the following properties:
13118    # 1. If you map N consecutive pages in with one call, and then
13119    #    unmap any subset of those pages, the pages that were not
13120    #    explicitly unmapped remain accessible.
13121    # 2. If you map two adjacent blocks of memory and then unmap them
13122    #    both at once, they must both go away.
13123    # Systems known to be in this category are Windows (all variants),
13124    # VMS, and Darwin.
13125    case "$host_os" in
13126      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13127         ac_cv_func_mmap_dev_zero=no ;;
13128      *)
13129         ac_cv_func_mmap_dev_zero=yes;;
13130    esac
13131 fi
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13133 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13134
13135    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13136    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13137 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13138 if ${ac_cv_decl_map_anon+:} false; then :
13139   $as_echo_n "(cached) " >&6
13140 else
13141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h.  */
13143 #include <sys/types.h>
13144 #include <sys/mman.h>
13145 #include <unistd.h>
13146
13147 #ifndef MAP_ANONYMOUS
13148 #define MAP_ANONYMOUS MAP_ANON
13149 #endif
13150
13151 int
13152 main ()
13153 {
13154 int n = MAP_ANONYMOUS;
13155   ;
13156   return 0;
13157 }
13158 _ACEOF
13159 if ac_fn_c_try_compile "$LINENO"; then :
13160   ac_cv_decl_map_anon=yes
13161 else
13162   ac_cv_decl_map_anon=no
13163 fi
13164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13165 fi
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13167 $as_echo "$ac_cv_decl_map_anon" >&6; }
13168
13169    if test $ac_cv_decl_map_anon = no; then
13170      ac_cv_func_mmap_anon=no
13171    else
13172      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13173 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13174 if ${ac_cv_func_mmap_anon+:} false; then :
13175   $as_echo_n "(cached) " >&6
13176 else
13177   # Add a system to this blacklist if it has mmap() and MAP_ANON or
13178    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13179    # doesn't give anonymous zeroed pages with the same properties listed
13180    # above for use of /dev/zero.
13181    # Systems known to be in this category are Windows, VMS, and SCO Unix.
13182    case "$host_os" in
13183      vms* | cygwin* | pe | mingw* | sco* | udk* )
13184         ac_cv_func_mmap_anon=no ;;
13185      *)
13186         ac_cv_func_mmap_anon=yes;;
13187    esac
13188 fi
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13190 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13191    fi
13192 fi
13193
13194 if test $ac_cv_func_mmap_file = yes; then
13195
13196 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13197
13198 fi
13199 if test $ac_cv_func_mmap_dev_zero = yes; then
13200
13201 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13202
13203 fi
13204 if test $ac_cv_func_mmap_anon = yes; then
13205
13206 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13207
13208 fi
13209
13210
13211  if test -d $srcdir/testsuite; then
13212   TESTSUBDIR_TRUE=
13213   TESTSUBDIR_FALSE='#'
13214 else
13215   TESTSUBDIR_TRUE='#'
13216   TESTSUBDIR_FALSE=
13217 fi
13218
13219
13220 TARGETDIR="unknown"
13221 case "$host" in
13222   aarch64*-*-*)
13223         TARGET=AARCH64; TARGETDIR=aarch64
13224         ;;
13225
13226   alpha*-*-*)
13227         TARGET=ALPHA; TARGETDIR=alpha;
13228         # Support 128-bit long double, changeable via command-line switch.
13229         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13230         ;;
13231
13232   arm*-*-*)
13233         TARGET=ARM; TARGETDIR=arm
13234         ;;
13235
13236   amd64-*-freebsd* | amd64-*-openbsd*)
13237         TARGET=X86_64; TARGETDIR=x86
13238         ;;
13239
13240   amd64-*-freebsd*)
13241         TARGET=X86_64; TARGETDIR=x86
13242         ;;
13243
13244   avr32*-*-*)
13245         TARGET=AVR32; TARGETDIR=avr32
13246         ;;
13247
13248   bfin*)
13249         TARGET=BFIN; TARGETDIR=bfin
13250         ;;
13251
13252   cris-*-*)
13253         TARGET=LIBFFI_CRIS; TARGETDIR=cris
13254         ;;
13255
13256   frv-*-*)
13257         TARGET=FRV; TARGETDIR=frv
13258         ;;
13259
13260   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13261         TARGET=PA_LINUX; TARGETDIR=pa
13262         ;;
13263   hppa*64-*-hpux*)
13264         TARGET=PA64_HPUX; TARGETDIR=pa
13265         ;;
13266   hppa*-*-hpux*)
13267         TARGET=PA_HPUX; TARGETDIR=pa
13268         ;;
13269
13270   i?86-*-freebsd* | i?86-*-openbsd*)
13271         TARGET=X86_FREEBSD; TARGETDIR=x86
13272         ;;
13273   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13274         TARGET=X86_WIN32; TARGETDIR=x86
13275         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13276         # We must also check with_cross_host to decide if this is a native
13277         # or cross-build and select where to install dlls appropriately.
13278         if test -n "$with_cross_host" &&
13279            test x"$with_cross_host" != x"no"; then
13280           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13281         else
13282           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13283         fi
13284         ;;
13285   i?86-*-darwin*)
13286         TARGET=X86_DARWIN; TARGETDIR=x86
13287         ;;
13288   i?86-*-solaris2.1[0-9]*)
13289         TARGET=X86_64; TARGETDIR=x86
13290         ;;
13291   i?86-*-*)
13292         TARGET=X86_64; TARGETDIR=x86
13293         ;;
13294
13295   ia64*-*-*)
13296         TARGET=IA64; TARGETDIR=ia64
13297         ;;
13298
13299   m32r*-*-*)
13300         TARGET=M32R; TARGETDIR=m32r
13301         ;;
13302
13303   m68k-*-*)
13304         TARGET=M68K; TARGETDIR=m68k
13305         ;;
13306
13307   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13308         TARGET=MIPS; TARGETDIR=mips
13309         ;;
13310   mips*-*-linux* | mips*-*-openbsd*)
13311         # Support 128-bit long double for NewABI.
13312         HAVE_LONG_DOUBLE='defined(__mips64)'
13313         TARGET=MIPS; TARGETDIR=mips
13314         ;;
13315
13316   moxie-*-*)
13317         TARGET=MOXIE; TARGETDIR=moxie
13318         ;;
13319
13320   powerpc*-*-linux* | powerpc-*-sysv*)
13321         TARGET=POWERPC; TARGETDIR=powerpc
13322         ;;
13323   powerpc-*-amigaos*)
13324         TARGET=POWERPC; TARGETDIR=powerpc
13325         ;;
13326   powerpc-*-beos*)
13327         TARGET=POWERPC; TARGETDIR=powerpc
13328         ;;
13329   powerpc-*-darwin* | powerpc64-*-darwin*)
13330         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13331         ;;
13332   powerpc-*-aix* | rs6000-*-aix*)
13333         TARGET=POWERPC_AIX; TARGETDIR=powerpc
13334         ;;
13335   powerpc-*-freebsd* | powerpc-*-openbsd*)
13336         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13337         ;;
13338   powerpc64-*-freebsd*)
13339         TARGET=POWERPC; TARGETDIR=powerpc
13340         ;;
13341   powerpc*-*-rtems*)
13342         TARGET=POWERPC; TARGETDIR=powerpc
13343         ;;
13344
13345   s390-*-* | s390x-*-*)
13346         TARGET=S390; TARGETDIR=s390
13347         ;;
13348
13349   sh-*-* | sh[34]*-*-*)
13350         TARGET=SH; TARGETDIR=sh
13351         ;;
13352   sh64-*-* | sh5*-*-*)
13353         TARGET=SH64; TARGETDIR=sh64
13354         ;;
13355
13356   sparc*-*-*)
13357         TARGET=SPARC; TARGETDIR=sparc
13358         ;;
13359
13360   tile*-*)
13361         TARGET=TILE; TARGETDIR=tile
13362         ;;
13363
13364   x86_64-*-darwin*)
13365         TARGET=X86_DARWIN; TARGETDIR=x86
13366         ;;
13367
13368   x86_64-*-cygwin* | x86_64-*-mingw*)
13369         TARGET=X86_WIN64; TARGETDIR=x86
13370         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13371         # We must also check with_cross_host to decide if this is a native
13372         # or cross-build and select where to install dlls appropriately.
13373         if test -n "$with_cross_host" &&
13374            test x"$with_cross_host" != x"no"; then
13375           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13376         else
13377           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13378         fi
13379         ;;
13380
13381   x86_64-*-*)
13382         TARGET=X86_64; TARGETDIR=x86
13383         ;;
13384 esac
13385
13386
13387
13388
13389 if test $TARGETDIR = unknown; then
13390   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13391 fi
13392
13393  if test x$TARGET = xMIPS; then
13394   MIPS_TRUE=
13395   MIPS_FALSE='#'
13396 else
13397   MIPS_TRUE='#'
13398   MIPS_FALSE=
13399 fi
13400
13401  if test x$TARGET = xBFIN; then
13402   BFIN_TRUE=
13403   BFIN_FALSE='#'
13404 else
13405   BFIN_TRUE='#'
13406   BFIN_FALSE=
13407 fi
13408
13409  if test x$TARGET = xSPARC; then
13410   SPARC_TRUE=
13411   SPARC_FALSE='#'
13412 else
13413   SPARC_TRUE='#'
13414   SPARC_FALSE=
13415 fi
13416
13417  if test x$TARGET = xX86; then
13418   X86_TRUE=
13419   X86_FALSE='#'
13420 else
13421   X86_TRUE='#'
13422   X86_FALSE=
13423 fi
13424
13425  if test x$TARGET = xX86_FREEBSD; then
13426   X86_FREEBSD_TRUE=
13427   X86_FREEBSD_FALSE='#'
13428 else
13429   X86_FREEBSD_TRUE='#'
13430   X86_FREEBSD_FALSE=
13431 fi
13432
13433  if test x$TARGET = xX86_WIN32; then
13434   X86_WIN32_TRUE=
13435   X86_WIN32_FALSE='#'
13436 else
13437   X86_WIN32_TRUE='#'
13438   X86_WIN32_FALSE=
13439 fi
13440
13441  if test x$TARGET = xX86_WIN64; then
13442   X86_WIN64_TRUE=
13443   X86_WIN64_FALSE='#'
13444 else
13445   X86_WIN64_TRUE='#'
13446   X86_WIN64_FALSE=
13447 fi
13448
13449  if test x$TARGET = xX86_DARWIN; then
13450   X86_DARWIN_TRUE=
13451   X86_DARWIN_FALSE='#'
13452 else
13453   X86_DARWIN_TRUE='#'
13454   X86_DARWIN_FALSE=
13455 fi
13456
13457  if test x$TARGET = xALPHA; then
13458   ALPHA_TRUE=
13459   ALPHA_FALSE='#'
13460 else
13461   ALPHA_TRUE='#'
13462   ALPHA_FALSE=
13463 fi
13464
13465  if test x$TARGET = xIA64; then
13466   IA64_TRUE=
13467   IA64_FALSE='#'
13468 else
13469   IA64_TRUE='#'
13470   IA64_FALSE=
13471 fi
13472
13473  if test x$TARGET = xM32R; then
13474   M32R_TRUE=
13475   M32R_FALSE='#'
13476 else
13477   M32R_TRUE='#'
13478   M32R_FALSE=
13479 fi
13480
13481  if test x$TARGET = xM68K; then
13482   M68K_TRUE=
13483   M68K_FALSE='#'
13484 else
13485   M68K_TRUE='#'
13486   M68K_FALSE=
13487 fi
13488
13489  if test x$TARGET = xMOXIE; then
13490   MOXIE_TRUE=
13491   MOXIE_FALSE='#'
13492 else
13493   MOXIE_TRUE='#'
13494   MOXIE_FALSE=
13495 fi
13496
13497  if test x$TARGET = xPOWERPC; then
13498   POWERPC_TRUE=
13499   POWERPC_FALSE='#'
13500 else
13501   POWERPC_TRUE='#'
13502   POWERPC_FALSE=
13503 fi
13504
13505  if test x$TARGET = xPOWERPC_AIX; then
13506   POWERPC_AIX_TRUE=
13507   POWERPC_AIX_FALSE='#'
13508 else
13509   POWERPC_AIX_TRUE='#'
13510   POWERPC_AIX_FALSE=
13511 fi
13512
13513  if test x$TARGET = xPOWERPC_DARWIN; then
13514   POWERPC_DARWIN_TRUE=
13515   POWERPC_DARWIN_FALSE='#'
13516 else
13517   POWERPC_DARWIN_TRUE='#'
13518   POWERPC_DARWIN_FALSE=
13519 fi
13520
13521  if test x$TARGET = xPOWERPC_FREEBSD; then
13522   POWERPC_FREEBSD_TRUE=
13523   POWERPC_FREEBSD_FALSE='#'
13524 else
13525   POWERPC_FREEBSD_TRUE='#'
13526   POWERPC_FREEBSD_FALSE=
13527 fi
13528
13529  if test x$TARGET = xAARCH64; then
13530   AARCH64_TRUE=
13531   AARCH64_FALSE='#'
13532 else
13533   AARCH64_TRUE='#'
13534   AARCH64_FALSE=
13535 fi
13536
13537  if test x$TARGET = xARM; then
13538   ARM_TRUE=
13539   ARM_FALSE='#'
13540 else
13541   ARM_TRUE='#'
13542   ARM_FALSE=
13543 fi
13544
13545  if test x$TARGET = xAVR32; then
13546   AVR32_TRUE=
13547   AVR32_FALSE='#'
13548 else
13549   AVR32_TRUE='#'
13550   AVR32_FALSE=
13551 fi
13552
13553  if test x$TARGET = xLIBFFI_CRIS; then
13554   LIBFFI_CRIS_TRUE=
13555   LIBFFI_CRIS_FALSE='#'
13556 else
13557   LIBFFI_CRIS_TRUE='#'
13558   LIBFFI_CRIS_FALSE=
13559 fi
13560
13561  if test x$TARGET = xFRV; then
13562   FRV_TRUE=
13563   FRV_FALSE='#'
13564 else
13565   FRV_TRUE='#'
13566   FRV_FALSE=
13567 fi
13568
13569  if test x$TARGET = xS390; then
13570   S390_TRUE=
13571   S390_FALSE='#'
13572 else
13573   S390_TRUE='#'
13574   S390_FALSE=
13575 fi
13576
13577  if test x$TARGET = xX86_64; then
13578   X86_64_TRUE=
13579   X86_64_FALSE='#'
13580 else
13581   X86_64_TRUE='#'
13582   X86_64_FALSE=
13583 fi
13584
13585  if test x$TARGET = xSH; then
13586   SH_TRUE=
13587   SH_FALSE='#'
13588 else
13589   SH_TRUE='#'
13590   SH_FALSE=
13591 fi
13592
13593  if test x$TARGET = xSH64; then
13594   SH64_TRUE=
13595   SH64_FALSE='#'
13596 else
13597   SH64_TRUE='#'
13598   SH64_FALSE=
13599 fi
13600
13601  if test x$TARGET = xPA_LINUX; then
13602   PA_LINUX_TRUE=
13603   PA_LINUX_FALSE='#'
13604 else
13605   PA_LINUX_TRUE='#'
13606   PA_LINUX_FALSE=
13607 fi
13608
13609  if test x$TARGET = xPA_HPUX; then
13610   PA_HPUX_TRUE=
13611   PA_HPUX_FALSE='#'
13612 else
13613   PA_HPUX_TRUE='#'
13614   PA_HPUX_FALSE=
13615 fi
13616
13617  if test x$TARGET = xPA64_HPUX; then
13618   PA64_HPUX_TRUE=
13619   PA64_HPUX_FALSE='#'
13620 else
13621   PA64_HPUX_TRUE='#'
13622   PA64_HPUX_FALSE=
13623 fi
13624
13625  if test x$TARGET = xTILE; then
13626   TILE_TRUE=
13627   TILE_FALSE='#'
13628 else
13629   TILE_TRUE='#'
13630   TILE_FALSE=
13631 fi
13632
13633
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13635 $as_echo_n "checking for ANSI C header files... " >&6; }
13636 if ${ac_cv_header_stdc+:} false; then :
13637   $as_echo_n "(cached) " >&6
13638 else
13639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h.  */
13641 #include <stdlib.h>
13642 #include <stdarg.h>
13643 #include <string.h>
13644 #include <float.h>
13645
13646 int
13647 main ()
13648 {
13649
13650   ;
13651   return 0;
13652 }
13653 _ACEOF
13654 if ac_fn_c_try_compile "$LINENO"; then :
13655   ac_cv_header_stdc=yes
13656 else
13657   ac_cv_header_stdc=no
13658 fi
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660
13661 if test $ac_cv_header_stdc = yes; then
13662   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h.  */
13665 #include <string.h>
13666
13667 _ACEOF
13668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13669   $EGREP "memchr" >/dev/null 2>&1; then :
13670
13671 else
13672   ac_cv_header_stdc=no
13673 fi
13674 rm -f conftest*
13675
13676 fi
13677
13678 if test $ac_cv_header_stdc = yes; then
13679   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h.  */
13682 #include <stdlib.h>
13683
13684 _ACEOF
13685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13686   $EGREP "free" >/dev/null 2>&1; then :
13687
13688 else
13689   ac_cv_header_stdc=no
13690 fi
13691 rm -f conftest*
13692
13693 fi
13694
13695 if test $ac_cv_header_stdc = yes; then
13696   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13697   if test "$cross_compiling" = yes; then :
13698   :
13699 else
13700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701 /* end confdefs.h.  */
13702 #include <ctype.h>
13703 #include <stdlib.h>
13704 #if ((' ' & 0x0FF) == 0x020)
13705 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13706 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13707 #else
13708 # define ISLOWER(c) \
13709                    (('a' <= (c) && (c) <= 'i') \
13710                      || ('j' <= (c) && (c) <= 'r') \
13711                      || ('s' <= (c) && (c) <= 'z'))
13712 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13713 #endif
13714
13715 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13716 int
13717 main ()
13718 {
13719   int i;
13720   for (i = 0; i < 256; i++)
13721     if (XOR (islower (i), ISLOWER (i))
13722         || toupper (i) != TOUPPER (i))
13723       return 2;
13724   return 0;
13725 }
13726 _ACEOF
13727 if ac_fn_c_try_run "$LINENO"; then :
13728
13729 else
13730   ac_cv_header_stdc=no
13731 fi
13732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13733   conftest.$ac_objext conftest.beam conftest.$ac_ext
13734 fi
13735
13736 fi
13737 fi
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13739 $as_echo "$ac_cv_header_stdc" >&6; }
13740 if test $ac_cv_header_stdc = yes; then
13741
13742 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13743
13744 fi
13745
13746 for ac_func in memcpy
13747 do :
13748   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13749 if test "x$ac_cv_func_memcpy" = xyes; then :
13750   cat >>confdefs.h <<_ACEOF
13751 #define HAVE_MEMCPY 1
13752 _ACEOF
13753
13754 fi
13755 done
13756
13757 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13758 if test "x$ac_cv_type_size_t" = xyes; then :
13759
13760 else
13761
13762 cat >>confdefs.h <<_ACEOF
13763 #define size_t unsigned int
13764 _ACEOF
13765
13766 fi
13767
13768 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13769 # for constant arguments.  Useless!
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13771 $as_echo_n "checking for working alloca.h... " >&6; }
13772 if ${ac_cv_working_alloca_h+:} false; then :
13773   $as_echo_n "(cached) " >&6
13774 else
13775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h.  */
13777 #include <alloca.h>
13778 int
13779 main ()
13780 {
13781 char *p = (char *) alloca (2 * sizeof (int));
13782                           if (p) return 0;
13783   ;
13784   return 0;
13785 }
13786 _ACEOF
13787 if ac_fn_c_try_link "$LINENO"; then :
13788   ac_cv_working_alloca_h=yes
13789 else
13790   ac_cv_working_alloca_h=no
13791 fi
13792 rm -f core conftest.err conftest.$ac_objext \
13793     conftest$ac_exeext conftest.$ac_ext
13794 fi
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13796 $as_echo "$ac_cv_working_alloca_h" >&6; }
13797 if test $ac_cv_working_alloca_h = yes; then
13798
13799 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13800
13801 fi
13802
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13804 $as_echo_n "checking for alloca... " >&6; }
13805 if ${ac_cv_func_alloca_works+:} false; then :
13806   $as_echo_n "(cached) " >&6
13807 else
13808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h.  */
13810 #ifdef __GNUC__
13811 # define alloca __builtin_alloca
13812 #else
13813 # ifdef _MSC_VER
13814 #  include <malloc.h>
13815 #  define alloca _alloca
13816 # else
13817 #  ifdef HAVE_ALLOCA_H
13818 #   include <alloca.h>
13819 #  else
13820 #   ifdef _AIX
13821  #pragma alloca
13822 #   else
13823 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13824 void *alloca (size_t);
13825 #    endif
13826 #   endif
13827 #  endif
13828 # endif
13829 #endif
13830
13831 int
13832 main ()
13833 {
13834 char *p = (char *) alloca (1);
13835                                     if (p) return 0;
13836   ;
13837   return 0;
13838 }
13839 _ACEOF
13840 if ac_fn_c_try_link "$LINENO"; then :
13841   ac_cv_func_alloca_works=yes
13842 else
13843   ac_cv_func_alloca_works=no
13844 fi
13845 rm -f core conftest.err conftest.$ac_objext \
13846     conftest$ac_exeext conftest.$ac_ext
13847 fi
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13849 $as_echo "$ac_cv_func_alloca_works" >&6; }
13850
13851 if test $ac_cv_func_alloca_works = yes; then
13852
13853 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13854
13855 else
13856   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13857 # that cause trouble.  Some versions do not even contain alloca or
13858 # contain a buggy version.  If you still want to use their alloca,
13859 # use ar to extract alloca.o from them instead of compiling alloca.c.
13860
13861 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13862
13863 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13864
13865
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13867 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13868 if ${ac_cv_os_cray+:} false; then :
13869   $as_echo_n "(cached) " >&6
13870 else
13871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h.  */
13873 #if defined CRAY && ! defined CRAY2
13874 webecray
13875 #else
13876 wenotbecray
13877 #endif
13878
13879 _ACEOF
13880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13881   $EGREP "webecray" >/dev/null 2>&1; then :
13882   ac_cv_os_cray=yes
13883 else
13884   ac_cv_os_cray=no
13885 fi
13886 rm -f conftest*
13887
13888 fi
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13890 $as_echo "$ac_cv_os_cray" >&6; }
13891 if test $ac_cv_os_cray = yes; then
13892   for ac_func in _getb67 GETB67 getb67; do
13893     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13894 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13895 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13896
13897 cat >>confdefs.h <<_ACEOF
13898 #define CRAY_STACKSEG_END $ac_func
13899 _ACEOF
13900
13901     break
13902 fi
13903
13904   done
13905 fi
13906
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13908 $as_echo_n "checking stack direction for C alloca... " >&6; }
13909 if ${ac_cv_c_stack_direction+:} false; then :
13910   $as_echo_n "(cached) " >&6
13911 else
13912   if test "$cross_compiling" = yes; then :
13913   ac_cv_c_stack_direction=0
13914 else
13915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h.  */
13917 $ac_includes_default
13918 int
13919 find_stack_direction ()
13920 {
13921   static char *addr = 0;
13922   auto char dummy;
13923   if (addr == 0)
13924     {
13925       addr = &dummy;
13926       return find_stack_direction ();
13927     }
13928   else
13929     return (&dummy > addr) ? 1 : -1;
13930 }
13931
13932 int
13933 main ()
13934 {
13935   return find_stack_direction () < 0;
13936 }
13937 _ACEOF
13938 if ac_fn_c_try_run "$LINENO"; then :
13939   ac_cv_c_stack_direction=1
13940 else
13941   ac_cv_c_stack_direction=-1
13942 fi
13943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13944   conftest.$ac_objext conftest.beam conftest.$ac_ext
13945 fi
13946
13947 fi
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13949 $as_echo "$ac_cv_c_stack_direction" >&6; }
13950 cat >>confdefs.h <<_ACEOF
13951 #define STACK_DIRECTION $ac_cv_c_stack_direction
13952 _ACEOF
13953
13954
13955 fi
13956
13957
13958 # The cast to long int works around a bug in the HP C Compiler
13959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13961 # This bug is HP SR number 8606223364.
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
13963 $as_echo_n "checking size of double... " >&6; }
13964 if ${ac_cv_sizeof_double+:} false; then :
13965   $as_echo_n "(cached) " >&6
13966 else
13967   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
13968
13969 else
13970   if test "$ac_cv_type_double" = yes; then
13971      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13973 as_fn_error 77 "cannot compute sizeof (double)
13974 See \`config.log' for more details" "$LINENO" 5; }
13975    else
13976      ac_cv_sizeof_double=0
13977    fi
13978 fi
13979
13980 fi
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
13982 $as_echo "$ac_cv_sizeof_double" >&6; }
13983
13984
13985
13986 cat >>confdefs.h <<_ACEOF
13987 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13988 _ACEOF
13989
13990
13991 # The cast to long int works around a bug in the HP C Compiler
13992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13994 # This bug is HP SR number 8606223364.
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
13996 $as_echo_n "checking size of long double... " >&6; }
13997 if ${ac_cv_sizeof_long_double+:} false; then :
13998   $as_echo_n "(cached) " >&6
13999 else
14000   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
14001
14002 else
14003   if test "$ac_cv_type_long_double" = yes; then
14004      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14006 as_fn_error 77 "cannot compute sizeof (long double)
14007 See \`config.log' for more details" "$LINENO" 5; }
14008    else
14009      ac_cv_sizeof_long_double=0
14010    fi
14011 fi
14012
14013 fi
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14015 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14016
14017
14018
14019 cat >>confdefs.h <<_ACEOF
14020 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14021 _ACEOF
14022
14023
14024
14025 # Also AC_SUBST this variable for ffi.h.
14026 if test -z "$HAVE_LONG_DOUBLE"; then
14027   HAVE_LONG_DOUBLE=0
14028   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
14029     if test $ac_cv_sizeof_long_double != 0; then
14030       HAVE_LONG_DOUBLE=1
14031
14032 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14033
14034     fi
14035   fi
14036 fi
14037
14038
14039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14040 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14041 if ${ac_cv_c_bigendian+:} false; then :
14042   $as_echo_n "(cached) " >&6
14043 else
14044   ac_cv_c_bigendian=unknown
14045     # See if we're dealing with a universal compiler.
14046     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h.  */
14048 #ifndef __APPLE_CC__
14049                not a universal capable compiler
14050              #endif
14051              typedef int dummy;
14052
14053 _ACEOF
14054 if ac_fn_c_try_compile "$LINENO"; then :
14055
14056         # Check for potential -arch flags.  It is not universal unless
14057         # there are at least two -arch flags with different values.
14058         ac_arch=
14059         ac_prev=
14060         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14061          if test -n "$ac_prev"; then
14062            case $ac_word in
14063              i?86 | x86_64 | ppc | ppc64)
14064                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14065                  ac_arch=$ac_word
14066                else
14067                  ac_cv_c_bigendian=universal
14068                  break
14069                fi
14070                ;;
14071            esac
14072            ac_prev=
14073          elif test "x$ac_word" = "x-arch"; then
14074            ac_prev=arch
14075          fi
14076        done
14077 fi
14078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14079     if test $ac_cv_c_bigendian = unknown; then
14080       # See if sys/param.h defines the BYTE_ORDER macro.
14081       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h.  */
14083 #include <sys/types.h>
14084              #include <sys/param.h>
14085
14086 int
14087 main ()
14088 {
14089 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14090                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14091                      && LITTLE_ENDIAN)
14092               bogus endian macros
14093              #endif
14094
14095   ;
14096   return 0;
14097 }
14098 _ACEOF
14099 if ac_fn_c_try_compile "$LINENO"; then :
14100   # It does; now see whether it defined to BIG_ENDIAN or not.
14101          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h.  */
14103 #include <sys/types.h>
14104                 #include <sys/param.h>
14105
14106 int
14107 main ()
14108 {
14109 #if BYTE_ORDER != BIG_ENDIAN
14110                  not big endian
14111                 #endif
14112
14113   ;
14114   return 0;
14115 }
14116 _ACEOF
14117 if ac_fn_c_try_compile "$LINENO"; then :
14118   ac_cv_c_bigendian=yes
14119 else
14120   ac_cv_c_bigendian=no
14121 fi
14122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14123 fi
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125     fi
14126     if test $ac_cv_c_bigendian = unknown; then
14127       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14128       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h.  */
14130 #include <limits.h>
14131
14132 int
14133 main ()
14134 {
14135 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14136               bogus endian macros
14137              #endif
14138
14139   ;
14140   return 0;
14141 }
14142 _ACEOF
14143 if ac_fn_c_try_compile "$LINENO"; then :
14144   # It does; now see whether it defined to _BIG_ENDIAN or not.
14145          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h.  */
14147 #include <limits.h>
14148
14149 int
14150 main ()
14151 {
14152 #ifndef _BIG_ENDIAN
14153                  not big endian
14154                 #endif
14155
14156   ;
14157   return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_compile "$LINENO"; then :
14161   ac_cv_c_bigendian=yes
14162 else
14163   ac_cv_c_bigendian=no
14164 fi
14165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14166 fi
14167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14168     fi
14169     if test $ac_cv_c_bigendian = unknown; then
14170       # Compile a test program.
14171       if test "$cross_compiling" = yes; then :
14172   # Try to guess by grepping values from an object file.
14173          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h.  */
14175 short int ascii_mm[] =
14176                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14177                 short int ascii_ii[] =
14178                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14179                 int use_ascii (int i) {
14180                   return ascii_mm[i] + ascii_ii[i];
14181                 }
14182                 short int ebcdic_ii[] =
14183                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14184                 short int ebcdic_mm[] =
14185                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14186                 int use_ebcdic (int i) {
14187                   return ebcdic_mm[i] + ebcdic_ii[i];
14188                 }
14189                 extern int foo;
14190
14191 int
14192 main ()
14193 {
14194 return use_ascii (foo) == use_ebcdic (foo);
14195   ;
14196   return 0;
14197 }
14198 _ACEOF
14199 if ac_fn_c_try_compile "$LINENO"; then :
14200   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14201               ac_cv_c_bigendian=yes
14202             fi
14203             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14204               if test "$ac_cv_c_bigendian" = unknown; then
14205                 ac_cv_c_bigendian=no
14206               else
14207                 # finding both strings is unlikely to happen, but who knows?
14208                 ac_cv_c_bigendian=unknown
14209               fi
14210             fi
14211 fi
14212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14213 else
14214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215 /* end confdefs.h.  */
14216 $ac_includes_default
14217 int
14218 main ()
14219 {
14220
14221              /* Are we little or big endian?  From Harbison&Steele.  */
14222              union
14223              {
14224                long int l;
14225                char c[sizeof (long int)];
14226              } u;
14227              u.l = 1;
14228              return u.c[sizeof (long int) - 1] == 1;
14229
14230   ;
14231   return 0;
14232 }
14233 _ACEOF
14234 if ac_fn_c_try_run "$LINENO"; then :
14235   ac_cv_c_bigendian=no
14236 else
14237   ac_cv_c_bigendian=yes
14238 fi
14239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14240   conftest.$ac_objext conftest.beam conftest.$ac_ext
14241 fi
14242
14243     fi
14244 fi
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14246 $as_echo "$ac_cv_c_bigendian" >&6; }
14247  case $ac_cv_c_bigendian in #(
14248    yes)
14249      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14250 ;; #(
14251    no)
14252       ;; #(
14253    universal)
14254
14255 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14256
14257      ;; #(
14258    *)
14259      as_fn_error $? "unknown endianness
14260  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14261  esac
14262
14263
14264 GCC_AS_CFI_PSEUDO_OP
14265
14266 if test x$TARGET = xSPARC; then
14267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14268 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14269 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14270   $as_echo_n "(cached) " >&6
14271 else
14272
14273         save_CFLAGS="$CFLAGS"
14274         save_LDFLAGS="$LDFLAGS"
14275         CFLAGS="$CFLAGS -fpic"
14276         LDFLAGS="$LDFLAGS -shared"
14277         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h.  */
14279 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14280 int
14281 main ()
14282 {
14283
14284   ;
14285   return 0;
14286 }
14287 _ACEOF
14288 if ac_fn_c_try_link "$LINENO"; then :
14289   libffi_cv_as_sparc_ua_pcrel=yes
14290 else
14291   libffi_cv_as_sparc_ua_pcrel=no
14292 fi
14293 rm -f core conftest.err conftest.$ac_objext \
14294     conftest$ac_exeext conftest.$ac_ext
14295         CFLAGS="$save_CFLAGS"
14296         LDFLAGS="$save_LDFLAGS"
14297 fi
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14299 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14300     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14301
14302 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14303
14304     fi
14305
14306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14307 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14308 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14309   $as_echo_n "(cached) " >&6
14310 else
14311
14312        libffi_cv_as_register_pseudo_op=unknown
14313        # Check if we have .register
14314        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h.  */
14316 asm (".register %g2, #scratch");
14317 int
14318 main ()
14319 {
14320
14321   ;
14322   return 0;
14323 }
14324 _ACEOF
14325 if ac_fn_c_try_compile "$LINENO"; then :
14326   libffi_cv_as_register_pseudo_op=yes
14327 else
14328   libffi_cv_as_register_pseudo_op=no
14329 fi
14330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14331
14332 fi
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14334 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14335     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14336
14337 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14338
14339     fi
14340 fi
14341
14342 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14344 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14345 if ${libffi_cv_as_x86_pcrel+:} false; then :
14346   $as_echo_n "(cached) " >&6
14347 else
14348
14349         libffi_cv_as_x86_pcrel=yes
14350         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14351         if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
14352             libffi_cv_as_x86_pcrel=no
14353         fi
14354
14355 fi
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14357 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14358     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14359
14360 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14361
14362     fi
14363
14364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14365 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14366 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14367   $as_echo_n "(cached) " >&6
14368 else
14369
14370        libffi_cv_as_ascii_pseudo_op=unknown
14371        # Check if we have .ascii
14372        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373 /* end confdefs.h.  */
14374 asm (".ascii \\"string\\"");
14375 int
14376 main ()
14377 {
14378
14379   ;
14380   return 0;
14381 }
14382 _ACEOF
14383 if ac_fn_c_try_compile "$LINENO"; then :
14384   libffi_cv_as_ascii_pseudo_op=yes
14385 else
14386   libffi_cv_as_ascii_pseudo_op=no
14387 fi
14388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389
14390 fi
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14392 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14393     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14394
14395 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14396
14397     fi
14398
14399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14400 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14401 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14402   $as_echo_n "(cached) " >&6
14403 else
14404
14405        libffi_cv_as_string_pseudo_op=unknown
14406        # Check if we have .string
14407        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h.  */
14409 asm (".string \\"string\\"");
14410 int
14411 main ()
14412 {
14413
14414   ;
14415   return 0;
14416 }
14417 _ACEOF
14418 if ac_fn_c_try_compile "$LINENO"; then :
14419   libffi_cv_as_string_pseudo_op=yes
14420 else
14421   libffi_cv_as_string_pseudo_op=no
14422 fi
14423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424
14425 fi
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14427 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14428     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14429
14430 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14431
14432     fi
14433 fi
14434
14435 if test x$TARGET = xX86_WIN64; then
14436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14437 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14438 if ${lt_cv_sys_symbol_underscore+:} false; then :
14439   $as_echo_n "(cached) " >&6
14440 else
14441   lt_cv_sys_symbol_underscore=no
14442   cat > conftest.$ac_ext <<_LT_EOF
14443 void nm_test_func(){}
14444 int main(){nm_test_func;return 0;}
14445 _LT_EOF
14446   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14447   (eval $ac_compile) 2>&5
14448   ac_status=$?
14449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14450   test $ac_status = 0; }; then
14451     # Now try to grab the symbols.
14452     ac_nlist=conftest.nm
14453     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14454   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14455   ac_status=$?
14456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14457   test $ac_status = 0; } && test -s "$ac_nlist"; then
14458       # See whether the symbols have a leading underscore.
14459       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14460         lt_cv_sys_symbol_underscore=yes
14461       else
14462         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14463           :
14464         else
14465           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14466         fi
14467       fi
14468     else
14469       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14470     fi
14471   else
14472     echo "configure: failed program was:" >&5
14473     cat conftest.c >&5
14474   fi
14475   rm -rf conftest*
14476
14477 fi
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14479 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14480   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14481
14482
14483     if test "x$sys_symbol_underscore" = xyes; then
14484
14485 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14486
14487     fi
14488 fi
14489
14490 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14491 # Check whether --enable-pax_emutramp was given.
14492 if test "${enable_pax_emutramp+set}" = set; then :
14493   enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14494
14495 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14496
14497   fi
14498 fi
14499
14500
14501 FFI_EXEC_TRAMPOLINE_TABLE=0
14502 case "$target" in
14503      *arm*-apple-darwin*)
14504        FFI_EXEC_TRAMPOLINE_TABLE=1
14505
14506 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14507
14508      ;;
14509      *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14510
14511 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14512
14513      ;;
14514 esac
14515  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14516   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14517   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14518 else
14519   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14520   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14521 fi
14522
14523
14524
14525 if test x$TARGET = xX86_64; then
14526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14527 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14528 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14529   $as_echo_n "(cached) " >&6
14530 else
14531
14532         libffi_cv_as_x86_64_unwind_section_type=yes
14533         echo '.section .eh_frame,"a",@unwind' > conftest.s
14534         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14535             libffi_cv_as_x86_64_unwind_section_type=no
14536         fi
14537
14538 fi
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14540 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14541     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14542
14543 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14544
14545     fi
14546 fi
14547
14548 if test "x$GCC" = "xyes"; then
14549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14550 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14551 if ${libffi_cv_ro_eh_frame+:} false; then :
14552   $as_echo_n "(cached) " >&6
14553 else
14554
14555         libffi_cv_ro_eh_frame=no
14556         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14557         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14558             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14559                 libffi_cv_ro_eh_frame=yes
14560             elif grep '.section.*eh_frame.*#alloc' conftest.c \
14561                  | grep -v '#write' > /dev/null; then
14562                 libffi_cv_ro_eh_frame=yes
14563             fi
14564         fi
14565         rm -f conftest.*
14566
14567 fi
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14569 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14570   if test "x$libffi_cv_ro_eh_frame" = xyes; then
14571
14572 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14573
14574
14575 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14576
14577   else
14578
14579 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14580
14581   fi
14582
14583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14584 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14585 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14586   $as_echo_n "(cached) " >&6
14587 else
14588
14589         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
14590         libffi_cv_hidden_visibility_attribute=no
14591         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14592   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14593   (eval $ac_try) 2>&5
14594   ac_status=$?
14595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14596   test $ac_status = 0; }; }; then
14597             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14598                 libffi_cv_hidden_visibility_attribute=yes
14599             fi
14600         fi
14601         rm -f conftest.*
14602
14603 fi
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14605 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14606   if test $libffi_cv_hidden_visibility_attribute = yes; then
14607
14608 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14609
14610   fi
14611 fi
14612
14613
14614
14615
14616
14617
14618
14619
14620 # Check whether --enable-debug was given.
14621 if test "${enable_debug+set}" = set; then :
14622   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14623
14624 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14625
14626   fi
14627 fi
14628
14629  if test "$enable_debug" = "yes"; then
14630   FFI_DEBUG_TRUE=
14631   FFI_DEBUG_FALSE='#'
14632 else
14633   FFI_DEBUG_TRUE='#'
14634   FFI_DEBUG_FALSE=
14635 fi
14636
14637
14638 # Check whether --enable-structs was given.
14639 if test "${enable_structs+set}" = set; then :
14640   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14641
14642 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14643
14644   fi
14645 fi
14646
14647
14648 # Check whether --enable-raw-api was given.
14649 if test "${enable_raw_api+set}" = set; then :
14650   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14651
14652 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14653
14654   fi
14655 fi
14656
14657
14658 # Check whether --enable-purify-safety was given.
14659 if test "${enable_purify_safety+set}" = set; then :
14660   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14661
14662 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14663
14664   fi
14665 fi
14666
14667
14668 # These variables are only ever used when we cross-build to X86_WIN32.
14669 # And we only support this with GCC, so...
14670 if test x"$GCC" != x"no"; then
14671   if test -n "$with_cross_host" &&
14672      test x"$with_cross_host" != x"no"; then
14673     toolexecdir='$(exec_prefix)/$(target_alias)'
14674     toolexeclibdir='$(toolexecdir)/lib'
14675   else
14676     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14677     toolexeclibdir='$(libdir)'
14678   fi
14679   multi_os_directory=`$CC -print-multi-os-directory`
14680   case $multi_os_directory in
14681     .) ;; # Avoid trailing /.
14682     *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14683   esac
14684
14685
14686 fi
14687
14688 if test "${multilib}" = "yes"; then
14689   multilib_arg="--enable-multilib"
14690 else
14691   multilib_arg=
14692 fi
14693
14694 ac_config_commands="$ac_config_commands include"
14695
14696 ac_config_commands="$ac_config_commands src"
14697
14698
14699 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14700
14701
14702 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14703
14704
14705 cat >confcache <<\_ACEOF
14706 # This file is a shell script that caches the results of configure
14707 # tests run on this system so they can be shared between configure
14708 # scripts and configure runs, see configure's option --config-cache.
14709 # It is not useful on other systems.  If it contains results you don't
14710 # want to keep, you may remove or edit it.
14711 #
14712 # config.status only pays attention to the cache file if you give it
14713 # the --recheck option to rerun configure.
14714 #
14715 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14716 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14717 # following values.
14718
14719 _ACEOF
14720
14721 # The following way of writing the cache mishandles newlines in values,
14722 # but we know of no workaround that is simple, portable, and efficient.
14723 # So, we kill variables containing newlines.
14724 # Ultrix sh set writes to stderr and can't be redirected directly,
14725 # and sets the high bit in the cache file unless we assign to the vars.
14726 (
14727   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14728     eval ac_val=\$$ac_var
14729     case $ac_val in #(
14730     *${as_nl}*)
14731       case $ac_var in #(
14732       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14733 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14734       esac
14735       case $ac_var in #(
14736       _ | IFS | as_nl) ;; #(
14737       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14738       *) { eval $ac_var=; unset $ac_var;} ;;
14739       esac ;;
14740     esac
14741   done
14742
14743   (set) 2>&1 |
14744     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14745     *${as_nl}ac_space=\ *)
14746       # `set' does not quote correctly, so add quotes: double-quote
14747       # substitution turns \\\\ into \\, and sed turns \\ into \.
14748       sed -n \
14749         "s/'/'\\\\''/g;
14750           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14751       ;; #(
14752     *)
14753       # `set' quotes correctly as required by POSIX, so do not add quotes.
14754       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14755       ;;
14756     esac |
14757     sort
14758 ) |
14759   sed '
14760      /^ac_cv_env_/b end
14761      t clear
14762      :clear
14763      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14764      t end
14765      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14766      :end' >>confcache
14767 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14768   if test -w "$cache_file"; then
14769     if test "x$cache_file" != "x/dev/null"; then
14770       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14771 $as_echo "$as_me: updating cache $cache_file" >&6;}
14772       if test ! -f "$cache_file" || test -h "$cache_file"; then
14773         cat confcache >"$cache_file"
14774       else
14775         case $cache_file in #(
14776         */* | ?:*)
14777           mv -f confcache "$cache_file"$$ &&
14778           mv -f "$cache_file"$$ "$cache_file" ;; #(
14779         *)
14780           mv -f confcache "$cache_file" ;;
14781         esac
14782       fi
14783     fi
14784   else
14785     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14786 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14787   fi
14788 fi
14789 rm -f confcache
14790
14791 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14792 # Let make expand exec_prefix.
14793 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14794
14795 DEFS=-DHAVE_CONFIG_H
14796
14797 ac_libobjs=
14798 ac_ltlibobjs=
14799 U=
14800 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14801   # 1. Remove the extension, and $U if already installed.
14802   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14803   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14804   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14805   #    will be set to the directory where LIBOBJS objects are built.
14806   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14807   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14808 done
14809 LIBOBJS=$ac_libobjs
14810
14811 LTLIBOBJS=$ac_ltlibobjs
14812
14813
14814  if test -n "$EXEEXT"; then
14815   am__EXEEXT_TRUE=
14816   am__EXEEXT_FALSE='#'
14817 else
14818   am__EXEEXT_TRUE='#'
14819   am__EXEEXT_FALSE=
14820 fi
14821
14822 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14823   as_fn_error $? "conditional \"AMDEP\" was never defined.
14824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14825 fi
14826 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14827   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14829 fi
14830 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14831   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14833 fi
14834 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14835   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14837 fi
14838 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14839   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
14840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14841 fi
14842 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14843   as_fn_error $? "conditional \"MIPS\" was never defined.
14844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14845 fi
14846 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
14847   as_fn_error $? "conditional \"BFIN\" was never defined.
14848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14849 fi
14850 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14851   as_fn_error $? "conditional \"SPARC\" was never defined.
14852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14853 fi
14854 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14855   as_fn_error $? "conditional \"X86\" was never defined.
14856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14857 fi
14858 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
14859   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
14860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14861 fi
14862 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
14863   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
14864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14865 fi
14866 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
14867   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
14868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14869 fi
14870 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
14871   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
14872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14873 fi
14874 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
14875   as_fn_error $? "conditional \"ALPHA\" was never defined.
14876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14877 fi
14878 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
14879   as_fn_error $? "conditional \"IA64\" was never defined.
14880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14881 fi
14882 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
14883   as_fn_error $? "conditional \"M32R\" was never defined.
14884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14885 fi
14886 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
14887   as_fn_error $? "conditional \"M68K\" was never defined.
14888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14889 fi
14890 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
14891   as_fn_error $? "conditional \"MOXIE\" was never defined.
14892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14893 fi
14894 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
14895   as_fn_error $? "conditional \"POWERPC\" was never defined.
14896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14897 fi
14898 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
14899   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
14900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14901 fi
14902 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
14903   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
14904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14905 fi
14906 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
14907   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
14908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14909 fi
14910 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
14911   as_fn_error $? "conditional \"AARCH64\" was never defined.
14912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14913 fi
14914 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
14915   as_fn_error $? "conditional \"ARM\" was never defined.
14916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14917 fi
14918 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
14919   as_fn_error $? "conditional \"AVR32\" was never defined.
14920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14921 fi
14922 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
14923   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
14924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14925 fi
14926 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
14927   as_fn_error $? "conditional \"FRV\" was never defined.
14928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14929 fi
14930 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
14931   as_fn_error $? "conditional \"S390\" was never defined.
14932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14933 fi
14934 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
14935   as_fn_error $? "conditional \"X86_64\" was never defined.
14936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14937 fi
14938 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
14939   as_fn_error $? "conditional \"SH\" was never defined.
14940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14941 fi
14942 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
14943   as_fn_error $? "conditional \"SH64\" was never defined.
14944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14945 fi
14946 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
14947   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
14948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14949 fi
14950 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
14951   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
14952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14953 fi
14954 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
14955   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
14956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14957 fi
14958 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
14959   as_fn_error $? "conditional \"TILE\" was never defined.
14960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14961 fi
14962
14963 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
14964   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
14965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14966 fi
14967 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
14968   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
14969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14970 fi
14971
14972 : "${CONFIG_STATUS=./config.status}"
14973 ac_write_fail=0
14974 ac_clean_files_save=$ac_clean_files
14975 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14977 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14978 as_write_fail=0
14979 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14980 #! $SHELL
14981 # Generated by $as_me.
14982 # Run this file to recreate the current configuration.
14983 # Compiler output produced by configure, useful for debugging
14984 # configure, is in config.log if it exists.
14985
14986 debug=false
14987 ac_cs_recheck=false
14988 ac_cs_silent=false
14989
14990 SHELL=\${CONFIG_SHELL-$SHELL}
14991 export SHELL
14992 _ASEOF
14993 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14994 ## -------------------- ##
14995 ## M4sh Initialization. ##
14996 ## -------------------- ##
14997
14998 # Be more Bourne compatible
14999 DUALCASE=1; export DUALCASE # for MKS sh
15000 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15001   emulate sh
15002   NULLCMD=:
15003   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15004   # is contrary to our usage.  Disable this feature.
15005   alias -g '${1+"$@"}'='"$@"'
15006   setopt NO_GLOB_SUBST
15007 else
15008   case `(set -o) 2>/dev/null` in #(
15009   *posix*) :
15010     set -o posix ;; #(
15011   *) :
15012      ;;
15013 esac
15014 fi
15015
15016
15017 as_nl='
15018 '
15019 export as_nl
15020 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15021 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15022 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15023 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15024 # Prefer a ksh shell builtin over an external printf program on Solaris,
15025 # but without wasting forks for bash or zsh.
15026 if test -z "$BASH_VERSION$ZSH_VERSION" \
15027     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15028   as_echo='print -r --'
15029   as_echo_n='print -rn --'
15030 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15031   as_echo='printf %s\n'
15032   as_echo_n='printf %s'
15033 else
15034   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15035     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15036     as_echo_n='/usr/ucb/echo -n'
15037   else
15038     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15039     as_echo_n_body='eval
15040       arg=$1;
15041       case $arg in #(
15042       *"$as_nl"*)
15043         expr "X$arg" : "X\\(.*\\)$as_nl";
15044         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15045       esac;
15046       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15047     '
15048     export as_echo_n_body
15049     as_echo_n='sh -c $as_echo_n_body as_echo'
15050   fi
15051   export as_echo_body
15052   as_echo='sh -c $as_echo_body as_echo'
15053 fi
15054
15055 # The user is always right.
15056 if test "${PATH_SEPARATOR+set}" != set; then
15057   PATH_SEPARATOR=:
15058   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15059     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15060       PATH_SEPARATOR=';'
15061   }
15062 fi
15063
15064
15065 # IFS
15066 # We need space, tab and new line, in precisely that order.  Quoting is
15067 # there to prevent editors from complaining about space-tab.
15068 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15069 # splitting by setting IFS to empty value.)
15070 IFS=" ""        $as_nl"
15071
15072 # Find who we are.  Look in the path if we contain no directory separator.
15073 as_myself=
15074 case $0 in #((
15075   *[\\/]* ) as_myself=$0 ;;
15076   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15077 for as_dir in $PATH
15078 do
15079   IFS=$as_save_IFS
15080   test -z "$as_dir" && as_dir=.
15081     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15082   done
15083 IFS=$as_save_IFS
15084
15085      ;;
15086 esac
15087 # We did not find ourselves, most probably we were run as `sh COMMAND'
15088 # in which case we are not to be found in the path.
15089 if test "x$as_myself" = x; then
15090   as_myself=$0
15091 fi
15092 if test ! -f "$as_myself"; then
15093   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15094   exit 1
15095 fi
15096
15097 # Unset variables that we do not need and which cause bugs (e.g. in
15098 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15099 # suppresses any "Segmentation fault" message there.  '((' could
15100 # trigger a bug in pdksh 5.2.14.
15101 for as_var in BASH_ENV ENV MAIL MAILPATH
15102 do eval test x\${$as_var+set} = xset \
15103   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15104 done
15105 PS1='$ '
15106 PS2='> '
15107 PS4='+ '
15108
15109 # NLS nuisances.
15110 LC_ALL=C
15111 export LC_ALL
15112 LANGUAGE=C
15113 export LANGUAGE
15114
15115 # CDPATH.
15116 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15117
15118
15119 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15120 # ----------------------------------------
15121 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15122 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15123 # script with STATUS, using 1 if that was 0.
15124 as_fn_error ()
15125 {
15126   as_status=$1; test $as_status -eq 0 && as_status=1
15127   if test "$4"; then
15128     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15129     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15130   fi
15131   $as_echo "$as_me: error: $2" >&2
15132   as_fn_exit $as_status
15133 } # as_fn_error
15134
15135
15136 # as_fn_set_status STATUS
15137 # -----------------------
15138 # Set $? to STATUS, without forking.
15139 as_fn_set_status ()
15140 {
15141   return $1
15142 } # as_fn_set_status
15143
15144 # as_fn_exit STATUS
15145 # -----------------
15146 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15147 as_fn_exit ()
15148 {
15149   set +e
15150   as_fn_set_status $1
15151   exit $1
15152 } # as_fn_exit
15153
15154 # as_fn_unset VAR
15155 # ---------------
15156 # Portably unset VAR.
15157 as_fn_unset ()
15158 {
15159   { eval $1=; unset $1;}
15160 }
15161 as_unset=as_fn_unset
15162 # as_fn_append VAR VALUE
15163 # ----------------------
15164 # Append the text in VALUE to the end of the definition contained in VAR. Take
15165 # advantage of any shell optimizations that allow amortized linear growth over
15166 # repeated appends, instead of the typical quadratic growth present in naive
15167 # implementations.
15168 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15169   eval 'as_fn_append ()
15170   {
15171     eval $1+=\$2
15172   }'
15173 else
15174   as_fn_append ()
15175   {
15176     eval $1=\$$1\$2
15177   }
15178 fi # as_fn_append
15179
15180 # as_fn_arith ARG...
15181 # ------------------
15182 # Perform arithmetic evaluation on the ARGs, and store the result in the
15183 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15184 # must be portable across $(()) and expr.
15185 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15186   eval 'as_fn_arith ()
15187   {
15188     as_val=$(( $* ))
15189   }'
15190 else
15191   as_fn_arith ()
15192   {
15193     as_val=`expr "$@" || test $? -eq 1`
15194   }
15195 fi # as_fn_arith
15196
15197
15198 if expr a : '\(a\)' >/dev/null 2>&1 &&
15199    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15200   as_expr=expr
15201 else
15202   as_expr=false
15203 fi
15204
15205 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15206   as_basename=basename
15207 else
15208   as_basename=false
15209 fi
15210
15211 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15212   as_dirname=dirname
15213 else
15214   as_dirname=false
15215 fi
15216
15217 as_me=`$as_basename -- "$0" ||
15218 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15219          X"$0" : 'X\(//\)$' \| \
15220          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15221 $as_echo X/"$0" |
15222     sed '/^.*\/\([^/][^/]*\)\/*$/{
15223             s//\1/
15224             q
15225           }
15226           /^X\/\(\/\/\)$/{
15227             s//\1/
15228             q
15229           }
15230           /^X\/\(\/\).*/{
15231             s//\1/
15232             q
15233           }
15234           s/.*/./; q'`
15235
15236 # Avoid depending upon Character Ranges.
15237 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15238 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15239 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15240 as_cr_digits='0123456789'
15241 as_cr_alnum=$as_cr_Letters$as_cr_digits
15242
15243 ECHO_C= ECHO_N= ECHO_T=
15244 case `echo -n x` in #(((((
15245 -n*)
15246   case `echo 'xy\c'` in
15247   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15248   xy)  ECHO_C='\c';;
15249   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15250        ECHO_T=' ';;
15251   esac;;
15252 *)
15253   ECHO_N='-n';;
15254 esac
15255
15256 rm -f conf$$ conf$$.exe conf$$.file
15257 if test -d conf$$.dir; then
15258   rm -f conf$$.dir/conf$$.file
15259 else
15260   rm -f conf$$.dir
15261   mkdir conf$$.dir 2>/dev/null
15262 fi
15263 if (echo >conf$$.file) 2>/dev/null; then
15264   if ln -s conf$$.file conf$$ 2>/dev/null; then
15265     as_ln_s='ln -s'
15266     # ... but there are two gotchas:
15267     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15268     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15269     # In both cases, we have to default to `cp -p'.
15270     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15271       as_ln_s='cp -p'
15272   elif ln conf$$.file conf$$ 2>/dev/null; then
15273     as_ln_s=ln
15274   else
15275     as_ln_s='cp -p'
15276   fi
15277 else
15278   as_ln_s='cp -p'
15279 fi
15280 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15281 rmdir conf$$.dir 2>/dev/null
15282
15283
15284 # as_fn_mkdir_p
15285 # -------------
15286 # Create "$as_dir" as a directory, including parents if necessary.
15287 as_fn_mkdir_p ()
15288 {
15289
15290   case $as_dir in #(
15291   -*) as_dir=./$as_dir;;
15292   esac
15293   test -d "$as_dir" || eval $as_mkdir_p || {
15294     as_dirs=
15295     while :; do
15296       case $as_dir in #(
15297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15298       *) as_qdir=$as_dir;;
15299       esac
15300       as_dirs="'$as_qdir' $as_dirs"
15301       as_dir=`$as_dirname -- "$as_dir" ||
15302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15303          X"$as_dir" : 'X\(//\)[^/]' \| \
15304          X"$as_dir" : 'X\(//\)$' \| \
15305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15306 $as_echo X"$as_dir" |
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       test -d "$as_dir" && break
15325     done
15326     test -z "$as_dirs" || eval "mkdir $as_dirs"
15327   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15328
15329
15330 } # as_fn_mkdir_p
15331 if mkdir -p . 2>/dev/null; then
15332   as_mkdir_p='mkdir -p "$as_dir"'
15333 else
15334   test -d ./-p && rmdir ./-p
15335   as_mkdir_p=false
15336 fi
15337
15338 if test -x / >/dev/null 2>&1; then
15339   as_test_x='test -x'
15340 else
15341   if ls -dL / >/dev/null 2>&1; then
15342     as_ls_L_option=L
15343   else
15344     as_ls_L_option=
15345   fi
15346   as_test_x='
15347     eval sh -c '\''
15348       if test -d "$1"; then
15349         test -d "$1/.";
15350       else
15351         case $1 in #(
15352         -*)set "./$1";;
15353         esac;
15354         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15355         ???[sx]*):;;*)false;;esac;fi
15356     '\'' sh
15357   '
15358 fi
15359 as_executable_p=$as_test_x
15360
15361 # Sed expression to map a string onto a valid CPP name.
15362 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15363
15364 # Sed expression to map a string onto a valid variable name.
15365 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15366
15367
15368 exec 6>&1
15369 ## ----------------------------------- ##
15370 ## Main body of $CONFIG_STATUS script. ##
15371 ## ----------------------------------- ##
15372 _ASEOF
15373 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15374
15375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15376 # Save the log message, to keep $0 and so on meaningful, and to
15377 # report actual input values of CONFIG_FILES etc. instead of their
15378 # values after options handling.
15379 ac_log="
15380 This file was extended by libffi $as_me 3.0.11, which was
15381 generated by GNU Autoconf 2.68.  Invocation command line was
15382
15383   CONFIG_FILES    = $CONFIG_FILES
15384   CONFIG_HEADERS  = $CONFIG_HEADERS
15385   CONFIG_LINKS    = $CONFIG_LINKS
15386   CONFIG_COMMANDS = $CONFIG_COMMANDS
15387   $ $0 $@
15388
15389 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15390 "
15391
15392 _ACEOF
15393
15394 case $ac_config_files in *"
15395 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15396 esac
15397
15398 case $ac_config_headers in *"
15399 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15400 esac
15401
15402
15403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15404 # Files that config.status was made for.
15405 config_files="$ac_config_files"
15406 config_headers="$ac_config_headers"
15407 config_links="$ac_config_links"
15408 config_commands="$ac_config_commands"
15409
15410 _ACEOF
15411
15412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15413 ac_cs_usage="\
15414 \`$as_me' instantiates files and other configuration actions
15415 from templates according to the current configuration.  Unless the files
15416 and actions are specified as TAGs, all are instantiated by default.
15417
15418 Usage: $0 [OPTION]... [TAG]...
15419
15420   -h, --help       print this help, then exit
15421   -V, --version    print version number and configuration settings, then exit
15422       --config     print configuration, then exit
15423   -q, --quiet, --silent
15424                    do not print progress messages
15425   -d, --debug      don't remove temporary files
15426       --recheck    update $as_me by reconfiguring in the same conditions
15427       --file=FILE[:TEMPLATE]
15428                    instantiate the configuration file FILE
15429       --header=FILE[:TEMPLATE]
15430                    instantiate the configuration header FILE
15431
15432 Configuration files:
15433 $config_files
15434
15435 Configuration headers:
15436 $config_headers
15437
15438 Configuration links:
15439 $config_links
15440
15441 Configuration commands:
15442 $config_commands
15443
15444 Report bugs to <http://github.com/atgreen/libffi/issues>."
15445
15446 _ACEOF
15447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15448 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15449 ac_cs_version="\\
15450 libffi config.status 3.0.11
15451 configured by $0, generated by GNU Autoconf 2.68,
15452   with options \\"\$ac_cs_config\\"
15453
15454 Copyright (C) 2010 Free Software Foundation, Inc.
15455 This config.status script is free software; the Free Software Foundation
15456 gives unlimited permission to copy, distribute and modify it."
15457
15458 ac_pwd='$ac_pwd'
15459 srcdir='$srcdir'
15460 INSTALL='$INSTALL'
15461 MKDIR_P='$MKDIR_P'
15462 AWK='$AWK'
15463 test -n "\$AWK" || AWK=awk
15464 _ACEOF
15465
15466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15467 # The default lists apply if the user does not specify any file.
15468 ac_need_defaults=:
15469 while test $# != 0
15470 do
15471   case $1 in
15472   --*=?*)
15473     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15474     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15475     ac_shift=:
15476     ;;
15477   --*=)
15478     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15479     ac_optarg=
15480     ac_shift=:
15481     ;;
15482   *)
15483     ac_option=$1
15484     ac_optarg=$2
15485     ac_shift=shift
15486     ;;
15487   esac
15488
15489   case $ac_option in
15490   # Handling of the options.
15491   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15492     ac_cs_recheck=: ;;
15493   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15494     $as_echo "$ac_cs_version"; exit ;;
15495   --config | --confi | --conf | --con | --co | --c )
15496     $as_echo "$ac_cs_config"; exit ;;
15497   --debug | --debu | --deb | --de | --d | -d )
15498     debug=: ;;
15499   --file | --fil | --fi | --f )
15500     $ac_shift
15501     case $ac_optarg in
15502     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15503     '') as_fn_error $? "missing file argument" ;;
15504     esac
15505     as_fn_append CONFIG_FILES " '$ac_optarg'"
15506     ac_need_defaults=false;;
15507   --header | --heade | --head | --hea )
15508     $ac_shift
15509     case $ac_optarg in
15510     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15511     esac
15512     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15513     ac_need_defaults=false;;
15514   --he | --h)
15515     # Conflict between --help and --header
15516     as_fn_error $? "ambiguous option: \`$1'
15517 Try \`$0 --help' for more information.";;
15518   --help | --hel | -h )
15519     $as_echo "$ac_cs_usage"; exit ;;
15520   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15521   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15522     ac_cs_silent=: ;;
15523
15524   # This is an error.
15525   -*) as_fn_error $? "unrecognized option: \`$1'
15526 Try \`$0 --help' for more information." ;;
15527
15528   *) as_fn_append ac_config_targets " $1"
15529      ac_need_defaults=false ;;
15530
15531   esac
15532   shift
15533 done
15534
15535 ac_configure_extra_args=
15536
15537 if $ac_cs_silent; then
15538   exec 6>/dev/null
15539   ac_configure_extra_args="$ac_configure_extra_args --silent"
15540 fi
15541
15542 _ACEOF
15543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15544 if \$ac_cs_recheck; then
15545   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15546   shift
15547   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15548   CONFIG_SHELL='$SHELL'
15549   export CONFIG_SHELL
15550   exec "\$@"
15551 fi
15552
15553 _ACEOF
15554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15555 exec 5>>config.log
15556 {
15557   echo
15558   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15559 ## Running $as_me. ##
15560 _ASBOX
15561   $as_echo "$ac_log"
15562 } >&5
15563
15564 _ACEOF
15565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15566 #
15567 # INIT-COMMANDS
15568 #
15569 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15570 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15571 ax_enable_builddir_version="$VERSION"                  # $VERSION
15572 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15573 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15574 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15575 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15576
15577 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15578
15579
15580 # The HP-UX ksh and POSIX shell print the target directory to stdout
15581 # if CDPATH is set.
15582 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15583
15584 sed_quote_subst='$sed_quote_subst'
15585 double_quote_subst='$double_quote_subst'
15586 delay_variable_subst='$delay_variable_subst'
15587 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15588 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15589 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15590 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15591 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15592 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15593 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15594 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15595 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15596 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15597 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15598 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15599 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15600 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15601 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15602 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15603 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15604 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15605 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15606 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15607 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15608 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15609 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15610 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15611 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15612 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15613 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15614 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15615 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15616 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15617 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15618 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15619 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15620 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15621 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15622 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15623 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15624 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15625 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15626 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15627 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15628 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15629 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15630 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15631 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15632 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15633 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15634 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15635 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15636 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15637 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15638 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15639 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15640 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15641 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15642 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15643 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"`'
15644 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15645 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15646 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15647 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15648 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15649 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15650 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15651 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15652 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15653 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15654 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15655 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15656 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15657 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15658 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15659 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15660 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15661 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15662 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15663 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15664 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15665 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15666 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15667 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15668 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15669 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15670 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15671 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15672 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15673 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15674 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15675 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15676 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15677 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15678 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15679 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15680 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15681 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15682 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15683 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15684 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15685 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15686 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15687 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15688 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15689 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15690 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15691 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15692 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15693 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15694 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15695 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15696 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15697 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15698 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15699 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15700 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15701 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15702 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15703 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15704 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15705 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15706 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15707 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15708 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15709 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15710 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15711 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15712 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15713 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15714 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15715 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15716 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15717
15718 LTCC='$LTCC'
15719 LTCFLAGS='$LTCFLAGS'
15720 compiler='$compiler_DEFAULT'
15721
15722 # A function that is used when there is no print builtin or printf.
15723 func_fallback_echo ()
15724 {
15725   eval 'cat <<_LTECHO_EOF
15726 \$1
15727 _LTECHO_EOF'
15728 }
15729
15730 # Quote evaled strings.
15731 for var in SHELL \
15732 ECHO \
15733 PATH_SEPARATOR \
15734 SED \
15735 GREP \
15736 EGREP \
15737 FGREP \
15738 LD \
15739 NM \
15740 LN_S \
15741 lt_SP2NL \
15742 lt_NL2SP \
15743 reload_flag \
15744 OBJDUMP \
15745 deplibs_check_method \
15746 file_magic_cmd \
15747 file_magic_glob \
15748 want_nocaseglob \
15749 DLLTOOL \
15750 sharedlib_from_linklib_cmd \
15751 AR \
15752 AR_FLAGS \
15753 archiver_list_spec \
15754 STRIP \
15755 RANLIB \
15756 CC \
15757 CFLAGS \
15758 compiler \
15759 lt_cv_sys_global_symbol_pipe \
15760 lt_cv_sys_global_symbol_to_cdecl \
15761 lt_cv_sys_global_symbol_to_c_name_address \
15762 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15763 nm_file_list_spec \
15764 lt_prog_compiler_no_builtin_flag \
15765 lt_prog_compiler_pic \
15766 lt_prog_compiler_wl \
15767 lt_prog_compiler_static \
15768 lt_cv_prog_compiler_c_o \
15769 need_locks \
15770 MANIFEST_TOOL \
15771 DSYMUTIL \
15772 NMEDIT \
15773 LIPO \
15774 OTOOL \
15775 OTOOL64 \
15776 shrext_cmds \
15777 export_dynamic_flag_spec \
15778 whole_archive_flag_spec \
15779 compiler_needs_object \
15780 with_gnu_ld \
15781 allow_undefined_flag \
15782 no_undefined_flag \
15783 hardcode_libdir_flag_spec \
15784 hardcode_libdir_separator \
15785 exclude_expsyms \
15786 include_expsyms \
15787 file_list_spec \
15788 variables_saved_for_relink \
15789 libname_spec \
15790 library_names_spec \
15791 soname_spec \
15792 install_override_mode \
15793 finish_eval \
15794 old_striplib \
15795 striplib; do
15796     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15797     *[\\\\\\\`\\"\\\$]*)
15798       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15799       ;;
15800     *)
15801       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15802       ;;
15803     esac
15804 done
15805
15806 # Double-quote double-evaled strings.
15807 for var in reload_cmds \
15808 old_postinstall_cmds \
15809 old_postuninstall_cmds \
15810 old_archive_cmds \
15811 extract_expsyms_cmds \
15812 old_archive_from_new_cmds \
15813 old_archive_from_expsyms_cmds \
15814 archive_cmds \
15815 archive_expsym_cmds \
15816 module_cmds \
15817 module_expsym_cmds \
15818 export_symbols_cmds \
15819 prelink_cmds \
15820 postlink_cmds \
15821 postinstall_cmds \
15822 postuninstall_cmds \
15823 finish_cmds \
15824 sys_lib_search_path_spec \
15825 sys_lib_dlsearch_path_spec; do
15826     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15827     *[\\\\\\\`\\"\\\$]*)
15828       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15829       ;;
15830     *)
15831       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15832       ;;
15833     esac
15834 done
15835
15836 ac_aux_dir='$ac_aux_dir'
15837 xsi_shell='$xsi_shell'
15838 lt_shell_append='$lt_shell_append'
15839
15840 # See if we are running on zsh, and set the options which allow our
15841 # commands through without removal of \ escapes INIT.
15842 if test -n "\${ZSH_VERSION+set}" ; then
15843    setopt NO_GLOB_SUBST
15844 fi
15845
15846
15847     PACKAGE='$PACKAGE'
15848     VERSION='$VERSION'
15849     TIMESTAMP='$TIMESTAMP'
15850     RM='$RM'
15851     ofile='$ofile'
15852
15853
15854
15855 TARGETDIR="$TARGETDIR"
15856
15857 _ACEOF
15858
15859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15860
15861 # Handling of arguments.
15862 for ac_config_target in $ac_config_targets
15863 do
15864   case $ac_config_target in
15865     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15866     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
15867     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15868     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15869     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15870     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15871     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15872     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15873     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15874     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15875     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15876     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15877     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
15878
15879   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15880   esac
15881 done
15882
15883
15884 # If the user did not use the arguments to specify the items to instantiate,
15885 # then the envvar interface is used.  Set only those that are not.
15886 # We use the long form for the default assignment because of an extremely
15887 # bizarre bug on SunOS 4.1.3.
15888 if $ac_need_defaults; then
15889   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15890   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15891   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15892   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15893 fi
15894
15895 # Have a temporary directory for convenience.  Make it in the build tree
15896 # simply because there is no reason against having it here, and in addition,
15897 # creating and moving files from /tmp can sometimes cause problems.
15898 # Hook for its removal unless debugging.
15899 # Note that there is a small window in which the directory will not be cleaned:
15900 # after its creation but before its name has been assigned to `$tmp'.
15901 $debug ||
15902 {
15903   tmp= ac_tmp=
15904   trap 'exit_status=$?
15905   : "${ac_tmp:=$tmp}"
15906   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15907 ' 0
15908   trap 'as_fn_exit 1' 1 2 13 15
15909 }
15910 # Create a (secure) tmp directory for tmp files.
15911
15912 {
15913   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15914   test -d "$tmp"
15915 }  ||
15916 {
15917   tmp=./conf$$-$RANDOM
15918   (umask 077 && mkdir "$tmp")
15919 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15920 ac_tmp=$tmp
15921
15922 # Set up the scripts for CONFIG_FILES section.
15923 # No need to generate them if there are no CONFIG_FILES.
15924 # This happens for instance with `./config.status config.h'.
15925 if test -n "$CONFIG_FILES"; then
15926
15927
15928 ac_cr=`echo X | tr X '\015'`
15929 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15930 # But we know of no other shell where ac_cr would be empty at this
15931 # point, so we can use a bashism as a fallback.
15932 if test "x$ac_cr" = x; then
15933   eval ac_cr=\$\'\\r\'
15934 fi
15935 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15936 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15937   ac_cs_awk_cr='\\r'
15938 else
15939   ac_cs_awk_cr=$ac_cr
15940 fi
15941
15942 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15943 _ACEOF
15944
15945
15946 {
15947   echo "cat >conf$$subs.awk <<_ACEOF" &&
15948   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15949   echo "_ACEOF"
15950 } >conf$$subs.sh ||
15951   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15952 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15953 ac_delim='%!_!# '
15954 for ac_last_try in false false false false false :; do
15955   . ./conf$$subs.sh ||
15956     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15957
15958   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15959   if test $ac_delim_n = $ac_delim_num; then
15960     break
15961   elif $ac_last_try; then
15962     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15963   else
15964     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15965   fi
15966 done
15967 rm -f conf$$subs.sh
15968
15969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15970 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15971 _ACEOF
15972 sed -n '
15973 h
15974 s/^/S["/; s/!.*/"]=/
15975 p
15976 g
15977 s/^[^!]*!//
15978 :repl
15979 t repl
15980 s/'"$ac_delim"'$//
15981 t delim
15982 :nl
15983 h
15984 s/\(.\{148\}\)..*/\1/
15985 t more1
15986 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15987 p
15988 n
15989 b repl
15990 :more1
15991 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15992 p
15993 g
15994 s/.\{148\}//
15995 t nl
15996 :delim
15997 h
15998 s/\(.\{148\}\)..*/\1/
15999 t more2
16000 s/["\\]/\\&/g; s/^/"/; s/$/"/
16001 p
16002 b
16003 :more2
16004 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16005 p
16006 g
16007 s/.\{148\}//
16008 t delim
16009 ' <conf$$subs.awk | sed '
16010 /^[^""]/{
16011   N
16012   s/\n//
16013 }
16014 ' >>$CONFIG_STATUS || ac_write_fail=1
16015 rm -f conf$$subs.awk
16016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16017 _ACAWK
16018 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16019   for (key in S) S_is_set[key] = 1
16020   FS = "\a"
16021
16022 }
16023 {
16024   line = $ 0
16025   nfields = split(line, field, "@")
16026   substed = 0
16027   len = length(field[1])
16028   for (i = 2; i < nfields; i++) {
16029     key = field[i]
16030     keylen = length(key)
16031     if (S_is_set[key]) {
16032       value = S[key]
16033       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16034       len += length(value) + length(field[++i])
16035       substed = 1
16036     } else
16037       len += 1 + keylen
16038   }
16039
16040   print line
16041 }
16042
16043 _ACAWK
16044 _ACEOF
16045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16046 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16047   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16048 else
16049   cat
16050 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16051   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16052 _ACEOF
16053
16054 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16055 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16056 # trailing colons and then remove the whole line if VPATH becomes empty
16057 # (actually we leave an empty line to preserve line numbers).
16058 if test "x$srcdir" = x.; then
16059   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16060 h
16061 s///
16062 s/^/:/
16063 s/[      ]*$/:/
16064 s/:\$(srcdir):/:/g
16065 s/:\${srcdir}:/:/g
16066 s/:@srcdir@:/:/g
16067 s/^:*//
16068 s/:*$//
16069 x
16070 s/\(=[   ]*\).*/\1/
16071 G
16072 s/\n//
16073 s/^[^=]*=[       ]*$//
16074 }'
16075 fi
16076
16077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16078 fi # test -n "$CONFIG_FILES"
16079
16080 # Set up the scripts for CONFIG_HEADERS section.
16081 # No need to generate them if there are no CONFIG_HEADERS.
16082 # This happens for instance with `./config.status Makefile'.
16083 if test -n "$CONFIG_HEADERS"; then
16084 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16085 BEGIN {
16086 _ACEOF
16087
16088 # Transform confdefs.h into an awk script `defines.awk', embedded as
16089 # here-document in config.status, that substitutes the proper values into
16090 # config.h.in to produce config.h.
16091
16092 # Create a delimiter string that does not exist in confdefs.h, to ease
16093 # handling of long lines.
16094 ac_delim='%!_!# '
16095 for ac_last_try in false false :; do
16096   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16097   if test -z "$ac_tt"; then
16098     break
16099   elif $ac_last_try; then
16100     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16101   else
16102     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16103   fi
16104 done
16105
16106 # For the awk script, D is an array of macro values keyed by name,
16107 # likewise P contains macro parameters if any.  Preserve backslash
16108 # newline sequences.
16109
16110 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16111 sed -n '
16112 s/.\{148\}/&'"$ac_delim"'/g
16113 t rset
16114 :rset
16115 s/^[     ]*#[    ]*define[       ][      ]*/ /
16116 t def
16117 d
16118 :def
16119 s/\\$//
16120 t bsnl
16121 s/["\\]/\\&/g
16122 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16123 D["\1"]=" \3"/p
16124 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16125 d
16126 :bsnl
16127 s/["\\]/\\&/g
16128 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16129 D["\1"]=" \3\\\\\\n"\\/p
16130 t cont
16131 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16132 t cont
16133 d
16134 :cont
16135 n
16136 s/.\{148\}/&'"$ac_delim"'/g
16137 t clear
16138 :clear
16139 s/\\$//
16140 t bsnlc
16141 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16142 d
16143 :bsnlc
16144 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16145 b cont
16146 ' <confdefs.h | sed '
16147 s/'"$ac_delim"'/"\\\
16148 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16149
16150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16151   for (key in D) D_is_set[key] = 1
16152   FS = "\a"
16153 }
16154 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16155   line = \$ 0
16156   split(line, arg, " ")
16157   if (arg[1] == "#") {
16158     defundef = arg[2]
16159     mac1 = arg[3]
16160   } else {
16161     defundef = substr(arg[1], 2)
16162     mac1 = arg[2]
16163   }
16164   split(mac1, mac2, "(") #)
16165   macro = mac2[1]
16166   prefix = substr(line, 1, index(line, defundef) - 1)
16167   if (D_is_set[macro]) {
16168     # Preserve the white space surrounding the "#".
16169     print prefix "define", macro P[macro] D[macro]
16170     next
16171   } else {
16172     # Replace #undef with comments.  This is necessary, for example,
16173     # in the case of _POSIX_SOURCE, which is predefined and required
16174     # on some systems where configure will not decide to define it.
16175     if (defundef == "undef") {
16176       print "/*", prefix defundef, macro, "*/"
16177       next
16178     }
16179   }
16180 }
16181 { print }
16182 _ACAWK
16183 _ACEOF
16184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16185   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16186 fi # test -n "$CONFIG_HEADERS"
16187
16188
16189 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16190 shift
16191 for ac_tag
16192 do
16193   case $ac_tag in
16194   :[FHLC]) ac_mode=$ac_tag; continue;;
16195   esac
16196   case $ac_mode$ac_tag in
16197   :[FHL]*:*);;
16198   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16199   :[FH]-) ac_tag=-:-;;
16200   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16201   esac
16202   ac_save_IFS=$IFS
16203   IFS=:
16204   set x $ac_tag
16205   IFS=$ac_save_IFS
16206   shift
16207   ac_file=$1
16208   shift
16209
16210   case $ac_mode in
16211   :L) ac_source=$1;;
16212   :[FH])
16213     ac_file_inputs=
16214     for ac_f
16215     do
16216       case $ac_f in
16217       -) ac_f="$ac_tmp/stdin";;
16218       *) # Look for the file first in the build tree, then in the source tree
16219          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16220          # because $ac_f cannot contain `:'.
16221          test -f "$ac_f" ||
16222            case $ac_f in
16223            [\\/$]*) false;;
16224            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16225            esac ||
16226            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16227       esac
16228       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16229       as_fn_append ac_file_inputs " '$ac_f'"
16230     done
16231
16232     # Let's still pretend it is `configure' which instantiates (i.e., don't
16233     # use $as_me), people would be surprised to read:
16234     #    /* config.h.  Generated by config.status.  */
16235     configure_input='Generated from '`
16236           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16237         `' by configure.'
16238     if test x"$ac_file" != x-; then
16239       configure_input="$ac_file.  $configure_input"
16240       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16241 $as_echo "$as_me: creating $ac_file" >&6;}
16242     fi
16243     # Neutralize special characters interpreted by sed in replacement strings.
16244     case $configure_input in #(
16245     *\&* | *\|* | *\\* )
16246        ac_sed_conf_input=`$as_echo "$configure_input" |
16247        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16248     *) ac_sed_conf_input=$configure_input;;
16249     esac
16250
16251     case $ac_tag in
16252     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16253       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16254     esac
16255     ;;
16256   esac
16257
16258   ac_dir=`$as_dirname -- "$ac_file" ||
16259 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16260          X"$ac_file" : 'X\(//\)[^/]' \| \
16261          X"$ac_file" : 'X\(//\)$' \| \
16262          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16263 $as_echo X"$ac_file" |
16264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16265             s//\1/
16266             q
16267           }
16268           /^X\(\/\/\)[^/].*/{
16269             s//\1/
16270             q
16271           }
16272           /^X\(\/\/\)$/{
16273             s//\1/
16274             q
16275           }
16276           /^X\(\/\).*/{
16277             s//\1/
16278             q
16279           }
16280           s/.*/./; q'`
16281   as_dir="$ac_dir"; as_fn_mkdir_p
16282   ac_builddir=.
16283
16284 case "$ac_dir" in
16285 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16286 *)
16287   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16288   # A ".." for each directory in $ac_dir_suffix.
16289   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16290   case $ac_top_builddir_sub in
16291   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16292   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16293   esac ;;
16294 esac
16295 ac_abs_top_builddir=$ac_pwd
16296 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16297 # for backward compatibility:
16298 ac_top_builddir=$ac_top_build_prefix
16299
16300 case $srcdir in
16301   .)  # We are building in place.
16302     ac_srcdir=.
16303     ac_top_srcdir=$ac_top_builddir_sub
16304     ac_abs_top_srcdir=$ac_pwd ;;
16305   [\\/]* | ?:[\\/]* )  # Absolute name.
16306     ac_srcdir=$srcdir$ac_dir_suffix;
16307     ac_top_srcdir=$srcdir
16308     ac_abs_top_srcdir=$srcdir ;;
16309   *) # Relative name.
16310     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16311     ac_top_srcdir=$ac_top_build_prefix$srcdir
16312     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16313 esac
16314 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16315
16316
16317   case $ac_mode in
16318   :F)
16319   #
16320   # CONFIG_FILE
16321   #
16322
16323   case $INSTALL in
16324   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16325   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16326   esac
16327   ac_MKDIR_P=$MKDIR_P
16328   case $MKDIR_P in
16329   [\\/$]* | ?:[\\/]* ) ;;
16330   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16331   esac
16332 _ACEOF
16333
16334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16335 # If the template does not know about datarootdir, expand it.
16336 # FIXME: This hack should be removed a few years after 2.60.
16337 ac_datarootdir_hack=; ac_datarootdir_seen=
16338 ac_sed_dataroot='
16339 /datarootdir/ {
16340   p
16341   q
16342 }
16343 /@datadir@/p
16344 /@docdir@/p
16345 /@infodir@/p
16346 /@localedir@/p
16347 /@mandir@/p'
16348 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16349 *datarootdir*) ac_datarootdir_seen=yes;;
16350 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16351   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16352 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16353 _ACEOF
16354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16355   ac_datarootdir_hack='
16356   s&@datadir@&$datadir&g
16357   s&@docdir@&$docdir&g
16358   s&@infodir@&$infodir&g
16359   s&@localedir@&$localedir&g
16360   s&@mandir@&$mandir&g
16361   s&\\\${datarootdir}&$datarootdir&g' ;;
16362 esac
16363 _ACEOF
16364
16365 # Neutralize VPATH when `$srcdir' = `.'.
16366 # Shell code in configure.ac might set extrasub.
16367 # FIXME: do we really want to maintain this feature?
16368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16369 ac_sed_extra="$ac_vpsub
16370 $extrasub
16371 _ACEOF
16372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16373 :t
16374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16375 s|@configure_input@|$ac_sed_conf_input|;t t
16376 s&@top_builddir@&$ac_top_builddir_sub&;t t
16377 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16378 s&@srcdir@&$ac_srcdir&;t t
16379 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16380 s&@top_srcdir@&$ac_top_srcdir&;t t
16381 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16382 s&@builddir@&$ac_builddir&;t t
16383 s&@abs_builddir@&$ac_abs_builddir&;t t
16384 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16385 s&@INSTALL@&$ac_INSTALL&;t t
16386 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16387 $ac_datarootdir_hack
16388 "
16389 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16390   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16391
16392 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16393   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16394   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16395       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16396   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16397 which seems to be undefined.  Please make sure it is defined" >&5
16398 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16399 which seems to be undefined.  Please make sure it is defined" >&2;}
16400
16401   rm -f "$ac_tmp/stdin"
16402   case $ac_file in
16403   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16404   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16405   esac \
16406   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16407  ;;
16408   :H)
16409   #
16410   # CONFIG_HEADER
16411   #
16412   if test x"$ac_file" != x-; then
16413     {
16414       $as_echo "/* $configure_input  */" \
16415       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16416     } >"$ac_tmp/config.h" \
16417       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16418     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16419       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16420 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16421     else
16422       rm -f "$ac_file"
16423       mv "$ac_tmp/config.h" "$ac_file" \
16424         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16425     fi
16426   else
16427     $as_echo "/* $configure_input  */" \
16428       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16429       || as_fn_error $? "could not create -" "$LINENO" 5
16430   fi
16431 # Compute "$ac_file"'s index in $config_headers.
16432 _am_arg="$ac_file"
16433 _am_stamp_count=1
16434 for _am_header in $config_headers :; do
16435   case $_am_header in
16436     $_am_arg | $_am_arg:* )
16437       break ;;
16438     * )
16439       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16440   esac
16441 done
16442 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16443 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16444          X"$_am_arg" : 'X\(//\)[^/]' \| \
16445          X"$_am_arg" : 'X\(//\)$' \| \
16446          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16447 $as_echo X"$_am_arg" |
16448     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16449             s//\1/
16450             q
16451           }
16452           /^X\(\/\/\)[^/].*/{
16453             s//\1/
16454             q
16455           }
16456           /^X\(\/\/\)$/{
16457             s//\1/
16458             q
16459           }
16460           /^X\(\/\).*/{
16461             s//\1/
16462             q
16463           }
16464           s/.*/./; q'`/stamp-h$_am_stamp_count
16465  ;;
16466   :L)
16467   #
16468   # CONFIG_LINK
16469   #
16470
16471   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16472     :
16473   else
16474     # Prefer the file from the source tree if names are identical.
16475     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16476       ac_source=$srcdir/$ac_source
16477     fi
16478
16479     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16480 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16481
16482     if test ! -r "$ac_source"; then
16483       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16484     fi
16485     rm -f "$ac_file"
16486
16487     # Try a relative symlink, then a hard link, then a copy.
16488     case $ac_source in
16489     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16490         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16491     esac
16492     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16493       ln "$ac_source" "$ac_file" 2>/dev/null ||
16494       cp -p "$ac_source" "$ac_file" ||
16495       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16496   fi
16497  ;;
16498   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16499 $as_echo "$as_me: executing $ac_file commands" >&6;}
16500  ;;
16501   esac
16502
16503
16504   case $ac_file$ac_mode in
16505     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16506   if test ".$ax_enable_builddir" = ".." ; then
16507     if test -f "$top_srcdir/Makefile" ; then
16508       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16509 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16510     else
16511       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16512 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16513     fi
16514   else
16515     if test -f "$ac_top_srcdir/Makefile" ; then
16516       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16517       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16518     fi
16519     if test -f "$ac_top_srcdir/Makefile" ; then
16520         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16521         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16522       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16523       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16524       then rm $ac_top_srcdir/Makefile ; fi
16525       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16526     fi
16527     if test ! -f "$ac_top_srcdir/Makefile" ; then
16528       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16529 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16530       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16531 /^\$/n
16532 x
16533 /^\$/bS
16534 x
16535 /\\\\\$/{H;d;}
16536 {H;s/.*//;x;}
16537 bM
16538 :S
16539 x
16540 /\\\\\$/{h;d;}
16541 {h;s/.*//;x;}
16542 :M
16543 s/\\(\\n\\)     /\\1 /g
16544 /^      /d
16545 /^[      ]*[\\#]/d
16546 /^VPATH *=/d
16547 s/^srcdir *=.*/srcdir = ./
16548 s/^top_srcdir *=.*/top_srcdir = ./
16549 /[:=]/!d
16550 /^\\./d
16551 / = /b
16552 / .= /b
16553 /:/!b
16554 s/:.*/:/
16555 s/ /  /g
16556 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16557 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16558 s/  / /g
16559 /^all all-all[ :]/i\\
16560 all-configured : all-all
16561 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16562 /-all-all/d
16563 a\\
16564         @ HOST="\$(HOST)\" \\\\\\
16565         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16566         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16567         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16568         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16569         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16570         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16571         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16572         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16573         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16574 /dist-all *:/a\\
16575         @ HOST="\$(HOST)\" \\\\\\
16576         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16577         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16578         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16579         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16580         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16581         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16582         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16583         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16584         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16585 /dist-[a-zA-Z0-9]*-all *:/a\\
16586         @ HOST="\$(HOST)\" \\\\\\
16587         ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16588         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16589         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16590         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16591         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16592         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16593         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16594         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16595         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16596 /distclean-all *:/a\\
16597         @ HOST="\$(HOST)\" \\\\\\
16598         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16599         ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16600         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16601         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16602         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16603         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16604         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16605         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16606         ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16607         ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16608         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16609 _EOF
16610       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
16611       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16612       if test -f "$ac_top_srcdir/Makefile.mk" ; then
16613         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16614 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16615         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16616       fi ; xxxx="####"
16617       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16618       # sanity check
16619       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16620         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16621 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16622         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
16623           >$ac_top_srcdir/Makefile~
16624         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16625       fi
16626     else
16627       xxxx="\\#\\#\\#\\#"
16628       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16629       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16630       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16631         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
16632         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
16633       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16634         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16635 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16636         rm "$tmp/mkfile.tmp"
16637       else
16638         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16639 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16640         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16641       fi
16642     fi
16643     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16644 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16645     xxxx="####"
16646     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16647   fi
16648  ;;
16649     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16650   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16651   # are listed without --file.  Let's play safe and only enable the eval
16652   # if we detect the quoting.
16653   case $CONFIG_FILES in
16654   *\'*) eval set x "$CONFIG_FILES" ;;
16655   *)   set x $CONFIG_FILES ;;
16656   esac
16657   shift
16658   for mf
16659   do
16660     # Strip MF so we end up with the name of the file.
16661     mf=`echo "$mf" | sed -e 's/:.*$//'`
16662     # Check whether this is an Automake generated Makefile or not.
16663     # We used to match only the files named `Makefile.in', but
16664     # some people rename them; so instead we look at the file content.
16665     # Grep'ing the first line is not enough: some people post-process
16666     # each Makefile.in and add a new line on top of each file to say so.
16667     # Grep'ing the whole file is not good either: AIX grep has a line
16668     # limit of 2048, but all sed's we know have understand at least 4000.
16669     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16670       dirpart=`$as_dirname -- "$mf" ||
16671 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16672          X"$mf" : 'X\(//\)[^/]' \| \
16673          X"$mf" : 'X\(//\)$' \| \
16674          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16675 $as_echo X"$mf" |
16676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16677             s//\1/
16678             q
16679           }
16680           /^X\(\/\/\)[^/].*/{
16681             s//\1/
16682             q
16683           }
16684           /^X\(\/\/\)$/{
16685             s//\1/
16686             q
16687           }
16688           /^X\(\/\).*/{
16689             s//\1/
16690             q
16691           }
16692           s/.*/./; q'`
16693     else
16694       continue
16695     fi
16696     # Extract the definition of DEPDIR, am__include, and am__quote
16697     # from the Makefile without running `make'.
16698     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16699     test -z "$DEPDIR" && continue
16700     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16701     test -z "am__include" && continue
16702     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16703     # When using ansi2knr, U may be empty or an underscore; expand it
16704     U=`sed -n 's/^U = //p' < "$mf"`
16705     # Find all dependency output files, they are included files with
16706     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16707     # simplest approach to changing $(DEPDIR) to its actual value in the
16708     # expansion.
16709     for file in `sed -n "
16710       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16711          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16712       # Make sure the directory exists.
16713       test -f "$dirpart/$file" && continue
16714       fdir=`$as_dirname -- "$file" ||
16715 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16716          X"$file" : 'X\(//\)[^/]' \| \
16717          X"$file" : 'X\(//\)$' \| \
16718          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16719 $as_echo X"$file" |
16720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16721             s//\1/
16722             q
16723           }
16724           /^X\(\/\/\)[^/].*/{
16725             s//\1/
16726             q
16727           }
16728           /^X\(\/\/\)$/{
16729             s//\1/
16730             q
16731           }
16732           /^X\(\/\).*/{
16733             s//\1/
16734             q
16735           }
16736           s/.*/./; q'`
16737       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16738       # echo "creating $dirpart/$file"
16739       echo '# dummy' > "$dirpart/$file"
16740     done
16741   done
16742 }
16743  ;;
16744     "libtool":C)
16745
16746     # See if we are running on zsh, and set the options which allow our
16747     # commands through without removal of \ escapes.
16748     if test -n "${ZSH_VERSION+set}" ; then
16749       setopt NO_GLOB_SUBST
16750     fi
16751
16752     cfgfile="${ofile}T"
16753     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16754     $RM "$cfgfile"
16755
16756     cat <<_LT_EOF >> "$cfgfile"
16757 #! $SHELL
16758
16759 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16760 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16761 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16762 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16763 #
16764 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16765 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16766 #                 Foundation, Inc.
16767 #   Written by Gordon Matzigkeit, 1996
16768 #
16769 #   This file is part of GNU Libtool.
16770 #
16771 # GNU Libtool is free software; you can redistribute it and/or
16772 # modify it under the terms of the GNU General Public License as
16773 # published by the Free Software Foundation; either version 2 of
16774 # the License, or (at your option) any later version.
16775 #
16776 # As a special exception to the GNU General Public License,
16777 # if you distribute this file as part of a program or library that
16778 # is built using GNU Libtool, you may include this file under the
16779 # same distribution terms that you use for the rest of that program.
16780 #
16781 # GNU Libtool is distributed in the hope that it will be useful,
16782 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16783 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16784 # GNU General Public License for more details.
16785 #
16786 # You should have received a copy of the GNU General Public License
16787 # along with GNU Libtool; see the file COPYING.  If not, a copy
16788 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16789 # obtained by writing to the Free Software Foundation, Inc.,
16790 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16791
16792
16793 # The names of the tagged configurations supported by this script.
16794 available_tags=""
16795
16796 # ### BEGIN LIBTOOL CONFIG
16797
16798 # Which release of libtool.m4 was used?
16799 macro_version=$macro_version
16800 macro_revision=$macro_revision
16801
16802 # Whether or not to build shared libraries.
16803 build_libtool_libs=$enable_shared
16804
16805 # Whether or not to build static libraries.
16806 build_old_libs=$enable_static
16807
16808 # What type of objects to build.
16809 pic_mode=$pic_mode
16810
16811 # Whether or not to optimize for fast installation.
16812 fast_install=$enable_fast_install
16813
16814 # Shell to use when invoking shell scripts.
16815 SHELL=$lt_SHELL
16816
16817 # An echo program that protects backslashes.
16818 ECHO=$lt_ECHO
16819
16820 # The PATH separator for the build system.
16821 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16822
16823 # The host system.
16824 host_alias=$host_alias
16825 host=$host
16826 host_os=$host_os
16827
16828 # The build system.
16829 build_alias=$build_alias
16830 build=$build
16831 build_os=$build_os
16832
16833 # A sed program that does not truncate output.
16834 SED=$lt_SED
16835
16836 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16837 Xsed="\$SED -e 1s/^X//"
16838
16839 # A grep program that handles long lines.
16840 GREP=$lt_GREP
16841
16842 # An ERE matcher.
16843 EGREP=$lt_EGREP
16844
16845 # A literal string matcher.
16846 FGREP=$lt_FGREP
16847
16848 # A BSD- or MS-compatible name lister.
16849 NM=$lt_NM
16850
16851 # Whether we need soft or hard links.
16852 LN_S=$lt_LN_S
16853
16854 # What is the maximum length of a command?
16855 max_cmd_len=$max_cmd_len
16856
16857 # Object file suffix (normally "o").
16858 objext=$ac_objext
16859
16860 # Executable file suffix (normally "").
16861 exeext=$exeext
16862
16863 # whether the shell understands "unset".
16864 lt_unset=$lt_unset
16865
16866 # turn spaces into newlines.
16867 SP2NL=$lt_lt_SP2NL
16868
16869 # turn newlines into spaces.
16870 NL2SP=$lt_lt_NL2SP
16871
16872 # convert \$build file names to \$host format.
16873 to_host_file_cmd=$lt_cv_to_host_file_cmd
16874
16875 # convert \$build files to toolchain format.
16876 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16877
16878 # An object symbol dumper.
16879 OBJDUMP=$lt_OBJDUMP
16880
16881 # Method to check whether dependent libraries are shared objects.
16882 deplibs_check_method=$lt_deplibs_check_method
16883
16884 # Command to use when deplibs_check_method = "file_magic".
16885 file_magic_cmd=$lt_file_magic_cmd
16886
16887 # How to find potential files when deplibs_check_method = "file_magic".
16888 file_magic_glob=$lt_file_magic_glob
16889
16890 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16891 want_nocaseglob=$lt_want_nocaseglob
16892
16893 # DLL creation program.
16894 DLLTOOL=$lt_DLLTOOL
16895
16896 # Command to associate shared and link libraries.
16897 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16898
16899 # The archiver.
16900 AR=$lt_AR
16901
16902 # Flags to create an archive.
16903 AR_FLAGS=$lt_AR_FLAGS
16904
16905 # How to feed a file listing to the archiver.
16906 archiver_list_spec=$lt_archiver_list_spec
16907
16908 # A symbol stripping program.
16909 STRIP=$lt_STRIP
16910
16911 # Commands used to install an old-style archive.
16912 RANLIB=$lt_RANLIB
16913 old_postinstall_cmds=$lt_old_postinstall_cmds
16914 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16915
16916 # Whether to use a lock for old archive extraction.
16917 lock_old_archive_extraction=$lock_old_archive_extraction
16918
16919 # A C compiler.
16920 LTCC=$lt_CC
16921
16922 # LTCC compiler flags.
16923 LTCFLAGS=$lt_CFLAGS
16924
16925 # Take the output of nm and produce a listing of raw symbols and C names.
16926 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16927
16928 # Transform the output of nm in a proper C declaration.
16929 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16930
16931 # Transform the output of nm in a C name address pair.
16932 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16933
16934 # Transform the output of nm in a C name address pair when lib prefix is needed.
16935 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16936
16937 # Specify filename containing input files for \$NM.
16938 nm_file_list_spec=$lt_nm_file_list_spec
16939
16940 # The root where to search for dependent libraries,and in which our libraries should be installed.
16941 lt_sysroot=$lt_sysroot
16942
16943 # The name of the directory that contains temporary libtool files.
16944 objdir=$objdir
16945
16946 # Used to examine libraries when file_magic_cmd begins with "file".
16947 MAGIC_CMD=$MAGIC_CMD
16948
16949 # Must we lock files when doing compilation?
16950 need_locks=$lt_need_locks
16951
16952 # Manifest tool.
16953 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16954
16955 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16956 DSYMUTIL=$lt_DSYMUTIL
16957
16958 # Tool to change global to local symbols on Mac OS X.
16959 NMEDIT=$lt_NMEDIT
16960
16961 # Tool to manipulate fat objects and archives on Mac OS X.
16962 LIPO=$lt_LIPO
16963
16964 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16965 OTOOL=$lt_OTOOL
16966
16967 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16968 OTOOL64=$lt_OTOOL64
16969
16970 # Old archive suffix (normally "a").
16971 libext=$libext
16972
16973 # Shared library suffix (normally ".so").
16974 shrext_cmds=$lt_shrext_cmds
16975
16976 # The commands to extract the exported symbol list from a shared archive.
16977 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16978
16979 # Variables whose values should be saved in libtool wrapper scripts and
16980 # restored at link time.
16981 variables_saved_for_relink=$lt_variables_saved_for_relink
16982
16983 # Do we need the "lib" prefix for modules?
16984 need_lib_prefix=$need_lib_prefix
16985
16986 # Do we need a version for libraries?
16987 need_version=$need_version
16988
16989 # Library versioning type.
16990 version_type=$version_type
16991
16992 # Shared library runtime path variable.
16993 runpath_var=$runpath_var
16994
16995 # Shared library path variable.
16996 shlibpath_var=$shlibpath_var
16997
16998 # Is shlibpath searched before the hard-coded library search path?
16999 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17000
17001 # Format of library name prefix.
17002 libname_spec=$lt_libname_spec
17003
17004 # List of archive names.  First name is the real one, the rest are links.
17005 # The last name is the one that the linker finds with -lNAME
17006 library_names_spec=$lt_library_names_spec
17007
17008 # The coded name of the library, if different from the real name.
17009 soname_spec=$lt_soname_spec
17010
17011 # Permission mode override for installation of shared libraries.
17012 install_override_mode=$lt_install_override_mode
17013
17014 # Command to use after installation of a shared archive.
17015 postinstall_cmds=$lt_postinstall_cmds
17016
17017 # Command to use after uninstallation of a shared archive.
17018 postuninstall_cmds=$lt_postuninstall_cmds
17019
17020 # Commands used to finish a libtool library installation in a directory.
17021 finish_cmds=$lt_finish_cmds
17022
17023 # As "finish_cmds", except a single script fragment to be evaled but
17024 # not shown.
17025 finish_eval=$lt_finish_eval
17026
17027 # Whether we should hardcode library paths into libraries.
17028 hardcode_into_libs=$hardcode_into_libs
17029
17030 # Compile-time system search path for libraries.
17031 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17032
17033 # Run-time system search path for libraries.
17034 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17035
17036 # Whether dlopen is supported.
17037 dlopen_support=$enable_dlopen
17038
17039 # Whether dlopen of programs is supported.
17040 dlopen_self=$enable_dlopen_self
17041
17042 # Whether dlopen of statically linked programs is supported.
17043 dlopen_self_static=$enable_dlopen_self_static
17044
17045 # Commands to strip libraries.
17046 old_striplib=$lt_old_striplib
17047 striplib=$lt_striplib
17048
17049
17050 # The linker used to build libraries.
17051 LD=$lt_LD
17052
17053 # How to create reloadable object files.
17054 reload_flag=$lt_reload_flag
17055 reload_cmds=$lt_reload_cmds
17056
17057 # Commands used to build an old-style archive.
17058 old_archive_cmds=$lt_old_archive_cmds
17059
17060 # A language specific compiler.
17061 CC=$lt_compiler
17062
17063 # Is the compiler the GNU compiler?
17064 with_gcc=$GCC
17065
17066 # Compiler flag to turn off builtin functions.
17067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17068
17069 # Additional compiler flags for building library objects.
17070 pic_flag=$lt_lt_prog_compiler_pic
17071
17072 # How to pass a linker flag through the compiler.
17073 wl=$lt_lt_prog_compiler_wl
17074
17075 # Compiler flag to prevent dynamic linking.
17076 link_static_flag=$lt_lt_prog_compiler_static
17077
17078 # Does compiler simultaneously support -c and -o options?
17079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17080
17081 # Whether or not to add -lc for building shared libraries.
17082 build_libtool_need_lc=$archive_cmds_need_lc
17083
17084 # Whether or not to disallow shared libs when runtime libs are static.
17085 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17086
17087 # Compiler flag to allow reflexive dlopens.
17088 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17089
17090 # Compiler flag to generate shared objects directly from archives.
17091 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17092
17093 # Whether the compiler copes with passing no objects directly.
17094 compiler_needs_object=$lt_compiler_needs_object
17095
17096 # Create an old-style archive from a shared archive.
17097 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17098
17099 # Create a temporary old-style archive to link instead of a shared archive.
17100 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17101
17102 # Commands used to build a shared archive.
17103 archive_cmds=$lt_archive_cmds
17104 archive_expsym_cmds=$lt_archive_expsym_cmds
17105
17106 # Commands used to build a loadable module if different from building
17107 # a shared archive.
17108 module_cmds=$lt_module_cmds
17109 module_expsym_cmds=$lt_module_expsym_cmds
17110
17111 # Whether we are building with GNU ld or not.
17112 with_gnu_ld=$lt_with_gnu_ld
17113
17114 # Flag that allows shared libraries with undefined symbols to be built.
17115 allow_undefined_flag=$lt_allow_undefined_flag
17116
17117 # Flag that enforces no undefined symbols.
17118 no_undefined_flag=$lt_no_undefined_flag
17119
17120 # Flag to hardcode \$libdir into a binary during linking.
17121 # This must work even if \$libdir does not exist
17122 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17123
17124 # Whether we need a single "-rpath" flag with a separated argument.
17125 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17126
17127 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17128 # DIR into the resulting binary.
17129 hardcode_direct=$hardcode_direct
17130
17131 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17132 # DIR into the resulting binary and the resulting library dependency is
17133 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17134 # library is relocated.
17135 hardcode_direct_absolute=$hardcode_direct_absolute
17136
17137 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17138 # into the resulting binary.
17139 hardcode_minus_L=$hardcode_minus_L
17140
17141 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17142 # into the resulting binary.
17143 hardcode_shlibpath_var=$hardcode_shlibpath_var
17144
17145 # Set to "yes" if building a shared library automatically hardcodes DIR
17146 # into the library and all subsequent libraries and executables linked
17147 # against it.
17148 hardcode_automatic=$hardcode_automatic
17149
17150 # Set to yes if linker adds runtime paths of dependent libraries
17151 # to runtime path list.
17152 inherit_rpath=$inherit_rpath
17153
17154 # Whether libtool must link a program against all its dependency libraries.
17155 link_all_deplibs=$link_all_deplibs
17156
17157 # Set to "yes" if exported symbols are required.
17158 always_export_symbols=$always_export_symbols
17159
17160 # The commands to list exported symbols.
17161 export_symbols_cmds=$lt_export_symbols_cmds
17162
17163 # Symbols that should not be listed in the preloaded symbols.
17164 exclude_expsyms=$lt_exclude_expsyms
17165
17166 # Symbols that must always be exported.
17167 include_expsyms=$lt_include_expsyms
17168
17169 # Commands necessary for linking programs (against libraries) with templates.
17170 prelink_cmds=$lt_prelink_cmds
17171
17172 # Commands necessary for finishing linking programs.
17173 postlink_cmds=$lt_postlink_cmds
17174
17175 # Specify filename containing input files.
17176 file_list_spec=$lt_file_list_spec
17177
17178 # How to hardcode a shared library path into an executable.
17179 hardcode_action=$hardcode_action
17180
17181 # ### END LIBTOOL CONFIG
17182
17183 _LT_EOF
17184
17185   case $host_os in
17186   aix3*)
17187     cat <<\_LT_EOF >> "$cfgfile"
17188 # AIX sometimes has problems with the GCC collect2 program.  For some
17189 # reason, if we set the COLLECT_NAMES environment variable, the problems
17190 # vanish in a puff of smoke.
17191 if test "X${COLLECT_NAMES+set}" != Xset; then
17192   COLLECT_NAMES=
17193   export COLLECT_NAMES
17194 fi
17195 _LT_EOF
17196     ;;
17197   esac
17198
17199
17200 ltmain="$ac_aux_dir/ltmain.sh"
17201
17202
17203   # We use sed instead of cat because bash on DJGPP gets confused if
17204   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17205   # text mode, it properly converts lines to CR/LF.  This bash problem
17206   # is reportedly fixed, but why not run on old versions too?
17207   sed '$q' "$ltmain" >> "$cfgfile" \
17208      || (rm -f "$cfgfile"; exit 1)
17209
17210   if test x"$xsi_shell" = xyes; then
17211   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17212 func_dirname ()\
17213 {\
17214 \    case ${1} in\
17215 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17216 \      *  ) func_dirname_result="${3}" ;;\
17217 \    esac\
17218 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17219   && mv -f "$cfgfile.tmp" "$cfgfile" \
17220     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17221 test 0 -eq $? || _lt_function_replace_fail=:
17222
17223
17224   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17225 func_basename ()\
17226 {\
17227 \    func_basename_result="${1##*/}"\
17228 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17229   && mv -f "$cfgfile.tmp" "$cfgfile" \
17230     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17231 test 0 -eq $? || _lt_function_replace_fail=:
17232
17233
17234   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17235 func_dirname_and_basename ()\
17236 {\
17237 \    case ${1} in\
17238 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17239 \      *  ) func_dirname_result="${3}" ;;\
17240 \    esac\
17241 \    func_basename_result="${1##*/}"\
17242 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17243   && mv -f "$cfgfile.tmp" "$cfgfile" \
17244     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17245 test 0 -eq $? || _lt_function_replace_fail=:
17246
17247
17248   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17249 func_stripname ()\
17250 {\
17251 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17252 \    # positional parameters, so assign one to ordinary parameter first.\
17253 \    func_stripname_result=${3}\
17254 \    func_stripname_result=${func_stripname_result#"${1}"}\
17255 \    func_stripname_result=${func_stripname_result%"${2}"}\
17256 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17257   && mv -f "$cfgfile.tmp" "$cfgfile" \
17258     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17259 test 0 -eq $? || _lt_function_replace_fail=:
17260
17261
17262   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17263 func_split_long_opt ()\
17264 {\
17265 \    func_split_long_opt_name=${1%%=*}\
17266 \    func_split_long_opt_arg=${1#*=}\
17267 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17268   && mv -f "$cfgfile.tmp" "$cfgfile" \
17269     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17270 test 0 -eq $? || _lt_function_replace_fail=:
17271
17272
17273   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17274 func_split_short_opt ()\
17275 {\
17276 \    func_split_short_opt_arg=${1#??}\
17277 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17278 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17279   && mv -f "$cfgfile.tmp" "$cfgfile" \
17280     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17281 test 0 -eq $? || _lt_function_replace_fail=:
17282
17283
17284   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17285 func_lo2o ()\
17286 {\
17287 \    case ${1} in\
17288 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17289 \      *)    func_lo2o_result=${1} ;;\
17290 \    esac\
17291 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17292   && mv -f "$cfgfile.tmp" "$cfgfile" \
17293     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17294 test 0 -eq $? || _lt_function_replace_fail=:
17295
17296
17297   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17298 func_xform ()\
17299 {\
17300     func_xform_result=${1%.*}.lo\
17301 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17302   && mv -f "$cfgfile.tmp" "$cfgfile" \
17303     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17304 test 0 -eq $? || _lt_function_replace_fail=:
17305
17306
17307   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17308 func_arith ()\
17309 {\
17310     func_arith_result=$(( $* ))\
17311 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17312   && mv -f "$cfgfile.tmp" "$cfgfile" \
17313     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17314 test 0 -eq $? || _lt_function_replace_fail=:
17315
17316
17317   sed -e '/^func_len ()$/,/^} # func_len /c\
17318 func_len ()\
17319 {\
17320     func_len_result=${#1}\
17321 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17322   && mv -f "$cfgfile.tmp" "$cfgfile" \
17323     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17324 test 0 -eq $? || _lt_function_replace_fail=:
17325
17326 fi
17327
17328 if test x"$lt_shell_append" = xyes; then
17329   sed -e '/^func_append ()$/,/^} # func_append /c\
17330 func_append ()\
17331 {\
17332     eval "${1}+=\\${2}"\
17333 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17334   && mv -f "$cfgfile.tmp" "$cfgfile" \
17335     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17336 test 0 -eq $? || _lt_function_replace_fail=:
17337
17338
17339   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17340 func_append_quoted ()\
17341 {\
17342 \    func_quote_for_eval "${2}"\
17343 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17344 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17345   && mv -f "$cfgfile.tmp" "$cfgfile" \
17346     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17347 test 0 -eq $? || _lt_function_replace_fail=:
17348
17349
17350   # Save a `func_append' function call where possible by direct use of '+='
17351   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17352     && mv -f "$cfgfile.tmp" "$cfgfile" \
17353       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17354   test 0 -eq $? || _lt_function_replace_fail=:
17355 else
17356   # Save a `func_append' function call even when '+=' is not available
17357   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17358     && mv -f "$cfgfile.tmp" "$cfgfile" \
17359       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17360   test 0 -eq $? || _lt_function_replace_fail=:
17361 fi
17362
17363 if test x"$_lt_function_replace_fail" = x":"; then
17364   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17365 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17366 fi
17367
17368
17369    mv -f "$cfgfile" "$ofile" ||
17370     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17371   chmod +x "$ofile"
17372
17373  ;;
17374     "include":C) test -d include || mkdir include ;;
17375     "src":C)
17376 test -d src || mkdir src
17377 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17378  ;;
17379
17380   esac
17381 done # for ac_tag
17382
17383
17384 as_fn_exit 0
17385 _ACEOF
17386 ac_clean_files=$ac_clean_files_save
17387
17388 test $ac_write_fail = 0 ||
17389   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17390
17391
17392 # configure is writing to config.log, and then calls config.status.
17393 # config.status does its own redirection, appending to config.log.
17394 # Unfortunately, on DOS this fails, as config.log is still kept open
17395 # by configure, so config.status won't be able to write to it; its
17396 # output is simply discarded.  So we exec the FD to /dev/null,
17397 # effectively closing config.log, so it can be properly (re)opened and
17398 # appended to by config.status.  When coming back to configure, we
17399 # need to make the FD available again.
17400 if test "$no_create" != yes; then
17401   ac_cs_success=:
17402   ac_config_status_args=
17403   test "$silent" = yes &&
17404     ac_config_status_args="$ac_config_status_args --quiet"
17405   exec 5>/dev/null
17406   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17407   exec 5>>config.log
17408   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17409   # would make configure fail if this is the last instruction.
17410   $ac_cs_success || as_fn_exit 1
17411 fi
17412 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17413   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17414 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17415 fi
17416