Darwin12 fix
[platform/upstream/libffi.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libffi 3.0.11.
4 #
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://github.com/atgreen/libffi/issues about your
251 $0: system, including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libffi'
572 PACKAGE_TARNAME='libffi'
573 PACKAGE_VERSION='3.0.11'
574 PACKAGE_STRING='libffi 3.0.11'
575 PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
576 PACKAGE_URL=''
577
578 # Factoring default headers for most tests.
579 ac_includes_default="\
580 #include <stdio.h>
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
583 #endif
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
586 #endif
587 #ifdef STDC_HEADERS
588 # include <stdlib.h>
589 # include <stddef.h>
590 #else
591 # ifdef HAVE_STDLIB_H
592 #  include <stdlib.h>
593 # endif
594 #endif
595 #ifdef HAVE_STRING_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597 #  include <memory.h>
598 # endif
599 # include <string.h>
600 #endif
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
603 #endif
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
606 #endif
607 #ifdef HAVE_STDINT_H
608 # include <stdint.h>
609 #endif
610 #ifdef HAVE_UNISTD_H
611 # include <unistd.h>
612 #endif"
613
614 ac_subst_vars='am__EXEEXT_FALSE
615 am__EXEEXT_TRUE
616 LTLIBOBJS
617 LIBOBJS
618 toolexeclibdir
619 toolexecdir
620 FFI_DEBUG_FALSE
621 FFI_DEBUG_TRUE
622 TARGETDIR
623 TARGET
624 FFI_EXEC_TRAMPOLINE_TABLE
625 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
626 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
627 sys_symbol_underscore
628 HAVE_LONG_DOUBLE
629 ALLOCA
630 TILE_FALSE
631 TILE_TRUE
632 PA64_HPUX_FALSE
633 PA64_HPUX_TRUE
634 PA_HPUX_FALSE
635 PA_HPUX_TRUE
636 PA_LINUX_FALSE
637 PA_LINUX_TRUE
638 SH64_FALSE
639 SH64_TRUE
640 SH_FALSE
641 SH_TRUE
642 X86_64_FALSE
643 X86_64_TRUE
644 S390_FALSE
645 S390_TRUE
646 FRV_FALSE
647 FRV_TRUE
648 LIBFFI_CRIS_FALSE
649 LIBFFI_CRIS_TRUE
650 AVR32_FALSE
651 AVR32_TRUE
652 ARM_FALSE
653 ARM_TRUE
654 POWERPC_FREEBSD_FALSE
655 POWERPC_FREEBSD_TRUE
656 POWERPC_DARWIN_FALSE
657 POWERPC_DARWIN_TRUE
658 POWERPC_AIX_FALSE
659 POWERPC_AIX_TRUE
660 POWERPC_FALSE
661 POWERPC_TRUE
662 MOXIE_FALSE
663 MOXIE_TRUE
664 M68K_FALSE
665 M68K_TRUE
666 M32R_FALSE
667 M32R_TRUE
668 IA64_FALSE
669 IA64_TRUE
670 ALPHA_FALSE
671 ALPHA_TRUE
672 X86_DARWIN_FALSE
673 X86_DARWIN_TRUE
674 X86_WIN64_FALSE
675 X86_WIN64_TRUE
676 X86_WIN32_FALSE
677 X86_WIN32_TRUE
678 X86_FREEBSD_FALSE
679 X86_FREEBSD_TRUE
680 X86_FALSE
681 X86_TRUE
682 SPARC_FALSE
683 SPARC_TRUE
684 BFIN_FALSE
685 BFIN_TRUE
686 MIPS_FALSE
687 MIPS_TRUE
688 AM_LTLDFLAGS
689 AM_RUNTESTFLAGS
690 TESTSUBDIR_FALSE
691 TESTSUBDIR_TRUE
692 MAINT
693 MAINTAINER_MODE_FALSE
694 MAINTAINER_MODE_TRUE
695 PRTDIAG
696 CPP
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 MANIFEST_TOOL
703 RANLIB
704 ac_ct_AR
705 AR
706 DLLTOOL
707 OBJDUMP
708 LN_S
709 NM
710 ac_ct_DUMPBIN
711 DUMPBIN
712 LD
713 FGREP
714 EGREP
715 GREP
716 SED
717 LIBTOOL
718 am__fastdepCCAS_FALSE
719 am__fastdepCCAS_TRUE
720 CCASDEPMODE
721 CCASFLAGS
722 CCAS
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 am__nodep
727 AMDEPBACKSLASH
728 AMDEP_FALSE
729 AMDEP_TRUE
730 am__quote
731 am__include
732 DEPDIR
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 am__untar
741 am__tar
742 AMTAR
743 am__leading_dot
744 SET_MAKE
745 AWK
746 mkdir_p
747 MKDIR_P
748 INSTALL_STRIP_PROGRAM
749 STRIP
750 install_sh
751 MAKEINFO
752 AUTOHEADER
753 AUTOMAKE
754 AUTOCONF
755 ACLOCAL
756 VERSION
757 PACKAGE
758 CYGPATH_W
759 am__isrc
760 INSTALL_DATA
761 INSTALL_SCRIPT
762 INSTALL_PROGRAM
763 ax_enable_builddir_sed
764 target_os
765 target_vendor
766 target_cpu
767 target
768 host_os
769 host_vendor
770 host_cpu
771 host
772 build_os
773 build_vendor
774 build_cpu
775 build
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL'
814 ac_subst_files=''
815 ac_user_opts='
816 enable_option_checking
817 enable_builddir
818 enable_dependency_tracking
819 enable_shared
820 enable_static
821 with_pic
822 enable_fast_install
823 with_gnu_ld
824 with_sysroot
825 enable_libtool_lock
826 enable_portable_binary
827 with_gcc_arch
828 enable_maintainer_mode
829 enable_debug
830 enable_structs
831 enable_raw_api
832 enable_purify_safety
833 '
834       ac_precious_vars='build_alias
835 host_alias
836 target_alias
837 CCAS
838 CCASFLAGS
839 CPP
840 CPPFLAGS'
841
842
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
864
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
890
891 ac_prev=
892 ac_dashdash=
893 for ac_option
894 do
895   # If the previous option needs an argument, assign it.
896   if test -n "$ac_prev"; then
897     eval $ac_prev=\$ac_option
898     ac_prev=
899     continue
900   fi
901
902   case $ac_option in
903   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904   *=)   ac_optarg= ;;
905   *)    ac_optarg=yes ;;
906   esac
907
908   # Accept the important Cygnus configure options, so we can diagnose typos.
909
910   case $ac_dashdash$ac_option in
911   --)
912     ac_dashdash=yes ;;
913
914   -bindir | --bindir | --bindi | --bind | --bin | --bi)
915     ac_prev=bindir ;;
916   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917     bindir=$ac_optarg ;;
918
919   -build | --build | --buil | --bui | --bu)
920     ac_prev=build_alias ;;
921   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922     build_alias=$ac_optarg ;;
923
924   -cache-file | --cache-file | --cache-fil | --cache-fi \
925   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926     ac_prev=cache_file ;;
927   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929     cache_file=$ac_optarg ;;
930
931   --config-cache | -C)
932     cache_file=config.cache ;;
933
934   -datadir | --datadir | --datadi | --datad)
935     ac_prev=datadir ;;
936   -datadir=* | --datadir=* | --datadi=* | --datad=*)
937     datadir=$ac_optarg ;;
938
939   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940   | --dataroo | --dataro | --datar)
941     ac_prev=datarootdir ;;
942   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944     datarootdir=$ac_optarg ;;
945
946   -disable-* | --disable-*)
947     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948     # Reject names that are not valid shell variable names.
949     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950       as_fn_error $? "invalid feature name: $ac_useropt"
951     ac_useropt_orig=$ac_useropt
952     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953     case $ac_user_opts in
954       *"
955 "enable_$ac_useropt"
956 "*) ;;
957       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958          ac_unrecognized_sep=', ';;
959     esac
960     eval enable_$ac_useropt=no ;;
961
962   -docdir | --docdir | --docdi | --doc | --do)
963     ac_prev=docdir ;;
964   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965     docdir=$ac_optarg ;;
966
967   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968     ac_prev=dvidir ;;
969   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970     dvidir=$ac_optarg ;;
971
972   -enable-* | --enable-*)
973     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974     # Reject names that are not valid shell variable names.
975     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976       as_fn_error $? "invalid feature name: $ac_useropt"
977     ac_useropt_orig=$ac_useropt
978     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979     case $ac_user_opts in
980       *"
981 "enable_$ac_useropt"
982 "*) ;;
983       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984          ac_unrecognized_sep=', ';;
985     esac
986     eval enable_$ac_useropt=\$ac_optarg ;;
987
988   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990   | --exec | --exe | --ex)
991     ac_prev=exec_prefix ;;
992   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994   | --exec=* | --exe=* | --ex=*)
995     exec_prefix=$ac_optarg ;;
996
997   -gas | --gas | --ga | --g)
998     # Obsolete; use --with-gas.
999     with_gas=yes ;;
1000
1001   -help | --help | --hel | --he | -h)
1002     ac_init_help=long ;;
1003   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004     ac_init_help=recursive ;;
1005   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006     ac_init_help=short ;;
1007
1008   -host | --host | --hos | --ho)
1009     ac_prev=host_alias ;;
1010   -host=* | --host=* | --hos=* | --ho=*)
1011     host_alias=$ac_optarg ;;
1012
1013   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014     ac_prev=htmldir ;;
1015   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016   | --ht=*)
1017     htmldir=$ac_optarg ;;
1018
1019   -includedir | --includedir | --includedi | --included | --include \
1020   | --includ | --inclu | --incl | --inc)
1021     ac_prev=includedir ;;
1022   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023   | --includ=* | --inclu=* | --incl=* | --inc=*)
1024     includedir=$ac_optarg ;;
1025
1026   -infodir | --infodir | --infodi | --infod | --info | --inf)
1027     ac_prev=infodir ;;
1028   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029     infodir=$ac_optarg ;;
1030
1031   -libdir | --libdir | --libdi | --libd)
1032     ac_prev=libdir ;;
1033   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034     libdir=$ac_optarg ;;
1035
1036   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037   | --libexe | --libex | --libe)
1038     ac_prev=libexecdir ;;
1039   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040   | --libexe=* | --libex=* | --libe=*)
1041     libexecdir=$ac_optarg ;;
1042
1043   -localedir | --localedir | --localedi | --localed | --locale)
1044     ac_prev=localedir ;;
1045   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046     localedir=$ac_optarg ;;
1047
1048   -localstatedir | --localstatedir | --localstatedi | --localstated \
1049   | --localstate | --localstat | --localsta | --localst | --locals)
1050     ac_prev=localstatedir ;;
1051   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053     localstatedir=$ac_optarg ;;
1054
1055   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056     ac_prev=mandir ;;
1057   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058     mandir=$ac_optarg ;;
1059
1060   -nfp | --nfp | --nf)
1061     # Obsolete; use --without-fp.
1062     with_fp=no ;;
1063
1064   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065   | --no-cr | --no-c | -n)
1066     no_create=yes ;;
1067
1068   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070     no_recursion=yes ;;
1071
1072   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074   | --oldin | --oldi | --old | --ol | --o)
1075     ac_prev=oldincludedir ;;
1076   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079     oldincludedir=$ac_optarg ;;
1080
1081   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082     ac_prev=prefix ;;
1083   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084     prefix=$ac_optarg ;;
1085
1086   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087   | --program-pre | --program-pr | --program-p)
1088     ac_prev=program_prefix ;;
1089   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091     program_prefix=$ac_optarg ;;
1092
1093   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094   | --program-suf | --program-su | --program-s)
1095     ac_prev=program_suffix ;;
1096   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098     program_suffix=$ac_optarg ;;
1099
1100   -program-transform-name | --program-transform-name \
1101   | --program-transform-nam | --program-transform-na \
1102   | --program-transform-n | --program-transform- \
1103   | --program-transform | --program-transfor \
1104   | --program-transfo | --program-transf \
1105   | --program-trans | --program-tran \
1106   | --progr-tra | --program-tr | --program-t)
1107     ac_prev=program_transform_name ;;
1108   -program-transform-name=* | --program-transform-name=* \
1109   | --program-transform-nam=* | --program-transform-na=* \
1110   | --program-transform-n=* | --program-transform-=* \
1111   | --program-transform=* | --program-transfor=* \
1112   | --program-transfo=* | --program-transf=* \
1113   | --program-trans=* | --program-tran=* \
1114   | --progr-tra=* | --program-tr=* | --program-t=*)
1115     program_transform_name=$ac_optarg ;;
1116
1117   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118     ac_prev=pdfdir ;;
1119   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120     pdfdir=$ac_optarg ;;
1121
1122   -psdir | --psdir | --psdi | --psd | --ps)
1123     ac_prev=psdir ;;
1124   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125     psdir=$ac_optarg ;;
1126
1127   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128   | -silent | --silent | --silen | --sile | --sil)
1129     silent=yes ;;
1130
1131   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132     ac_prev=sbindir ;;
1133   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134   | --sbi=* | --sb=*)
1135     sbindir=$ac_optarg ;;
1136
1137   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139   | --sharedst | --shareds | --shared | --share | --shar \
1140   | --sha | --sh)
1141     ac_prev=sharedstatedir ;;
1142   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145   | --sha=* | --sh=*)
1146     sharedstatedir=$ac_optarg ;;
1147
1148   -site | --site | --sit)
1149     ac_prev=site ;;
1150   -site=* | --site=* | --sit=*)
1151     site=$ac_optarg ;;
1152
1153   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154     ac_prev=srcdir ;;
1155   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156     srcdir=$ac_optarg ;;
1157
1158   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159   | --syscon | --sysco | --sysc | --sys | --sy)
1160     ac_prev=sysconfdir ;;
1161   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163     sysconfdir=$ac_optarg ;;
1164
1165   -target | --target | --targe | --targ | --tar | --ta | --t)
1166     ac_prev=target_alias ;;
1167   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168     target_alias=$ac_optarg ;;
1169
1170   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171     verbose=yes ;;
1172
1173   -version | --version | --versio | --versi | --vers | -V)
1174     ac_init_version=: ;;
1175
1176   -with-* | --with-*)
1177     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180       as_fn_error $? "invalid package name: $ac_useropt"
1181     ac_useropt_orig=$ac_useropt
1182     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183     case $ac_user_opts in
1184       *"
1185 "with_$ac_useropt"
1186 "*) ;;
1187       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188          ac_unrecognized_sep=', ';;
1189     esac
1190     eval with_$ac_useropt=\$ac_optarg ;;
1191
1192   -without-* | --without-*)
1193     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194     # Reject names that are not valid shell variable names.
1195     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196       as_fn_error $? "invalid package name: $ac_useropt"
1197     ac_useropt_orig=$ac_useropt
1198     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199     case $ac_user_opts in
1200       *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204          ac_unrecognized_sep=', ';;
1205     esac
1206     eval with_$ac_useropt=no ;;
1207
1208   --x)
1209     # Obsolete; use --with-x.
1210     with_x=yes ;;
1211
1212   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213   | --x-incl | --x-inc | --x-in | --x-i)
1214     ac_prev=x_includes ;;
1215   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217     x_includes=$ac_optarg ;;
1218
1219   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221     ac_prev=x_libraries ;;
1222   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224     x_libraries=$ac_optarg ;;
1225
1226   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information"
1228     ;;
1229
1230   *=*)
1231     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232     # Reject names that are not valid shell variable names.
1233     case $ac_envvar in #(
1234       '' | [0-9]* | *[!_$as_cr_alnum]* )
1235       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236     esac
1237     eval $ac_envvar=\$ac_optarg
1238     export $ac_envvar ;;
1239
1240   *)
1241     # FIXME: should be removed in autoconf 3.0.
1242     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246     ;;
1247
1248   esac
1249 done
1250
1251 if test -n "$ac_prev"; then
1252   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253   as_fn_error $? "missing argument to $ac_option"
1254 fi
1255
1256 if test -n "$ac_unrecognized_opts"; then
1257   case $enable_option_checking in
1258     no) ;;
1259     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261   esac
1262 fi
1263
1264 # Check all directory arguments for consistency.
1265 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266                 datadir sysconfdir sharedstatedir localstatedir includedir \
1267                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268                 libdir localedir mandir
1269 do
1270   eval ac_val=\$$ac_var
1271   # Remove trailing slashes.
1272   case $ac_val in
1273     */ )
1274       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275       eval $ac_var=\$ac_val;;
1276   esac
1277   # Be sure to have absolute directory names.
1278   case $ac_val in
1279     [\\/$]* | ?:[\\/]* )  continue;;
1280     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281   esac
1282   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1284
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1291
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294   if test "x$build_alias" = x; then
1295     cross_compiling=maybe
1296     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1297     If a cross compiler is detected then cross compile mode will be used" >&2
1298   elif test "x$build_alias" != "x$host_alias"; then
1299     cross_compiling=yes
1300   fi
1301 fi
1302
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306 test "$silent" = yes && exec 6>/dev/null
1307
1308
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312   as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314   as_fn_error $? "pwd does not report name of working directory"
1315
1316
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319   ac_srcdir_defaulted=yes
1320   # Try the directory containing this script, then the parent directory.
1321   ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323          X"$as_myself" : 'X\(//\)[^/]' \| \
1324          X"$as_myself" : 'X\(//\)$' \| \
1325          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\/\)[^/].*/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\/\)$/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\).*/{
1340             s//\1/
1341             q
1342           }
1343           s/.*/./; q'`
1344   srcdir=$ac_confdir
1345   if test ! -r "$srcdir/$ac_unique_file"; then
1346     srcdir=..
1347   fi
1348 else
1349   ac_srcdir_defaulted=no
1350 fi
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 fi
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358         pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361   srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371   eval ac_env_${ac_var}_value=\$${ac_var}
1372   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380   # Omit some internal or obsolete options to make the list less imposing.
1381   # This message is too long to be a string in the A/UX 3.1 sh.
1382   cat <<_ACEOF
1383 \`configure' configures libffi 3.0.11 to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE.  See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393   -h, --help              display this help and exit
1394       --help=short        display options specific to this package
1395       --help=recursive    display the short help of all the included packages
1396   -V, --version           display version information and exit
1397   -q, --quiet, --silent   do not print \`checking ...' messages
1398       --cache-file=FILE   cache test results in FILE [disabled]
1399   -C, --config-cache      alias for \`--cache-file=config.cache'
1400   -n, --no-create         do not create output files
1401       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404   --prefix=PREFIX         install architecture-independent files in PREFIX
1405                           [$ac_default_prefix]
1406   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1407                           [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417   --bindir=DIR            user executables [EPREFIX/bin]
1418   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1419   --libexecdir=DIR        program executables [EPREFIX/libexec]
1420   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1421   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1422   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1423   --libdir=DIR            object code libraries [EPREFIX/lib]
1424   --includedir=DIR        C header files [PREFIX/include]
1425   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1426   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1427   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1428   --infodir=DIR           info documentation [DATAROOTDIR/info]
1429   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1430   --mandir=DIR            man documentation [DATAROOTDIR/man]
1431   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1432   --htmldir=DIR           html documentation [DOCDIR]
1433   --dvidir=DIR            dvi documentation [DOCDIR]
1434   --pdfdir=DIR            pdf documentation [DOCDIR]
1435   --psdir=DIR             ps documentation [DOCDIR]
1436 _ACEOF
1437
1438   cat <<\_ACEOF
1439
1440 Program names:
1441   --program-prefix=PREFIX            prepend PREFIX to installed program names
1442   --program-suffix=SUFFIX            append SUFFIX to installed program names
1443   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1444
1445 System types:
1446   --build=BUILD     configure for building on BUILD [guessed]
1447   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1448   --target=TARGET   configure for building compilers for TARGET [HOST]
1449 _ACEOF
1450 fi
1451
1452 if test -n "$ac_init_help"; then
1453   case $ac_init_help in
1454      short | recursive ) echo "Configuration of libffi 3.0.11:";;
1455    esac
1456   cat <<\_ACEOF
1457
1458 Optional Features:
1459   --disable-option-checking  ignore unrecognized --enable/--with options
1460   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1461   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1462   --disable-builddir      disable automatic build in subdir of sources
1463
1464   --disable-dependency-tracking  speeds up one-time build
1465   --enable-dependency-tracking   do not reject slow dependency extractors
1466   --enable-shared[=PKGS]  build shared libraries [default=yes]
1467   --enable-static[=PKGS]  build static libraries [default=yes]
1468   --enable-fast-install[=PKGS]
1469                           optimize for fast installation [default=yes]
1470   --disable-libtool-lock  avoid locking (might break parallel builds)
1471   --enable-portable-binary
1472                           disable compiler optimizations that would produce
1473                           unportable binaries
1474   --enable-maintainer-mode  enable make rules and dependencies not useful
1475                           (and sometimes confusing) to the casual installer
1476   --enable-debug          debugging mode
1477   --disable-structs       omit code for struct support
1478   --disable-raw-api       make the raw api unavailable
1479   --enable-purify-safety  purify-safe mode
1480
1481 Optional Packages:
1482   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1483   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1484   --with-pic              try to use only PIC/non-PIC objects [default=use
1485                           both]
1486   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1487   --with-sysroot=DIR Search for dependent libraries within DIR
1488                         (or the compiler's sysroot if not specified).
1489   --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1490                           instead of guessing
1491
1492 Some influential environment variables:
1493   CC          C compiler command
1494   CFLAGS      C compiler flags
1495   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1496               nonstandard directory <lib dir>
1497   LIBS        libraries to pass to the linker, e.g. -l<library>
1498   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499               you have headers in a nonstandard directory <include dir>
1500   CCAS        assembler compiler command (defaults to CC)
1501   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1502   CPP         C preprocessor
1503
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1506
1507 Report bugs to <http://github.com/atgreen/libffi/issues>.
1508 _ACEOF
1509 ac_status=$?
1510 fi
1511
1512 if test "$ac_init_help" = "recursive"; then
1513   # If there are subdirs, report their specific --help.
1514   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515     test -d "$ac_dir" ||
1516       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517       continue
1518     ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524   # A ".." for each directory in $ac_dir_suffix.
1525   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526   case $ac_top_builddir_sub in
1527   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529   esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537   .)  # We are building in place.
1538     ac_srcdir=.
1539     ac_top_srcdir=$ac_top_builddir_sub
1540     ac_abs_top_srcdir=$ac_pwd ;;
1541   [\\/]* | ?:[\\/]* )  # Absolute name.
1542     ac_srcdir=$srcdir$ac_dir_suffix;
1543     ac_top_srcdir=$srcdir
1544     ac_abs_top_srcdir=$srcdir ;;
1545   *) # Relative name.
1546     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547     ac_top_srcdir=$ac_top_build_prefix$srcdir
1548     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552     cd "$ac_dir" || { ac_status=$?; continue; }
1553     # Check for guested configure.
1554     if test -f "$ac_srcdir/configure.gnu"; then
1555       echo &&
1556       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557     elif test -f "$ac_srcdir/configure"; then
1558       echo &&
1559       $SHELL "$ac_srcdir/configure" --help=recursive
1560     else
1561       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562     fi || ac_status=$?
1563     cd "$ac_pwd" || { ac_status=$?; break; }
1564   done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569   cat <<\_ACEOF
1570 libffi configure 3.0.11
1571 generated by GNU Autoconf 2.68
1572
1573 Copyright (C) 2010 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577   exit
1578 fi
1579
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1583
1584 # ac_fn_c_try_compile LINENO
1585 # --------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_compile ()
1588 {
1589   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590   rm -f conftest.$ac_objext
1591   if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594   *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598   (eval "$ac_compile") 2>conftest.err
1599   ac_status=$?
1600   if test -s conftest.err; then
1601     grep -v '^ *+' conftest.err >conftest.er1
1602     cat conftest.er1 >&5
1603     mv -f conftest.er1 conftest.err
1604   fi
1605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606   test $ac_status = 0; } && {
1607          test -z "$ac_c_werror_flag" ||
1608          test ! -s conftest.err
1609        } && test -s conftest.$ac_objext; then :
1610   ac_retval=0
1611 else
1612   $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615         ac_retval=1
1616 fi
1617   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618   as_fn_set_status $ac_retval
1619
1620 } # ac_fn_c_try_compile
1621
1622 # ac_fn_c_try_link LINENO
1623 # -----------------------
1624 # Try to link conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_link ()
1626 {
1627   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628   rm -f conftest.$ac_objext conftest$ac_exeext
1629   if { { ac_try="$ac_link"
1630 case "(($ac_try" in
1631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632   *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636   (eval "$ac_link") 2>conftest.err
1637   ac_status=$?
1638   if test -s conftest.err; then
1639     grep -v '^ *+' conftest.err >conftest.er1
1640     cat conftest.er1 >&5
1641     mv -f conftest.er1 conftest.err
1642   fi
1643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644   test $ac_status = 0; } && {
1645          test -z "$ac_c_werror_flag" ||
1646          test ! -s conftest.err
1647        } && test -s conftest$ac_exeext && {
1648          test "$cross_compiling" = yes ||
1649          $as_test_x conftest$ac_exeext
1650        }; then :
1651   ac_retval=0
1652 else
1653   $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656         ac_retval=1
1657 fi
1658   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1659   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1660   # interfere with the next link command; also delete a directory that is
1661   # left behind by Apple's compiler.  We do this before executing the actions.
1662   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1663   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664   as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_link
1667
1668 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1669 # -------------------------------------------------------
1670 # Tests whether HEADER exists and can be compiled using the include files in
1671 # INCLUDES, setting the cache variable VAR accordingly.
1672 ac_fn_c_check_header_compile ()
1673 {
1674   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if eval \${$3+:} false; then :
1678   $as_echo_n "(cached) " >&6
1679 else
1680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h.  */
1682 $4
1683 #include <$2>
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"; then :
1686   eval "$3=yes"
1687 else
1688   eval "$3=no"
1689 fi
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 fi
1692 eval ac_res=\$$3
1693                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 $as_echo "$ac_res" >&6; }
1695   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696
1697 } # ac_fn_c_check_header_compile
1698
1699 # ac_fn_c_try_cpp LINENO
1700 # ----------------------
1701 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_cpp ()
1703 {
1704   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705   if { { ac_try="$ac_cpp conftest.$ac_ext"
1706 case "(($ac_try" in
1707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708   *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713   ac_status=$?
1714   if test -s conftest.err; then
1715     grep -v '^ *+' conftest.err >conftest.er1
1716     cat conftest.er1 >&5
1717     mv -f conftest.er1 conftest.err
1718   fi
1719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720   test $ac_status = 0; } > conftest.i && {
1721          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1722          test ! -s conftest.err
1723        }; then :
1724   ac_retval=0
1725 else
1726   $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729     ac_retval=1
1730 fi
1731   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732   as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_cpp
1735
1736 # ac_fn_c_try_run LINENO
1737 # ----------------------
1738 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1739 # that executables *can* be run.
1740 ac_fn_c_try_run ()
1741 {
1742   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743   if { { ac_try="$ac_link"
1744 case "(($ac_try" in
1745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746   *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750   (eval "$ac_link") 2>&5
1751   ac_status=$?
1752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1754   { { case "(($ac_try" in
1755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756   *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760   (eval "$ac_try") 2>&5
1761   ac_status=$?
1762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763   test $ac_status = 0; }; }; then :
1764   ac_retval=0
1765 else
1766   $as_echo "$as_me: program exited with status $ac_status" >&5
1767        $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770        ac_retval=$ac_status
1771 fi
1772   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774   as_fn_set_status $ac_retval
1775
1776 } # ac_fn_c_try_run
1777
1778 # ac_fn_c_check_func LINENO FUNC VAR
1779 # ----------------------------------
1780 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1781 ac_fn_c_check_func ()
1782 {
1783   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787   $as_echo_n "(cached) " >&6
1788 else
1789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h.  */
1791 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1793 #define $2 innocuous_$2
1794
1795 /* System header to define __stub macros and hopefully few prototypes,
1796     which can conflict with char $2 (); below.
1797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1798     <limits.h> exists even on freestanding compilers.  */
1799
1800 #ifdef __STDC__
1801 # include <limits.h>
1802 #else
1803 # include <assert.h>
1804 #endif
1805
1806 #undef $2
1807
1808 /* Override any GCC internal prototype to avoid an error.
1809    Use char because int might match the return type of a GCC
1810    builtin and then its argument prototype would still apply.  */
1811 #ifdef __cplusplus
1812 extern "C"
1813 #endif
1814 char $2 ();
1815 /* The GNU C library defines this for functions which it implements
1816     to always fail with ENOSYS.  Some functions are actually named
1817     something starting with __ and the normal name is an alias.  */
1818 #if defined __stub_$2 || defined __stub___$2
1819 choke me
1820 #endif
1821
1822 int
1823 main ()
1824 {
1825 return $2 ();
1826   ;
1827   return 0;
1828 }
1829 _ACEOF
1830 if ac_fn_c_try_link "$LINENO"; then :
1831   eval "$3=yes"
1832 else
1833   eval "$3=no"
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext \
1836     conftest$ac_exeext conftest.$ac_ext
1837 fi
1838 eval ac_res=\$$3
1839                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842
1843 } # ac_fn_c_check_func
1844
1845 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1846 # -------------------------------------------------------
1847 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1848 # the include files in INCLUDES and setting the cache variable VAR
1849 # accordingly.
1850 ac_fn_c_check_header_mongrel ()
1851 {
1852   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853   if eval \${$3+:} false; then :
1854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if eval \${$3+:} false; then :
1857   $as_echo_n "(cached) " >&6
1858 fi
1859 eval ac_res=\$$3
1860                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862 else
1863   # Is the header compilable?
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1865 $as_echo_n "checking $2 usability... " >&6; }
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h.  */
1868 $4
1869 #include <$2>
1870 _ACEOF
1871 if ac_fn_c_try_compile "$LINENO"; then :
1872   ac_header_compiler=yes
1873 else
1874   ac_header_compiler=no
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1878 $as_echo "$ac_header_compiler" >&6; }
1879
1880 # Is the header present?
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1882 $as_echo_n "checking $2 presence... " >&6; }
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h.  */
1885 #include <$2>
1886 _ACEOF
1887 if ac_fn_c_try_cpp "$LINENO"; then :
1888   ac_header_preproc=yes
1889 else
1890   ac_header_preproc=no
1891 fi
1892 rm -f conftest.err conftest.i conftest.$ac_ext
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1894 $as_echo "$ac_header_preproc" >&6; }
1895
1896 # So?  What about this header?
1897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1898   yes:no: )
1899     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1900 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1901     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1902 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1903     ;;
1904   no:yes:* )
1905     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1906 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1907     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1908 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1909     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1910 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1911     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1912 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1913     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1914 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1915 ( $as_echo "## ------------------------------------------------------ ##
1916 ## Report this to http://github.com/atgreen/libffi/issues ##
1917 ## ------------------------------------------------------ ##"
1918      ) | sed "s/^/$as_me: WARNING:     /" >&2
1919     ;;
1920 esac
1921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if eval \${$3+:} false; then :
1924   $as_echo_n "(cached) " >&6
1925 else
1926   eval "$3=\$ac_header_compiler"
1927 fi
1928 eval ac_res=\$$3
1929                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 fi
1932   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933
1934 } # ac_fn_c_check_header_mongrel
1935
1936 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1937 # -------------------------------------------
1938 # Tests whether TYPE exists after having included INCLUDES, setting cache
1939 # variable VAR accordingly.
1940 ac_fn_c_check_type ()
1941 {
1942   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \${$3+:} false; then :
1946   $as_echo_n "(cached) " >&6
1947 else
1948   eval "$3=no"
1949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h.  */
1951 $4
1952 int
1953 main ()
1954 {
1955 if (sizeof ($2))
1956          return 0;
1957   ;
1958   return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h.  */
1964 $4
1965 int
1966 main ()
1967 {
1968 if (sizeof (($2)))
1969             return 0;
1970   ;
1971   return 0;
1972 }
1973 _ACEOF
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975
1976 else
1977   eval "$3=yes"
1978 fi
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 fi
1983 eval ac_res=\$$3
1984                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988 } # ac_fn_c_check_type
1989
1990 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1991 # --------------------------------------------
1992 # Tries to find the compile-time value of EXPR in a program that includes
1993 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1994 # computed
1995 ac_fn_c_compute_int ()
1996 {
1997   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998   if test "$cross_compiling" = yes; then
1999     # Depending upon the size, compute the lo and hi bounds.
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 $4
2003 int
2004 main ()
2005 {
2006 static int test_array [1 - 2 * !(($2) >= 0)];
2007 test_array [0] = 0
2008
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014   ac_lo=0 ac_mid=0
2015   while :; do
2016     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 $4
2019 int
2020 main ()
2021 {
2022 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2023 test_array [0] = 0
2024
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030   ac_hi=$ac_mid; break
2031 else
2032   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2033                         if test $ac_lo -le $ac_mid; then
2034                           ac_lo= ac_hi=
2035                           break
2036                         fi
2037                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040   done
2041 else
2042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h.  */
2044 $4
2045 int
2046 main ()
2047 {
2048 static int test_array [1 - 2 * !(($2) < 0)];
2049 test_array [0] = 0
2050
2051   ;
2052   return 0;
2053 }
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056   ac_hi=-1 ac_mid=-1
2057   while :; do
2058     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h.  */
2060 $4
2061 int
2062 main ()
2063 {
2064 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2065 test_array [0] = 0
2066
2067   ;
2068   return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072   ac_lo=$ac_mid; break
2073 else
2074   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2075                         if test $ac_mid -le $ac_hi; then
2076                           ac_lo= ac_hi=
2077                           break
2078                         fi
2079                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2080 fi
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082   done
2083 else
2084   ac_lo= ac_hi=
2085 fi
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 # Binary search between lo and hi bounds.
2090 while test "x$ac_lo" != "x$ac_hi"; do
2091   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h.  */
2094 $4
2095 int
2096 main ()
2097 {
2098 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 test_array [0] = 0
2100
2101   ;
2102   return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106   ac_hi=$ac_mid
2107 else
2108   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2109 fi
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 done
2112 case $ac_lo in #((
2113 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2114 '') ac_retval=1 ;;
2115 esac
2116   else
2117     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h.  */
2119 $4
2120 static long int longval () { return $2; }
2121 static unsigned long int ulongval () { return $2; }
2122 #include <stdio.h>
2123 #include <stdlib.h>
2124 int
2125 main ()
2126 {
2127
2128   FILE *f = fopen ("conftest.val", "w");
2129   if (! f)
2130     return 1;
2131   if (($2) < 0)
2132     {
2133       long int i = longval ();
2134       if (i != ($2))
2135         return 1;
2136       fprintf (f, "%ld", i);
2137     }
2138   else
2139     {
2140       unsigned long int i = ulongval ();
2141       if (i != ($2))
2142         return 1;
2143       fprintf (f, "%lu", i);
2144     }
2145   /* Do not output a trailing newline, as this causes \r\n confusion
2146      on some platforms.  */
2147   return ferror (f) || fclose (f) != 0;
2148
2149   ;
2150   return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_run "$LINENO"; then :
2154   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2155 else
2156   ac_retval=1
2157 fi
2158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2159   conftest.$ac_objext conftest.beam conftest.$ac_ext
2160 rm -f conftest.val
2161
2162   fi
2163   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164   as_fn_set_status $ac_retval
2165
2166 } # ac_fn_c_compute_int
2167 cat >config.log <<_ACEOF
2168 This file contains any messages produced by compilers while
2169 running configure, to aid debugging if configure makes a mistake.
2170
2171 It was created by libffi $as_me 3.0.11, which was
2172 generated by GNU Autoconf 2.68.  Invocation command line was
2173
2174   $ $0 $@
2175
2176 _ACEOF
2177 exec 5>>config.log
2178 {
2179 cat <<_ASUNAME
2180 ## --------- ##
2181 ## Platform. ##
2182 ## --------- ##
2183
2184 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2185 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2186 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2187 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2188 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2189
2190 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2191 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2192
2193 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2194 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2195 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2196 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2197 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2198 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2199 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2200
2201 _ASUNAME
2202
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2205 do
2206   IFS=$as_save_IFS
2207   test -z "$as_dir" && as_dir=.
2208     $as_echo "PATH: $as_dir"
2209   done
2210 IFS=$as_save_IFS
2211
2212 } >&5
2213
2214 cat >&5 <<_ACEOF
2215
2216
2217 ## ----------- ##
2218 ## Core tests. ##
2219 ## ----------- ##
2220
2221 _ACEOF
2222
2223
2224 # Keep a trace of the command line.
2225 # Strip out --no-create and --no-recursion so they do not pile up.
2226 # Strip out --silent because we don't want to record it for future runs.
2227 # Also quote any args containing shell meta-characters.
2228 # Make two passes to allow for proper duplicate-argument suppression.
2229 ac_configure_args=
2230 ac_configure_args0=
2231 ac_configure_args1=
2232 ac_must_keep_next=false
2233 for ac_pass in 1 2
2234 do
2235   for ac_arg
2236   do
2237     case $ac_arg in
2238     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2239     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2240     | -silent | --silent | --silen | --sile | --sil)
2241       continue ;;
2242     *\'*)
2243       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2244     esac
2245     case $ac_pass in
2246     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2247     2)
2248       as_fn_append ac_configure_args1 " '$ac_arg'"
2249       if test $ac_must_keep_next = true; then
2250         ac_must_keep_next=false # Got value, back to normal.
2251       else
2252         case $ac_arg in
2253           *=* | --config-cache | -C | -disable-* | --disable-* \
2254           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2255           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2256           | -with-* | --with-* | -without-* | --without-* | --x)
2257             case "$ac_configure_args0 " in
2258               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2259             esac
2260             ;;
2261           -* ) ac_must_keep_next=true ;;
2262         esac
2263       fi
2264       as_fn_append ac_configure_args " '$ac_arg'"
2265       ;;
2266     esac
2267   done
2268 done
2269 { ac_configure_args0=; unset ac_configure_args0;}
2270 { ac_configure_args1=; unset ac_configure_args1;}
2271
2272 # When interrupted or exit'd, cleanup temporary files, and complete
2273 # config.log.  We remove comments because anyway the quotes in there
2274 # would cause problems or look ugly.
2275 # WARNING: Use '\'' to represent an apostrophe within the trap.
2276 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2277 trap 'exit_status=$?
2278   # Save into config.log some information that might help in debugging.
2279   {
2280     echo
2281
2282     $as_echo "## ---------------- ##
2283 ## Cache variables. ##
2284 ## ---------------- ##"
2285     echo
2286     # The following way of writing the cache mishandles newlines in values,
2287 (
2288   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2289     eval ac_val=\$$ac_var
2290     case $ac_val in #(
2291     *${as_nl}*)
2292       case $ac_var in #(
2293       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2294 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2295       esac
2296       case $ac_var in #(
2297       _ | IFS | as_nl) ;; #(
2298       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2299       *) { eval $ac_var=; unset $ac_var;} ;;
2300       esac ;;
2301     esac
2302   done
2303   (set) 2>&1 |
2304     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2305     *${as_nl}ac_space=\ *)
2306       sed -n \
2307         "s/'\''/'\''\\\\'\'''\''/g;
2308           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2309       ;; #(
2310     *)
2311       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2312       ;;
2313     esac |
2314     sort
2315 )
2316     echo
2317
2318     $as_echo "## ----------------- ##
2319 ## Output variables. ##
2320 ## ----------------- ##"
2321     echo
2322     for ac_var in $ac_subst_vars
2323     do
2324       eval ac_val=\$$ac_var
2325       case $ac_val in
2326       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2327       esac
2328       $as_echo "$ac_var='\''$ac_val'\''"
2329     done | sort
2330     echo
2331
2332     if test -n "$ac_subst_files"; then
2333       $as_echo "## ------------------- ##
2334 ## File substitutions. ##
2335 ## ------------------- ##"
2336       echo
2337       for ac_var in $ac_subst_files
2338       do
2339         eval ac_val=\$$ac_var
2340         case $ac_val in
2341         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342         esac
2343         $as_echo "$ac_var='\''$ac_val'\''"
2344       done | sort
2345       echo
2346     fi
2347
2348     if test -s confdefs.h; then
2349       $as_echo "## ----------- ##
2350 ## confdefs.h. ##
2351 ## ----------- ##"
2352       echo
2353       cat confdefs.h
2354       echo
2355     fi
2356     test "$ac_signal" != 0 &&
2357       $as_echo "$as_me: caught signal $ac_signal"
2358     $as_echo "$as_me: exit $exit_status"
2359   } >&5
2360   rm -f core *.core core.conftest.* &&
2361     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2362     exit $exit_status
2363 ' 0
2364 for ac_signal in 1 2 13 15; do
2365   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2366 done
2367 ac_signal=0
2368
2369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2370 rm -f -r conftest* confdefs.h
2371
2372 $as_echo "/* confdefs.h */" > confdefs.h
2373
2374 # Predefined preprocessor variables.
2375
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_NAME "$PACKAGE_NAME"
2378 _ACEOF
2379
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2382 _ACEOF
2383
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2386 _ACEOF
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_STRING "$PACKAGE_STRING"
2390 _ACEOF
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2394 _ACEOF
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_URL "$PACKAGE_URL"
2398 _ACEOF
2399
2400
2401 # Let the site file select an alternate cache file if it wants to.
2402 # Prefer an explicitly selected file to automatically selected ones.
2403 ac_site_file1=NONE
2404 ac_site_file2=NONE
2405 if test -n "$CONFIG_SITE"; then
2406   # We do not want a PATH search for config.site.
2407   case $CONFIG_SITE in #((
2408     -*)  ac_site_file1=./$CONFIG_SITE;;
2409     */*) ac_site_file1=$CONFIG_SITE;;
2410     *)   ac_site_file1=./$CONFIG_SITE;;
2411   esac
2412 elif test "x$prefix" != xNONE; then
2413   ac_site_file1=$prefix/share/config.site
2414   ac_site_file2=$prefix/etc/config.site
2415 else
2416   ac_site_file1=$ac_default_prefix/share/config.site
2417   ac_site_file2=$ac_default_prefix/etc/config.site
2418 fi
2419 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2420 do
2421   test "x$ac_site_file" = xNONE && continue
2422   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2423     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2424 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2425     sed 's/^/| /' "$ac_site_file" >&5
2426     . "$ac_site_file" \
2427       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429 as_fn_error $? "failed to load site script $ac_site_file
2430 See \`config.log' for more details" "$LINENO" 5; }
2431   fi
2432 done
2433
2434 if test -r "$cache_file"; then
2435   # Some versions of bash will fail to source /dev/null (special files
2436   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2437   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2438     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2439 $as_echo "$as_me: loading cache $cache_file" >&6;}
2440     case $cache_file in
2441       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2442       *)                      . "./$cache_file";;
2443     esac
2444   fi
2445 else
2446   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2447 $as_echo "$as_me: creating cache $cache_file" >&6;}
2448   >$cache_file
2449 fi
2450
2451 # Check that the precious variables saved in the cache have kept the same
2452 # value.
2453 ac_cache_corrupted=false
2454 for ac_var in $ac_precious_vars; do
2455   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2456   eval ac_new_set=\$ac_env_${ac_var}_set
2457   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2458   eval ac_new_val=\$ac_env_${ac_var}_value
2459   case $ac_old_set,$ac_new_set in
2460     set,)
2461       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2462 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2463       ac_cache_corrupted=: ;;
2464     ,set)
2465       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2466 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2467       ac_cache_corrupted=: ;;
2468     ,);;
2469     *)
2470       if test "x$ac_old_val" != "x$ac_new_val"; then
2471         # differences in whitespace do not lead to failure.
2472         ac_old_val_w=`echo x $ac_old_val`
2473         ac_new_val_w=`echo x $ac_new_val`
2474         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2475           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2476 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2477           ac_cache_corrupted=:
2478         else
2479           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2480 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2481           eval $ac_var=\$ac_old_val
2482         fi
2483         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2484 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2485         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2486 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2487       fi;;
2488   esac
2489   # Pass precious variables to config.status.
2490   if test "$ac_new_set" = set; then
2491     case $ac_new_val in
2492     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2493     *) ac_arg=$ac_var=$ac_new_val ;;
2494     esac
2495     case " $ac_configure_args " in
2496       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2497       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2498     esac
2499   fi
2500 done
2501 if $ac_cache_corrupted; then
2502   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2504   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2505 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2506   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2507 fi
2508 ## -------------------- ##
2509 ## Main body of script. ##
2510 ## -------------------- ##
2511
2512 ac_ext=c
2513 ac_cpp='$CPP $CPPFLAGS'
2514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2517
2518
2519 ac_config_headers="$ac_config_headers fficonfig.h"
2520
2521
2522 ac_aux_dir=
2523 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2524   if test -f "$ac_dir/install-sh"; then
2525     ac_aux_dir=$ac_dir
2526     ac_install_sh="$ac_aux_dir/install-sh -c"
2527     break
2528   elif 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/shtool"; then
2533     ac_aux_dir=$ac_dir
2534     ac_install_sh="$ac_aux_dir/shtool install -c"
2535     break
2536   fi
2537 done
2538 if test -z "$ac_aux_dir"; then
2539   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2540 fi
2541
2542 # These three variables are undocumented and unsupported,
2543 # and are intended to be withdrawn in a future Autoconf release.
2544 # They can cause serious problems if a builder's source tree is in a directory
2545 # whose full name contains unusual characters.
2546 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2547 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2548 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2549
2550
2551 # Make sure we can run config.sub.
2552 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2553   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2554
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2556 $as_echo_n "checking build system type... " >&6; }
2557 if ${ac_cv_build+:} false; then :
2558   $as_echo_n "(cached) " >&6
2559 else
2560   ac_build_alias=$build_alias
2561 test "x$ac_build_alias" = x &&
2562   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2563 test "x$ac_build_alias" = x &&
2564   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2565 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2566   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2567
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2570 $as_echo "$ac_cv_build" >&6; }
2571 case $ac_cv_build in
2572 *-*-*) ;;
2573 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2574 esac
2575 build=$ac_cv_build
2576 ac_save_IFS=$IFS; IFS='-'
2577 set x $ac_cv_build
2578 shift
2579 build_cpu=$1
2580 build_vendor=$2
2581 shift; shift
2582 # Remember, the first character of IFS is used to create $*,
2583 # except with old shells:
2584 build_os=$*
2585 IFS=$ac_save_IFS
2586 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2587
2588
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2590 $as_echo_n "checking host system type... " >&6; }
2591 if ${ac_cv_host+:} false; then :
2592   $as_echo_n "(cached) " >&6
2593 else
2594   if test "x$host_alias" = x; then
2595   ac_cv_host=$ac_cv_build
2596 else
2597   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2598     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2599 fi
2600
2601 fi
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2603 $as_echo "$ac_cv_host" >&6; }
2604 case $ac_cv_host in
2605 *-*-*) ;;
2606 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2607 esac
2608 host=$ac_cv_host
2609 ac_save_IFS=$IFS; IFS='-'
2610 set x $ac_cv_host
2611 shift
2612 host_cpu=$1
2613 host_vendor=$2
2614 shift; shift
2615 # Remember, the first character of IFS is used to create $*,
2616 # except with old shells:
2617 host_os=$*
2618 IFS=$ac_save_IFS
2619 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2620
2621
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2623 $as_echo_n "checking target system type... " >&6; }
2624 if ${ac_cv_target+:} false; then :
2625   $as_echo_n "(cached) " >&6
2626 else
2627   if test "x$target_alias" = x; then
2628   ac_cv_target=$ac_cv_host
2629 else
2630   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2631     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2632 fi
2633
2634 fi
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2636 $as_echo "$ac_cv_target" >&6; }
2637 case $ac_cv_target in
2638 *-*-*) ;;
2639 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2640 esac
2641 target=$ac_cv_target
2642 ac_save_IFS=$IFS; IFS='-'
2643 set x $ac_cv_target
2644 shift
2645 target_cpu=$1
2646 target_vendor=$2
2647 shift; shift
2648 # Remember, the first character of IFS is used to create $*,
2649 # except with old shells:
2650 target_os=$*
2651 IFS=$ac_save_IFS
2652 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2653
2654
2655 # The aliases save the names the user supplied, while $host etc.
2656 # will get canonicalized.
2657 test -n "$target_alias" &&
2658   test "$program_prefix$program_suffix$program_transform_name" = \
2659     NONENONEs,x,x, &&
2660   program_prefix=${target_alias}-
2661
2662 target_alias=${target_alias-$host_alias}
2663
2664 . ${srcdir}/configure.host
2665
2666
2667    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2668    if test "${ac_configure_args+set}" != "set" ; then
2669       ac_configure_args=
2670       for ac_arg in ${1+"$@"}; do
2671          ac_configure_args="$ac_configure_args '$ac_arg'"
2672       done
2673    fi
2674
2675 # expand $ac_aux_dir to an absolute path
2676 am_aux_dir=`cd $ac_aux_dir && pwd`
2677
2678
2679 ax_enable_builddir="."
2680 # Check whether --enable-builddir was given.
2681 if test "${enable_builddir+set}" = set; then :
2682   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2683 else
2684   ax_enable_builddir="auto"
2685 fi
2686
2687 if test ".$ac_srcdir_defaulted" != ".no" ; then
2688 if test ".$srcdir" = ".." ; then
2689   if test -f config.status ; then
2690     { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2691 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2692   else
2693     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2694     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2695     test ".$TARGET" = "." && TARGET="$target"
2696     test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2697     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2698       as_dir=$ax_enable_builddir; as_fn_mkdir_p
2699       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2700       cd $ax_enable_builddir
2701       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2702         rm conftest.tmp
2703         { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2704 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2705       else
2706         as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2707       fi
2708       srcdir=`echo "$ax_enable_builddir" |
2709               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2710       # going to restart from subdirectory location
2711       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2712       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2713       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2714       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2715       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2716 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2717       case "$0" in # restart
2718        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2719        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2720       esac ; exit $?
2721     fi
2722   fi
2723 fi fi
2724 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2725 # Extract the first word of "gsed sed", so it can be a program name with args.
2726 set dummy gsed sed; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2730   $as_echo_n "(cached) " >&6
2731 else
2732   case $ax_enable_builddir_sed in
2733   [\\/]* | ?:[\\/]*)
2734   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2735   ;;
2736   *)
2737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740   IFS=$as_save_IFS
2741   test -z "$as_dir" && as_dir=.
2742     for ac_exec_ext in '' $ac_executable_extensions; do
2743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746     break 2
2747   fi
2748 done
2749   done
2750 IFS=$as_save_IFS
2751
2752   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2753   ;;
2754 esac
2755 fi
2756 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2757 if test -n "$ax_enable_builddir_sed"; then
2758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2759 $as_echo "$ax_enable_builddir_sed" >&6; }
2760 else
2761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2763 fi
2764
2765
2766 ax_enable_builddir_auxdir="$am_aux_dir"
2767 ac_config_commands="$ac_config_commands buildir"
2768
2769
2770 am__api_version='1.11'
2771
2772 # Find a good install program.  We prefer a C program (faster),
2773 # so one script is as good as another.  But avoid the broken or
2774 # incompatible versions:
2775 # SysV /etc/install, /usr/sbin/install
2776 # SunOS /usr/etc/install
2777 # IRIX /sbin/install
2778 # AIX /bin/install
2779 # AmigaOS /C/install, which installs bootblocks on floppy discs
2780 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2781 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2782 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2783 # OS/2's system install, which has a completely different semantic
2784 # ./install, which can be erroneously created by make from ./install.sh.
2785 # Reject install programs that cannot install multiple files.
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2787 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2788 if test -z "$INSTALL"; then
2789 if ${ac_cv_path_install+:} false; then :
2790   $as_echo_n "(cached) " >&6
2791 else
2792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797     # Account for people who put trailing slashes in PATH elements.
2798 case $as_dir/ in #((
2799   ./ | .// | /[cC]/* | \
2800   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2801   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2802   /usr/ucb/* ) ;;
2803   *)
2804     # OSF1 and SCO ODT 3.0 have their own names for install.
2805     # Don't use installbsd from OSF since it installs stuff as root
2806     # by default.
2807     for ac_prog in ginstall scoinst install; do
2808       for ac_exec_ext in '' $ac_executable_extensions; do
2809         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2810           if test $ac_prog = install &&
2811             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2812             # AIX install.  It has an incompatible calling convention.
2813             :
2814           elif test $ac_prog = install &&
2815             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2816             # program-specific install script used by HP pwplus--don't use.
2817             :
2818           else
2819             rm -rf conftest.one conftest.two conftest.dir
2820             echo one > conftest.one
2821             echo two > conftest.two
2822             mkdir conftest.dir
2823             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2824               test -s conftest.one && test -s conftest.two &&
2825               test -s conftest.dir/conftest.one &&
2826               test -s conftest.dir/conftest.two
2827             then
2828               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2829               break 3
2830             fi
2831           fi
2832         fi
2833       done
2834     done
2835     ;;
2836 esac
2837
2838   done
2839 IFS=$as_save_IFS
2840
2841 rm -rf conftest.one conftest.two conftest.dir
2842
2843 fi
2844   if test "${ac_cv_path_install+set}" = set; then
2845     INSTALL=$ac_cv_path_install
2846   else
2847     # As a last resort, use the slow shell script.  Don't cache a
2848     # value for INSTALL within a source directory, because that will
2849     # break other packages using the cache if that directory is
2850     # removed, or if the value is a relative name.
2851     INSTALL=$ac_install_sh
2852   fi
2853 fi
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2855 $as_echo "$INSTALL" >&6; }
2856
2857 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2858 # It thinks the first close brace ends the variable substitution.
2859 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2860
2861 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2862
2863 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2864
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2866 $as_echo_n "checking whether build environment is sane... " >&6; }
2867 # Just in case
2868 sleep 1
2869 echo timestamp > conftest.file
2870 # Reject unsafe characters in $srcdir or the absolute working directory
2871 # name.  Accept space and tab only in the latter.
2872 am_lf='
2873 '
2874 case `pwd` in
2875   *[\\\"\#\$\&\'\`$am_lf]*)
2876     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2877 esac
2878 case $srcdir in
2879   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2880     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2881 esac
2882
2883 # Do `set' in a subshell so we don't clobber the current shell's
2884 # arguments.  Must try -L first in case configure is actually a
2885 # symlink; some systems play weird games with the mod time of symlinks
2886 # (eg FreeBSD returns the mod time of the symlink's containing
2887 # directory).
2888 if (
2889    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2890    if test "$*" = "X"; then
2891       # -L didn't work.
2892       set X `ls -t "$srcdir/configure" conftest.file`
2893    fi
2894    rm -f conftest.file
2895    if test "$*" != "X $srcdir/configure conftest.file" \
2896       && test "$*" != "X conftest.file $srcdir/configure"; then
2897
2898       # If neither matched, then we have a broken ls.  This can happen
2899       # if, for instance, CONFIG_SHELL is bash and it inherits a
2900       # broken ls alias from the environment.  This has actually
2901       # happened.  Such a system could not be considered "sane".
2902       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2903 alias in your environment" "$LINENO" 5
2904    fi
2905
2906    test "$2" = conftest.file
2907    )
2908 then
2909    # Ok.
2910    :
2911 else
2912    as_fn_error $? "newly created file is older than distributed files!
2913 Check your system clock" "$LINENO" 5
2914 fi
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2916 $as_echo "yes" >&6; }
2917 test "$program_prefix" != NONE &&
2918   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2919 # Use a double $ so make ignores it.
2920 test "$program_suffix" != NONE &&
2921   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2922 # Double any \ or $.
2923 # By default was `s,x,x', remove it if useless.
2924 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2925 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2926
2927 if test x"${MISSING+set}" != xset; then
2928   case $am_aux_dir in
2929   *\ * | *\     *)
2930     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2931   *)
2932     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2933   esac
2934 fi
2935 # Use eval to expand $SHELL
2936 if eval "$MISSING --run true"; then
2937   am_missing_run="$MISSING --run "
2938 else
2939   am_missing_run=
2940   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2941 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2942 fi
2943
2944 if test x"${install_sh}" != xset; then
2945   case $am_aux_dir in
2946   *\ * | *\     *)
2947     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2948   *)
2949     install_sh="\${SHELL} $am_aux_dir/install-sh"
2950   esac
2951 fi
2952
2953 # Installed binaries are usually stripped using `strip' when the user
2954 # run `make install-strip'.  However `strip' might not be the right
2955 # tool to use in cross-compilation environments, therefore Automake
2956 # will honor the `STRIP' environment variable to overrule this program.
2957 if test "$cross_compiling" != no; then
2958   if test -n "$ac_tool_prefix"; then
2959   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2960 set dummy ${ac_tool_prefix}strip; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if ${ac_cv_prog_STRIP+:} false; then :
2964   $as_echo_n "(cached) " >&6
2965 else
2966   if test -n "$STRIP"; then
2967   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972   IFS=$as_save_IFS
2973   test -z "$as_dir" && as_dir=.
2974     for ac_exec_ext in '' $ac_executable_extensions; do
2975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978     break 2
2979   fi
2980 done
2981   done
2982 IFS=$as_save_IFS
2983
2984 fi
2985 fi
2986 STRIP=$ac_cv_prog_STRIP
2987 if test -n "$STRIP"; then
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2989 $as_echo "$STRIP" >&6; }
2990 else
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2993 fi
2994
2995
2996 fi
2997 if test -z "$ac_cv_prog_STRIP"; then
2998   ac_ct_STRIP=$STRIP
2999   # Extract the first word of "strip", so it can be a program name with args.
3000 set dummy strip; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3004   $as_echo_n "(cached) " >&6
3005 else
3006   if test -n "$ac_ct_STRIP"; then
3007   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012   IFS=$as_save_IFS
3013   test -z "$as_dir" && as_dir=.
3014     for ac_exec_ext in '' $ac_executable_extensions; do
3015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3016     ac_cv_prog_ac_ct_STRIP="strip"
3017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018     break 2
3019   fi
3020 done
3021   done
3022 IFS=$as_save_IFS
3023
3024 fi
3025 fi
3026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3027 if test -n "$ac_ct_STRIP"; then
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3029 $as_echo "$ac_ct_STRIP" >&6; }
3030 else
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 fi
3034
3035   if test "x$ac_ct_STRIP" = x; then
3036     STRIP=":"
3037   else
3038     case $cross_compiling:$ac_tool_warned in
3039 yes:)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3043 esac
3044     STRIP=$ac_ct_STRIP
3045   fi
3046 else
3047   STRIP="$ac_cv_prog_STRIP"
3048 fi
3049
3050 fi
3051 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3052
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3054 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3055 if test -z "$MKDIR_P"; then
3056   if ${ac_cv_path_mkdir+:} false; then :
3057   $as_echo_n "(cached) " >&6
3058 else
3059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3061 do
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064     for ac_prog in mkdir gmkdir; do
3065          for ac_exec_ext in '' $ac_executable_extensions; do
3066            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3067            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3068              'mkdir (GNU coreutils) '* | \
3069              'mkdir (coreutils) '* | \
3070              'mkdir (fileutils) '4.1*)
3071                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3072                break 3;;
3073            esac
3074          done
3075        done
3076   done
3077 IFS=$as_save_IFS
3078
3079 fi
3080
3081   test -d ./--version && rmdir ./--version
3082   if test "${ac_cv_path_mkdir+set}" = set; then
3083     MKDIR_P="$ac_cv_path_mkdir -p"
3084   else
3085     # As a last resort, use the slow shell script.  Don't cache a
3086     # value for MKDIR_P within a source directory, because that will
3087     # break other packages using the cache if that directory is
3088     # removed, or if the value is a relative name.
3089     MKDIR_P="$ac_install_sh -d"
3090   fi
3091 fi
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3093 $as_echo "$MKDIR_P" >&6; }
3094
3095 mkdir_p="$MKDIR_P"
3096 case $mkdir_p in
3097   [\\/$]* | ?:[\\/]*) ;;
3098   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3099 esac
3100
3101 for ac_prog in gawk mawk nawk awk
3102 do
3103   # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_AWK+:} false; then :
3108   $as_echo_n "(cached) " >&6
3109 else
3110   if test -n "$AWK"; then
3111   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116   IFS=$as_save_IFS
3117   test -z "$as_dir" && as_dir=.
3118     for ac_exec_ext in '' $ac_executable_extensions; do
3119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120     ac_cv_prog_AWK="$ac_prog"
3121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122     break 2
3123   fi
3124 done
3125   done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 AWK=$ac_cv_prog_AWK
3131 if test -n "$AWK"; then
3132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3133 $as_echo "$AWK" >&6; }
3134 else
3135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139
3140   test -n "$AWK" && break
3141 done
3142
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3144 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3145 set x ${MAKE-make}
3146 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3147 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3148   $as_echo_n "(cached) " >&6
3149 else
3150   cat >conftest.make <<\_ACEOF
3151 SHELL = /bin/sh
3152 all:
3153         @echo '@@@%%%=$(MAKE)=@@@%%%'
3154 _ACEOF
3155 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3156 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3157   *@@@%%%=?*=@@@%%%*)
3158     eval ac_cv_prog_make_${ac_make}_set=yes;;
3159   *)
3160     eval ac_cv_prog_make_${ac_make}_set=no;;
3161 esac
3162 rm -f conftest.make
3163 fi
3164 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166 $as_echo "yes" >&6; }
3167   SET_MAKE=
3168 else
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171   SET_MAKE="MAKE=${MAKE-make}"
3172 fi
3173
3174 rm -rf .tst 2>/dev/null
3175 mkdir .tst 2>/dev/null
3176 if test -d .tst; then
3177   am__leading_dot=.
3178 else
3179   am__leading_dot=_
3180 fi
3181 rmdir .tst 2>/dev/null
3182
3183 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3184   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3185   # is not polluted with repeated "-I."
3186   am__isrc=' -I$(srcdir)'
3187   # test to see if srcdir already configured
3188   if test -f $srcdir/config.status; then
3189     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3190   fi
3191 fi
3192
3193 # test whether we have cygpath
3194 if test -z "$CYGPATH_W"; then
3195   if (cygpath --version) >/dev/null 2>/dev/null; then
3196     CYGPATH_W='cygpath -w'
3197   else
3198     CYGPATH_W=echo
3199   fi
3200 fi
3201
3202
3203 # Define the identity of the package.
3204  PACKAGE='libffi'
3205  VERSION='3.0.11'
3206
3207
3208 cat >>confdefs.h <<_ACEOF
3209 #define PACKAGE "$PACKAGE"
3210 _ACEOF
3211
3212
3213 cat >>confdefs.h <<_ACEOF
3214 #define VERSION "$VERSION"
3215 _ACEOF
3216
3217 # Some tools Automake needs.
3218
3219 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3220
3221
3222 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3223
3224
3225 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3226
3227
3228 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3229
3230
3231 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3232
3233 # We need awk for the "check" target.  The system "awk" is bad on
3234 # some platforms.
3235 # Always define AMTAR for backward compatibility.  Yes, it's still used
3236 # in the wild :-(  We should find a proper way to deprecate it ...
3237 AMTAR='$${TAR-tar}'
3238
3239 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3240
3241
3242
3243
3244
3245
3246 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3247 # We must force CC to /not/ be precious variables; otherwise
3248 # the wrong, non-multilib-adjusted value will be used in multilibs.
3249 # As a side effect, we have to subst CFLAGS ourselves.
3250 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3251 # defaults of its own if none are provided.
3252
3253
3254
3255 save_CFLAGS=$CFLAGS
3256 ac_ext=c
3257 ac_cpp='$CPP $CPPFLAGS'
3258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261 if test -n "$ac_tool_prefix"; then
3262   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3263 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_CC+:} false; then :
3267   $as_echo_n "(cached) " >&6
3268 else
3269   if test -n "$CC"; then
3270   ac_cv_prog_CC="$CC" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275   IFS=$as_save_IFS
3276   test -z "$as_dir" && as_dir=.
3277     for ac_exec_ext in '' $ac_executable_extensions; do
3278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281     break 2
3282   fi
3283 done
3284   done
3285 IFS=$as_save_IFS
3286
3287 fi
3288 fi
3289 CC=$ac_cv_prog_CC
3290 if test -n "$CC"; then
3291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292 $as_echo "$CC" >&6; }
3293 else
3294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 fi
3297
3298
3299 fi
3300 if test -z "$ac_cv_prog_CC"; then
3301   ac_ct_CC=$CC
3302   # Extract the first word of "gcc", so it can be a program name with args.
3303 set dummy gcc; ac_word=$2
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3307   $as_echo_n "(cached) " >&6
3308 else
3309   if test -n "$ac_ct_CC"; then
3310   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315   IFS=$as_save_IFS
3316   test -z "$as_dir" && as_dir=.
3317     for ac_exec_ext in '' $ac_executable_extensions; do
3318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319     ac_cv_prog_ac_ct_CC="gcc"
3320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321     break 2
3322   fi
3323 done
3324   done
3325 IFS=$as_save_IFS
3326
3327 fi
3328 fi
3329 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3330 if test -n "$ac_ct_CC"; then
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3332 $as_echo "$ac_ct_CC" >&6; }
3333 else
3334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 fi
3337
3338   if test "x$ac_ct_CC" = x; then
3339     CC=""
3340   else
3341     case $cross_compiling:$ac_tool_warned in
3342 yes:)
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3345 ac_tool_warned=yes ;;
3346 esac
3347     CC=$ac_ct_CC
3348   fi
3349 else
3350   CC="$ac_cv_prog_CC"
3351 fi
3352
3353 if test -z "$CC"; then
3354           if test -n "$ac_tool_prefix"; then
3355     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3356 set dummy ${ac_tool_prefix}cc; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_CC+:} false; then :
3360   $as_echo_n "(cached) " >&6
3361 else
3362   if test -n "$CC"; then
3363   ac_cv_prog_CC="$CC" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3367 do
3368   IFS=$as_save_IFS
3369   test -z "$as_dir" && as_dir=.
3370     for ac_exec_ext in '' $ac_executable_extensions; do
3371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3372     ac_cv_prog_CC="${ac_tool_prefix}cc"
3373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374     break 2
3375   fi
3376 done
3377   done
3378 IFS=$as_save_IFS
3379
3380 fi
3381 fi
3382 CC=$ac_cv_prog_CC
3383 if test -n "$CC"; then
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385 $as_echo "$CC" >&6; }
3386 else
3387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 fi
3390
3391
3392   fi
3393 fi
3394 if test -z "$CC"; then
3395   # Extract the first word of "cc", so it can be a program name with args.
3396 set dummy cc; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if ${ac_cv_prog_CC+:} false; then :
3400   $as_echo_n "(cached) " >&6
3401 else
3402   if test -n "$CC"; then
3403   ac_cv_prog_CC="$CC" # Let the user override the test.
3404 else
3405   ac_prog_rejected=no
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409   IFS=$as_save_IFS
3410   test -z "$as_dir" && as_dir=.
3411     for ac_exec_ext in '' $ac_executable_extensions; do
3412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3413     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3414        ac_prog_rejected=yes
3415        continue
3416      fi
3417     ac_cv_prog_CC="cc"
3418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419     break 2
3420   fi
3421 done
3422   done
3423 IFS=$as_save_IFS
3424
3425 if test $ac_prog_rejected = yes; then
3426   # We found a bogon in the path, so make sure we never use it.
3427   set dummy $ac_cv_prog_CC
3428   shift
3429   if test $# != 0; then
3430     # We chose a different compiler from the bogus one.
3431     # However, it has the same basename, so the bogon will be chosen
3432     # first if we set CC to just the basename; use the full file name.
3433     shift
3434     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3435   fi
3436 fi
3437 fi
3438 fi
3439 CC=$ac_cv_prog_CC
3440 if test -n "$CC"; then
3441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3442 $as_echo "$CC" >&6; }
3443 else
3444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3446 fi
3447
3448
3449 fi
3450 if test -z "$CC"; then
3451   if test -n "$ac_tool_prefix"; then
3452   for ac_prog in cl.exe
3453   do
3454     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if ${ac_cv_prog_CC+:} false; then :
3459   $as_echo_n "(cached) " >&6
3460 else
3461   if test -n "$CC"; then
3462   ac_cv_prog_CC="$CC" # Let the user override the test.
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467   IFS=$as_save_IFS
3468   test -z "$as_dir" && as_dir=.
3469     for ac_exec_ext in '' $ac_executable_extensions; do
3470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473     break 2
3474   fi
3475 done
3476   done
3477 IFS=$as_save_IFS
3478
3479 fi
3480 fi
3481 CC=$ac_cv_prog_CC
3482 if test -n "$CC"; then
3483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 $as_echo "$CC" >&6; }
3485 else
3486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3488 fi
3489
3490
3491     test -n "$CC" && break
3492   done
3493 fi
3494 if test -z "$CC"; then
3495   ac_ct_CC=$CC
3496   for ac_prog in cl.exe
3497 do
3498   # Extract the first word of "$ac_prog", so it can be a program name with args.
3499 set dummy $ac_prog; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3503   $as_echo_n "(cached) " >&6
3504 else
3505   if test -n "$ac_ct_CC"; then
3506   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511   IFS=$as_save_IFS
3512   test -z "$as_dir" && as_dir=.
3513     for ac_exec_ext in '' $ac_executable_extensions; do
3514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515     ac_cv_prog_ac_ct_CC="$ac_prog"
3516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517     break 2
3518   fi
3519 done
3520   done
3521 IFS=$as_save_IFS
3522
3523 fi
3524 fi
3525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 $as_echo "$ac_ct_CC" >&6; }
3529 else
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3532 fi
3533
3534
3535   test -n "$ac_ct_CC" && break
3536 done
3537
3538   if test "x$ac_ct_CC" = x; then
3539     CC=""
3540   else
3541     case $cross_compiling:$ac_tool_warned in
3542 yes:)
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3545 ac_tool_warned=yes ;;
3546 esac
3547     CC=$ac_ct_CC
3548   fi
3549 fi
3550
3551 fi
3552
3553
3554 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 as_fn_error $? "no acceptable C compiler found in \$PATH
3557 See \`config.log' for more details" "$LINENO" 5; }
3558
3559 # Provide some information about the compiler.
3560 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3561 set X $ac_compile
3562 ac_compiler=$2
3563 for ac_option in --version -v -V -qversion; do
3564   { { ac_try="$ac_compiler $ac_option >&5"
3565 case "(($ac_try" in
3566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567   *) ac_try_echo=$ac_try;;
3568 esac
3569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570 $as_echo "$ac_try_echo"; } >&5
3571   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3572   ac_status=$?
3573   if test -s conftest.err; then
3574     sed '10a\
3575 ... rest of stderr output deleted ...
3576          10q' conftest.err >conftest.er1
3577     cat conftest.er1 >&5
3578   fi
3579   rm -f conftest.er1 conftest.err
3580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581   test $ac_status = 0; }
3582 done
3583
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h.  */
3586
3587 int
3588 main ()
3589 {
3590
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 ac_clean_files_save=$ac_clean_files
3596 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3597 # Try to create an executable without -o first, disregard a.out.
3598 # It will help us diagnose broken compilers, and finding out an intuition
3599 # of exeext.
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3601 $as_echo_n "checking whether the C compiler works... " >&6; }
3602 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3603
3604 # The possible output files:
3605 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3606
3607 ac_rmfiles=
3608 for ac_file in $ac_files
3609 do
3610   case $ac_file in
3611     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3612     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3613   esac
3614 done
3615 rm -f $ac_rmfiles
3616
3617 if { { ac_try="$ac_link_default"
3618 case "(($ac_try" in
3619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620   *) ac_try_echo=$ac_try;;
3621 esac
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624   (eval "$ac_link_default") 2>&5
3625   ac_status=$?
3626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627   test $ac_status = 0; }; then :
3628   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3629 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3630 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3631 # so that the user can short-circuit this test for compilers unknown to
3632 # Autoconf.
3633 for ac_file in $ac_files ''
3634 do
3635   test -f "$ac_file" || continue
3636   case $ac_file in
3637     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3638         ;;
3639     [ab].out )
3640         # We found the default executable, but exeext='' is most
3641         # certainly right.
3642         break;;
3643     *.* )
3644         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3645         then :; else
3646            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3647         fi
3648         # We set ac_cv_exeext here because the later test for it is not
3649         # safe: cross compilers may not add the suffix if given an `-o'
3650         # argument, so we may need to know it at that point already.
3651         # Even if this section looks crufty: it has the advantage of
3652         # actually working.
3653         break;;
3654     * )
3655         break;;
3656   esac
3657 done
3658 test "$ac_cv_exeext" = no && ac_cv_exeext=
3659
3660 else
3661   ac_file=''
3662 fi
3663 if test -z "$ac_file"; then :
3664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3666 $as_echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error 77 "C compiler cannot create executables
3672 See \`config.log' for more details" "$LINENO" 5; }
3673 else
3674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3675 $as_echo "yes" >&6; }
3676 fi
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3678 $as_echo_n "checking for C compiler default output file name... " >&6; }
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3680 $as_echo "$ac_file" >&6; }
3681 ac_exeext=$ac_cv_exeext
3682
3683 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3684 ac_clean_files=$ac_clean_files_save
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3686 $as_echo_n "checking for suffix of executables... " >&6; }
3687 if { { ac_try="$ac_link"
3688 case "(($ac_try" in
3689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690   *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694   (eval "$ac_link") 2>&5
3695   ac_status=$?
3696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697   test $ac_status = 0; }; then :
3698   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3699 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3700 # work properly (i.e., refer to `conftest.exe'), while it won't with
3701 # `rm'.
3702 for ac_file in conftest.exe conftest conftest.*; do
3703   test -f "$ac_file" || continue
3704   case $ac_file in
3705     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3706     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3707           break;;
3708     * ) break;;
3709   esac
3710 done
3711 else
3712   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3715 See \`config.log' for more details" "$LINENO" 5; }
3716 fi
3717 rm -f conftest conftest$ac_cv_exeext
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3719 $as_echo "$ac_cv_exeext" >&6; }
3720
3721 rm -f conftest.$ac_ext
3722 EXEEXT=$ac_cv_exeext
3723 ac_exeext=$EXEEXT
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h.  */
3726 #include <stdio.h>
3727 int
3728 main ()
3729 {
3730 FILE *f = fopen ("conftest.out", "w");
3731  return ferror (f) || fclose (f) != 0;
3732
3733   ;
3734   return 0;
3735 }
3736 _ACEOF
3737 ac_clean_files="$ac_clean_files conftest.out"
3738 # Check that the compiler produces executables we can run.  If not, either
3739 # the compiler is broken, or we cross compile.
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3741 $as_echo_n "checking whether we are cross compiling... " >&6; }
3742 if test "$cross_compiling" != yes; then
3743   { { ac_try="$ac_link"
3744 case "(($ac_try" in
3745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746   *) ac_try_echo=$ac_try;;
3747 esac
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750   (eval "$ac_link") 2>&5
3751   ac_status=$?
3752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753   test $ac_status = 0; }
3754   if { ac_try='./conftest$ac_cv_exeext'
3755   { { case "(($ac_try" in
3756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757   *) ac_try_echo=$ac_try;;
3758 esac
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761   (eval "$ac_try") 2>&5
3762   ac_status=$?
3763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764   test $ac_status = 0; }; }; then
3765     cross_compiling=no
3766   else
3767     if test "$cross_compiling" = maybe; then
3768         cross_compiling=yes
3769     else
3770         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error $? "cannot run C compiled programs.
3773 If you meant to cross compile, use \`--host'.
3774 See \`config.log' for more details" "$LINENO" 5; }
3775     fi
3776   fi
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3779 $as_echo "$cross_compiling" >&6; }
3780
3781 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3782 ac_clean_files=$ac_clean_files_save
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3784 $as_echo_n "checking for suffix of object files... " >&6; }
3785 if ${ac_cv_objext+:} false; then :
3786   $as_echo_n "(cached) " >&6
3787 else
3788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h.  */
3790
3791 int
3792 main ()
3793 {
3794
3795   ;
3796   return 0;
3797 }
3798 _ACEOF
3799 rm -f conftest.o conftest.obj
3800 if { { ac_try="$ac_compile"
3801 case "(($ac_try" in
3802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803   *) ac_try_echo=$ac_try;;
3804 esac
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807   (eval "$ac_compile") 2>&5
3808   ac_status=$?
3809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810   test $ac_status = 0; }; then :
3811   for ac_file in conftest.o conftest.obj conftest.*; do
3812   test -f "$ac_file" || continue;
3813   case $ac_file in
3814     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3815     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3816        break;;
3817   esac
3818 done
3819 else
3820   $as_echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3822
3823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3825 as_fn_error $? "cannot compute suffix of object files: cannot compile
3826 See \`config.log' for more details" "$LINENO" 5; }
3827 fi
3828 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3831 $as_echo "$ac_cv_objext" >&6; }
3832 OBJEXT=$ac_cv_objext
3833 ac_objext=$OBJEXT
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3835 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3836 if ${ac_cv_c_compiler_gnu+:} false; then :
3837   $as_echo_n "(cached) " >&6
3838 else
3839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h.  */
3841
3842 int
3843 main ()
3844 {
3845 #ifndef __GNUC__
3846        choke me
3847 #endif
3848
3849   ;
3850   return 0;
3851 }
3852 _ACEOF
3853 if ac_fn_c_try_compile "$LINENO"; then :
3854   ac_compiler_gnu=yes
3855 else
3856   ac_compiler_gnu=no
3857 fi
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3860
3861 fi
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3863 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3864 if test $ac_compiler_gnu = yes; then
3865   GCC=yes
3866 else
3867   GCC=
3868 fi
3869 ac_test_CFLAGS=${CFLAGS+set}
3870 ac_save_CFLAGS=$CFLAGS
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3872 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3873 if ${ac_cv_prog_cc_g+:} false; then :
3874   $as_echo_n "(cached) " >&6
3875 else
3876   ac_save_c_werror_flag=$ac_c_werror_flag
3877    ac_c_werror_flag=yes
3878    ac_cv_prog_cc_g=no
3879    CFLAGS="-g"
3880    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h.  */
3882
3883 int
3884 main ()
3885 {
3886
3887   ;
3888   return 0;
3889 }
3890 _ACEOF
3891 if ac_fn_c_try_compile "$LINENO"; then :
3892   ac_cv_prog_cc_g=yes
3893 else
3894   CFLAGS=""
3895       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h.  */
3897
3898 int
3899 main ()
3900 {
3901
3902   ;
3903   return 0;
3904 }
3905 _ACEOF
3906 if ac_fn_c_try_compile "$LINENO"; then :
3907
3908 else
3909   ac_c_werror_flag=$ac_save_c_werror_flag
3910          CFLAGS="-g"
3911          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h.  */
3913
3914 int
3915 main ()
3916 {
3917
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 if ac_fn_c_try_compile "$LINENO"; then :
3923   ac_cv_prog_cc_g=yes
3924 fi
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 fi
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 fi
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930    ac_c_werror_flag=$ac_save_c_werror_flag
3931 fi
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3933 $as_echo "$ac_cv_prog_cc_g" >&6; }
3934 if test "$ac_test_CFLAGS" = set; then
3935   CFLAGS=$ac_save_CFLAGS
3936 elif test $ac_cv_prog_cc_g = yes; then
3937   if test "$GCC" = yes; then
3938     CFLAGS="-g -O2"
3939   else
3940     CFLAGS="-g"
3941   fi
3942 else
3943   if test "$GCC" = yes; then
3944     CFLAGS="-O2"
3945   else
3946     CFLAGS=
3947   fi
3948 fi
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3950 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3951 if ${ac_cv_prog_cc_c89+:} false; then :
3952   $as_echo_n "(cached) " >&6
3953 else
3954   ac_cv_prog_cc_c89=no
3955 ac_save_CC=$CC
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h.  */
3958 #include <stdarg.h>
3959 #include <stdio.h>
3960 #include <sys/types.h>
3961 #include <sys/stat.h>
3962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3963 struct buf { int x; };
3964 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3965 static char *e (p, i)
3966      char **p;
3967      int i;
3968 {
3969   return p[i];
3970 }
3971 static char *f (char * (*g) (char **, int), char **p, ...)
3972 {
3973   char *s;
3974   va_list v;
3975   va_start (v,p);
3976   s = g (p, va_arg (v,int));
3977   va_end (v);
3978   return s;
3979 }
3980
3981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3982    function prototypes and stuff, but not '\xHH' hex character constants.
3983    These don't provoke an error unfortunately, instead are silently treated
3984    as 'x'.  The following induces an error, until -std is added to get
3985    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3986    array size at least.  It's necessary to write '\x00'==0 to get something
3987    that's true only with -std.  */
3988 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3989
3990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3991    inside strings and character constants.  */
3992 #define FOO(x) 'x'
3993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3994
3995 int test (int i, double x);
3996 struct s1 {int (*f) (int a);};
3997 struct s2 {int (*f) (double a);};
3998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3999 int argc;
4000 char **argv;
4001 int
4002 main ()
4003 {
4004 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4005   ;
4006   return 0;
4007 }
4008 _ACEOF
4009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4010         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4011 do
4012   CC="$ac_save_CC $ac_arg"
4013   if ac_fn_c_try_compile "$LINENO"; then :
4014   ac_cv_prog_cc_c89=$ac_arg
4015 fi
4016 rm -f core conftest.err conftest.$ac_objext
4017   test "x$ac_cv_prog_cc_c89" != "xno" && break
4018 done
4019 rm -f conftest.$ac_ext
4020 CC=$ac_save_CC
4021
4022 fi
4023 # AC_CACHE_VAL
4024 case "x$ac_cv_prog_cc_c89" in
4025   x)
4026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027 $as_echo "none needed" >&6; } ;;
4028   xno)
4029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4030 $as_echo "unsupported" >&6; } ;;
4031   *)
4032     CC="$CC $ac_cv_prog_cc_c89"
4033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4034 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4035 esac
4036 if test "x$ac_cv_prog_cc_c89" != xno; then :
4037
4038 fi
4039
4040 ac_ext=c
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 DEPDIR="${am__leading_dot}deps"
4046
4047 ac_config_commands="$ac_config_commands depfiles"
4048
4049
4050 am_make=${MAKE-make}
4051 cat > confinc << 'END'
4052 am__doit:
4053         @echo this is the am__doit target
4054 .PHONY: am__doit
4055 END
4056 # If we don't find an include directive, just comment out the code.
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4058 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4059 am__include="#"
4060 am__quote=
4061 _am_result=none
4062 # First try GNU make style include.
4063 echo "include confinc" > confmf
4064 # Ignore all kinds of additional output from `make'.
4065 case `$am_make -s -f confmf 2> /dev/null` in #(
4066 *the\ am__doit\ target*)
4067   am__include=include
4068   am__quote=
4069   _am_result=GNU
4070   ;;
4071 esac
4072 # Now try BSD make style include.
4073 if test "$am__include" = "#"; then
4074    echo '.include "confinc"' > confmf
4075    case `$am_make -s -f confmf 2> /dev/null` in #(
4076    *the\ am__doit\ target*)
4077      am__include=.include
4078      am__quote="\""
4079      _am_result=BSD
4080      ;;
4081    esac
4082 fi
4083
4084
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4086 $as_echo "$_am_result" >&6; }
4087 rm -f confinc confmf
4088
4089 # Check whether --enable-dependency-tracking was given.
4090 if test "${enable_dependency_tracking+set}" = set; then :
4091   enableval=$enable_dependency_tracking;
4092 fi
4093
4094 if test "x$enable_dependency_tracking" != xno; then
4095   am_depcomp="$ac_aux_dir/depcomp"
4096   AMDEPBACKSLASH='\'
4097   am__nodep='_no'
4098 fi
4099  if test "x$enable_dependency_tracking" != xno; then
4100   AMDEP_TRUE=
4101   AMDEP_FALSE='#'
4102 else
4103   AMDEP_TRUE='#'
4104   AMDEP_FALSE=
4105 fi
4106
4107
4108
4109 depcc="$CC"   am_compiler_list=
4110
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4112 $as_echo_n "checking dependency style of $depcc... " >&6; }
4113 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4114   $as_echo_n "(cached) " >&6
4115 else
4116   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4117   # We make a subdir and do the tests there.  Otherwise we can end up
4118   # making bogus files that we don't know about and never remove.  For
4119   # instance it was reported that on HP-UX the gcc test will end up
4120   # making a dummy file named `D' -- because `-MD' means `put the output
4121   # in D'.
4122   rm -rf conftest.dir
4123   mkdir conftest.dir
4124   # Copy depcomp to subdir because otherwise we won't find it if we're
4125   # using a relative directory.
4126   cp "$am_depcomp" conftest.dir
4127   cd conftest.dir
4128   # We will build objects and dependencies in a subdirectory because
4129   # it helps to detect inapplicable dependency modes.  For instance
4130   # both Tru64's cc and ICC support -MD to output dependencies as a
4131   # side effect of compilation, but ICC will put the dependencies in
4132   # the current directory while Tru64 will put them in the object
4133   # directory.
4134   mkdir sub
4135
4136   am_cv_CC_dependencies_compiler_type=none
4137   if test "$am_compiler_list" = ""; then
4138      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4139   fi
4140   am__universal=false
4141   case " $depcc " in #(
4142      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4143      esac
4144
4145   for depmode in $am_compiler_list; do
4146     # Setup a source with many dependencies, because some compilers
4147     # like to wrap large dependency lists on column 80 (with \), and
4148     # we should not choose a depcomp mode which is confused by this.
4149     #
4150     # We need to recreate these files for each test, as the compiler may
4151     # overwrite some of them when testing with obscure command lines.
4152     # This happens at least with the AIX C compiler.
4153     : > sub/conftest.c
4154     for i in 1 2 3 4 5 6; do
4155       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4156       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4157       # Solaris 8's {/usr,}/bin/sh.
4158       touch sub/conftst$i.h
4159     done
4160     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4161
4162     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4163     # mode.  It turns out that the SunPro C++ compiler does not properly
4164     # handle `-M -o', and we need to detect this.  Also, some Intel
4165     # versions had trouble with output in subdirs
4166     am__obj=sub/conftest.${OBJEXT-o}
4167     am__minus_obj="-o $am__obj"
4168     case $depmode in
4169     gcc)
4170       # This depmode causes a compiler race in universal mode.
4171       test "$am__universal" = false || continue
4172       ;;
4173     nosideeffect)
4174       # after this tag, mechanisms are not by side-effect, so they'll
4175       # only be used when explicitly requested
4176       if test "x$enable_dependency_tracking" = xyes; then
4177         continue
4178       else
4179         break
4180       fi
4181       ;;
4182     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4183       # This compiler won't grok `-c -o', but also, the minuso test has
4184       # not run yet.  These depmodes are late enough in the game, and
4185       # so weak that their functioning should not be impacted.
4186       am__obj=conftest.${OBJEXT-o}
4187       am__minus_obj=
4188       ;;
4189     none) break ;;
4190     esac
4191     if depmode=$depmode \
4192        source=sub/conftest.c object=$am__obj \
4193        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4194        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4195          >/dev/null 2>conftest.err &&
4196        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4197        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4198        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4199        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4200       # icc doesn't choke on unknown options, it will just issue warnings
4201       # or remarks (even with -Werror).  So we grep stderr for any message
4202       # that says an option was ignored or not supported.
4203       # When given -MP, icc 7.0 and 7.1 complain thusly:
4204       #   icc: Command line warning: ignoring option '-M'; no argument required
4205       # The diagnosis changed in icc 8.0:
4206       #   icc: Command line remark: option '-MP' not supported
4207       if (grep 'ignoring option' conftest.err ||
4208           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4209         am_cv_CC_dependencies_compiler_type=$depmode
4210         break
4211       fi
4212     fi
4213   done
4214
4215   cd ..
4216   rm -rf conftest.dir
4217 else
4218   am_cv_CC_dependencies_compiler_type=none
4219 fi
4220
4221 fi
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4223 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4224 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4225
4226  if
4227   test "x$enable_dependency_tracking" != xno \
4228   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4229   am__fastdepCC_TRUE=
4230   am__fastdepCC_FALSE='#'
4231 else
4232   am__fastdepCC_TRUE='#'
4233   am__fastdepCC_FALSE=
4234 fi
4235
4236
4237 CFLAGS=$save_CFLAGS
4238
4239
4240
4241
4242
4243 # By default we simply use the C compiler to build assembly code.
4244
4245 test "${CCAS+set}" = set || CCAS=$CC
4246 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4247
4248
4249
4250 depcc="$CCAS"   am_compiler_list=
4251
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4253 $as_echo_n "checking dependency style of $depcc... " >&6; }
4254 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4255   $as_echo_n "(cached) " >&6
4256 else
4257   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4258   # We make a subdir and do the tests there.  Otherwise we can end up
4259   # making bogus files that we don't know about and never remove.  For
4260   # instance it was reported that on HP-UX the gcc test will end up
4261   # making a dummy file named `D' -- because `-MD' means `put the output
4262   # in D'.
4263   rm -rf conftest.dir
4264   mkdir conftest.dir
4265   # Copy depcomp to subdir because otherwise we won't find it if we're
4266   # using a relative directory.
4267   cp "$am_depcomp" conftest.dir
4268   cd conftest.dir
4269   # We will build objects and dependencies in a subdirectory because
4270   # it helps to detect inapplicable dependency modes.  For instance
4271   # both Tru64's cc and ICC support -MD to output dependencies as a
4272   # side effect of compilation, but ICC will put the dependencies in
4273   # the current directory while Tru64 will put them in the object
4274   # directory.
4275   mkdir sub
4276
4277   am_cv_CCAS_dependencies_compiler_type=none
4278   if test "$am_compiler_list" = ""; then
4279      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4280   fi
4281   am__universal=false
4282
4283
4284   for depmode in $am_compiler_list; do
4285     # Setup a source with many dependencies, because some compilers
4286     # like to wrap large dependency lists on column 80 (with \), and
4287     # we should not choose a depcomp mode which is confused by this.
4288     #
4289     # We need to recreate these files for each test, as the compiler may
4290     # overwrite some of them when testing with obscure command lines.
4291     # This happens at least with the AIX C compiler.
4292     : > sub/conftest.c
4293     for i in 1 2 3 4 5 6; do
4294       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4295       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4296       # Solaris 8's {/usr,}/bin/sh.
4297       touch sub/conftst$i.h
4298     done
4299     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4300
4301     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4302     # mode.  It turns out that the SunPro C++ compiler does not properly
4303     # handle `-M -o', and we need to detect this.  Also, some Intel
4304     # versions had trouble with output in subdirs
4305     am__obj=sub/conftest.${OBJEXT-o}
4306     am__minus_obj="-o $am__obj"
4307     case $depmode in
4308     gcc)
4309       # This depmode causes a compiler race in universal mode.
4310       test "$am__universal" = false || continue
4311       ;;
4312     nosideeffect)
4313       # after this tag, mechanisms are not by side-effect, so they'll
4314       # only be used when explicitly requested
4315       if test "x$enable_dependency_tracking" = xyes; then
4316         continue
4317       else
4318         break
4319       fi
4320       ;;
4321     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4322       # This compiler won't grok `-c -o', but also, the minuso test has
4323       # not run yet.  These depmodes are late enough in the game, and
4324       # so weak that their functioning should not be impacted.
4325       am__obj=conftest.${OBJEXT-o}
4326       am__minus_obj=
4327       ;;
4328     none) break ;;
4329     esac
4330     if depmode=$depmode \
4331        source=sub/conftest.c object=$am__obj \
4332        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4333        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4334          >/dev/null 2>conftest.err &&
4335        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4336        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4337        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4338        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4339       # icc doesn't choke on unknown options, it will just issue warnings
4340       # or remarks (even with -Werror).  So we grep stderr for any message
4341       # that says an option was ignored or not supported.
4342       # When given -MP, icc 7.0 and 7.1 complain thusly:
4343       #   icc: Command line warning: ignoring option '-M'; no argument required
4344       # The diagnosis changed in icc 8.0:
4345       #   icc: Command line remark: option '-MP' not supported
4346       if (grep 'ignoring option' conftest.err ||
4347           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4348         am_cv_CCAS_dependencies_compiler_type=$depmode
4349         break
4350       fi
4351     fi
4352   done
4353
4354   cd ..
4355   rm -rf conftest.dir
4356 else
4357   am_cv_CCAS_dependencies_compiler_type=none
4358 fi
4359
4360 fi
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4362 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4363 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4364
4365  if
4366   test "x$enable_dependency_tracking" != xno \
4367   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4368   am__fastdepCCAS_TRUE=
4369   am__fastdepCCAS_FALSE='#'
4370 else
4371   am__fastdepCCAS_TRUE='#'
4372   am__fastdepCCAS_FALSE=
4373 fi
4374
4375
4376 if test "x$CC" != xcc; then
4377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4378 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4379 else
4380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4381 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4382 fi
4383 set dummy $CC; ac_cc=`$as_echo "$2" |
4384                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4385 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4386   $as_echo_n "(cached) " >&6
4387 else
4388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h.  */
4390
4391 int
4392 main ()
4393 {
4394
4395   ;
4396   return 0;
4397 }
4398 _ACEOF
4399 # Make sure it works both with $CC and with simple cc.
4400 # We do the test twice because some compilers refuse to overwrite an
4401 # existing .o file with -o, though they will create one.
4402 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4403 rm -f conftest2.*
4404 if { { case "(($ac_try" in
4405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406   *) ac_try_echo=$ac_try;;
4407 esac
4408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4409 $as_echo "$ac_try_echo"; } >&5
4410   (eval "$ac_try") 2>&5
4411   ac_status=$?
4412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413   test $ac_status = 0; } &&
4414    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419 $as_echo "$ac_try_echo"; } >&5
4420   (eval "$ac_try") 2>&5
4421   ac_status=$?
4422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423   test $ac_status = 0; };
4424 then
4425   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4426   if test "x$CC" != xcc; then
4427     # Test first that cc exists at all.
4428     if { ac_try='cc -c conftest.$ac_ext >&5'
4429   { { case "(($ac_try" in
4430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431   *) ac_try_echo=$ac_try;;
4432 esac
4433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4434 $as_echo "$ac_try_echo"; } >&5
4435   (eval "$ac_try") 2>&5
4436   ac_status=$?
4437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4438   test $ac_status = 0; }; }; then
4439       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4440       rm -f conftest2.*
4441       if { { case "(($ac_try" in
4442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443   *) ac_try_echo=$ac_try;;
4444 esac
4445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446 $as_echo "$ac_try_echo"; } >&5
4447   (eval "$ac_try") 2>&5
4448   ac_status=$?
4449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4450   test $ac_status = 0; } &&
4451          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453   *) ac_try_echo=$ac_try;;
4454 esac
4455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4456 $as_echo "$ac_try_echo"; } >&5
4457   (eval "$ac_try") 2>&5
4458   ac_status=$?
4459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4460   test $ac_status = 0; };
4461       then
4462         # cc works too.
4463         :
4464       else
4465         # cc exists but doesn't like -o.
4466         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4467       fi
4468     fi
4469   fi
4470 else
4471   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4472 fi
4473 rm -f core conftest*
4474
4475 fi
4476 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4478 $as_echo "yes" >&6; }
4479 else
4480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4482
4483 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4484
4485 fi
4486
4487 # FIXME: we rely on the cache variable name because
4488 # there is no other way.
4489 set dummy $CC
4490 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4491 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4492 if test "$am_t" != yes; then
4493    # Losing compiler, so override with the script.
4494    # FIXME: It is wrong to rewrite CC.
4495    # But if we don't then we get into trouble of one sort or another.
4496    # A longer-term fix would be to have automake use am__CC in this case,
4497    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4498    CC="$am_aux_dir/compile $CC"
4499 fi
4500
4501
4502 case `pwd` in
4503   *\ * | *\     *)
4504     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4505 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4506 esac
4507
4508
4509
4510 macro_version='2.4.2'
4511 macro_revision='1.3337'
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525 ltmain="$ac_aux_dir/ltmain.sh"
4526
4527 # Backslashify metacharacters that are still active within
4528 # double-quoted strings.
4529 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4530
4531 # Same as above, but do not quote variable references.
4532 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4533
4534 # Sed substitution to delay expansion of an escaped shell variable in a
4535 # double_quote_subst'ed string.
4536 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4537
4538 # Sed substitution to delay expansion of an escaped single quote.
4539 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4540
4541 # Sed substitution to avoid accidental globbing in evaled expressions
4542 no_glob_subst='s/\*/\\\*/g'
4543
4544 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4545 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4546 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4549 $as_echo_n "checking how to print strings... " >&6; }
4550 # Test print first, because it will be a builtin if present.
4551 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4552    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4553   ECHO='print -r --'
4554 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4555   ECHO='printf %s\n'
4556 else
4557   # Use this function as a fallback that always works.
4558   func_fallback_echo ()
4559   {
4560     eval 'cat <<_LTECHO_EOF
4561 $1
4562 _LTECHO_EOF'
4563   }
4564   ECHO='func_fallback_echo'
4565 fi
4566
4567 # func_echo_all arg...
4568 # Invoke $ECHO with all args, space-separated.
4569 func_echo_all ()
4570 {
4571     $ECHO ""
4572 }
4573
4574 case "$ECHO" in
4575   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4576 $as_echo "printf" >&6; } ;;
4577   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4578 $as_echo "print -r" >&6; } ;;
4579   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4580 $as_echo "cat" >&6; } ;;
4581 esac
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4597 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4598 if ${ac_cv_path_SED+:} false; then :
4599   $as_echo_n "(cached) " >&6
4600 else
4601             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4602      for ac_i in 1 2 3 4 5 6 7; do
4603        ac_script="$ac_script$as_nl$ac_script"
4604      done
4605      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4606      { ac_script=; unset ac_script;}
4607      if test -z "$SED"; then
4608   ac_path_SED_found=false
4609   # Loop through the user's path and test for each of PROGNAME-LIST
4610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4612 do
4613   IFS=$as_save_IFS
4614   test -z "$as_dir" && as_dir=.
4615     for ac_prog in sed gsed; do
4616     for ac_exec_ext in '' $ac_executable_extensions; do
4617       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4618       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4619 # Check for GNU ac_path_SED and select it if it is found.
4620   # Check for GNU $ac_path_SED
4621 case `"$ac_path_SED" --version 2>&1` in
4622 *GNU*)
4623   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4624 *)
4625   ac_count=0
4626   $as_echo_n 0123456789 >"conftest.in"
4627   while :
4628   do
4629     cat "conftest.in" "conftest.in" >"conftest.tmp"
4630     mv "conftest.tmp" "conftest.in"
4631     cp "conftest.in" "conftest.nl"
4632     $as_echo '' >> "conftest.nl"
4633     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635     as_fn_arith $ac_count + 1 && ac_count=$as_val
4636     if test $ac_count -gt ${ac_path_SED_max-0}; then
4637       # Best one so far, save it but keep looking for a better one
4638       ac_cv_path_SED="$ac_path_SED"
4639       ac_path_SED_max=$ac_count
4640     fi
4641     # 10*(2^10) chars as input seems more than enough
4642     test $ac_count -gt 10 && break
4643   done
4644   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4645 esac
4646
4647       $ac_path_SED_found && break 3
4648     done
4649   done
4650   done
4651 IFS=$as_save_IFS
4652   if test -z "$ac_cv_path_SED"; then
4653     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4654   fi
4655 else
4656   ac_cv_path_SED=$SED
4657 fi
4658
4659 fi
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4661 $as_echo "$ac_cv_path_SED" >&6; }
4662  SED="$ac_cv_path_SED"
4663   rm -f conftest.sed
4664
4665 test -z "$SED" && SED=sed
4666 Xsed="$SED -e 1s/^X//"
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4679 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4680 if ${ac_cv_path_GREP+:} false; then :
4681   $as_echo_n "(cached) " >&6
4682 else
4683   if test -z "$GREP"; then
4684   ac_path_GREP_found=false
4685   # Loop through the user's path and test for each of PROGNAME-LIST
4686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691     for ac_prog in grep ggrep; do
4692     for ac_exec_ext in '' $ac_executable_extensions; do
4693       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4694       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4695 # Check for GNU ac_path_GREP and select it if it is found.
4696   # Check for GNU $ac_path_GREP
4697 case `"$ac_path_GREP" --version 2>&1` in
4698 *GNU*)
4699   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4700 *)
4701   ac_count=0
4702   $as_echo_n 0123456789 >"conftest.in"
4703   while :
4704   do
4705     cat "conftest.in" "conftest.in" >"conftest.tmp"
4706     mv "conftest.tmp" "conftest.in"
4707     cp "conftest.in" "conftest.nl"
4708     $as_echo 'GREP' >> "conftest.nl"
4709     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4710     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4711     as_fn_arith $ac_count + 1 && ac_count=$as_val
4712     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4713       # Best one so far, save it but keep looking for a better one
4714       ac_cv_path_GREP="$ac_path_GREP"
4715       ac_path_GREP_max=$ac_count
4716     fi
4717     # 10*(2^10) chars as input seems more than enough
4718     test $ac_count -gt 10 && break
4719   done
4720   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4721 esac
4722
4723       $ac_path_GREP_found && break 3
4724     done
4725   done
4726   done
4727 IFS=$as_save_IFS
4728   if test -z "$ac_cv_path_GREP"; then
4729     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4730   fi
4731 else
4732   ac_cv_path_GREP=$GREP
4733 fi
4734
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4737 $as_echo "$ac_cv_path_GREP" >&6; }
4738  GREP="$ac_cv_path_GREP"
4739
4740
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4742 $as_echo_n "checking for egrep... " >&6; }
4743 if ${ac_cv_path_EGREP+:} false; then :
4744   $as_echo_n "(cached) " >&6
4745 else
4746   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4747    then ac_cv_path_EGREP="$GREP -E"
4748    else
4749      if test -z "$EGREP"; then
4750   ac_path_EGREP_found=false
4751   # Loop through the user's path and test for each of PROGNAME-LIST
4752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4754 do
4755   IFS=$as_save_IFS
4756   test -z "$as_dir" && as_dir=.
4757     for ac_prog in egrep; do
4758     for ac_exec_ext in '' $ac_executable_extensions; do
4759       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4760       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4761 # Check for GNU ac_path_EGREP and select it if it is found.
4762   # Check for GNU $ac_path_EGREP
4763 case `"$ac_path_EGREP" --version 2>&1` in
4764 *GNU*)
4765   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4766 *)
4767   ac_count=0
4768   $as_echo_n 0123456789 >"conftest.in"
4769   while :
4770   do
4771     cat "conftest.in" "conftest.in" >"conftest.tmp"
4772     mv "conftest.tmp" "conftest.in"
4773     cp "conftest.in" "conftest.nl"
4774     $as_echo 'EGREP' >> "conftest.nl"
4775     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4776     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4777     as_fn_arith $ac_count + 1 && ac_count=$as_val
4778     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4779       # Best one so far, save it but keep looking for a better one
4780       ac_cv_path_EGREP="$ac_path_EGREP"
4781       ac_path_EGREP_max=$ac_count
4782     fi
4783     # 10*(2^10) chars as input seems more than enough
4784     test $ac_count -gt 10 && break
4785   done
4786   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4787 esac
4788
4789       $ac_path_EGREP_found && break 3
4790     done
4791   done
4792   done
4793 IFS=$as_save_IFS
4794   if test -z "$ac_cv_path_EGREP"; then
4795     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4796   fi
4797 else
4798   ac_cv_path_EGREP=$EGREP
4799 fi
4800
4801    fi
4802 fi
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4804 $as_echo "$ac_cv_path_EGREP" >&6; }
4805  EGREP="$ac_cv_path_EGREP"
4806
4807
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4809 $as_echo_n "checking for fgrep... " >&6; }
4810 if ${ac_cv_path_FGREP+:} false; then :
4811   $as_echo_n "(cached) " >&6
4812 else
4813   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4814    then ac_cv_path_FGREP="$GREP -F"
4815    else
4816      if test -z "$FGREP"; then
4817   ac_path_FGREP_found=false
4818   # Loop through the user's path and test for each of PROGNAME-LIST
4819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824     for ac_prog in fgrep; do
4825     for ac_exec_ext in '' $ac_executable_extensions; do
4826       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4827       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4828 # Check for GNU ac_path_FGREP and select it if it is found.
4829   # Check for GNU $ac_path_FGREP
4830 case `"$ac_path_FGREP" --version 2>&1` in
4831 *GNU*)
4832   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4833 *)
4834   ac_count=0
4835   $as_echo_n 0123456789 >"conftest.in"
4836   while :
4837   do
4838     cat "conftest.in" "conftest.in" >"conftest.tmp"
4839     mv "conftest.tmp" "conftest.in"
4840     cp "conftest.in" "conftest.nl"
4841     $as_echo 'FGREP' >> "conftest.nl"
4842     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4843     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4844     as_fn_arith $ac_count + 1 && ac_count=$as_val
4845     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4846       # Best one so far, save it but keep looking for a better one
4847       ac_cv_path_FGREP="$ac_path_FGREP"
4848       ac_path_FGREP_max=$ac_count
4849     fi
4850     # 10*(2^10) chars as input seems more than enough
4851     test $ac_count -gt 10 && break
4852   done
4853   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4854 esac
4855
4856       $ac_path_FGREP_found && break 3
4857     done
4858   done
4859   done
4860 IFS=$as_save_IFS
4861   if test -z "$ac_cv_path_FGREP"; then
4862     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4863   fi
4864 else
4865   ac_cv_path_FGREP=$FGREP
4866 fi
4867
4868    fi
4869 fi
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4871 $as_echo "$ac_cv_path_FGREP" >&6; }
4872  FGREP="$ac_cv_path_FGREP"
4873
4874
4875 test -z "$GREP" && GREP=grep
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895 # Check whether --with-gnu-ld was given.
4896 if test "${with_gnu_ld+set}" = set; then :
4897   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4898 else
4899   with_gnu_ld=no
4900 fi
4901
4902 ac_prog=ld
4903 if test "$GCC" = yes; then
4904   # Check if gcc -print-prog-name=ld gives a path.
4905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4906 $as_echo_n "checking for ld used by $CC... " >&6; }
4907   case $host in
4908   *-*-mingw*)
4909     # gcc leaves a trailing carriage return which upsets mingw
4910     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4911   *)
4912     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4913   esac
4914   case $ac_prog in
4915     # Accept absolute paths.
4916     [\\/]* | ?:[\\/]*)
4917       re_direlt='/[^/][^/]*/\.\./'
4918       # Canonicalize the pathname of ld
4919       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4920       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4921         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4922       done
4923       test -z "$LD" && LD="$ac_prog"
4924       ;;
4925   "")
4926     # If it fails, then pretend we aren't using GCC.
4927     ac_prog=ld
4928     ;;
4929   *)
4930     # If it is relative, then search for the first ld in PATH.
4931     with_gnu_ld=unknown
4932     ;;
4933   esac
4934 elif test "$with_gnu_ld" = yes; then
4935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4936 $as_echo_n "checking for GNU ld... " >&6; }
4937 else
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4939 $as_echo_n "checking for non-GNU ld... " >&6; }
4940 fi
4941 if ${lt_cv_path_LD+:} false; then :
4942   $as_echo_n "(cached) " >&6
4943 else
4944   if test -z "$LD"; then
4945   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4946   for ac_dir in $PATH; do
4947     IFS="$lt_save_ifs"
4948     test -z "$ac_dir" && ac_dir=.
4949     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4950       lt_cv_path_LD="$ac_dir/$ac_prog"
4951       # Check to see if the program is GNU ld.  I'd rather use --version,
4952       # but apparently some variants of GNU ld only accept -v.
4953       # Break only if it was the GNU/non-GNU ld that we prefer.
4954       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4955       *GNU* | *'with BFD'*)
4956         test "$with_gnu_ld" != no && break
4957         ;;
4958       *)
4959         test "$with_gnu_ld" != yes && break
4960         ;;
4961       esac
4962     fi
4963   done
4964   IFS="$lt_save_ifs"
4965 else
4966   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4967 fi
4968 fi
4969
4970 LD="$lt_cv_path_LD"
4971 if test -n "$LD"; then
4972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4973 $as_echo "$LD" >&6; }
4974 else
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4977 fi
4978 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4980 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4981 if ${lt_cv_prog_gnu_ld+:} false; then :
4982   $as_echo_n "(cached) " >&6
4983 else
4984   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4985 case `$LD -v 2>&1 </dev/null` in
4986 *GNU* | *'with BFD'*)
4987   lt_cv_prog_gnu_ld=yes
4988   ;;
4989 *)
4990   lt_cv_prog_gnu_ld=no
4991   ;;
4992 esac
4993 fi
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4995 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4996 with_gnu_ld=$lt_cv_prog_gnu_ld
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5007 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5008 if ${lt_cv_path_NM+:} false; then :
5009   $as_echo_n "(cached) " >&6
5010 else
5011   if test -n "$NM"; then
5012   # Let the user override the test.
5013   lt_cv_path_NM="$NM"
5014 else
5015   lt_nm_to_check="${ac_tool_prefix}nm"
5016   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5017     lt_nm_to_check="$lt_nm_to_check nm"
5018   fi
5019   for lt_tmp_nm in $lt_nm_to_check; do
5020     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5021     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5022       IFS="$lt_save_ifs"
5023       test -z "$ac_dir" && ac_dir=.
5024       tmp_nm="$ac_dir/$lt_tmp_nm"
5025       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5026         # Check to see if the nm accepts a BSD-compat flag.
5027         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5028         #   nm: unknown option "B" ignored
5029         # Tru64's nm complains that /dev/null is an invalid object file
5030         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5031         */dev/null* | *'Invalid file or object type'*)
5032           lt_cv_path_NM="$tmp_nm -B"
5033           break
5034           ;;
5035         *)
5036           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5037           */dev/null*)
5038             lt_cv_path_NM="$tmp_nm -p"
5039             break
5040             ;;
5041           *)
5042             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5043             continue # so that we can try to find one that supports BSD flags
5044             ;;
5045           esac
5046           ;;
5047         esac
5048       fi
5049     done
5050     IFS="$lt_save_ifs"
5051   done
5052   : ${lt_cv_path_NM=no}
5053 fi
5054 fi
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5056 $as_echo "$lt_cv_path_NM" >&6; }
5057 if test "$lt_cv_path_NM" != "no"; then
5058   NM="$lt_cv_path_NM"
5059 else
5060   # Didn't find any BSD compatible name lister, look for dumpbin.
5061   if test -n "$DUMPBIN"; then :
5062     # Let the user override the test.
5063   else
5064     if test -n "$ac_tool_prefix"; then
5065   for ac_prog in dumpbin "link -dump"
5066   do
5067     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if ${ac_cv_prog_DUMPBIN+:} false; then :
5072   $as_echo_n "(cached) " >&6
5073 else
5074   if test -n "$DUMPBIN"; then
5075   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5076 else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080   IFS=$as_save_IFS
5081   test -z "$as_dir" && as_dir=.
5082     for ac_exec_ext in '' $ac_executable_extensions; do
5083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086     break 2
5087   fi
5088 done
5089   done
5090 IFS=$as_save_IFS
5091
5092 fi
5093 fi
5094 DUMPBIN=$ac_cv_prog_DUMPBIN
5095 if test -n "$DUMPBIN"; then
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5097 $as_echo "$DUMPBIN" >&6; }
5098 else
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5101 fi
5102
5103
5104     test -n "$DUMPBIN" && break
5105   done
5106 fi
5107 if test -z "$DUMPBIN"; then
5108   ac_ct_DUMPBIN=$DUMPBIN
5109   for ac_prog in dumpbin "link -dump"
5110 do
5111   # Extract the first word of "$ac_prog", so it can be a program name with args.
5112 set dummy $ac_prog; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   if test -n "$ac_ct_DUMPBIN"; then
5119   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124   IFS=$as_save_IFS
5125   test -z "$as_dir" && as_dir=.
5126     for ac_exec_ext in '' $ac_executable_extensions; do
5127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130     break 2
5131   fi
5132 done
5133   done
5134 IFS=$as_save_IFS
5135
5136 fi
5137 fi
5138 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5139 if test -n "$ac_ct_DUMPBIN"; then
5140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5141 $as_echo "$ac_ct_DUMPBIN" >&6; }
5142 else
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5145 fi
5146
5147
5148   test -n "$ac_ct_DUMPBIN" && break
5149 done
5150
5151   if test "x$ac_ct_DUMPBIN" = x; then
5152     DUMPBIN=":"
5153   else
5154     case $cross_compiling:$ac_tool_warned in
5155 yes:)
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5158 ac_tool_warned=yes ;;
5159 esac
5160     DUMPBIN=$ac_ct_DUMPBIN
5161   fi
5162 fi
5163
5164     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5165     *COFF*)
5166       DUMPBIN="$DUMPBIN -symbols"
5167       ;;
5168     *)
5169       DUMPBIN=:
5170       ;;
5171     esac
5172   fi
5173
5174   if test "$DUMPBIN" != ":"; then
5175     NM="$DUMPBIN"
5176   fi
5177 fi
5178 test -z "$NM" && NM=nm
5179
5180
5181
5182
5183
5184
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5186 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5187 if ${lt_cv_nm_interface+:} false; then :
5188   $as_echo_n "(cached) " >&6
5189 else
5190   lt_cv_nm_interface="BSD nm"
5191   echo "int some_variable = 0;" > conftest.$ac_ext
5192   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5193   (eval "$ac_compile" 2>conftest.err)
5194   cat conftest.err >&5
5195   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5196   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5197   cat conftest.err >&5
5198   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5199   cat conftest.out >&5
5200   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5201     lt_cv_nm_interface="MS dumpbin"
5202   fi
5203   rm -f conftest*
5204 fi
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5206 $as_echo "$lt_cv_nm_interface" >&6; }
5207
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5209 $as_echo_n "checking whether ln -s works... " >&6; }
5210 LN_S=$as_ln_s
5211 if test "$LN_S" = "ln -s"; then
5212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5213 $as_echo "yes" >&6; }
5214 else
5215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5216 $as_echo "no, using $LN_S" >&6; }
5217 fi
5218
5219 # find the maximum length of command line arguments
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5221 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5222 if ${lt_cv_sys_max_cmd_len+:} false; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225     i=0
5226   teststring="ABCD"
5227
5228   case $build_os in
5229   msdosdjgpp*)
5230     # On DJGPP, this test can blow up pretty badly due to problems in libc
5231     # (any single argument exceeding 2000 bytes causes a buffer overrun
5232     # during glob expansion).  Even if it were fixed, the result of this
5233     # check would be larger than it should be.
5234     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5235     ;;
5236
5237   gnu*)
5238     # Under GNU Hurd, this test is not required because there is
5239     # no limit to the length of command line arguments.
5240     # Libtool will interpret -1 as no limit whatsoever
5241     lt_cv_sys_max_cmd_len=-1;
5242     ;;
5243
5244   cygwin* | mingw* | cegcc*)
5245     # On Win9x/ME, this test blows up -- it succeeds, but takes
5246     # about 5 minutes as the teststring grows exponentially.
5247     # Worse, since 9x/ME are not pre-emptively multitasking,
5248     # you end up with a "frozen" computer, even though with patience
5249     # the test eventually succeeds (with a max line length of 256k).
5250     # Instead, let's just punt: use the minimum linelength reported by
5251     # all of the supported platforms: 8192 (on NT/2K/XP).
5252     lt_cv_sys_max_cmd_len=8192;
5253     ;;
5254
5255   mint*)
5256     # On MiNT this can take a long time and run out of memory.
5257     lt_cv_sys_max_cmd_len=8192;
5258     ;;
5259
5260   amigaos*)
5261     # On AmigaOS with pdksh, this test takes hours, literally.
5262     # So we just punt and use a minimum line length of 8192.
5263     lt_cv_sys_max_cmd_len=8192;
5264     ;;
5265
5266   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5267     # This has been around since 386BSD, at least.  Likely further.
5268     if test -x /sbin/sysctl; then
5269       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5270     elif test -x /usr/sbin/sysctl; then
5271       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5272     else
5273       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5274     fi
5275     # And add a safety zone
5276     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5277     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5278     ;;
5279
5280   interix*)
5281     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5282     lt_cv_sys_max_cmd_len=196608
5283     ;;
5284
5285   osf*)
5286     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5287     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5288     # nice to cause kernel panics so lets avoid the loop below.
5289     # First set a reasonable default.
5290     lt_cv_sys_max_cmd_len=16384
5291     #
5292     if test -x /sbin/sysconfig; then
5293       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5294         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5295       esac
5296     fi
5297     ;;
5298   sco3.2v5*)
5299     lt_cv_sys_max_cmd_len=102400
5300     ;;
5301   sysv5* | sco5v6* | sysv4.2uw2*)
5302     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5303     if test -n "$kargmax"; then
5304       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5305     else
5306       lt_cv_sys_max_cmd_len=32768
5307     fi
5308     ;;
5309   *)
5310     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5311     if test -n "$lt_cv_sys_max_cmd_len"; then
5312       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5313       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5314     else
5315       # Make teststring a little bigger before we do anything with it.
5316       # a 1K string should be a reasonable start.
5317       for i in 1 2 3 4 5 6 7 8 ; do
5318         teststring=$teststring$teststring
5319       done
5320       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5321       # If test is not a shell built-in, we'll probably end up computing a
5322       # maximum length that is only half of the actual maximum length, but
5323       # we can't tell.
5324       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5325                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5326               test $i != 17 # 1/2 MB should be enough
5327       do
5328         i=`expr $i + 1`
5329         teststring=$teststring$teststring
5330       done
5331       # Only check the string length outside the loop.
5332       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5333       teststring=
5334       # Add a significant safety factor because C++ compilers can tack on
5335       # massive amounts of additional arguments before passing them to the
5336       # linker.  It appears as though 1/2 is a usable value.
5337       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5338     fi
5339     ;;
5340   esac
5341
5342 fi
5343
5344 if test -n $lt_cv_sys_max_cmd_len ; then
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5346 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5347 else
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5349 $as_echo "none" >&6; }
5350 fi
5351 max_cmd_len=$lt_cv_sys_max_cmd_len
5352
5353
5354
5355
5356
5357
5358 : ${CP="cp -f"}
5359 : ${MV="mv -f"}
5360 : ${RM="rm -f"}
5361
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5363 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5364 # Try some XSI features
5365 xsi_shell=no
5366 ( _lt_dummy="a/b/c"
5367   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5368       = c,a/b,b/c, \
5369     && eval 'test $(( 1 + 1 )) -eq 2 \
5370     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5371   && xsi_shell=yes
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5373 $as_echo "$xsi_shell" >&6; }
5374
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5377 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5378 lt_shell_append=no
5379 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5380     >/dev/null 2>&1 \
5381   && lt_shell_append=yes
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5383 $as_echo "$lt_shell_append" >&6; }
5384
5385
5386 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5387   lt_unset=unset
5388 else
5389   lt_unset=false
5390 fi
5391
5392
5393
5394
5395
5396 # test EBCDIC or ASCII
5397 case `echo X|tr X '\101'` in
5398  A) # ASCII based system
5399     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5400   lt_SP2NL='tr \040 \012'
5401   lt_NL2SP='tr \015\012 \040\040'
5402   ;;
5403  *) # EBCDIC based system
5404   lt_SP2NL='tr \100 \n'
5405   lt_NL2SP='tr \r\n \100\100'
5406   ;;
5407 esac
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5418 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5419 if ${lt_cv_to_host_file_cmd+:} false; then :
5420   $as_echo_n "(cached) " >&6
5421 else
5422   case $host in
5423   *-*-mingw* )
5424     case $build in
5425       *-*-mingw* ) # actually msys
5426         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5427         ;;
5428       *-*-cygwin* )
5429         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5430         ;;
5431       * ) # otherwise, assume *nix
5432         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5433         ;;
5434     esac
5435     ;;
5436   *-*-cygwin* )
5437     case $build in
5438       *-*-mingw* ) # actually msys
5439         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5440         ;;
5441       *-*-cygwin* )
5442         lt_cv_to_host_file_cmd=func_convert_file_noop
5443         ;;
5444       * ) # otherwise, assume *nix
5445         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5446         ;;
5447     esac
5448     ;;
5449   * ) # unhandled hosts (and "normal" native builds)
5450     lt_cv_to_host_file_cmd=func_convert_file_noop
5451     ;;
5452 esac
5453
5454 fi
5455
5456 to_host_file_cmd=$lt_cv_to_host_file_cmd
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5458 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5459
5460
5461
5462
5463
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5465 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5466 if ${lt_cv_to_tool_file_cmd+:} false; then :
5467   $as_echo_n "(cached) " >&6
5468 else
5469   #assume ordinary cross tools, or native build.
5470 lt_cv_to_tool_file_cmd=func_convert_file_noop
5471 case $host in
5472   *-*-mingw* )
5473     case $build in
5474       *-*-mingw* ) # actually msys
5475         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5476         ;;
5477     esac
5478     ;;
5479 esac
5480
5481 fi
5482
5483 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5485 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5486
5487
5488
5489
5490
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5492 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5493 if ${lt_cv_ld_reload_flag+:} false; then :
5494   $as_echo_n "(cached) " >&6
5495 else
5496   lt_cv_ld_reload_flag='-r'
5497 fi
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5499 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5500 reload_flag=$lt_cv_ld_reload_flag
5501 case $reload_flag in
5502 "" | " "*) ;;
5503 *) reload_flag=" $reload_flag" ;;
5504 esac
5505 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5506 case $host_os in
5507   cygwin* | mingw* | pw32* | cegcc*)
5508     if test "$GCC" != yes; then
5509       reload_cmds=false
5510     fi
5511     ;;
5512   darwin*)
5513     if test "$GCC" = yes; then
5514       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5515     else
5516       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5517     fi
5518     ;;
5519 esac
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529 if test -n "$ac_tool_prefix"; then
5530   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5531 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_prog_OBJDUMP+:} false; then :
5535   $as_echo_n "(cached) " >&6
5536 else
5537   if test -n "$OBJDUMP"; then
5538   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543   IFS=$as_save_IFS
5544   test -z "$as_dir" && as_dir=.
5545     for ac_exec_ext in '' $ac_executable_extensions; do
5546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549     break 2
5550   fi
5551 done
5552   done
5553 IFS=$as_save_IFS
5554
5555 fi
5556 fi
5557 OBJDUMP=$ac_cv_prog_OBJDUMP
5558 if test -n "$OBJDUMP"; then
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5560 $as_echo "$OBJDUMP" >&6; }
5561 else
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5564 fi
5565
5566
5567 fi
5568 if test -z "$ac_cv_prog_OBJDUMP"; then
5569   ac_ct_OBJDUMP=$OBJDUMP
5570   # Extract the first word of "objdump", so it can be a program name with args.
5571 set dummy objdump; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5575   $as_echo_n "(cached) " >&6
5576 else
5577   if test -n "$ac_ct_OBJDUMP"; then
5578   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583   IFS=$as_save_IFS
5584   test -z "$as_dir" && as_dir=.
5585     for ac_exec_ext in '' $ac_executable_extensions; do
5586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589     break 2
5590   fi
5591 done
5592   done
5593 IFS=$as_save_IFS
5594
5595 fi
5596 fi
5597 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5598 if test -n "$ac_ct_OBJDUMP"; then
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5600 $as_echo "$ac_ct_OBJDUMP" >&6; }
5601 else
5602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5604 fi
5605
5606   if test "x$ac_ct_OBJDUMP" = x; then
5607     OBJDUMP="false"
5608   else
5609     case $cross_compiling:$ac_tool_warned in
5610 yes:)
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5613 ac_tool_warned=yes ;;
5614 esac
5615     OBJDUMP=$ac_ct_OBJDUMP
5616   fi
5617 else
5618   OBJDUMP="$ac_cv_prog_OBJDUMP"
5619 fi
5620
5621 test -z "$OBJDUMP" && OBJDUMP=objdump
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5632 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5633 if ${lt_cv_deplibs_check_method+:} false; then :
5634   $as_echo_n "(cached) " >&6
5635 else
5636   lt_cv_file_magic_cmd='$MAGIC_CMD'
5637 lt_cv_file_magic_test_file=
5638 lt_cv_deplibs_check_method='unknown'
5639 # Need to set the preceding variable on all platforms that support
5640 # interlibrary dependencies.
5641 # 'none' -- dependencies not supported.
5642 # `unknown' -- same as none, but documents that we really don't know.
5643 # 'pass_all' -- all dependencies passed with no checks.
5644 # 'test_compile' -- check by making test program.
5645 # 'file_magic [[regex]]' -- check by looking for files in library path
5646 # which responds to the $file_magic_cmd with a given extended regex.
5647 # If you have `file' or equivalent on your system and you're not sure
5648 # whether `pass_all' will *always* work, you probably want this one.
5649
5650 case $host_os in
5651 aix[4-9]*)
5652   lt_cv_deplibs_check_method=pass_all
5653   ;;
5654
5655 beos*)
5656   lt_cv_deplibs_check_method=pass_all
5657   ;;
5658
5659 bsdi[45]*)
5660   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5661   lt_cv_file_magic_cmd='/usr/bin/file -L'
5662   lt_cv_file_magic_test_file=/shlib/libc.so
5663   ;;
5664
5665 cygwin*)
5666   # func_win32_libid is a shell function defined in ltmain.sh
5667   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5668   lt_cv_file_magic_cmd='func_win32_libid'
5669   ;;
5670
5671 mingw* | pw32*)
5672   # Base MSYS/MinGW do not provide the 'file' command needed by
5673   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5674   # unless we find 'file', for example because we are cross-compiling.
5675   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5676   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5677     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5678     lt_cv_file_magic_cmd='func_win32_libid'
5679   else
5680     # Keep this pattern in sync with the one in func_win32_libid.
5681     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5682     lt_cv_file_magic_cmd='$OBJDUMP -f'
5683   fi
5684   ;;
5685
5686 cegcc*)
5687   # use the weaker test based on 'objdump'. See mingw*.
5688   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5689   lt_cv_file_magic_cmd='$OBJDUMP -f'
5690   ;;
5691
5692 darwin* | rhapsody*)
5693   lt_cv_deplibs_check_method=pass_all
5694   ;;
5695
5696 freebsd* | dragonfly*)
5697   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5698     case $host_cpu in
5699     i*86 )
5700       # Not sure whether the presence of OpenBSD here was a mistake.
5701       # Let's accept both of them until this is cleared up.
5702       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5703       lt_cv_file_magic_cmd=/usr/bin/file
5704       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5705       ;;
5706     esac
5707   else
5708     lt_cv_deplibs_check_method=pass_all
5709   fi
5710   ;;
5711
5712 gnu*)
5713   lt_cv_deplibs_check_method=pass_all
5714   ;;
5715
5716 haiku*)
5717   lt_cv_deplibs_check_method=pass_all
5718   ;;
5719
5720 hpux10.20* | hpux11*)
5721   lt_cv_file_magic_cmd=/usr/bin/file
5722   case $host_cpu in
5723   ia64*)
5724     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5725     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5726     ;;
5727   hppa*64*)
5728     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]'
5729     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5730     ;;
5731   *)
5732     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5733     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5734     ;;
5735   esac
5736   ;;
5737
5738 interix[3-9]*)
5739   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5740   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5741   ;;
5742
5743 irix5* | irix6* | nonstopux*)
5744   case $LD in
5745   *-32|*"-32 ") libmagic=32-bit;;
5746   *-n32|*"-n32 ") libmagic=N32;;
5747   *-64|*"-64 ") libmagic=64-bit;;
5748   *) libmagic=never-match;;
5749   esac
5750   lt_cv_deplibs_check_method=pass_all
5751   ;;
5752
5753 # This must be Linux ELF.
5754 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5755   lt_cv_deplibs_check_method=pass_all
5756   ;;
5757
5758 netbsd*)
5759   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5760     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5761   else
5762     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5763   fi
5764   ;;
5765
5766 newos6*)
5767   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5768   lt_cv_file_magic_cmd=/usr/bin/file
5769   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5770   ;;
5771
5772 *nto* | *qnx*)
5773   lt_cv_deplibs_check_method=pass_all
5774   ;;
5775
5776 openbsd*)
5777   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5778     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5779   else
5780     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5781   fi
5782   ;;
5783
5784 osf3* | osf4* | osf5*)
5785   lt_cv_deplibs_check_method=pass_all
5786   ;;
5787
5788 rdos*)
5789   lt_cv_deplibs_check_method=pass_all
5790   ;;
5791
5792 solaris*)
5793   lt_cv_deplibs_check_method=pass_all
5794   ;;
5795
5796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5797   lt_cv_deplibs_check_method=pass_all
5798   ;;
5799
5800 sysv4 | sysv4.3*)
5801   case $host_vendor in
5802   motorola)
5803     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]'
5804     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5805     ;;
5806   ncr)
5807     lt_cv_deplibs_check_method=pass_all
5808     ;;
5809   sequent)
5810     lt_cv_file_magic_cmd='/bin/file'
5811     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5812     ;;
5813   sni)
5814     lt_cv_file_magic_cmd='/bin/file'
5815     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5816     lt_cv_file_magic_test_file=/lib/libc.so
5817     ;;
5818   siemens)
5819     lt_cv_deplibs_check_method=pass_all
5820     ;;
5821   pc)
5822     lt_cv_deplibs_check_method=pass_all
5823     ;;
5824   esac
5825   ;;
5826
5827 tpf*)
5828   lt_cv_deplibs_check_method=pass_all
5829   ;;
5830 esac
5831
5832 fi
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5834 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5835
5836 file_magic_glob=
5837 want_nocaseglob=no
5838 if test "$build" = "$host"; then
5839   case $host_os in
5840   mingw* | pw32*)
5841     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5842       want_nocaseglob=yes
5843     else
5844       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5845     fi
5846     ;;
5847   esac
5848 fi
5849
5850 file_magic_cmd=$lt_cv_file_magic_cmd
5851 deplibs_check_method=$lt_cv_deplibs_check_method
5852 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875 if test -n "$ac_tool_prefix"; then
5876   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5877 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879 $as_echo_n "checking for $ac_word... " >&6; }
5880 if ${ac_cv_prog_DLLTOOL+:} false; then :
5881   $as_echo_n "(cached) " >&6
5882 else
5883   if test -n "$DLLTOOL"; then
5884   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5885 else
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889   IFS=$as_save_IFS
5890   test -z "$as_dir" && as_dir=.
5891     for ac_exec_ext in '' $ac_executable_extensions; do
5892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5893     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895     break 2
5896   fi
5897 done
5898   done
5899 IFS=$as_save_IFS
5900
5901 fi
5902 fi
5903 DLLTOOL=$ac_cv_prog_DLLTOOL
5904 if test -n "$DLLTOOL"; then
5905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5906 $as_echo "$DLLTOOL" >&6; }
5907 else
5908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5910 fi
5911
5912
5913 fi
5914 if test -z "$ac_cv_prog_DLLTOOL"; then
5915   ac_ct_DLLTOOL=$DLLTOOL
5916   # Extract the first word of "dlltool", so it can be a program name with args.
5917 set dummy dlltool; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5921   $as_echo_n "(cached) " >&6
5922 else
5923   if test -n "$ac_ct_DLLTOOL"; then
5924   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929   IFS=$as_save_IFS
5930   test -z "$as_dir" && as_dir=.
5931     for ac_exec_ext in '' $ac_executable_extensions; do
5932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935     break 2
5936   fi
5937 done
5938   done
5939 IFS=$as_save_IFS
5940
5941 fi
5942 fi
5943 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5944 if test -n "$ac_ct_DLLTOOL"; then
5945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5946 $as_echo "$ac_ct_DLLTOOL" >&6; }
5947 else
5948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5950 fi
5951
5952   if test "x$ac_ct_DLLTOOL" = x; then
5953     DLLTOOL="false"
5954   else
5955     case $cross_compiling:$ac_tool_warned in
5956 yes:)
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959 ac_tool_warned=yes ;;
5960 esac
5961     DLLTOOL=$ac_ct_DLLTOOL
5962   fi
5963 else
5964   DLLTOOL="$ac_cv_prog_DLLTOOL"
5965 fi
5966
5967 test -z "$DLLTOOL" && DLLTOOL=dlltool
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5979 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5980 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5981   $as_echo_n "(cached) " >&6
5982 else
5983   lt_cv_sharedlib_from_linklib_cmd='unknown'
5984
5985 case $host_os in
5986 cygwin* | mingw* | pw32* | cegcc*)
5987   # two different shell functions defined in ltmain.sh
5988   # decide which to use based on capabilities of $DLLTOOL
5989   case `$DLLTOOL --help 2>&1` in
5990   *--identify-strict*)
5991     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5992     ;;
5993   *)
5994     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5995     ;;
5996   esac
5997   ;;
5998 *)
5999   # fallback: assume linklib IS sharedlib
6000   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6001   ;;
6002 esac
6003
6004 fi
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6006 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6007 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6008 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6009
6010
6011
6012
6013
6014
6015
6016
6017 if test -n "$ac_tool_prefix"; then
6018   for ac_prog in ar
6019   do
6020     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023 $as_echo_n "checking for $ac_word... " >&6; }
6024 if ${ac_cv_prog_AR+:} false; then :
6025   $as_echo_n "(cached) " >&6
6026 else
6027   if test -n "$AR"; then
6028   ac_cv_prog_AR="$AR" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033   IFS=$as_save_IFS
6034   test -z "$as_dir" && as_dir=.
6035     for ac_exec_ext in '' $ac_executable_extensions; do
6036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039     break 2
6040   fi
6041 done
6042   done
6043 IFS=$as_save_IFS
6044
6045 fi
6046 fi
6047 AR=$ac_cv_prog_AR
6048 if test -n "$AR"; then
6049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6050 $as_echo "$AR" >&6; }
6051 else
6052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053 $as_echo "no" >&6; }
6054 fi
6055
6056
6057     test -n "$AR" && break
6058   done
6059 fi
6060 if test -z "$AR"; then
6061   ac_ct_AR=$AR
6062   for ac_prog in ar
6063 do
6064   # Extract the first word of "$ac_prog", so it can be a program name with args.
6065 set dummy $ac_prog; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6069   $as_echo_n "(cached) " >&6
6070 else
6071   if test -n "$ac_ct_AR"; then
6072   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079     for ac_exec_ext in '' $ac_executable_extensions; do
6080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081     ac_cv_prog_ac_ct_AR="$ac_prog"
6082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083     break 2
6084   fi
6085 done
6086   done
6087 IFS=$as_save_IFS
6088
6089 fi
6090 fi
6091 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6092 if test -n "$ac_ct_AR"; then
6093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6094 $as_echo "$ac_ct_AR" >&6; }
6095 else
6096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6098 fi
6099
6100
6101   test -n "$ac_ct_AR" && break
6102 done
6103
6104   if test "x$ac_ct_AR" = x; then
6105     AR="false"
6106   else
6107     case $cross_compiling:$ac_tool_warned in
6108 yes:)
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6111 ac_tool_warned=yes ;;
6112 esac
6113     AR=$ac_ct_AR
6114   fi
6115 fi
6116
6117 : ${AR=ar}
6118 : ${AR_FLAGS=cru}
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6131 $as_echo_n "checking for archiver @FILE support... " >&6; }
6132 if ${lt_cv_ar_at_file+:} false; then :
6133   $as_echo_n "(cached) " >&6
6134 else
6135   lt_cv_ar_at_file=no
6136    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h.  */
6138
6139 int
6140 main ()
6141 {
6142
6143   ;
6144   return 0;
6145 }
6146 _ACEOF
6147 if ac_fn_c_try_compile "$LINENO"; then :
6148   echo conftest.$ac_objext > conftest.lst
6149       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6150       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6151   (eval $lt_ar_try) 2>&5
6152   ac_status=$?
6153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154   test $ac_status = 0; }
6155       if test "$ac_status" -eq 0; then
6156         # Ensure the archiver fails upon bogus file names.
6157         rm -f conftest.$ac_objext libconftest.a
6158         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6159   (eval $lt_ar_try) 2>&5
6160   ac_status=$?
6161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6162   test $ac_status = 0; }
6163         if test "$ac_status" -ne 0; then
6164           lt_cv_ar_at_file=@
6165         fi
6166       fi
6167       rm -f conftest.* libconftest.a
6168
6169 fi
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171
6172 fi
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6174 $as_echo "$lt_cv_ar_at_file" >&6; }
6175
6176 if test "x$lt_cv_ar_at_file" = xno; then
6177   archiver_list_spec=
6178 else
6179   archiver_list_spec=$lt_cv_ar_at_file
6180 fi
6181
6182
6183
6184
6185
6186
6187
6188 if test -n "$ac_tool_prefix"; then
6189   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6190 set dummy ${ac_tool_prefix}strip; ac_word=$2
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 $as_echo_n "checking for $ac_word... " >&6; }
6193 if ${ac_cv_prog_STRIP+:} false; then :
6194   $as_echo_n "(cached) " >&6
6195 else
6196   if test -n "$STRIP"; then
6197   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6198 else
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202   IFS=$as_save_IFS
6203   test -z "$as_dir" && as_dir=.
6204     for ac_exec_ext in '' $ac_executable_extensions; do
6205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6206     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208     break 2
6209   fi
6210 done
6211   done
6212 IFS=$as_save_IFS
6213
6214 fi
6215 fi
6216 STRIP=$ac_cv_prog_STRIP
6217 if test -n "$STRIP"; then
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6219 $as_echo "$STRIP" >&6; }
6220 else
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 $as_echo "no" >&6; }
6223 fi
6224
6225
6226 fi
6227 if test -z "$ac_cv_prog_STRIP"; then
6228   ac_ct_STRIP=$STRIP
6229   # Extract the first word of "strip", so it can be a program name with args.
6230 set dummy strip; ac_word=$2
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232 $as_echo_n "checking for $ac_word... " >&6; }
6233 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6234   $as_echo_n "(cached) " >&6
6235 else
6236   if test -n "$ac_ct_STRIP"; then
6237   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6238 else
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
6242   IFS=$as_save_IFS
6243   test -z "$as_dir" && as_dir=.
6244     for ac_exec_ext in '' $ac_executable_extensions; do
6245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246     ac_cv_prog_ac_ct_STRIP="strip"
6247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248     break 2
6249   fi
6250 done
6251   done
6252 IFS=$as_save_IFS
6253
6254 fi
6255 fi
6256 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6257 if test -n "$ac_ct_STRIP"; then
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6259 $as_echo "$ac_ct_STRIP" >&6; }
6260 else
6261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6263 fi
6264
6265   if test "x$ac_ct_STRIP" = x; then
6266     STRIP=":"
6267   else
6268     case $cross_compiling:$ac_tool_warned in
6269 yes:)
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6272 ac_tool_warned=yes ;;
6273 esac
6274     STRIP=$ac_ct_STRIP
6275   fi
6276 else
6277   STRIP="$ac_cv_prog_STRIP"
6278 fi
6279
6280 test -z "$STRIP" && STRIP=:
6281
6282
6283
6284
6285
6286
6287 if test -n "$ac_tool_prefix"; then
6288   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6289 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if ${ac_cv_prog_RANLIB+:} false; then :
6293   $as_echo_n "(cached) " >&6
6294 else
6295   if test -n "$RANLIB"; then
6296   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303     for ac_exec_ext in '' $ac_executable_extensions; do
6304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308   fi
6309 done
6310   done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 RANLIB=$ac_cv_prog_RANLIB
6316 if test -n "$RANLIB"; then
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6318 $as_echo "$RANLIB" >&6; }
6319 else
6320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323
6324
6325 fi
6326 if test -z "$ac_cv_prog_RANLIB"; then
6327   ac_ct_RANLIB=$RANLIB
6328   # Extract the first word of "ranlib", so it can be a program name with args.
6329 set dummy ranlib; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6333   $as_echo_n "(cached) " >&6
6334 else
6335   if test -n "$ac_ct_RANLIB"; then
6336   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343     for ac_exec_ext in '' $ac_executable_extensions; do
6344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345     ac_cv_prog_ac_ct_RANLIB="ranlib"
6346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347     break 2
6348   fi
6349 done
6350   done
6351 IFS=$as_save_IFS
6352
6353 fi
6354 fi
6355 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6356 if test -n "$ac_ct_RANLIB"; then
6357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6358 $as_echo "$ac_ct_RANLIB" >&6; }
6359 else
6360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6362 fi
6363
6364   if test "x$ac_ct_RANLIB" = x; then
6365     RANLIB=":"
6366   else
6367     case $cross_compiling:$ac_tool_warned in
6368 yes:)
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6371 ac_tool_warned=yes ;;
6372 esac
6373     RANLIB=$ac_ct_RANLIB
6374   fi
6375 else
6376   RANLIB="$ac_cv_prog_RANLIB"
6377 fi
6378
6379 test -z "$RANLIB" && RANLIB=:
6380
6381
6382
6383
6384
6385
6386 # Determine commands to create old-style static archives.
6387 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6388 old_postinstall_cmds='chmod 644 $oldlib'
6389 old_postuninstall_cmds=
6390
6391 if test -n "$RANLIB"; then
6392   case $host_os in
6393   openbsd*)
6394     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6395     ;;
6396   *)
6397     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6398     ;;
6399   esac
6400   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6401 fi
6402
6403 case $host_os in
6404   darwin*)
6405     lock_old_archive_extraction=yes ;;
6406   *)
6407     lock_old_archive_extraction=no ;;
6408 esac
6409
6410
6411
6412
6413
6414
6415
6416
6417
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 # If no C compiler was specified, use CC.
6449 LTCC=${LTCC-"$CC"}
6450
6451 # If no C compiler flags were specified, use CFLAGS.
6452 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6453
6454 # Allow CC to be a program name with arguments.
6455 compiler=$CC
6456
6457
6458 # Check for command to grab the raw symbol name followed by C symbol from nm.
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6460 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6461 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6462   $as_echo_n "(cached) " >&6
6463 else
6464
6465 # These are sane defaults that work on at least a few old systems.
6466 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6467
6468 # Character class describing NM global symbol codes.
6469 symcode='[BCDEGRST]'
6470
6471 # Regexp to match symbols that can be accessed directly from C.
6472 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6473
6474 # Define system-specific variables.
6475 case $host_os in
6476 aix*)
6477   symcode='[BCDT]'
6478   ;;
6479 cygwin* | mingw* | pw32* | cegcc*)
6480   symcode='[ABCDGISTW]'
6481   ;;
6482 hpux*)
6483   if test "$host_cpu" = ia64; then
6484     symcode='[ABCDEGRST]'
6485   fi
6486   ;;
6487 irix* | nonstopux*)
6488   symcode='[BCDEGRST]'
6489   ;;
6490 osf*)
6491   symcode='[BCDEGQRST]'
6492   ;;
6493 solaris*)
6494   symcode='[BDRT]'
6495   ;;
6496 sco3.2v5*)
6497   symcode='[DT]'
6498   ;;
6499 sysv4.2uw2*)
6500   symcode='[DT]'
6501   ;;
6502 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6503   symcode='[ABDT]'
6504   ;;
6505 sysv4)
6506   symcode='[DFNSTU]'
6507   ;;
6508 esac
6509
6510 # If we're using GNU nm, then use its standard symbol codes.
6511 case `$NM -V 2>&1` in
6512 *GNU* | *'with BFD'*)
6513   symcode='[ABCDGIRSTW]' ;;
6514 esac
6515
6516 # Transform an extracted symbol line into a proper C declaration.
6517 # Some systems (esp. on ia64) link data and code symbols differently,
6518 # so use this general approach.
6519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6520
6521 # Transform an extracted symbol line into symbol name and symbol address
6522 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6523 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'"
6524
6525 # Handle CRLF in mingw tool chain
6526 opt_cr=
6527 case $build_os in
6528 mingw*)
6529   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6530   ;;
6531 esac
6532
6533 # Try without a prefix underscore, then with it.
6534 for ac_symprfx in "" "_"; do
6535
6536   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6537   symxfrm="\\1 $ac_symprfx\\2 \\2"
6538
6539   # Write the raw and C identifiers.
6540   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6541     # Fake it for dumpbin and say T for any non-static function
6542     # and D for any global variable.
6543     # Also find C++ and __fastcall symbols from MSVC++,
6544     # which start with @ or ?.
6545     lt_cv_sys_global_symbol_pipe="$AWK '"\
6546 "     {last_section=section; section=\$ 3};"\
6547 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6548 "     \$ 0!~/External *\|/{next};"\
6549 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6550 "     {if(hide[section]) next};"\
6551 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6552 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6553 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6554 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6555 "     ' prfx=^$ac_symprfx"
6556   else
6557     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6558   fi
6559   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6560
6561   # Check to see that the pipe works correctly.
6562   pipe_works=no
6563
6564   rm -f conftest*
6565   cat > conftest.$ac_ext <<_LT_EOF
6566 #ifdef __cplusplus
6567 extern "C" {
6568 #endif
6569 char nm_test_var;
6570 void nm_test_func(void);
6571 void nm_test_func(void){}
6572 #ifdef __cplusplus
6573 }
6574 #endif
6575 int main(){nm_test_var='a';nm_test_func();return(0);}
6576 _LT_EOF
6577
6578   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6579   (eval $ac_compile) 2>&5
6580   ac_status=$?
6581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6582   test $ac_status = 0; }; then
6583     # Now try to grab the symbols.
6584     nlist=conftest.nm
6585     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6586   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6587   ac_status=$?
6588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6589   test $ac_status = 0; } && test -s "$nlist"; then
6590       # Try sorting and uniquifying the output.
6591       if sort "$nlist" | uniq > "$nlist"T; then
6592         mv -f "$nlist"T "$nlist"
6593       else
6594         rm -f "$nlist"T
6595       fi
6596
6597       # Make sure that we snagged all the symbols we need.
6598       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6599         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6600           cat <<_LT_EOF > conftest.$ac_ext
6601 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6602 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6603 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6604    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6605 # define LT_DLSYM_CONST
6606 #elif defined(__osf__)
6607 /* This system does not cope well with relocations in const data.  */
6608 # define LT_DLSYM_CONST
6609 #else
6610 # define LT_DLSYM_CONST const
6611 #endif
6612
6613 #ifdef __cplusplus
6614 extern "C" {
6615 #endif
6616
6617 _LT_EOF
6618           # Now generate the symbol file.
6619           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6620
6621           cat <<_LT_EOF >> conftest.$ac_ext
6622
6623 /* The mapping between symbol names and symbols.  */
6624 LT_DLSYM_CONST struct {
6625   const char *name;
6626   void       *address;
6627 }
6628 lt__PROGRAM__LTX_preloaded_symbols[] =
6629 {
6630   { "@PROGRAM@", (void *) 0 },
6631 _LT_EOF
6632           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6633           cat <<\_LT_EOF >> conftest.$ac_ext
6634   {0, (void *) 0}
6635 };
6636
6637 /* This works around a problem in FreeBSD linker */
6638 #ifdef FREEBSD_WORKAROUND
6639 static const void *lt_preloaded_setup() {
6640   return lt__PROGRAM__LTX_preloaded_symbols;
6641 }
6642 #endif
6643
6644 #ifdef __cplusplus
6645 }
6646 #endif
6647 _LT_EOF
6648           # Now try linking the two files.
6649           mv conftest.$ac_objext conftstm.$ac_objext
6650           lt_globsym_save_LIBS=$LIBS
6651           lt_globsym_save_CFLAGS=$CFLAGS
6652           LIBS="conftstm.$ac_objext"
6653           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6654           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6655   (eval $ac_link) 2>&5
6656   ac_status=$?
6657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6658   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6659             pipe_works=yes
6660           fi
6661           LIBS=$lt_globsym_save_LIBS
6662           CFLAGS=$lt_globsym_save_CFLAGS
6663         else
6664           echo "cannot find nm_test_func in $nlist" >&5
6665         fi
6666       else
6667         echo "cannot find nm_test_var in $nlist" >&5
6668       fi
6669     else
6670       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6671     fi
6672   else
6673     echo "$progname: failed program was:" >&5
6674     cat conftest.$ac_ext >&5
6675   fi
6676   rm -rf conftest* conftst*
6677
6678   # Do not use the global_symbol_pipe unless it works.
6679   if test "$pipe_works" = yes; then
6680     break
6681   else
6682     lt_cv_sys_global_symbol_pipe=
6683   fi
6684 done
6685
6686 fi
6687
6688 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6689   lt_cv_sys_global_symbol_to_cdecl=
6690 fi
6691 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6693 $as_echo "failed" >&6; }
6694 else
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6696 $as_echo "ok" >&6; }
6697 fi
6698
6699 # Response file support.
6700 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6701   nm_file_list_spec='@'
6702 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6703   nm_file_list_spec='@'
6704 fi
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6733 $as_echo_n "checking for sysroot... " >&6; }
6734
6735 # Check whether --with-sysroot was given.
6736 if test "${with_sysroot+set}" = set; then :
6737   withval=$with_sysroot;
6738 else
6739   with_sysroot=no
6740 fi
6741
6742
6743 lt_sysroot=
6744 case ${with_sysroot} in #(
6745  yes)
6746    if test "$GCC" = yes; then
6747      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6748    fi
6749    ;; #(
6750  /*)
6751    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6752    ;; #(
6753  no|'')
6754    ;; #(
6755  *)
6756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6757 $as_echo "${with_sysroot}" >&6; }
6758    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6759    ;;
6760 esac
6761
6762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6763 $as_echo "${lt_sysroot:-no}" >&6; }
6764
6765
6766
6767
6768
6769 # Check whether --enable-libtool-lock was given.
6770 if test "${enable_libtool_lock+set}" = set; then :
6771   enableval=$enable_libtool_lock;
6772 fi
6773
6774 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6775
6776 # Some flags need to be propagated to the compiler or linker for good
6777 # libtool support.
6778 case $host in
6779 ia64-*-hpux*)
6780   # Find out which ABI we are using.
6781   echo 'int i;' > conftest.$ac_ext
6782   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6783   (eval $ac_compile) 2>&5
6784   ac_status=$?
6785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6786   test $ac_status = 0; }; then
6787     case `/usr/bin/file conftest.$ac_objext` in
6788       *ELF-32*)
6789         HPUX_IA64_MODE="32"
6790         ;;
6791       *ELF-64*)
6792         HPUX_IA64_MODE="64"
6793         ;;
6794     esac
6795   fi
6796   rm -rf conftest*
6797   ;;
6798 *-*-irix6*)
6799   # Find out which ABI we are using.
6800   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6801   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6802   (eval $ac_compile) 2>&5
6803   ac_status=$?
6804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6805   test $ac_status = 0; }; then
6806     if test "$lt_cv_prog_gnu_ld" = yes; then
6807       case `/usr/bin/file conftest.$ac_objext` in
6808         *32-bit*)
6809           LD="${LD-ld} -melf32bsmip"
6810           ;;
6811         *N32*)
6812           LD="${LD-ld} -melf32bmipn32"
6813           ;;
6814         *64-bit*)
6815           LD="${LD-ld} -melf64bmip"
6816         ;;
6817       esac
6818     else
6819       case `/usr/bin/file conftest.$ac_objext` in
6820         *32-bit*)
6821           LD="${LD-ld} -32"
6822           ;;
6823         *N32*)
6824           LD="${LD-ld} -n32"
6825           ;;
6826         *64-bit*)
6827           LD="${LD-ld} -64"
6828           ;;
6829       esac
6830     fi
6831   fi
6832   rm -rf conftest*
6833   ;;
6834
6835 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6836 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6837   # Find out which ABI we are using.
6838   echo 'int i;' > conftest.$ac_ext
6839   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6840   (eval $ac_compile) 2>&5
6841   ac_status=$?
6842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843   test $ac_status = 0; }; then
6844     case `/usr/bin/file conftest.o` in
6845       *32-bit*)
6846         case $host in
6847           x86_64-*kfreebsd*-gnu)
6848             LD="${LD-ld} -m elf_i386_fbsd"
6849             ;;
6850           x86_64-*linux*)
6851             case `/usr/bin/file conftest.o` in
6852               *x86-64*)
6853                  LD="${LD-ld} -m elf32_x86_64"
6854                  ;;
6855               *)
6856                  LD="${LD-ld} -m elf_i386"
6857                  ;;
6858             esac
6859             ;;
6860           ppc64-*linux*|powerpc64-*linux*)
6861             LD="${LD-ld} -m elf32ppclinux"
6862             ;;
6863           s390x-*linux*)
6864             LD="${LD-ld} -m elf_s390"
6865             ;;
6866           sparc64-*linux*)
6867             LD="${LD-ld} -m elf32_sparc"
6868             ;;
6869         esac
6870         ;;
6871       *64-bit*)
6872         case $host in
6873           x86_64-*kfreebsd*-gnu)
6874             LD="${LD-ld} -m elf_x86_64_fbsd"
6875             ;;
6876           x86_64-*linux*)
6877             LD="${LD-ld} -m elf_x86_64"
6878             ;;
6879           ppc*-*linux*|powerpc*-*linux*)
6880             LD="${LD-ld} -m elf64ppc"
6881             ;;
6882           s390*-*linux*|s390*-*tpf*)
6883             LD="${LD-ld} -m elf64_s390"
6884             ;;
6885           sparc*-*linux*)
6886             LD="${LD-ld} -m elf64_sparc"
6887             ;;
6888         esac
6889         ;;
6890     esac
6891   fi
6892   rm -rf conftest*
6893   ;;
6894
6895 *-*-sco3.2v5*)
6896   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6897   SAVE_CFLAGS="$CFLAGS"
6898   CFLAGS="$CFLAGS -belf"
6899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6900 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6901 if ${lt_cv_cc_needs_belf+:} false; then :
6902   $as_echo_n "(cached) " >&6
6903 else
6904   ac_ext=c
6905 ac_cpp='$CPP $CPPFLAGS'
6906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6909
6910      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h.  */
6912
6913 int
6914 main ()
6915 {
6916
6917   ;
6918   return 0;
6919 }
6920 _ACEOF
6921 if ac_fn_c_try_link "$LINENO"; then :
6922   lt_cv_cc_needs_belf=yes
6923 else
6924   lt_cv_cc_needs_belf=no
6925 fi
6926 rm -f core conftest.err conftest.$ac_objext \
6927     conftest$ac_exeext conftest.$ac_ext
6928      ac_ext=c
6929 ac_cpp='$CPP $CPPFLAGS'
6930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6933
6934 fi
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6936 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6937   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6938     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6939     CFLAGS="$SAVE_CFLAGS"
6940   fi
6941   ;;
6942 sparc*-*solaris*)
6943   # Find out which ABI we are using.
6944   echo 'int i;' > conftest.$ac_ext
6945   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6946   (eval $ac_compile) 2>&5
6947   ac_status=$?
6948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6949   test $ac_status = 0; }; then
6950     case `/usr/bin/file conftest.o` in
6951     *64-bit*)
6952       case $lt_cv_prog_gnu_ld in
6953       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6954       *)
6955         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6956           LD="${LD-ld} -64"
6957         fi
6958         ;;
6959       esac
6960       ;;
6961     esac
6962   fi
6963   rm -rf conftest*
6964   ;;
6965 esac
6966
6967 need_locks="$enable_libtool_lock"
6968
6969 if test -n "$ac_tool_prefix"; then
6970   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6971 set dummy ${ac_tool_prefix}mt; ac_word=$2
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6973 $as_echo_n "checking for $ac_word... " >&6; }
6974 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6975   $as_echo_n "(cached) " >&6
6976 else
6977   if test -n "$MANIFEST_TOOL"; then
6978   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6979 else
6980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 for as_dir in $PATH
6982 do
6983   IFS=$as_save_IFS
6984   test -z "$as_dir" && as_dir=.
6985     for ac_exec_ext in '' $ac_executable_extensions; do
6986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6987     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6989     break 2
6990   fi
6991 done
6992   done
6993 IFS=$as_save_IFS
6994
6995 fi
6996 fi
6997 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6998 if test -n "$MANIFEST_TOOL"; then
6999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7000 $as_echo "$MANIFEST_TOOL" >&6; }
7001 else
7002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7003 $as_echo "no" >&6; }
7004 fi
7005
7006
7007 fi
7008 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7009   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7010   # Extract the first word of "mt", so it can be a program name with args.
7011 set dummy mt; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7015   $as_echo_n "(cached) " >&6
7016 else
7017   if test -n "$ac_ct_MANIFEST_TOOL"; then
7018   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023   IFS=$as_save_IFS
7024   test -z "$as_dir" && as_dir=.
7025     for ac_exec_ext in '' $ac_executable_extensions; do
7026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029     break 2
7030   fi
7031 done
7032   done
7033 IFS=$as_save_IFS
7034
7035 fi
7036 fi
7037 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7038 if test -n "$ac_ct_MANIFEST_TOOL"; then
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7040 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7041 else
7042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7044 fi
7045
7046   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7047     MANIFEST_TOOL=":"
7048   else
7049     case $cross_compiling:$ac_tool_warned in
7050 yes:)
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7053 ac_tool_warned=yes ;;
7054 esac
7055     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7056   fi
7057 else
7058   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7059 fi
7060
7061 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7063 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7064 if ${lt_cv_path_mainfest_tool+:} false; then :
7065   $as_echo_n "(cached) " >&6
7066 else
7067   lt_cv_path_mainfest_tool=no
7068   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7069   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7070   cat conftest.err >&5
7071   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7072     lt_cv_path_mainfest_tool=yes
7073   fi
7074   rm -f conftest*
7075 fi
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7077 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7078 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7079   MANIFEST_TOOL=:
7080 fi
7081
7082
7083
7084
7085
7086
7087   case $host_os in
7088     rhapsody* | darwin*)
7089     if test -n "$ac_tool_prefix"; then
7090   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7091 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7095   $as_echo_n "(cached) " >&6
7096 else
7097   if test -n "$DSYMUTIL"; then
7098   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103   IFS=$as_save_IFS
7104   test -z "$as_dir" && as_dir=.
7105     for ac_exec_ext in '' $ac_executable_extensions; do
7106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7107     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7109     break 2
7110   fi
7111 done
7112   done
7113 IFS=$as_save_IFS
7114
7115 fi
7116 fi
7117 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7118 if test -n "$DSYMUTIL"; then
7119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7120 $as_echo "$DSYMUTIL" >&6; }
7121 else
7122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7124 fi
7125
7126
7127 fi
7128 if test -z "$ac_cv_prog_DSYMUTIL"; then
7129   ac_ct_DSYMUTIL=$DSYMUTIL
7130   # Extract the first word of "dsymutil", so it can be a program name with args.
7131 set dummy dsymutil; ac_word=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7135   $as_echo_n "(cached) " >&6
7136 else
7137   if test -n "$ac_ct_DSYMUTIL"; then
7138   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7139 else
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7142 do
7143   IFS=$as_save_IFS
7144   test -z "$as_dir" && as_dir=.
7145     for ac_exec_ext in '' $ac_executable_extensions; do
7146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7147     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149     break 2
7150   fi
7151 done
7152   done
7153 IFS=$as_save_IFS
7154
7155 fi
7156 fi
7157 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7158 if test -n "$ac_ct_DSYMUTIL"; then
7159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7160 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7161 else
7162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7164 fi
7165
7166   if test "x$ac_ct_DSYMUTIL" = x; then
7167     DSYMUTIL=":"
7168   else
7169     case $cross_compiling:$ac_tool_warned in
7170 yes:)
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7173 ac_tool_warned=yes ;;
7174 esac
7175     DSYMUTIL=$ac_ct_DSYMUTIL
7176   fi
7177 else
7178   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7179 fi
7180
7181     if test -n "$ac_tool_prefix"; then
7182   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7183 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7185 $as_echo_n "checking for $ac_word... " >&6; }
7186 if ${ac_cv_prog_NMEDIT+:} false; then :
7187   $as_echo_n "(cached) " >&6
7188 else
7189   if test -n "$NMEDIT"; then
7190   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7191 else
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7194 do
7195   IFS=$as_save_IFS
7196   test -z "$as_dir" && as_dir=.
7197     for ac_exec_ext in '' $ac_executable_extensions; do
7198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7199     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201     break 2
7202   fi
7203 done
7204   done
7205 IFS=$as_save_IFS
7206
7207 fi
7208 fi
7209 NMEDIT=$ac_cv_prog_NMEDIT
7210 if test -n "$NMEDIT"; then
7211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7212 $as_echo "$NMEDIT" >&6; }
7213 else
7214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7216 fi
7217
7218
7219 fi
7220 if test -z "$ac_cv_prog_NMEDIT"; then
7221   ac_ct_NMEDIT=$NMEDIT
7222   # Extract the first word of "nmedit", so it can be a program name with args.
7223 set dummy nmedit; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7227   $as_echo_n "(cached) " >&6
7228 else
7229   if test -n "$ac_ct_NMEDIT"; then
7230   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   test -z "$as_dir" && as_dir=.
7237     for ac_exec_ext in '' $ac_executable_extensions; do
7238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7239     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241     break 2
7242   fi
7243 done
7244   done
7245 IFS=$as_save_IFS
7246
7247 fi
7248 fi
7249 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7250 if test -n "$ac_ct_NMEDIT"; then
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7252 $as_echo "$ac_ct_NMEDIT" >&6; }
7253 else
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7257
7258   if test "x$ac_ct_NMEDIT" = x; then
7259     NMEDIT=":"
7260   else
7261     case $cross_compiling:$ac_tool_warned in
7262 yes:)
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7265 ac_tool_warned=yes ;;
7266 esac
7267     NMEDIT=$ac_ct_NMEDIT
7268   fi
7269 else
7270   NMEDIT="$ac_cv_prog_NMEDIT"
7271 fi
7272
7273     if test -n "$ac_tool_prefix"; then
7274   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7275 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277 $as_echo_n "checking for $ac_word... " >&6; }
7278 if ${ac_cv_prog_LIPO+:} false; then :
7279   $as_echo_n "(cached) " >&6
7280 else
7281   if test -n "$LIPO"; then
7282   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7283 else
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 for as_dir in $PATH
7286 do
7287   IFS=$as_save_IFS
7288   test -z "$as_dir" && as_dir=.
7289     for ac_exec_ext in '' $ac_executable_extensions; do
7290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7291     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7293     break 2
7294   fi
7295 done
7296   done
7297 IFS=$as_save_IFS
7298
7299 fi
7300 fi
7301 LIPO=$ac_cv_prog_LIPO
7302 if test -n "$LIPO"; then
7303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7304 $as_echo "$LIPO" >&6; }
7305 else
7306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7308 fi
7309
7310
7311 fi
7312 if test -z "$ac_cv_prog_LIPO"; then
7313   ac_ct_LIPO=$LIPO
7314   # Extract the first word of "lipo", so it can be a program name with args.
7315 set dummy lipo; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7319   $as_echo_n "(cached) " >&6
7320 else
7321   if test -n "$ac_ct_LIPO"; then
7322   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7323 else
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327   IFS=$as_save_IFS
7328   test -z "$as_dir" && as_dir=.
7329     for ac_exec_ext in '' $ac_executable_extensions; do
7330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7331     ac_cv_prog_ac_ct_LIPO="lipo"
7332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333     break 2
7334   fi
7335 done
7336   done
7337 IFS=$as_save_IFS
7338
7339 fi
7340 fi
7341 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7342 if test -n "$ac_ct_LIPO"; then
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7344 $as_echo "$ac_ct_LIPO" >&6; }
7345 else
7346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7348 fi
7349
7350   if test "x$ac_ct_LIPO" = x; then
7351     LIPO=":"
7352   else
7353     case $cross_compiling:$ac_tool_warned in
7354 yes:)
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7357 ac_tool_warned=yes ;;
7358 esac
7359     LIPO=$ac_ct_LIPO
7360   fi
7361 else
7362   LIPO="$ac_cv_prog_LIPO"
7363 fi
7364
7365     if test -n "$ac_tool_prefix"; then
7366   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7367 set dummy ${ac_tool_prefix}otool; ac_word=$2
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369 $as_echo_n "checking for $ac_word... " >&6; }
7370 if ${ac_cv_prog_OTOOL+:} false; then :
7371   $as_echo_n "(cached) " >&6
7372 else
7373   if test -n "$OTOOL"; then
7374   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7375 else
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7378 do
7379   IFS=$as_save_IFS
7380   test -z "$as_dir" && as_dir=.
7381     for ac_exec_ext in '' $ac_executable_extensions; do
7382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7383     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385     break 2
7386   fi
7387 done
7388   done
7389 IFS=$as_save_IFS
7390
7391 fi
7392 fi
7393 OTOOL=$ac_cv_prog_OTOOL
7394 if test -n "$OTOOL"; then
7395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7396 $as_echo "$OTOOL" >&6; }
7397 else
7398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7400 fi
7401
7402
7403 fi
7404 if test -z "$ac_cv_prog_OTOOL"; then
7405   ac_ct_OTOOL=$OTOOL
7406   # Extract the first word of "otool", so it can be a program name with args.
7407 set dummy otool; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7411   $as_echo_n "(cached) " >&6
7412 else
7413   if test -n "$ac_ct_OTOOL"; then
7414   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   test -z "$as_dir" && as_dir=.
7421     for ac_exec_ext in '' $ac_executable_extensions; do
7422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7423     ac_cv_prog_ac_ct_OTOOL="otool"
7424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425     break 2
7426   fi
7427 done
7428   done
7429 IFS=$as_save_IFS
7430
7431 fi
7432 fi
7433 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7434 if test -n "$ac_ct_OTOOL"; then
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7436 $as_echo "$ac_ct_OTOOL" >&6; }
7437 else
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7440 fi
7441
7442   if test "x$ac_ct_OTOOL" = x; then
7443     OTOOL=":"
7444   else
7445     case $cross_compiling:$ac_tool_warned in
7446 yes:)
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7449 ac_tool_warned=yes ;;
7450 esac
7451     OTOOL=$ac_ct_OTOOL
7452   fi
7453 else
7454   OTOOL="$ac_cv_prog_OTOOL"
7455 fi
7456
7457     if test -n "$ac_tool_prefix"; then
7458   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7459 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461 $as_echo_n "checking for $ac_word... " >&6; }
7462 if ${ac_cv_prog_OTOOL64+:} false; then :
7463   $as_echo_n "(cached) " >&6
7464 else
7465   if test -n "$OTOOL64"; then
7466   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7467 else
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471   IFS=$as_save_IFS
7472   test -z "$as_dir" && as_dir=.
7473     for ac_exec_ext in '' $ac_executable_extensions; do
7474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7475     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477     break 2
7478   fi
7479 done
7480   done
7481 IFS=$as_save_IFS
7482
7483 fi
7484 fi
7485 OTOOL64=$ac_cv_prog_OTOOL64
7486 if test -n "$OTOOL64"; then
7487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7488 $as_echo "$OTOOL64" >&6; }
7489 else
7490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7492 fi
7493
7494
7495 fi
7496 if test -z "$ac_cv_prog_OTOOL64"; then
7497   ac_ct_OTOOL64=$OTOOL64
7498   # Extract the first word of "otool64", so it can be a program name with args.
7499 set dummy otool64; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7503   $as_echo_n "(cached) " >&6
7504 else
7505   if test -n "$ac_ct_OTOOL64"; then
7506   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513     for ac_exec_ext in '' $ac_executable_extensions; do
7514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515     ac_cv_prog_ac_ct_OTOOL64="otool64"
7516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520   done
7521 IFS=$as_save_IFS
7522
7523 fi
7524 fi
7525 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7526 if test -n "$ac_ct_OTOOL64"; then
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7528 $as_echo "$ac_ct_OTOOL64" >&6; }
7529 else
7530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7532 fi
7533
7534   if test "x$ac_ct_OTOOL64" = x; then
7535     OTOOL64=":"
7536   else
7537     case $cross_compiling:$ac_tool_warned in
7538 yes:)
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7541 ac_tool_warned=yes ;;
7542 esac
7543     OTOOL64=$ac_ct_OTOOL64
7544   fi
7545 else
7546   OTOOL64="$ac_cv_prog_OTOOL64"
7547 fi
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7576 $as_echo_n "checking for -single_module linker flag... " >&6; }
7577 if ${lt_cv_apple_cc_single_mod+:} false; then :
7578   $as_echo_n "(cached) " >&6
7579 else
7580   lt_cv_apple_cc_single_mod=no
7581       if test -z "${LT_MULTI_MODULE}"; then
7582         # By default we will add the -single_module flag. You can override
7583         # by either setting the environment variable LT_MULTI_MODULE
7584         # non-empty at configure time, or by adding -multi_module to the
7585         # link flags.
7586         rm -rf libconftest.dylib*
7587         echo "int foo(void){return 1;}" > conftest.c
7588         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7589 -dynamiclib -Wl,-single_module conftest.c" >&5
7590         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7591           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7592         _lt_result=$?
7593         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7594           lt_cv_apple_cc_single_mod=yes
7595         else
7596           cat conftest.err >&5
7597         fi
7598         rm -rf libconftest.dylib*
7599         rm -f conftest.*
7600       fi
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7603 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7605 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7606 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7607   $as_echo_n "(cached) " >&6
7608 else
7609   lt_cv_ld_exported_symbols_list=no
7610       save_LDFLAGS=$LDFLAGS
7611       echo "_main" > conftest.sym
7612       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7613       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h.  */
7615
7616 int
7617 main ()
7618 {
7619
7620   ;
7621   return 0;
7622 }
7623 _ACEOF
7624 if ac_fn_c_try_link "$LINENO"; then :
7625   lt_cv_ld_exported_symbols_list=yes
7626 else
7627   lt_cv_ld_exported_symbols_list=no
7628 fi
7629 rm -f core conftest.err conftest.$ac_objext \
7630     conftest$ac_exeext conftest.$ac_ext
7631         LDFLAGS="$save_LDFLAGS"
7632
7633 fi
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7635 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7637 $as_echo_n "checking for -force_load linker flag... " >&6; }
7638 if ${lt_cv_ld_force_load+:} false; then :
7639   $as_echo_n "(cached) " >&6
7640 else
7641   lt_cv_ld_force_load=no
7642       cat > conftest.c << _LT_EOF
7643 int forced_loaded() { return 2;}
7644 _LT_EOF
7645       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7646       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7647       echo "$AR cru libconftest.a conftest.o" >&5
7648       $AR cru libconftest.a conftest.o 2>&5
7649       echo "$RANLIB libconftest.a" >&5
7650       $RANLIB libconftest.a 2>&5
7651       cat > conftest.c << _LT_EOF
7652 int main() { return 0;}
7653 _LT_EOF
7654       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7655       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7656       _lt_result=$?
7657       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7658         lt_cv_ld_force_load=yes
7659       else
7660         cat conftest.err >&5
7661       fi
7662         rm -f conftest.err libconftest.a conftest conftest.c
7663         rm -rf conftest.dSYM
7664
7665 fi
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7667 $as_echo "$lt_cv_ld_force_load" >&6; }
7668     case $host_os in
7669     rhapsody* | darwin1.[012])
7670       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7671     darwin1.*)
7672       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7673     darwin*) # darwin 5.x on
7674       # if running on 10.5 or later, the deployment target defaults
7675       # to the OS version, if on x86, and 10.4, the deployment
7676       # target defaults to 10.4. Don't you love it?
7677       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7678         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7679           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7680         10.[012]*)
7681           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7682         10.*)
7683           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7684       esac
7685     ;;
7686   esac
7687     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7688       _lt_dar_single_mod='$single_module'
7689     fi
7690     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7691       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7692     else
7693       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7694     fi
7695     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7696       _lt_dsymutil='~$DSYMUTIL $lib || :'
7697     else
7698       _lt_dsymutil=
7699     fi
7700     ;;
7701   esac
7702
7703 ac_ext=c
7704 ac_cpp='$CPP $CPPFLAGS'
7705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7709 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7710 # On Suns, sometimes $CPP names a directory.
7711 if test -n "$CPP" && test -d "$CPP"; then
7712   CPP=
7713 fi
7714 if test -z "$CPP"; then
7715   if ${ac_cv_prog_CPP+:} false; then :
7716   $as_echo_n "(cached) " >&6
7717 else
7718       # Double quotes because CPP needs to be expanded
7719     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7720     do
7721       ac_preproc_ok=false
7722 for ac_c_preproc_warn_flag in '' yes
7723 do
7724   # Use a header file that comes with gcc, so configuring glibc
7725   # with a fresh cross-compiler works.
7726   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7727   # <limits.h> exists even on freestanding compilers.
7728   # On the NeXT, cc -E runs the code through the compiler's parser,
7729   # not just through cpp. "Syntax error" is here to catch this case.
7730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h.  */
7732 #ifdef __STDC__
7733 # include <limits.h>
7734 #else
7735 # include <assert.h>
7736 #endif
7737                      Syntax error
7738 _ACEOF
7739 if ac_fn_c_try_cpp "$LINENO"; then :
7740
7741 else
7742   # Broken: fails on valid input.
7743 continue
7744 fi
7745 rm -f conftest.err conftest.i conftest.$ac_ext
7746
7747   # OK, works on sane cases.  Now check whether nonexistent headers
7748   # can be detected and how.
7749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h.  */
7751 #include <ac_nonexistent.h>
7752 _ACEOF
7753 if ac_fn_c_try_cpp "$LINENO"; then :
7754   # Broken: success on invalid input.
7755 continue
7756 else
7757   # Passes both tests.
7758 ac_preproc_ok=:
7759 break
7760 fi
7761 rm -f conftest.err conftest.i conftest.$ac_ext
7762
7763 done
7764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7765 rm -f conftest.i conftest.err conftest.$ac_ext
7766 if $ac_preproc_ok; then :
7767   break
7768 fi
7769
7770     done
7771     ac_cv_prog_CPP=$CPP
7772
7773 fi
7774   CPP=$ac_cv_prog_CPP
7775 else
7776   ac_cv_prog_CPP=$CPP
7777 fi
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7779 $as_echo "$CPP" >&6; }
7780 ac_preproc_ok=false
7781 for ac_c_preproc_warn_flag in '' yes
7782 do
7783   # Use a header file that comes with gcc, so configuring glibc
7784   # with a fresh cross-compiler works.
7785   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7786   # <limits.h> exists even on freestanding compilers.
7787   # On the NeXT, cc -E runs the code through the compiler's parser,
7788   # not just through cpp. "Syntax error" is here to catch this case.
7789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h.  */
7791 #ifdef __STDC__
7792 # include <limits.h>
7793 #else
7794 # include <assert.h>
7795 #endif
7796                      Syntax error
7797 _ACEOF
7798 if ac_fn_c_try_cpp "$LINENO"; then :
7799
7800 else
7801   # Broken: fails on valid input.
7802 continue
7803 fi
7804 rm -f conftest.err conftest.i conftest.$ac_ext
7805
7806   # OK, works on sane cases.  Now check whether nonexistent headers
7807   # can be detected and how.
7808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h.  */
7810 #include <ac_nonexistent.h>
7811 _ACEOF
7812 if ac_fn_c_try_cpp "$LINENO"; then :
7813   # Broken: success on invalid input.
7814 continue
7815 else
7816   # Passes both tests.
7817 ac_preproc_ok=:
7818 break
7819 fi
7820 rm -f conftest.err conftest.i conftest.$ac_ext
7821
7822 done
7823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7824 rm -f conftest.i conftest.err conftest.$ac_ext
7825 if $ac_preproc_ok; then :
7826
7827 else
7828   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7830 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7831 See \`config.log' for more details" "$LINENO" 5; }
7832 fi
7833
7834 ac_ext=c
7835 ac_cpp='$CPP $CPPFLAGS'
7836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7839
7840
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7842 $as_echo_n "checking for ANSI C header files... " >&6; }
7843 if ${ac_cv_header_stdc+:} false; then :
7844   $as_echo_n "(cached) " >&6
7845 else
7846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h.  */
7848 #include <stdlib.h>
7849 #include <stdarg.h>
7850 #include <string.h>
7851 #include <float.h>
7852
7853 int
7854 main ()
7855 {
7856
7857   ;
7858   return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_c_try_compile "$LINENO"; then :
7862   ac_cv_header_stdc=yes
7863 else
7864   ac_cv_header_stdc=no
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867
7868 if test $ac_cv_header_stdc = yes; then
7869   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h.  */
7872 #include <string.h>
7873
7874 _ACEOF
7875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7876   $EGREP "memchr" >/dev/null 2>&1; then :
7877
7878 else
7879   ac_cv_header_stdc=no
7880 fi
7881 rm -f conftest*
7882
7883 fi
7884
7885 if test $ac_cv_header_stdc = yes; then
7886   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h.  */
7889 #include <stdlib.h>
7890
7891 _ACEOF
7892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7893   $EGREP "free" >/dev/null 2>&1; then :
7894
7895 else
7896   ac_cv_header_stdc=no
7897 fi
7898 rm -f conftest*
7899
7900 fi
7901
7902 if test $ac_cv_header_stdc = yes; then
7903   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7904   if test "$cross_compiling" = yes; then :
7905   :
7906 else
7907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h.  */
7909 #include <ctype.h>
7910 #include <stdlib.h>
7911 #if ((' ' & 0x0FF) == 0x020)
7912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7914 #else
7915 # define ISLOWER(c) \
7916                    (('a' <= (c) && (c) <= 'i') \
7917                      || ('j' <= (c) && (c) <= 'r') \
7918                      || ('s' <= (c) && (c) <= 'z'))
7919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7920 #endif
7921
7922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7923 int
7924 main ()
7925 {
7926   int i;
7927   for (i = 0; i < 256; i++)
7928     if (XOR (islower (i), ISLOWER (i))
7929         || toupper (i) != TOUPPER (i))
7930       return 2;
7931   return 0;
7932 }
7933 _ACEOF
7934 if ac_fn_c_try_run "$LINENO"; then :
7935
7936 else
7937   ac_cv_header_stdc=no
7938 fi
7939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7940   conftest.$ac_objext conftest.beam conftest.$ac_ext
7941 fi
7942
7943 fi
7944 fi
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7946 $as_echo "$ac_cv_header_stdc" >&6; }
7947 if test $ac_cv_header_stdc = yes; then
7948
7949 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7950
7951 fi
7952
7953 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7954 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7955                   inttypes.h stdint.h unistd.h
7956 do :
7957   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7958 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7959 "
7960 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7961   cat >>confdefs.h <<_ACEOF
7962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7963 _ACEOF
7964
7965 fi
7966
7967 done
7968
7969
7970 for ac_header in dlfcn.h
7971 do :
7972   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7973 "
7974 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7975   cat >>confdefs.h <<_ACEOF
7976 #define HAVE_DLFCN_H 1
7977 _ACEOF
7978
7979 fi
7980
7981 done
7982
7983
7984
7985
7986
7987 # Set options
7988
7989
7990
7991         enable_dlopen=no
7992
7993
7994   enable_win32_dll=no
7995
7996
7997             # Check whether --enable-shared was given.
7998 if test "${enable_shared+set}" = set; then :
7999   enableval=$enable_shared; p=${PACKAGE-default}
8000     case $enableval in
8001     yes) enable_shared=yes ;;
8002     no) enable_shared=no ;;
8003     *)
8004       enable_shared=no
8005       # Look at the argument we got.  We use all the common list separators.
8006       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8007       for pkg in $enableval; do
8008         IFS="$lt_save_ifs"
8009         if test "X$pkg" = "X$p"; then
8010           enable_shared=yes
8011         fi
8012       done
8013       IFS="$lt_save_ifs"
8014       ;;
8015     esac
8016 else
8017   enable_shared=yes
8018 fi
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028   # Check whether --enable-static was given.
8029 if test "${enable_static+set}" = set; then :
8030   enableval=$enable_static; p=${PACKAGE-default}
8031     case $enableval in
8032     yes) enable_static=yes ;;
8033     no) enable_static=no ;;
8034     *)
8035      enable_static=no
8036       # Look at the argument we got.  We use all the common list separators.
8037       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8038       for pkg in $enableval; do
8039         IFS="$lt_save_ifs"
8040         if test "X$pkg" = "X$p"; then
8041           enable_static=yes
8042         fi
8043       done
8044       IFS="$lt_save_ifs"
8045       ;;
8046     esac
8047 else
8048   enable_static=yes
8049 fi
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060 # Check whether --with-pic was given.
8061 if test "${with_pic+set}" = set; then :
8062   withval=$with_pic; pic_mode="$withval"
8063 else
8064   pic_mode=default
8065 fi
8066
8067
8068 test -z "$pic_mode" && pic_mode=default
8069
8070
8071
8072
8073
8074
8075
8076   # Check whether --enable-fast-install was given.
8077 if test "${enable_fast_install+set}" = set; then :
8078   enableval=$enable_fast_install; p=${PACKAGE-default}
8079     case $enableval in
8080     yes) enable_fast_install=yes ;;
8081     no) enable_fast_install=no ;;
8082     *)
8083       enable_fast_install=no
8084       # Look at the argument we got.  We use all the common list separators.
8085       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8086       for pkg in $enableval; do
8087         IFS="$lt_save_ifs"
8088         if test "X$pkg" = "X$p"; then
8089           enable_fast_install=yes
8090         fi
8091       done
8092       IFS="$lt_save_ifs"
8093       ;;
8094     esac
8095 else
8096   enable_fast_install=yes
8097 fi
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109 # This can be used to rebuild libtool when needed
8110 LIBTOOL_DEPS="$ltmain"
8111
8112 # Always use our own libtool.
8113 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140 test -z "$LN_S" && LN_S="ln -s"
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155 if test -n "${ZSH_VERSION+set}" ; then
8156    setopt NO_GLOB_SUBST
8157 fi
8158
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8160 $as_echo_n "checking for objdir... " >&6; }
8161 if ${lt_cv_objdir+:} false; then :
8162   $as_echo_n "(cached) " >&6
8163 else
8164   rm -f .libs 2>/dev/null
8165 mkdir .libs 2>/dev/null
8166 if test -d .libs; then
8167   lt_cv_objdir=.libs
8168 else
8169   # MS-DOS does not allow filenames that begin with a dot.
8170   lt_cv_objdir=_libs
8171 fi
8172 rmdir .libs 2>/dev/null
8173 fi
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8175 $as_echo "$lt_cv_objdir" >&6; }
8176 objdir=$lt_cv_objdir
8177
8178
8179
8180
8181
8182 cat >>confdefs.h <<_ACEOF
8183 #define LT_OBJDIR "$lt_cv_objdir/"
8184 _ACEOF
8185
8186
8187
8188
8189 case $host_os in
8190 aix3*)
8191   # AIX sometimes has problems with the GCC collect2 program.  For some
8192   # reason, if we set the COLLECT_NAMES environment variable, the problems
8193   # vanish in a puff of smoke.
8194   if test "X${COLLECT_NAMES+set}" != Xset; then
8195     COLLECT_NAMES=
8196     export COLLECT_NAMES
8197   fi
8198   ;;
8199 esac
8200
8201 # Global variables:
8202 ofile=libtool
8203 can_build_shared=yes
8204
8205 # All known linkers require a `.a' archive for static linking (except MSVC,
8206 # which needs '.lib').
8207 libext=a
8208
8209 with_gnu_ld="$lt_cv_prog_gnu_ld"
8210
8211 old_CC="$CC"
8212 old_CFLAGS="$CFLAGS"
8213
8214 # Set sane defaults for various variables
8215 test -z "$CC" && CC=cc
8216 test -z "$LTCC" && LTCC=$CC
8217 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8218 test -z "$LD" && LD=ld
8219 test -z "$ac_objext" && ac_objext=o
8220
8221 for cc_temp in $compiler""; do
8222   case $cc_temp in
8223     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8224     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8225     \-*) ;;
8226     *) break;;
8227   esac
8228 done
8229 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8230
8231
8232 # Only perform the check for file, if the check method requires it
8233 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8234 case $deplibs_check_method in
8235 file_magic*)
8236   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8238 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8239 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8240   $as_echo_n "(cached) " >&6
8241 else
8242   case $MAGIC_CMD in
8243 [\\/*] |  ?:[\\/]*)
8244   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8245   ;;
8246 *)
8247   lt_save_MAGIC_CMD="$MAGIC_CMD"
8248   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8249   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8250   for ac_dir in $ac_dummy; do
8251     IFS="$lt_save_ifs"
8252     test -z "$ac_dir" && ac_dir=.
8253     if test -f $ac_dir/${ac_tool_prefix}file; then
8254       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8255       if test -n "$file_magic_test_file"; then
8256         case $deplibs_check_method in
8257         "file_magic "*)
8258           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8259           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8260           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8261             $EGREP "$file_magic_regex" > /dev/null; then
8262             :
8263           else
8264             cat <<_LT_EOF 1>&2
8265
8266 *** Warning: the command libtool uses to detect shared libraries,
8267 *** $file_magic_cmd, produces output that libtool cannot recognize.
8268 *** The result is that libtool may fail to recognize shared libraries
8269 *** as such.  This will affect the creation of libtool libraries that
8270 *** depend on shared libraries, but programs linked with such libtool
8271 *** libraries will work regardless of this problem.  Nevertheless, you
8272 *** may want to report the problem to your system manager and/or to
8273 *** bug-libtool@gnu.org
8274
8275 _LT_EOF
8276           fi ;;
8277         esac
8278       fi
8279       break
8280     fi
8281   done
8282   IFS="$lt_save_ifs"
8283   MAGIC_CMD="$lt_save_MAGIC_CMD"
8284   ;;
8285 esac
8286 fi
8287
8288 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8289 if test -n "$MAGIC_CMD"; then
8290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8291 $as_echo "$MAGIC_CMD" >&6; }
8292 else
8293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8295 fi
8296
8297
8298
8299
8300
8301 if test -z "$lt_cv_path_MAGIC_CMD"; then
8302   if test -n "$ac_tool_prefix"; then
8303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8304 $as_echo_n "checking for file... " >&6; }
8305 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8306   $as_echo_n "(cached) " >&6
8307 else
8308   case $MAGIC_CMD in
8309 [\\/*] |  ?:[\\/]*)
8310   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8311   ;;
8312 *)
8313   lt_save_MAGIC_CMD="$MAGIC_CMD"
8314   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8315   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8316   for ac_dir in $ac_dummy; do
8317     IFS="$lt_save_ifs"
8318     test -z "$ac_dir" && ac_dir=.
8319     if test -f $ac_dir/file; then
8320       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8321       if test -n "$file_magic_test_file"; then
8322         case $deplibs_check_method in
8323         "file_magic "*)
8324           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8325           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8326           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8327             $EGREP "$file_magic_regex" > /dev/null; then
8328             :
8329           else
8330             cat <<_LT_EOF 1>&2
8331
8332 *** Warning: the command libtool uses to detect shared libraries,
8333 *** $file_magic_cmd, produces output that libtool cannot recognize.
8334 *** The result is that libtool may fail to recognize shared libraries
8335 *** as such.  This will affect the creation of libtool libraries that
8336 *** depend on shared libraries, but programs linked with such libtool
8337 *** libraries will work regardless of this problem.  Nevertheless, you
8338 *** may want to report the problem to your system manager and/or to
8339 *** bug-libtool@gnu.org
8340
8341 _LT_EOF
8342           fi ;;
8343         esac
8344       fi
8345       break
8346     fi
8347   done
8348   IFS="$lt_save_ifs"
8349   MAGIC_CMD="$lt_save_MAGIC_CMD"
8350   ;;
8351 esac
8352 fi
8353
8354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8355 if test -n "$MAGIC_CMD"; then
8356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8357 $as_echo "$MAGIC_CMD" >&6; }
8358 else
8359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360 $as_echo "no" >&6; }
8361 fi
8362
8363
8364   else
8365     MAGIC_CMD=:
8366   fi
8367 fi
8368
8369   fi
8370   ;;
8371 esac
8372
8373 # Use C for the default configuration in the libtool script
8374
8375 lt_save_CC="$CC"
8376 ac_ext=c
8377 ac_cpp='$CPP $CPPFLAGS'
8378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8381
8382
8383 # Source file extension for C test sources.
8384 ac_ext=c
8385
8386 # Object file extension for compiled C test sources.
8387 objext=o
8388 objext=$objext
8389
8390 # Code to be used in simple compile tests
8391 lt_simple_compile_test_code="int some_variable = 0;"
8392
8393 # Code to be used in simple link tests
8394 lt_simple_link_test_code='int main(){return(0);}'
8395
8396
8397
8398
8399
8400
8401
8402 # If no C compiler was specified, use CC.
8403 LTCC=${LTCC-"$CC"}
8404
8405 # If no C compiler flags were specified, use CFLAGS.
8406 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8407
8408 # Allow CC to be a program name with arguments.
8409 compiler=$CC
8410
8411 # Save the default compiler, since it gets overwritten when the other
8412 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8413 compiler_DEFAULT=$CC
8414
8415 # save warnings/boilerplate of simple test code
8416 ac_outfile=conftest.$ac_objext
8417 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8418 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8419 _lt_compiler_boilerplate=`cat conftest.err`
8420 $RM conftest*
8421
8422 ac_outfile=conftest.$ac_objext
8423 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8424 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8425 _lt_linker_boilerplate=`cat conftest.err`
8426 $RM -r conftest*
8427
8428
8429 ## CAVEAT EMPTOR:
8430 ## There is no encapsulation within the following macros, do not change
8431 ## the running order or otherwise move them around unless you know exactly
8432 ## what you are doing...
8433 if test -n "$compiler"; then
8434
8435 lt_prog_compiler_no_builtin_flag=
8436
8437 if test "$GCC" = yes; then
8438   case $cc_basename in
8439   nvcc*)
8440     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8441   *)
8442     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8443   esac
8444
8445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8446 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8447 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8448   $as_echo_n "(cached) " >&6
8449 else
8450   lt_cv_prog_compiler_rtti_exceptions=no
8451    ac_outfile=conftest.$ac_objext
8452    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8453    lt_compiler_flag="-fno-rtti -fno-exceptions"
8454    # Insert the option either (1) after the last *FLAGS variable, or
8455    # (2) before a word containing "conftest.", or (3) at the end.
8456    # Note that $ac_compile itself does not contain backslashes and begins
8457    # with a dollar sign (not a hyphen), so the echo should work correctly.
8458    # The option is referenced via a variable to avoid confusing sed.
8459    lt_compile=`echo "$ac_compile" | $SED \
8460    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8461    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8462    -e 's:$: $lt_compiler_flag:'`
8463    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8464    (eval "$lt_compile" 2>conftest.err)
8465    ac_status=$?
8466    cat conftest.err >&5
8467    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468    if (exit $ac_status) && test -s "$ac_outfile"; then
8469      # The compiler can only warn and ignore the option if not recognized
8470      # So say no if there are warnings other than the usual output.
8471      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8472      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8473      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8474        lt_cv_prog_compiler_rtti_exceptions=yes
8475      fi
8476    fi
8477    $RM conftest*
8478
8479 fi
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8481 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8482
8483 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8484     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8485 else
8486     :
8487 fi
8488
8489 fi
8490
8491
8492
8493
8494
8495
8496   lt_prog_compiler_wl=
8497 lt_prog_compiler_pic=
8498 lt_prog_compiler_static=
8499
8500
8501   if test "$GCC" = yes; then
8502     lt_prog_compiler_wl='-Wl,'
8503     lt_prog_compiler_static='-static'
8504
8505     case $host_os in
8506       aix*)
8507       # All AIX code is PIC.
8508       if test "$host_cpu" = ia64; then
8509         # AIX 5 now supports IA64 processor
8510         lt_prog_compiler_static='-Bstatic'
8511       fi
8512       ;;
8513
8514     amigaos*)
8515       case $host_cpu in
8516       powerpc)
8517             # see comment about AmigaOS4 .so support
8518             lt_prog_compiler_pic='-fPIC'
8519         ;;
8520       m68k)
8521             # FIXME: we need at least 68020 code to build shared libraries, but
8522             # adding the `-m68020' flag to GCC prevents building anything better,
8523             # like `-m68040'.
8524             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8525         ;;
8526       esac
8527       ;;
8528
8529     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8530       # PIC is the default for these OSes.
8531       ;;
8532
8533     mingw* | cygwin* | pw32* | os2* | cegcc*)
8534       # This hack is so that the source file can tell whether it is being
8535       # built for inclusion in a dll (and should export symbols for example).
8536       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8537       # (--disable-auto-import) libraries
8538       lt_prog_compiler_pic='-DDLL_EXPORT'
8539       ;;
8540
8541     darwin* | rhapsody*)
8542       # PIC is the default on this platform
8543       # Common symbols not allowed in MH_DYLIB files
8544       lt_prog_compiler_pic='-fno-common'
8545       ;;
8546
8547     haiku*)
8548       # PIC is the default for Haiku.
8549       # The "-static" flag exists, but is broken.
8550       lt_prog_compiler_static=
8551       ;;
8552
8553     hpux*)
8554       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8555       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8556       # sets the default TLS model and affects inlining.
8557       case $host_cpu in
8558       hppa*64*)
8559         # +Z the default
8560         ;;
8561       *)
8562         lt_prog_compiler_pic='-fPIC'
8563         ;;
8564       esac
8565       ;;
8566
8567     interix[3-9]*)
8568       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8569       # Instead, we relocate shared libraries at runtime.
8570       ;;
8571
8572     msdosdjgpp*)
8573       # Just because we use GCC doesn't mean we suddenly get shared libraries
8574       # on systems that don't support them.
8575       lt_prog_compiler_can_build_shared=no
8576       enable_shared=no
8577       ;;
8578
8579     *nto* | *qnx*)
8580       # QNX uses GNU C++, but need to define -shared option too, otherwise
8581       # it will coredump.
8582       lt_prog_compiler_pic='-fPIC -shared'
8583       ;;
8584
8585     sysv4*MP*)
8586       if test -d /usr/nec; then
8587         lt_prog_compiler_pic=-Kconform_pic
8588       fi
8589       ;;
8590
8591     *)
8592       lt_prog_compiler_pic='-fPIC'
8593       ;;
8594     esac
8595
8596     case $cc_basename in
8597     nvcc*) # Cuda Compiler Driver 2.2
8598       lt_prog_compiler_wl='-Xlinker '
8599       lt_prog_compiler_pic='-Xcompiler -fPIC'
8600       ;;
8601     esac
8602   else
8603     # PORTME Check for flag to pass linker flags through the system compiler.
8604     case $host_os in
8605     aix*)
8606       lt_prog_compiler_wl='-Wl,'
8607       if test "$host_cpu" = ia64; then
8608         # AIX 5 now supports IA64 processor
8609         lt_prog_compiler_static='-Bstatic'
8610       else
8611         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8612       fi
8613       ;;
8614
8615     mingw* | cygwin* | pw32* | os2* | cegcc*)
8616       # This hack is so that the source file can tell whether it is being
8617       # built for inclusion in a dll (and should export symbols for example).
8618       lt_prog_compiler_pic='-DDLL_EXPORT'
8619       ;;
8620
8621     hpux9* | hpux10* | hpux11*)
8622       lt_prog_compiler_wl='-Wl,'
8623       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8624       # not for PA HP-UX.
8625       case $host_cpu in
8626       hppa*64*|ia64*)
8627         # +Z the default
8628         ;;
8629       *)
8630         lt_prog_compiler_pic='+Z'
8631         ;;
8632       esac
8633       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8634       lt_prog_compiler_static='${wl}-a ${wl}archive'
8635       ;;
8636
8637     irix5* | irix6* | nonstopux*)
8638       lt_prog_compiler_wl='-Wl,'
8639       # PIC (with -KPIC) is the default.
8640       lt_prog_compiler_static='-non_shared'
8641       ;;
8642
8643     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8644       case $cc_basename in
8645       # old Intel for x86_64 which still supported -KPIC.
8646       ecc*)
8647         lt_prog_compiler_wl='-Wl,'
8648         lt_prog_compiler_pic='-KPIC'
8649         lt_prog_compiler_static='-static'
8650         ;;
8651       # icc used to be incompatible with GCC.
8652       # ICC 10 doesn't accept -KPIC any more.
8653       icc* | ifort*)
8654         lt_prog_compiler_wl='-Wl,'
8655         lt_prog_compiler_pic='-fPIC'
8656         lt_prog_compiler_static='-static'
8657         ;;
8658       # Lahey Fortran 8.1.
8659       lf95*)
8660         lt_prog_compiler_wl='-Wl,'
8661         lt_prog_compiler_pic='--shared'
8662         lt_prog_compiler_static='--static'
8663         ;;
8664       nagfor*)
8665         # NAG Fortran compiler
8666         lt_prog_compiler_wl='-Wl,-Wl,,'
8667         lt_prog_compiler_pic='-PIC'
8668         lt_prog_compiler_static='-Bstatic'
8669         ;;
8670       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8671         # Portland Group compilers (*not* the Pentium gcc compiler,
8672         # which looks to be a dead project)
8673         lt_prog_compiler_wl='-Wl,'
8674         lt_prog_compiler_pic='-fpic'
8675         lt_prog_compiler_static='-Bstatic'
8676         ;;
8677       ccc*)
8678         lt_prog_compiler_wl='-Wl,'
8679         # All Alpha code is PIC.
8680         lt_prog_compiler_static='-non_shared'
8681         ;;
8682       xl* | bgxl* | bgf* | mpixl*)
8683         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8684         lt_prog_compiler_wl='-Wl,'
8685         lt_prog_compiler_pic='-qpic'
8686         lt_prog_compiler_static='-qstaticlink'
8687         ;;
8688       *)
8689         case `$CC -V 2>&1 | sed 5q` in
8690         *Sun\ F* | *Sun*Fortran*)
8691           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8692           lt_prog_compiler_pic='-KPIC'
8693           lt_prog_compiler_static='-Bstatic'
8694           lt_prog_compiler_wl=''
8695           ;;
8696         *Sun\ C*)
8697           # Sun C 5.9
8698           lt_prog_compiler_pic='-KPIC'
8699           lt_prog_compiler_static='-Bstatic'
8700           lt_prog_compiler_wl='-Wl,'
8701           ;;
8702         esac
8703         ;;
8704       esac
8705       ;;
8706
8707     newsos6)
8708       lt_prog_compiler_pic='-KPIC'
8709       lt_prog_compiler_static='-Bstatic'
8710       ;;
8711
8712     *nto* | *qnx*)
8713       # QNX uses GNU C++, but need to define -shared option too, otherwise
8714       # it will coredump.
8715       lt_prog_compiler_pic='-fPIC -shared'
8716       ;;
8717
8718     osf3* | osf4* | osf5*)
8719       lt_prog_compiler_wl='-Wl,'
8720       # All OSF/1 code is PIC.
8721       lt_prog_compiler_static='-non_shared'
8722       ;;
8723
8724     rdos*)
8725       lt_prog_compiler_static='-non_shared'
8726       ;;
8727
8728     solaris*)
8729       lt_prog_compiler_pic='-KPIC'
8730       lt_prog_compiler_static='-Bstatic'
8731       case $cc_basename in
8732       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8733         lt_prog_compiler_wl='-Qoption ld ';;
8734       *)
8735         lt_prog_compiler_wl='-Wl,';;
8736       esac
8737       ;;
8738
8739     sunos4*)
8740       lt_prog_compiler_wl='-Qoption ld '
8741       lt_prog_compiler_pic='-PIC'
8742       lt_prog_compiler_static='-Bstatic'
8743       ;;
8744
8745     sysv4 | sysv4.2uw2* | sysv4.3*)
8746       lt_prog_compiler_wl='-Wl,'
8747       lt_prog_compiler_pic='-KPIC'
8748       lt_prog_compiler_static='-Bstatic'
8749       ;;
8750
8751     sysv4*MP*)
8752       if test -d /usr/nec ;then
8753         lt_prog_compiler_pic='-Kconform_pic'
8754         lt_prog_compiler_static='-Bstatic'
8755       fi
8756       ;;
8757
8758     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8759       lt_prog_compiler_wl='-Wl,'
8760       lt_prog_compiler_pic='-KPIC'
8761       lt_prog_compiler_static='-Bstatic'
8762       ;;
8763
8764     unicos*)
8765       lt_prog_compiler_wl='-Wl,'
8766       lt_prog_compiler_can_build_shared=no
8767       ;;
8768
8769     uts4*)
8770       lt_prog_compiler_pic='-pic'
8771       lt_prog_compiler_static='-Bstatic'
8772       ;;
8773
8774     *)
8775       lt_prog_compiler_can_build_shared=no
8776       ;;
8777     esac
8778   fi
8779
8780 case $host_os in
8781   # For platforms which do not support PIC, -DPIC is meaningless:
8782   *djgpp*)
8783     lt_prog_compiler_pic=
8784     ;;
8785   *)
8786     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8787     ;;
8788 esac
8789
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8791 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8792 if ${lt_cv_prog_compiler_pic+:} false; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8796 fi
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8798 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8799 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8800
8801 #
8802 # Check to make sure the PIC flag actually works.
8803 #
8804 if test -n "$lt_prog_compiler_pic"; then
8805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8806 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8807 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8808   $as_echo_n "(cached) " >&6
8809 else
8810   lt_cv_prog_compiler_pic_works=no
8811    ac_outfile=conftest.$ac_objext
8812    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8813    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8814    # Insert the option either (1) after the last *FLAGS variable, or
8815    # (2) before a word containing "conftest.", or (3) at the end.
8816    # Note that $ac_compile itself does not contain backslashes and begins
8817    # with a dollar sign (not a hyphen), so the echo should work correctly.
8818    # The option is referenced via a variable to avoid confusing sed.
8819    lt_compile=`echo "$ac_compile" | $SED \
8820    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8821    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8822    -e 's:$: $lt_compiler_flag:'`
8823    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8824    (eval "$lt_compile" 2>conftest.err)
8825    ac_status=$?
8826    cat conftest.err >&5
8827    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828    if (exit $ac_status) && test -s "$ac_outfile"; then
8829      # The compiler can only warn and ignore the option if not recognized
8830      # So say no if there are warnings other than the usual output.
8831      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8832      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8833      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8834        lt_cv_prog_compiler_pic_works=yes
8835      fi
8836    fi
8837    $RM conftest*
8838
8839 fi
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8841 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8842
8843 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8844     case $lt_prog_compiler_pic in
8845      "" | " "*) ;;
8846      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8847      esac
8848 else
8849     lt_prog_compiler_pic=
8850      lt_prog_compiler_can_build_shared=no
8851 fi
8852
8853 fi
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865 #
8866 # Check to make sure the static flag actually works.
8867 #
8868 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8870 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8871 if ${lt_cv_prog_compiler_static_works+:} false; then :
8872   $as_echo_n "(cached) " >&6
8873 else
8874   lt_cv_prog_compiler_static_works=no
8875    save_LDFLAGS="$LDFLAGS"
8876    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8877    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8878    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8879      # The linker can only warn and ignore the option if not recognized
8880      # So say no if there are warnings
8881      if test -s conftest.err; then
8882        # Append any errors to the config.log.
8883        cat conftest.err 1>&5
8884        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8885        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8886        if diff conftest.exp conftest.er2 >/dev/null; then
8887          lt_cv_prog_compiler_static_works=yes
8888        fi
8889      else
8890        lt_cv_prog_compiler_static_works=yes
8891      fi
8892    fi
8893    $RM -r conftest*
8894    LDFLAGS="$save_LDFLAGS"
8895
8896 fi
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8898 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8899
8900 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8901     :
8902 else
8903     lt_prog_compiler_static=
8904 fi
8905
8906
8907
8908
8909
8910
8911
8912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8913 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8914 if ${lt_cv_prog_compiler_c_o+:} false; then :
8915   $as_echo_n "(cached) " >&6
8916 else
8917   lt_cv_prog_compiler_c_o=no
8918    $RM -r conftest 2>/dev/null
8919    mkdir conftest
8920    cd conftest
8921    mkdir out
8922    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8923
8924    lt_compiler_flag="-o out/conftest2.$ac_objext"
8925    # Insert the option either (1) after the last *FLAGS variable, or
8926    # (2) before a word containing "conftest.", or (3) at the end.
8927    # Note that $ac_compile itself does not contain backslashes and begins
8928    # with a dollar sign (not a hyphen), so the echo should work correctly.
8929    lt_compile=`echo "$ac_compile" | $SED \
8930    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8931    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8932    -e 's:$: $lt_compiler_flag:'`
8933    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8934    (eval "$lt_compile" 2>out/conftest.err)
8935    ac_status=$?
8936    cat out/conftest.err >&5
8937    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8939    then
8940      # The compiler can only warn and ignore the option if not recognized
8941      # So say no if there are warnings
8942      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8943      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8944      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8945        lt_cv_prog_compiler_c_o=yes
8946      fi
8947    fi
8948    chmod u+w . 2>&5
8949    $RM conftest*
8950    # SGI C++ compiler will create directory out/ii_files/ for
8951    # template instantiation
8952    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8953    $RM out/* && rmdir out
8954    cd ..
8955    $RM -r conftest
8956    $RM conftest*
8957
8958 fi
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8960 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8961
8962
8963
8964
8965
8966
8967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8968 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8969 if ${lt_cv_prog_compiler_c_o+:} false; then :
8970   $as_echo_n "(cached) " >&6
8971 else
8972   lt_cv_prog_compiler_c_o=no
8973    $RM -r conftest 2>/dev/null
8974    mkdir conftest
8975    cd conftest
8976    mkdir out
8977    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8978
8979    lt_compiler_flag="-o out/conftest2.$ac_objext"
8980    # Insert the option either (1) after the last *FLAGS variable, or
8981    # (2) before a word containing "conftest.", or (3) at the end.
8982    # Note that $ac_compile itself does not contain backslashes and begins
8983    # with a dollar sign (not a hyphen), so the echo should work correctly.
8984    lt_compile=`echo "$ac_compile" | $SED \
8985    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8986    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8987    -e 's:$: $lt_compiler_flag:'`
8988    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8989    (eval "$lt_compile" 2>out/conftest.err)
8990    ac_status=$?
8991    cat out/conftest.err >&5
8992    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8994    then
8995      # The compiler can only warn and ignore the option if not recognized
8996      # So say no if there are warnings
8997      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8998      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8999      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9000        lt_cv_prog_compiler_c_o=yes
9001      fi
9002    fi
9003    chmod u+w . 2>&5
9004    $RM conftest*
9005    # SGI C++ compiler will create directory out/ii_files/ for
9006    # template instantiation
9007    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9008    $RM out/* && rmdir out
9009    cd ..
9010    $RM -r conftest
9011    $RM conftest*
9012
9013 fi
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9015 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9016
9017
9018
9019
9020 hard_links="nottested"
9021 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9022   # do not overwrite the value of need_locks provided by the user
9023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9024 $as_echo_n "checking if we can lock with hard links... " >&6; }
9025   hard_links=yes
9026   $RM conftest*
9027   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9028   touch conftest.a
9029   ln conftest.a conftest.b 2>&5 || hard_links=no
9030   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9032 $as_echo "$hard_links" >&6; }
9033   if test "$hard_links" = no; then
9034     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9035 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9036     need_locks=warn
9037   fi
9038 else
9039   need_locks=no
9040 fi
9041
9042
9043
9044
9045
9046
9047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9048 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9049
9050   runpath_var=
9051   allow_undefined_flag=
9052   always_export_symbols=no
9053   archive_cmds=
9054   archive_expsym_cmds=
9055   compiler_needs_object=no
9056   enable_shared_with_static_runtimes=no
9057   export_dynamic_flag_spec=
9058   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9059   hardcode_automatic=no
9060   hardcode_direct=no
9061   hardcode_direct_absolute=no
9062   hardcode_libdir_flag_spec=
9063   hardcode_libdir_flag_spec_ld=
9064   hardcode_libdir_separator=
9065   hardcode_minus_L=no
9066   hardcode_shlibpath_var=unsupported
9067   inherit_rpath=no
9068   link_all_deplibs=unknown
9069   module_cmds=
9070   module_expsym_cmds=
9071   old_archive_from_new_cmds=
9072   old_archive_from_expsyms_cmds=
9073   thread_safe_flag_spec=
9074   whole_archive_flag_spec=
9075   # include_expsyms should be a list of space-separated symbols to be *always*
9076   # included in the symbol list
9077   include_expsyms=
9078   # exclude_expsyms can be an extended regexp of symbols to exclude
9079   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9080   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9081   # as well as any symbol that contains `d'.
9082   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9083   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9084   # platforms (ab)use it in PIC code, but their linkers get confused if
9085   # the symbol is explicitly referenced.  Since portable code cannot
9086   # rely on this symbol name, it's probably fine to never include it in
9087   # preloaded symbol tables.
9088   # Exclude shared library initialization/finalization symbols.
9089   extract_expsyms_cmds=
9090
9091   case $host_os in
9092   cygwin* | mingw* | pw32* | cegcc*)
9093     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9094     # When not using gcc, we currently assume that we are using
9095     # Microsoft Visual C++.
9096     if test "$GCC" != yes; then
9097       with_gnu_ld=no
9098     fi
9099     ;;
9100   interix*)
9101     # we just hope/assume this is gcc and not c89 (= MSVC++)
9102     with_gnu_ld=yes
9103     ;;
9104   openbsd*)
9105     with_gnu_ld=no
9106     ;;
9107   esac
9108
9109   ld_shlibs=yes
9110
9111   # On some targets, GNU ld is compatible enough with the native linker
9112   # that we're better off using the native interface for both.
9113   lt_use_gnu_ld_interface=no
9114   if test "$with_gnu_ld" = yes; then
9115     case $host_os in
9116       aix*)
9117         # The AIX port of GNU ld has always aspired to compatibility
9118         # with the native linker.  However, as the warning in the GNU ld
9119         # block says, versions before 2.19.5* couldn't really create working
9120         # shared libraries, regardless of the interface used.
9121         case `$LD -v 2>&1` in
9122           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9123           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9124           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9125           *)
9126             lt_use_gnu_ld_interface=yes
9127             ;;
9128         esac
9129         ;;
9130       *)
9131         lt_use_gnu_ld_interface=yes
9132         ;;
9133     esac
9134   fi
9135
9136   if test "$lt_use_gnu_ld_interface" = yes; then
9137     # If archive_cmds runs LD, not CC, wlarc should be empty
9138     wlarc='${wl}'
9139
9140     # Set some defaults for GNU ld with shared library support. These
9141     # are reset later if shared libraries are not supported. Putting them
9142     # here allows them to be overridden if necessary.
9143     runpath_var=LD_RUN_PATH
9144     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9145     export_dynamic_flag_spec='${wl}--export-dynamic'
9146     # ancient GNU ld didn't support --whole-archive et. al.
9147     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9148       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9149     else
9150       whole_archive_flag_spec=
9151     fi
9152     supports_anon_versioning=no
9153     case `$LD -v 2>&1` in
9154       *GNU\ gold*) supports_anon_versioning=yes ;;
9155       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9156       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9157       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9158       *\ 2.11.*) ;; # other 2.11 versions
9159       *) supports_anon_versioning=yes ;;
9160     esac
9161
9162     # See if GNU ld supports shared libraries.
9163     case $host_os in
9164     aix[3-9]*)
9165       # On AIX/PPC, the GNU linker is very broken
9166       if test "$host_cpu" != ia64; then
9167         ld_shlibs=no
9168         cat <<_LT_EOF 1>&2
9169
9170 *** Warning: the GNU linker, at least up to release 2.19, is reported
9171 *** to be unable to reliably create shared libraries on AIX.
9172 *** Therefore, libtool is disabling shared libraries support.  If you
9173 *** really care for shared libraries, you may want to install binutils
9174 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9175 *** You will then need to restart the configuration process.
9176
9177 _LT_EOF
9178       fi
9179       ;;
9180
9181     amigaos*)
9182       case $host_cpu in
9183       powerpc)
9184             # see comment about AmigaOS4 .so support
9185             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9186             archive_expsym_cmds=''
9187         ;;
9188       m68k)
9189             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)'
9190             hardcode_libdir_flag_spec='-L$libdir'
9191             hardcode_minus_L=yes
9192         ;;
9193       esac
9194       ;;
9195
9196     beos*)
9197       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9198         allow_undefined_flag=unsupported
9199         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9200         # support --undefined.  This deserves some investigation.  FIXME
9201         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202       else
9203         ld_shlibs=no
9204       fi
9205       ;;
9206
9207     cygwin* | mingw* | pw32* | cegcc*)
9208       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9209       # as there is no search path for DLLs.
9210       hardcode_libdir_flag_spec='-L$libdir'
9211       export_dynamic_flag_spec='${wl}--export-all-symbols'
9212       allow_undefined_flag=unsupported
9213       always_export_symbols=no
9214       enable_shared_with_static_runtimes=yes
9215       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'
9216       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9217
9218       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9219         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9220         # If the export-symbols file already is a .def file (1st line
9221         # is EXPORTS), use it as is; otherwise, prepend...
9222         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9223           cp $export_symbols $output_objdir/$soname.def;
9224         else
9225           echo EXPORTS > $output_objdir/$soname.def;
9226           cat $export_symbols >> $output_objdir/$soname.def;
9227         fi~
9228         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9229       else
9230         ld_shlibs=no
9231       fi
9232       ;;
9233
9234     haiku*)
9235       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9236       link_all_deplibs=yes
9237       ;;
9238
9239     interix[3-9]*)
9240       hardcode_direct=no
9241       hardcode_shlibpath_var=no
9242       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9243       export_dynamic_flag_spec='${wl}-E'
9244       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9245       # Instead, shared libraries are loaded at an image base (0x10000000 by
9246       # default) and relocated if they conflict, which is a slow very memory
9247       # consuming and fragmenting process.  To avoid this, we pick a random,
9248       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9249       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9250       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9251       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'
9252       ;;
9253
9254     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9255       tmp_diet=no
9256       if test "$host_os" = linux-dietlibc; then
9257         case $cc_basename in
9258           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9259         esac
9260       fi
9261       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9262          && test "$tmp_diet" = no
9263       then
9264         tmp_addflag=' $pic_flag'
9265         tmp_sharedflag='-shared'
9266         case $cc_basename,$host_cpu in
9267         pgcc*)                          # Portland Group C compiler
9268           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'
9269           tmp_addflag=' $pic_flag'
9270           ;;
9271         pgf77* | pgf90* | pgf95* | pgfortran*)
9272                                         # Portland Group f77 and f90 compilers
9273           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'
9274           tmp_addflag=' $pic_flag -Mnomain' ;;
9275         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9276           tmp_addflag=' -i_dynamic' ;;
9277         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9278           tmp_addflag=' -i_dynamic -nofor_main' ;;
9279         ifc* | ifort*)                  # Intel Fortran compiler
9280           tmp_addflag=' -nofor_main' ;;
9281         lf95*)                          # Lahey Fortran 8.1
9282           whole_archive_flag_spec=
9283           tmp_sharedflag='--shared' ;;
9284         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9285           tmp_sharedflag='-qmkshrobj'
9286           tmp_addflag= ;;
9287         nvcc*)  # Cuda Compiler Driver 2.2
9288           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'
9289           compiler_needs_object=yes
9290           ;;
9291         esac
9292         case `$CC -V 2>&1 | sed 5q` in
9293         *Sun\ C*)                       # Sun C 5.9
9294           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'
9295           compiler_needs_object=yes
9296           tmp_sharedflag='-G' ;;
9297         *Sun\ F*)                       # Sun Fortran 8.3
9298           tmp_sharedflag='-G' ;;
9299         esac
9300         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301
9302         if test "x$supports_anon_versioning" = xyes; then
9303           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9304             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9305             echo "local: *; };" >> $output_objdir/$libname.ver~
9306             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9307         fi
9308
9309         case $cc_basename in
9310         xlf* | bgf* | bgxlf* | mpixlf*)
9311           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9312           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9313           hardcode_libdir_flag_spec=
9314           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9315           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9316           if test "x$supports_anon_versioning" = xyes; then
9317             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9318               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9319               echo "local: *; };" >> $output_objdir/$libname.ver~
9320               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9321           fi
9322           ;;
9323         esac
9324       else
9325         ld_shlibs=no
9326       fi
9327       ;;
9328
9329     netbsd*)
9330       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9331         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9332         wlarc=
9333       else
9334         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9335         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9336       fi
9337       ;;
9338
9339     solaris*)
9340       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9341         ld_shlibs=no
9342         cat <<_LT_EOF 1>&2
9343
9344 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9345 *** create shared libraries on Solaris systems.  Therefore, libtool
9346 *** is disabling shared libraries support.  We urge you to upgrade GNU
9347 *** binutils to release 2.9.1 or newer.  Another option is to modify
9348 *** your PATH or compiler configuration so that the native linker is
9349 *** used, and then restart.
9350
9351 _LT_EOF
9352       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9353         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9354         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9355       else
9356         ld_shlibs=no
9357       fi
9358       ;;
9359
9360     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9361       case `$LD -v 2>&1` in
9362         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9363         ld_shlibs=no
9364         cat <<_LT_EOF 1>&2
9365
9366 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9367 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9368 *** is disabling shared libraries support.  We urge you to upgrade GNU
9369 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9370 *** your PATH or compiler configuration so that the native linker is
9371 *** used, and then restart.
9372
9373 _LT_EOF
9374         ;;
9375         *)
9376           # For security reasons, it is highly recommended that you always
9377           # use absolute paths for naming shared libraries, and exclude the
9378           # DT_RUNPATH tag from executables and libraries.  But doing so
9379           # requires that you compile everything twice, which is a pain.
9380           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9381             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9382             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9384           else
9385             ld_shlibs=no
9386           fi
9387         ;;
9388       esac
9389       ;;
9390
9391     sunos4*)
9392       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9393       wlarc=
9394       hardcode_direct=yes
9395       hardcode_shlibpath_var=no
9396       ;;
9397
9398     *)
9399       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9400         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9401         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9402       else
9403         ld_shlibs=no
9404       fi
9405       ;;
9406     esac
9407
9408     if test "$ld_shlibs" = no; then
9409       runpath_var=
9410       hardcode_libdir_flag_spec=
9411       export_dynamic_flag_spec=
9412       whole_archive_flag_spec=
9413     fi
9414   else
9415     # PORTME fill in a description of your system's linker (not GNU ld)
9416     case $host_os in
9417     aix3*)
9418       allow_undefined_flag=unsupported
9419       always_export_symbols=yes
9420       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'
9421       # Note: this linker hardcodes the directories in LIBPATH if there
9422       # are no directories specified by -L.
9423       hardcode_minus_L=yes
9424       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9425         # Neither direct hardcoding nor static linking is supported with a
9426         # broken collect2.
9427         hardcode_direct=unsupported
9428       fi
9429       ;;
9430
9431     aix[4-9]*)
9432       if test "$host_cpu" = ia64; then
9433         # On IA64, the linker does run time linking by default, so we don't
9434         # have to do anything special.
9435         aix_use_runtimelinking=no
9436         exp_sym_flag='-Bexport'
9437         no_entry_flag=""
9438       else
9439         # If we're using GNU nm, then we don't want the "-C" option.
9440         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9441         # Also, AIX nm treats weak defined symbols like other global
9442         # defined symbols, whereas GNU nm marks them as "W".
9443         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9444           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'
9445         else
9446           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'
9447         fi
9448         aix_use_runtimelinking=no
9449
9450         # Test if we are trying to use run time linking or normal
9451         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9452         # need to do runtime linking.
9453         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9454           for ld_flag in $LDFLAGS; do
9455           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9456             aix_use_runtimelinking=yes
9457             break
9458           fi
9459           done
9460           ;;
9461         esac
9462
9463         exp_sym_flag='-bexport'
9464         no_entry_flag='-bnoentry'
9465       fi
9466
9467       # When large executables or shared objects are built, AIX ld can
9468       # have problems creating the table of contents.  If linking a library
9469       # or program results in "error TOC overflow" add -mminimal-toc to
9470       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9471       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9472
9473       archive_cmds=''
9474       hardcode_direct=yes
9475       hardcode_direct_absolute=yes
9476       hardcode_libdir_separator=':'
9477       link_all_deplibs=yes
9478       file_list_spec='${wl}-f,'
9479
9480       if test "$GCC" = yes; then
9481         case $host_os in aix4.[012]|aix4.[012].*)
9482         # We only want to do this on AIX 4.2 and lower, the check
9483         # below for broken collect2 doesn't work under 4.3+
9484           collect2name=`${CC} -print-prog-name=collect2`
9485           if test -f "$collect2name" &&
9486            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9487           then
9488           # We have reworked collect2
9489           :
9490           else
9491           # We have old collect2
9492           hardcode_direct=unsupported
9493           # It fails to find uninstalled libraries when the uninstalled
9494           # path is not listed in the libpath.  Setting hardcode_minus_L
9495           # to unsupported forces relinking
9496           hardcode_minus_L=yes
9497           hardcode_libdir_flag_spec='-L$libdir'
9498           hardcode_libdir_separator=
9499           fi
9500           ;;
9501         esac
9502         shared_flag='-shared'
9503         if test "$aix_use_runtimelinking" = yes; then
9504           shared_flag="$shared_flag "'${wl}-G'
9505         fi
9506       else
9507         # not using gcc
9508         if test "$host_cpu" = ia64; then
9509         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9510         # chokes on -Wl,-G. The following line is correct:
9511           shared_flag='-G'
9512         else
9513           if test "$aix_use_runtimelinking" = yes; then
9514             shared_flag='${wl}-G'
9515           else
9516             shared_flag='${wl}-bM:SRE'
9517           fi
9518         fi
9519       fi
9520
9521       export_dynamic_flag_spec='${wl}-bexpall'
9522       # It seems that -bexpall does not export symbols beginning with
9523       # underscore (_), so it is better to generate a list of symbols to export.
9524       always_export_symbols=yes
9525       if test "$aix_use_runtimelinking" = yes; then
9526         # Warning - without using the other runtime loading flags (-brtl),
9527         # -berok will link without error, but may produce a broken library.
9528         allow_undefined_flag='-berok'
9529         # Determine the default libpath from the value encoded in an
9530         # empty executable.
9531         if test "${lt_cv_aix_libpath+set}" = set; then
9532   aix_libpath=$lt_cv_aix_libpath
9533 else
9534   if ${lt_cv_aix_libpath_+:} false; then :
9535   $as_echo_n "(cached) " >&6
9536 else
9537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h.  */
9539
9540 int
9541 main ()
9542 {
9543
9544   ;
9545   return 0;
9546 }
9547 _ACEOF
9548 if ac_fn_c_try_link "$LINENO"; then :
9549
9550   lt_aix_libpath_sed='
9551       /Import File Strings/,/^$/ {
9552           /^0/ {
9553               s/^0  *\([^ ]*\) *$/\1/
9554               p
9555           }
9556       }'
9557   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9558   # Check for a 64-bit object if we didn't find anything.
9559   if test -z "$lt_cv_aix_libpath_"; then
9560     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9561   fi
9562 fi
9563 rm -f core conftest.err conftest.$ac_objext \
9564     conftest$ac_exeext conftest.$ac_ext
9565   if test -z "$lt_cv_aix_libpath_"; then
9566     lt_cv_aix_libpath_="/usr/lib:/lib"
9567   fi
9568
9569 fi
9570
9571   aix_libpath=$lt_cv_aix_libpath_
9572 fi
9573
9574         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9575         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"
9576       else
9577         if test "$host_cpu" = ia64; then
9578           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9579           allow_undefined_flag="-z nodefs"
9580           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"
9581         else
9582          # Determine the default libpath from the value encoded in an
9583          # empty executable.
9584          if test "${lt_cv_aix_libpath+set}" = set; then
9585   aix_libpath=$lt_cv_aix_libpath
9586 else
9587   if ${lt_cv_aix_libpath_+:} false; then :
9588   $as_echo_n "(cached) " >&6
9589 else
9590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h.  */
9592
9593 int
9594 main ()
9595 {
9596
9597   ;
9598   return 0;
9599 }
9600 _ACEOF
9601 if ac_fn_c_try_link "$LINENO"; then :
9602
9603   lt_aix_libpath_sed='
9604       /Import File Strings/,/^$/ {
9605           /^0/ {
9606               s/^0  *\([^ ]*\) *$/\1/
9607               p
9608           }
9609       }'
9610   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9611   # Check for a 64-bit object if we didn't find anything.
9612   if test -z "$lt_cv_aix_libpath_"; then
9613     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9614   fi
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext \
9617     conftest$ac_exeext conftest.$ac_ext
9618   if test -z "$lt_cv_aix_libpath_"; then
9619     lt_cv_aix_libpath_="/usr/lib:/lib"
9620   fi
9621
9622 fi
9623
9624   aix_libpath=$lt_cv_aix_libpath_
9625 fi
9626
9627          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9628           # Warning - without using the other run time loading flags,
9629           # -berok will link without error, but may produce a broken library.
9630           no_undefined_flag=' ${wl}-bernotok'
9631           allow_undefined_flag=' ${wl}-berok'
9632           if test "$with_gnu_ld" = yes; then
9633             # We only use this code for GNU lds that support --whole-archive.
9634             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9635           else
9636             # Exported symbols can be pulled into shared objects from archives
9637             whole_archive_flag_spec='$convenience'
9638           fi
9639           archive_cmds_need_lc=yes
9640           # This is similar to how AIX traditionally builds its shared libraries.
9641           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'
9642         fi
9643       fi
9644       ;;
9645
9646     amigaos*)
9647       case $host_cpu in
9648       powerpc)
9649             # see comment about AmigaOS4 .so support
9650             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9651             archive_expsym_cmds=''
9652         ;;
9653       m68k)
9654             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)'
9655             hardcode_libdir_flag_spec='-L$libdir'
9656             hardcode_minus_L=yes
9657         ;;
9658       esac
9659       ;;
9660
9661     bsdi[45]*)
9662       export_dynamic_flag_spec=-rdynamic
9663       ;;
9664
9665     cygwin* | mingw* | pw32* | cegcc*)
9666       # When not using gcc, we currently assume that we are using
9667       # Microsoft Visual C++.
9668       # hardcode_libdir_flag_spec is actually meaningless, as there is
9669       # no search path for DLLs.
9670       case $cc_basename in
9671       cl*)
9672         # Native MSVC
9673         hardcode_libdir_flag_spec=' '
9674         allow_undefined_flag=unsupported
9675         always_export_symbols=yes
9676         file_list_spec='@'
9677         # Tell ltmain to make .lib files, not .a files.
9678         libext=lib
9679         # Tell ltmain to make .dll files, not .so files.
9680         shrext_cmds=".dll"
9681         # FIXME: Setting linknames here is a bad hack.
9682         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9683         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9684             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9685           else
9686             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9687           fi~
9688           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9689           linknames='
9690         # The linker will not automatically build a static lib if we build a DLL.
9691         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9692         enable_shared_with_static_runtimes=yes
9693         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9694         # Don't use ranlib
9695         old_postinstall_cmds='chmod 644 $oldlib'
9696         postlink_cmds='lt_outputfile="@OUTPUT@"~
9697           lt_tool_outputfile="@TOOL_OUTPUT@"~
9698           case $lt_outputfile in
9699             *.exe|*.EXE) ;;
9700             *)
9701               lt_outputfile="$lt_outputfile.exe"
9702               lt_tool_outputfile="$lt_tool_outputfile.exe"
9703               ;;
9704           esac~
9705           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9706             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9707             $RM "$lt_outputfile.manifest";
9708           fi'
9709         ;;
9710       *)
9711         # Assume MSVC wrapper
9712         hardcode_libdir_flag_spec=' '
9713         allow_undefined_flag=unsupported
9714         # Tell ltmain to make .lib files, not .a files.
9715         libext=lib
9716         # Tell ltmain to make .dll files, not .so files.
9717         shrext_cmds=".dll"
9718         # FIXME: Setting linknames here is a bad hack.
9719         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9720         # The linker will automatically build a .lib file if we build a DLL.
9721         old_archive_from_new_cmds='true'
9722         # FIXME: Should let the user specify the lib program.
9723         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9724         enable_shared_with_static_runtimes=yes
9725         ;;
9726       esac
9727       ;;
9728
9729     darwin* | rhapsody*)
9730
9731
9732   archive_cmds_need_lc=no
9733   hardcode_direct=no
9734   hardcode_automatic=yes
9735   hardcode_shlibpath_var=unsupported
9736   if test "$lt_cv_ld_force_load" = "yes"; then
9737     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\"`'
9738   else
9739     whole_archive_flag_spec=''
9740   fi
9741   link_all_deplibs=yes
9742   allow_undefined_flag="$_lt_dar_allow_undefined"
9743   case $cc_basename in
9744      ifort*) _lt_dar_can_shared=yes ;;
9745      *) _lt_dar_can_shared=$GCC ;;
9746   esac
9747   if test "$_lt_dar_can_shared" = "yes"; then
9748     output_verbose_link_cmd=func_echo_all
9749     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9750     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9751     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}"
9752     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}"
9753
9754   else
9755   ld_shlibs=no
9756   fi
9757
9758       ;;
9759
9760     dgux*)
9761       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762       hardcode_libdir_flag_spec='-L$libdir'
9763       hardcode_shlibpath_var=no
9764       ;;
9765
9766     freebsd1*)
9767       ld_shlibs=no
9768       ;;
9769
9770     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9771     # support.  Future versions do this automatically, but an explicit c++rt0.o
9772     # does not break anything, and helps significantly (at the cost of a little
9773     # extra space).
9774     freebsd2.2*)
9775       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9776       hardcode_libdir_flag_spec='-R$libdir'
9777       hardcode_direct=yes
9778       hardcode_shlibpath_var=no
9779       ;;
9780
9781     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9782     freebsd2*)
9783       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9784       hardcode_direct=yes
9785       hardcode_minus_L=yes
9786       hardcode_shlibpath_var=no
9787       ;;
9788
9789     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9790     freebsd* | dragonfly*)
9791       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9792       hardcode_libdir_flag_spec='-R$libdir'
9793       hardcode_direct=yes
9794       hardcode_shlibpath_var=no
9795       ;;
9796
9797     hpux9*)
9798       if test "$GCC" = yes; then
9799         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'
9800       else
9801         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'
9802       fi
9803       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9804       hardcode_libdir_separator=:
9805       hardcode_direct=yes
9806
9807       # hardcode_minus_L: Not really in the search PATH,
9808       # but as the default location of the library.
9809       hardcode_minus_L=yes
9810       export_dynamic_flag_spec='${wl}-E'
9811       ;;
9812
9813     hpux10*)
9814       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9815         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9816       else
9817         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9818       fi
9819       if test "$with_gnu_ld" = no; then
9820         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9821         hardcode_libdir_flag_spec_ld='+b $libdir'
9822         hardcode_libdir_separator=:
9823         hardcode_direct=yes
9824         hardcode_direct_absolute=yes
9825         export_dynamic_flag_spec='${wl}-E'
9826         # hardcode_minus_L: Not really in the search PATH,
9827         # but as the default location of the library.
9828         hardcode_minus_L=yes
9829       fi
9830       ;;
9831
9832     hpux11*)
9833       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9834         case $host_cpu in
9835         hppa*64*)
9836           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9837           ;;
9838         ia64*)
9839           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9840           ;;
9841         *)
9842           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9843           ;;
9844         esac
9845       else
9846         case $host_cpu in
9847         hppa*64*)
9848           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9849           ;;
9850         ia64*)
9851           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9852           ;;
9853         *)
9854
9855           # Older versions of the 11.00 compiler do not understand -b yet
9856           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9857           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9858 $as_echo_n "checking if $CC understands -b... " >&6; }
9859 if ${lt_cv_prog_compiler__b+:} false; then :
9860   $as_echo_n "(cached) " >&6
9861 else
9862   lt_cv_prog_compiler__b=no
9863    save_LDFLAGS="$LDFLAGS"
9864    LDFLAGS="$LDFLAGS -b"
9865    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9866    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9867      # The linker can only warn and ignore the option if not recognized
9868      # So say no if there are warnings
9869      if test -s conftest.err; then
9870        # Append any errors to the config.log.
9871        cat conftest.err 1>&5
9872        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9873        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9874        if diff conftest.exp conftest.er2 >/dev/null; then
9875          lt_cv_prog_compiler__b=yes
9876        fi
9877      else
9878        lt_cv_prog_compiler__b=yes
9879      fi
9880    fi
9881    $RM -r conftest*
9882    LDFLAGS="$save_LDFLAGS"
9883
9884 fi
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9886 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9887
9888 if test x"$lt_cv_prog_compiler__b" = xyes; then
9889     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9890 else
9891     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9892 fi
9893
9894           ;;
9895         esac
9896       fi
9897       if test "$with_gnu_ld" = no; then
9898         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9899         hardcode_libdir_separator=:
9900
9901         case $host_cpu in
9902         hppa*64*|ia64*)
9903           hardcode_direct=no
9904           hardcode_shlibpath_var=no
9905           ;;
9906         *)
9907           hardcode_direct=yes
9908           hardcode_direct_absolute=yes
9909           export_dynamic_flag_spec='${wl}-E'
9910
9911           # hardcode_minus_L: Not really in the search PATH,
9912           # but as the default location of the library.
9913           hardcode_minus_L=yes
9914           ;;
9915         esac
9916       fi
9917       ;;
9918
9919     irix5* | irix6* | nonstopux*)
9920       if test "$GCC" = yes; then
9921         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'
9922         # Try to use the -exported_symbol ld option, if it does not
9923         # work, assume that -exports_file does not work either and
9924         # implicitly export all symbols.
9925         # This should be the same for all languages, so no per-tag cache variable.
9926         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9927 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9928 if ${lt_cv_irix_exported_symbol+:} false; then :
9929   $as_echo_n "(cached) " >&6
9930 else
9931   save_LDFLAGS="$LDFLAGS"
9932            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9933            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h.  */
9935 int foo (void) { return 0; }
9936 _ACEOF
9937 if ac_fn_c_try_link "$LINENO"; then :
9938   lt_cv_irix_exported_symbol=yes
9939 else
9940   lt_cv_irix_exported_symbol=no
9941 fi
9942 rm -f core conftest.err conftest.$ac_objext \
9943     conftest$ac_exeext conftest.$ac_ext
9944            LDFLAGS="$save_LDFLAGS"
9945 fi
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9947 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9948         if test "$lt_cv_irix_exported_symbol" = yes; then
9949           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'
9950         fi
9951       else
9952         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'
9953         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'
9954       fi
9955       archive_cmds_need_lc='no'
9956       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9957       hardcode_libdir_separator=:
9958       inherit_rpath=yes
9959       link_all_deplibs=yes
9960       ;;
9961
9962     netbsd*)
9963       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9964         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9965       else
9966         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9967       fi
9968       hardcode_libdir_flag_spec='-R$libdir'
9969       hardcode_direct=yes
9970       hardcode_shlibpath_var=no
9971       ;;
9972
9973     newsos6)
9974       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9975       hardcode_direct=yes
9976       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9977       hardcode_libdir_separator=:
9978       hardcode_shlibpath_var=no
9979       ;;
9980
9981     *nto* | *qnx*)
9982       ;;
9983
9984     openbsd*)
9985       if test -f /usr/libexec/ld.so; then
9986         hardcode_direct=yes
9987         hardcode_shlibpath_var=no
9988         hardcode_direct_absolute=yes
9989         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9990           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9991           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9992           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9993           export_dynamic_flag_spec='${wl}-E'
9994         else
9995           case $host_os in
9996            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9997              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9998              hardcode_libdir_flag_spec='-R$libdir'
9999              ;;
10000            *)
10001              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10002              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10003              ;;
10004           esac
10005         fi
10006       else
10007         ld_shlibs=no
10008       fi
10009       ;;
10010
10011     os2*)
10012       hardcode_libdir_flag_spec='-L$libdir'
10013       hardcode_minus_L=yes
10014       allow_undefined_flag=unsupported
10015       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'
10016       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10017       ;;
10018
10019     osf3*)
10020       if test "$GCC" = yes; then
10021         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10022         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'
10023       else
10024         allow_undefined_flag=' -expect_unresolved \*'
10025         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'
10026       fi
10027       archive_cmds_need_lc='no'
10028       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10029       hardcode_libdir_separator=:
10030       ;;
10031
10032     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10033       if test "$GCC" = yes; then
10034         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10035         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'
10036         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10037       else
10038         allow_undefined_flag=' -expect_unresolved \*'
10039         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'
10040         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~
10041         $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'
10042
10043         # Both c and cxx compiler support -rpath directly
10044         hardcode_libdir_flag_spec='-rpath $libdir'
10045       fi
10046       archive_cmds_need_lc='no'
10047       hardcode_libdir_separator=:
10048       ;;
10049
10050     solaris*)
10051       no_undefined_flag=' -z defs'
10052       if test "$GCC" = yes; then
10053         wlarc='${wl}'
10054         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10055         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10056           $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'
10057       else
10058         case `$CC -V 2>&1` in
10059         *"Compilers 5.0"*)
10060           wlarc=''
10061           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10063           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10064           ;;
10065         *)
10066           wlarc='${wl}'
10067           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10068           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10069           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10070           ;;
10071         esac
10072       fi
10073       hardcode_libdir_flag_spec='-R$libdir'
10074       hardcode_shlibpath_var=no
10075       case $host_os in
10076       solaris2.[0-5] | solaris2.[0-5].*) ;;
10077       *)
10078         # The compiler driver will combine and reorder linker options,
10079         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10080         # but is careful enough not to reorder.
10081         # Supported since Solaris 2.6 (maybe 2.5.1?)
10082         if test "$GCC" = yes; then
10083           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10084         else
10085           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10086         fi
10087         ;;
10088       esac
10089       link_all_deplibs=yes
10090       ;;
10091
10092     sunos4*)
10093       if test "x$host_vendor" = xsequent; then
10094         # Use $CC to link under sequent, because it throws in some extra .o
10095         # files that make .init and .fini sections work.
10096         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10097       else
10098         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10099       fi
10100       hardcode_libdir_flag_spec='-L$libdir'
10101       hardcode_direct=yes
10102       hardcode_minus_L=yes
10103       hardcode_shlibpath_var=no
10104       ;;
10105
10106     sysv4)
10107       case $host_vendor in
10108         sni)
10109           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10110           hardcode_direct=yes # is this really true???
10111         ;;
10112         siemens)
10113           ## LD is ld it makes a PLAMLIB
10114           ## CC just makes a GrossModule.
10115           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10116           reload_cmds='$CC -r -o $output$reload_objs'
10117           hardcode_direct=no
10118         ;;
10119         motorola)
10120           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10121           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10122         ;;
10123       esac
10124       runpath_var='LD_RUN_PATH'
10125       hardcode_shlibpath_var=no
10126       ;;
10127
10128     sysv4.3*)
10129       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130       hardcode_shlibpath_var=no
10131       export_dynamic_flag_spec='-Bexport'
10132       ;;
10133
10134     sysv4*MP*)
10135       if test -d /usr/nec; then
10136         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137         hardcode_shlibpath_var=no
10138         runpath_var=LD_RUN_PATH
10139         hardcode_runpath_var=yes
10140         ld_shlibs=yes
10141       fi
10142       ;;
10143
10144     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10145       no_undefined_flag='${wl}-z,text'
10146       archive_cmds_need_lc=no
10147       hardcode_shlibpath_var=no
10148       runpath_var='LD_RUN_PATH'
10149
10150       if test "$GCC" = yes; then
10151         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153       else
10154         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156       fi
10157       ;;
10158
10159     sysv5* | sco3.2v5* | sco5v6*)
10160       # Note: We can NOT use -z defs as we might desire, because we do not
10161       # link with -lc, and that would cause any symbols used from libc to
10162       # always be unresolved, which means just about no library would
10163       # ever link correctly.  If we're not using GNU ld we use -z text
10164       # though, which does catch some bad symbols but isn't as heavy-handed
10165       # as -z defs.
10166       no_undefined_flag='${wl}-z,text'
10167       allow_undefined_flag='${wl}-z,nodefs'
10168       archive_cmds_need_lc=no
10169       hardcode_shlibpath_var=no
10170       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10171       hardcode_libdir_separator=':'
10172       link_all_deplibs=yes
10173       export_dynamic_flag_spec='${wl}-Bexport'
10174       runpath_var='LD_RUN_PATH'
10175
10176       if test "$GCC" = yes; then
10177         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179       else
10180         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182       fi
10183       ;;
10184
10185     uts4*)
10186       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10187       hardcode_libdir_flag_spec='-L$libdir'
10188       hardcode_shlibpath_var=no
10189       ;;
10190
10191     *)
10192       ld_shlibs=no
10193       ;;
10194     esac
10195
10196     if test x$host_vendor = xsni; then
10197       case $host in
10198       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10199         export_dynamic_flag_spec='${wl}-Blargedynsym'
10200         ;;
10201       esac
10202     fi
10203   fi
10204
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10206 $as_echo "$ld_shlibs" >&6; }
10207 test "$ld_shlibs" = no && can_build_shared=no
10208
10209 with_gnu_ld=$with_gnu_ld
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225 #
10226 # Do we need to explicitly link libc?
10227 #
10228 case "x$archive_cmds_need_lc" in
10229 x|xyes)
10230   # Assume -lc should be added
10231   archive_cmds_need_lc=yes
10232
10233   if test "$enable_shared" = yes && test "$GCC" = yes; then
10234     case $archive_cmds in
10235     *'~'*)
10236       # FIXME: we may have to deal with multi-command sequences.
10237       ;;
10238     '$CC '*)
10239       # Test whether the compiler implicitly links with -lc since on some
10240       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10241       # to ld, don't add -lc before -lgcc.
10242       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10243 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10244 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10245   $as_echo_n "(cached) " >&6
10246 else
10247   $RM conftest*
10248         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10249
10250         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10251   (eval $ac_compile) 2>&5
10252   ac_status=$?
10253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10254   test $ac_status = 0; } 2>conftest.err; then
10255           soname=conftest
10256           lib=conftest
10257           libobjs=conftest.$ac_objext
10258           deplibs=
10259           wl=$lt_prog_compiler_wl
10260           pic_flag=$lt_prog_compiler_pic
10261           compiler_flags=-v
10262           linker_flags=-v
10263           verstring=
10264           output_objdir=.
10265           libname=conftest
10266           lt_save_allow_undefined_flag=$allow_undefined_flag
10267           allow_undefined_flag=
10268           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10269   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10270   ac_status=$?
10271   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10272   test $ac_status = 0; }
10273           then
10274             lt_cv_archive_cmds_need_lc=no
10275           else
10276             lt_cv_archive_cmds_need_lc=yes
10277           fi
10278           allow_undefined_flag=$lt_save_allow_undefined_flag
10279         else
10280           cat conftest.err 1>&5
10281         fi
10282         $RM conftest*
10283
10284 fi
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10286 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10287       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10288       ;;
10289     esac
10290   fi
10291   ;;
10292 esac
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10451 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10452
10453 if test "$GCC" = yes; then
10454   case $host_os in
10455     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10456     *) lt_awk_arg="/^libraries:/" ;;
10457   esac
10458   case $host_os in
10459     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10460     *) lt_sed_strip_eq="s,=/,/,g" ;;
10461   esac
10462   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10463   case $lt_search_path_spec in
10464   *\;*)
10465     # if the path contains ";" then we assume it to be the separator
10466     # otherwise default to the standard path separator (i.e. ":") - it is
10467     # assumed that no part of a normal pathname contains ";" but that should
10468     # okay in the real world where ";" in dirpaths is itself problematic.
10469     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10470     ;;
10471   *)
10472     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10473     ;;
10474   esac
10475   # Ok, now we have the path, separated by spaces, we can step through it
10476   # and add multilib dir if necessary.
10477   lt_tmp_lt_search_path_spec=
10478   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10479   for lt_sys_path in $lt_search_path_spec; do
10480     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10481       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10482     else
10483       test -d "$lt_sys_path" && \
10484         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10485     fi
10486   done
10487   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10488 BEGIN {RS=" "; FS="/|\n";} {
10489   lt_foo="";
10490   lt_count=0;
10491   for (lt_i = NF; lt_i > 0; lt_i--) {
10492     if ($lt_i != "" && $lt_i != ".") {
10493       if ($lt_i == "..") {
10494         lt_count++;
10495       } else {
10496         if (lt_count == 0) {
10497           lt_foo="/" $lt_i lt_foo;
10498         } else {
10499           lt_count--;
10500         }
10501       }
10502     }
10503   }
10504   if (lt_foo != "") { lt_freq[lt_foo]++; }
10505   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10506 }'`
10507   # AWK program above erroneously prepends '/' to C:/dos/paths
10508   # for these hosts.
10509   case $host_os in
10510     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10511       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10512   esac
10513   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10514 else
10515   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10516 fi
10517 library_names_spec=
10518 libname_spec='lib$name'
10519 soname_spec=
10520 shrext_cmds=".so"
10521 postinstall_cmds=
10522 postuninstall_cmds=
10523 finish_cmds=
10524 finish_eval=
10525 shlibpath_var=
10526 shlibpath_overrides_runpath=unknown
10527 version_type=none
10528 dynamic_linker="$host_os ld.so"
10529 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10530 need_lib_prefix=unknown
10531 hardcode_into_libs=no
10532
10533 # when you set need_version to no, make sure it does not cause -set_version
10534 # flags to be left without arguments
10535 need_version=unknown
10536
10537 case $host_os in
10538 aix3*)
10539   version_type=linux
10540   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10541   shlibpath_var=LIBPATH
10542
10543   # AIX 3 has no versioning support, so we append a major version to the name.
10544   soname_spec='${libname}${release}${shared_ext}$major'
10545   ;;
10546
10547 aix[4-9]*)
10548   version_type=linux
10549   need_lib_prefix=no
10550   need_version=no
10551   hardcode_into_libs=yes
10552   if test "$host_cpu" = ia64; then
10553     # AIX 5 supports IA64
10554     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10555     shlibpath_var=LD_LIBRARY_PATH
10556   else
10557     # With GCC up to 2.95.x, collect2 would create an import file
10558     # for dependence libraries.  The import file would start with
10559     # the line `#! .'.  This would cause the generated library to
10560     # depend on `.', always an invalid library.  This was fixed in
10561     # development snapshots of GCC prior to 3.0.
10562     case $host_os in
10563       aix4 | aix4.[01] | aix4.[01].*)
10564       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10565            echo ' yes '
10566            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10567         :
10568       else
10569         can_build_shared=no
10570       fi
10571       ;;
10572     esac
10573     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10574     # soname into executable. Probably we can add versioning support to
10575     # collect2, so additional links can be useful in future.
10576     if test "$aix_use_runtimelinking" = yes; then
10577       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10578       # instead of lib<name>.a to let people know that these are not
10579       # typical AIX shared libraries.
10580       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581     else
10582       # We preserve .a as extension for shared libraries through AIX4.2
10583       # and later when we are not doing run time linking.
10584       library_names_spec='${libname}${release}.a $libname.a'
10585       soname_spec='${libname}${release}${shared_ext}$major'
10586     fi
10587     shlibpath_var=LIBPATH
10588   fi
10589   ;;
10590
10591 amigaos*)
10592   case $host_cpu in
10593   powerpc)
10594     # Since July 2007 AmigaOS4 officially supports .so libraries.
10595     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10596     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597     ;;
10598   m68k)
10599     library_names_spec='$libname.ixlibrary $libname.a'
10600     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10601     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'
10602     ;;
10603   esac
10604   ;;
10605
10606 beos*)
10607   library_names_spec='${libname}${shared_ext}'
10608   dynamic_linker="$host_os ld.so"
10609   shlibpath_var=LIBRARY_PATH
10610   ;;
10611
10612 bsdi[45]*)
10613   version_type=linux
10614   need_version=no
10615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616   soname_spec='${libname}${release}${shared_ext}$major'
10617   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10618   shlibpath_var=LD_LIBRARY_PATH
10619   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10620   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10621   # the default ld.so.conf also contains /usr/contrib/lib and
10622   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10623   # libtool to hard-code these into programs
10624   ;;
10625
10626 cygwin* | mingw* | pw32* | cegcc*)
10627   version_type=windows
10628   shrext_cmds=".dll"
10629   need_version=no
10630   need_lib_prefix=no
10631
10632   case $GCC,$cc_basename in
10633   yes,*)
10634     # gcc
10635     library_names_spec='$libname.dll.a'
10636     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10637     postinstall_cmds='base_file=`basename \${file}`~
10638       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10639       dldir=$destdir/`dirname \$dlpath`~
10640       test -d \$dldir || mkdir -p \$dldir~
10641       $install_prog $dir/$dlname \$dldir/$dlname~
10642       chmod a+x \$dldir/$dlname~
10643       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10644         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10645       fi'
10646     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10647       dlpath=$dir/\$dldll~
10648        $RM \$dlpath'
10649     shlibpath_overrides_runpath=yes
10650
10651     case $host_os in
10652     cygwin*)
10653       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10654       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10655
10656       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10657       ;;
10658     mingw* | cegcc*)
10659       # MinGW DLLs use traditional 'lib' prefix
10660       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10661       ;;
10662     pw32*)
10663       # pw32 DLLs use 'pw' prefix rather than 'lib'
10664       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10665       ;;
10666     esac
10667     dynamic_linker='Win32 ld.exe'
10668     ;;
10669
10670   *,cl*)
10671     # Native MSVC
10672     libname_spec='$name'
10673     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10674     library_names_spec='${libname}.dll.lib'
10675
10676     case $build_os in
10677     mingw*)
10678       sys_lib_search_path_spec=
10679       lt_save_ifs=$IFS
10680       IFS=';'
10681       for lt_path in $LIB
10682       do
10683         IFS=$lt_save_ifs
10684         # Let DOS variable expansion print the short 8.3 style file name.
10685         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10686         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10687       done
10688       IFS=$lt_save_ifs
10689       # Convert to MSYS style.
10690       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10691       ;;
10692     cygwin*)
10693       # Convert to unix form, then to dos form, then back to unix form
10694       # but this time dos style (no spaces!) so that the unix form looks
10695       # like /cygdrive/c/PROGRA~1:/cygdr...
10696       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10697       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10698       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10699       ;;
10700     *)
10701       sys_lib_search_path_spec="$LIB"
10702       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10703         # It is most probably a Windows format PATH.
10704         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10705       else
10706         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10707       fi
10708       # FIXME: find the short name or the path components, as spaces are
10709       # common. (e.g. "Program Files" -> "PROGRA~1")
10710       ;;
10711     esac
10712
10713     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10714     postinstall_cmds='base_file=`basename \${file}`~
10715       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10716       dldir=$destdir/`dirname \$dlpath`~
10717       test -d \$dldir || mkdir -p \$dldir~
10718       $install_prog $dir/$dlname \$dldir/$dlname'
10719     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10720       dlpath=$dir/\$dldll~
10721        $RM \$dlpath'
10722     shlibpath_overrides_runpath=yes
10723     dynamic_linker='Win32 link.exe'
10724     ;;
10725
10726   *)
10727     # Assume MSVC wrapper
10728     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10729     dynamic_linker='Win32 ld.exe'
10730     ;;
10731   esac
10732   # FIXME: first we should search . and the directory the executable is in
10733   shlibpath_var=PATH
10734   ;;
10735
10736 darwin* | rhapsody*)
10737   dynamic_linker="$host_os dyld"
10738   version_type=darwin
10739   need_lib_prefix=no
10740   need_version=no
10741   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10742   soname_spec='${libname}${release}${major}$shared_ext'
10743   shlibpath_overrides_runpath=yes
10744   shlibpath_var=DYLD_LIBRARY_PATH
10745   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10746
10747   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10748   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10749   ;;
10750
10751 dgux*)
10752   version_type=linux
10753   need_lib_prefix=no
10754   need_version=no
10755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10756   soname_spec='${libname}${release}${shared_ext}$major'
10757   shlibpath_var=LD_LIBRARY_PATH
10758   ;;
10759
10760 freebsd1*)
10761   dynamic_linker=no
10762   ;;
10763
10764 freebsd* | dragonfly*)
10765   # DragonFly does not have aout.  When/if they implement a new
10766   # versioning mechanism, adjust this.
10767   if test -x /usr/bin/objformat; then
10768     objformat=`/usr/bin/objformat`
10769   else
10770     case $host_os in
10771     freebsd[123]*) objformat=aout ;;
10772     *) objformat=elf ;;
10773     esac
10774   fi
10775   version_type=freebsd-$objformat
10776   case $version_type in
10777     freebsd-elf*)
10778       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10779       need_version=no
10780       need_lib_prefix=no
10781       ;;
10782     freebsd-*)
10783       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10784       need_version=yes
10785       ;;
10786   esac
10787   shlibpath_var=LD_LIBRARY_PATH
10788   case $host_os in
10789   freebsd2*)
10790     shlibpath_overrides_runpath=yes
10791     ;;
10792   freebsd3.[01]* | freebsdelf3.[01]*)
10793     shlibpath_overrides_runpath=yes
10794     hardcode_into_libs=yes
10795     ;;
10796   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10797   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10798     shlibpath_overrides_runpath=no
10799     hardcode_into_libs=yes
10800     ;;
10801   *) # from 4.6 on, and DragonFly
10802     shlibpath_overrides_runpath=yes
10803     hardcode_into_libs=yes
10804     ;;
10805   esac
10806   ;;
10807
10808 gnu*)
10809   version_type=linux
10810   need_lib_prefix=no
10811   need_version=no
10812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10813   soname_spec='${libname}${release}${shared_ext}$major'
10814   shlibpath_var=LD_LIBRARY_PATH
10815   hardcode_into_libs=yes
10816   ;;
10817
10818 haiku*)
10819   version_type=linux
10820   need_lib_prefix=no
10821   need_version=no
10822   dynamic_linker="$host_os runtime_loader"
10823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10824   soname_spec='${libname}${release}${shared_ext}$major'
10825   shlibpath_var=LIBRARY_PATH
10826   shlibpath_overrides_runpath=yes
10827   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10828   hardcode_into_libs=yes
10829   ;;
10830
10831 hpux9* | hpux10* | hpux11*)
10832   # Give a soname corresponding to the major version so that dld.sl refuses to
10833   # link against other versions.
10834   version_type=sunos
10835   need_lib_prefix=no
10836   need_version=no
10837   case $host_cpu in
10838   ia64*)
10839     shrext_cmds='.so'
10840     hardcode_into_libs=yes
10841     dynamic_linker="$host_os dld.so"
10842     shlibpath_var=LD_LIBRARY_PATH
10843     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845     soname_spec='${libname}${release}${shared_ext}$major'
10846     if test "X$HPUX_IA64_MODE" = X32; then
10847       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10848     else
10849       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10850     fi
10851     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10852     ;;
10853   hppa*64*)
10854     shrext_cmds='.sl'
10855     hardcode_into_libs=yes
10856     dynamic_linker="$host_os dld.sl"
10857     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10858     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10859     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860     soname_spec='${libname}${release}${shared_ext}$major'
10861     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10862     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10863     ;;
10864   *)
10865     shrext_cmds='.sl'
10866     dynamic_linker="$host_os dld.sl"
10867     shlibpath_var=SHLIB_PATH
10868     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870     soname_spec='${libname}${release}${shared_ext}$major'
10871     ;;
10872   esac
10873   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10874   postinstall_cmds='chmod 555 $lib'
10875   # or fails outright, so override atomically:
10876   install_override_mode=555
10877   ;;
10878
10879 interix[3-9]*)
10880   version_type=linux
10881   need_lib_prefix=no
10882   need_version=no
10883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10884   soname_spec='${libname}${release}${shared_ext}$major'
10885   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10886   shlibpath_var=LD_LIBRARY_PATH
10887   shlibpath_overrides_runpath=no
10888   hardcode_into_libs=yes
10889   ;;
10890
10891 irix5* | irix6* | nonstopux*)
10892   case $host_os in
10893     nonstopux*) version_type=nonstopux ;;
10894     *)
10895         if test "$lt_cv_prog_gnu_ld" = yes; then
10896                 version_type=linux
10897         else
10898                 version_type=irix
10899         fi ;;
10900   esac
10901   need_lib_prefix=no
10902   need_version=no
10903   soname_spec='${libname}${release}${shared_ext}$major'
10904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10905   case $host_os in
10906   irix5* | nonstopux*)
10907     libsuff= shlibsuff=
10908     ;;
10909   *)
10910     case $LD in # libtool.m4 will add one of these switches to LD
10911     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10912       libsuff= shlibsuff= libmagic=32-bit;;
10913     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10914       libsuff=32 shlibsuff=N32 libmagic=N32;;
10915     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10916       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10917     *) libsuff= shlibsuff= libmagic=never-match;;
10918     esac
10919     ;;
10920   esac
10921   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10922   shlibpath_overrides_runpath=no
10923   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10924   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10925   hardcode_into_libs=yes
10926   ;;
10927
10928 # No shared lib support for Linux oldld, aout, or coff.
10929 linux*oldld* | linux*aout* | linux*coff*)
10930   dynamic_linker=no
10931   ;;
10932
10933 # This must be Linux ELF.
10934 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10935   version_type=linux
10936   need_lib_prefix=no
10937   need_version=no
10938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939   soname_spec='${libname}${release}${shared_ext}$major'
10940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10941   shlibpath_var=LD_LIBRARY_PATH
10942   shlibpath_overrides_runpath=no
10943
10944   # Some binutils ld are patched to set DT_RUNPATH
10945   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10946   $as_echo_n "(cached) " >&6
10947 else
10948   lt_cv_shlibpath_overrides_runpath=no
10949     save_LDFLAGS=$LDFLAGS
10950     save_libdir=$libdir
10951     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10952          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10953     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h.  */
10955
10956 int
10957 main ()
10958 {
10959
10960   ;
10961   return 0;
10962 }
10963 _ACEOF
10964 if ac_fn_c_try_link "$LINENO"; then :
10965   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10966   lt_cv_shlibpath_overrides_runpath=yes
10967 fi
10968 fi
10969 rm -f core conftest.err conftest.$ac_objext \
10970     conftest$ac_exeext conftest.$ac_ext
10971     LDFLAGS=$save_LDFLAGS
10972     libdir=$save_libdir
10973
10974 fi
10975
10976   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10977
10978   # This implies no fast_install, which is unacceptable.
10979   # Some rework will be needed to allow for fast_install
10980   # before this can be enabled.
10981   hardcode_into_libs=yes
10982
10983   # Append ld.so.conf contents to the search path
10984   if test -f /etc/ld.so.conf; then
10985     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' ' '`
10986     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10987   fi
10988
10989   # We used to test for /lib/ld.so.1 and disable shared libraries on
10990   # powerpc, because MkLinux only supported shared libraries with the
10991   # GNU dynamic linker.  Since this was broken with cross compilers,
10992   # most powerpc-linux boxes support dynamic linking these days and
10993   # people can always --disable-shared, the test was removed, and we
10994   # assume the GNU/Linux dynamic linker is in use.
10995   dynamic_linker='GNU/Linux ld.so'
10996   ;;
10997
10998 netbsd*)
10999   version_type=sunos
11000   need_lib_prefix=no
11001   need_version=no
11002   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11003     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11004     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11005     dynamic_linker='NetBSD (a.out) ld.so'
11006   else
11007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11008     soname_spec='${libname}${release}${shared_ext}$major'
11009     dynamic_linker='NetBSD ld.elf_so'
11010   fi
11011   shlibpath_var=LD_LIBRARY_PATH
11012   shlibpath_overrides_runpath=yes
11013   hardcode_into_libs=yes
11014   ;;
11015
11016 newsos6)
11017   version_type=linux
11018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019   shlibpath_var=LD_LIBRARY_PATH
11020   shlibpath_overrides_runpath=yes
11021   ;;
11022
11023 *nto* | *qnx*)
11024   version_type=qnx
11025   need_lib_prefix=no
11026   need_version=no
11027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028   soname_spec='${libname}${release}${shared_ext}$major'
11029   shlibpath_var=LD_LIBRARY_PATH
11030   shlibpath_overrides_runpath=no
11031   hardcode_into_libs=yes
11032   dynamic_linker='ldqnx.so'
11033   ;;
11034
11035 openbsd*)
11036   version_type=sunos
11037   sys_lib_dlsearch_path_spec="/usr/lib"
11038   need_lib_prefix=no
11039   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11040   case $host_os in
11041     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11042     *)                          need_version=no  ;;
11043   esac
11044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11045   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11046   shlibpath_var=LD_LIBRARY_PATH
11047   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11048     case $host_os in
11049       openbsd2.[89] | openbsd2.[89].*)
11050         shlibpath_overrides_runpath=no
11051         ;;
11052       *)
11053         shlibpath_overrides_runpath=yes
11054         ;;
11055       esac
11056   else
11057     shlibpath_overrides_runpath=yes
11058   fi
11059   ;;
11060
11061 os2*)
11062   libname_spec='$name'
11063   shrext_cmds=".dll"
11064   need_lib_prefix=no
11065   library_names_spec='$libname${shared_ext} $libname.a'
11066   dynamic_linker='OS/2 ld.exe'
11067   shlibpath_var=LIBPATH
11068   ;;
11069
11070 osf3* | osf4* | osf5*)
11071   version_type=osf
11072   need_lib_prefix=no
11073   need_version=no
11074   soname_spec='${libname}${release}${shared_ext}$major'
11075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076   shlibpath_var=LD_LIBRARY_PATH
11077   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11078   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11079   ;;
11080
11081 rdos*)
11082   dynamic_linker=no
11083   ;;
11084
11085 solaris*)
11086   version_type=linux
11087   need_lib_prefix=no
11088   need_version=no
11089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090   soname_spec='${libname}${release}${shared_ext}$major'
11091   shlibpath_var=LD_LIBRARY_PATH
11092   shlibpath_overrides_runpath=yes
11093   hardcode_into_libs=yes
11094   # ldd complains unless libraries are executable
11095   postinstall_cmds='chmod +x $lib'
11096   ;;
11097
11098 sunos4*)
11099   version_type=sunos
11100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11101   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11102   shlibpath_var=LD_LIBRARY_PATH
11103   shlibpath_overrides_runpath=yes
11104   if test "$with_gnu_ld" = yes; then
11105     need_lib_prefix=no
11106   fi
11107   need_version=yes
11108   ;;
11109
11110 sysv4 | sysv4.3*)
11111   version_type=linux
11112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113   soname_spec='${libname}${release}${shared_ext}$major'
11114   shlibpath_var=LD_LIBRARY_PATH
11115   case $host_vendor in
11116     sni)
11117       shlibpath_overrides_runpath=no
11118       need_lib_prefix=no
11119       runpath_var=LD_RUN_PATH
11120       ;;
11121     siemens)
11122       need_lib_prefix=no
11123       ;;
11124     motorola)
11125       need_lib_prefix=no
11126       need_version=no
11127       shlibpath_overrides_runpath=no
11128       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11129       ;;
11130   esac
11131   ;;
11132
11133 sysv4*MP*)
11134   if test -d /usr/nec ;then
11135     version_type=linux
11136     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11137     soname_spec='$libname${shared_ext}.$major'
11138     shlibpath_var=LD_LIBRARY_PATH
11139   fi
11140   ;;
11141
11142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11143   version_type=freebsd-elf
11144   need_lib_prefix=no
11145   need_version=no
11146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11147   soname_spec='${libname}${release}${shared_ext}$major'
11148   shlibpath_var=LD_LIBRARY_PATH
11149   shlibpath_overrides_runpath=yes
11150   hardcode_into_libs=yes
11151   if test "$with_gnu_ld" = yes; then
11152     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11153   else
11154     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11155     case $host_os in
11156       sco3.2v5*)
11157         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11158         ;;
11159     esac
11160   fi
11161   sys_lib_dlsearch_path_spec='/usr/lib'
11162   ;;
11163
11164 tpf*)
11165   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11166   version_type=linux
11167   need_lib_prefix=no
11168   need_version=no
11169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170   shlibpath_var=LD_LIBRARY_PATH
11171   shlibpath_overrides_runpath=no
11172   hardcode_into_libs=yes
11173   ;;
11174
11175 uts4*)
11176   version_type=linux
11177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178   soname_spec='${libname}${release}${shared_ext}$major'
11179   shlibpath_var=LD_LIBRARY_PATH
11180   ;;
11181
11182 *)
11183   dynamic_linker=no
11184   ;;
11185 esac
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11187 $as_echo "$dynamic_linker" >&6; }
11188 test "$dynamic_linker" = no && can_build_shared=no
11189
11190 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11191 if test "$GCC" = yes; then
11192   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11193 fi
11194
11195 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11196   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11197 fi
11198 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11199   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11200 fi
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11294 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11295 hardcode_action=
11296 if test -n "$hardcode_libdir_flag_spec" ||
11297    test -n "$runpath_var" ||
11298    test "X$hardcode_automatic" = "Xyes" ; then
11299
11300   # We can hardcode non-existent directories.
11301   if test "$hardcode_direct" != no &&
11302      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11303      # have to relink, otherwise we might link with an installed library
11304      # when we should be linking with a yet-to-be-installed one
11305      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11306      test "$hardcode_minus_L" != no; then
11307     # Linking always hardcodes the temporary library directory.
11308     hardcode_action=relink
11309   else
11310     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11311     hardcode_action=immediate
11312   fi
11313 else
11314   # We cannot hardcode anything, or else we can only hardcode existing
11315   # directories.
11316   hardcode_action=unsupported
11317 fi
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11319 $as_echo "$hardcode_action" >&6; }
11320
11321 if test "$hardcode_action" = relink ||
11322    test "$inherit_rpath" = yes; then
11323   # Fast installation is not supported
11324   enable_fast_install=no
11325 elif test "$shlibpath_overrides_runpath" = yes ||
11326      test "$enable_shared" = no; then
11327   # Fast installation is not necessary
11328   enable_fast_install=needless
11329 fi
11330
11331
11332
11333
11334
11335
11336   if test "x$enable_dlopen" != xyes; then
11337   enable_dlopen=unknown
11338   enable_dlopen_self=unknown
11339   enable_dlopen_self_static=unknown
11340 else
11341   lt_cv_dlopen=no
11342   lt_cv_dlopen_libs=
11343
11344   case $host_os in
11345   beos*)
11346     lt_cv_dlopen="load_add_on"
11347     lt_cv_dlopen_libs=
11348     lt_cv_dlopen_self=yes
11349     ;;
11350
11351   mingw* | pw32* | cegcc*)
11352     lt_cv_dlopen="LoadLibrary"
11353     lt_cv_dlopen_libs=
11354     ;;
11355
11356   cygwin*)
11357     lt_cv_dlopen="dlopen"
11358     lt_cv_dlopen_libs=
11359     ;;
11360
11361   darwin*)
11362   # if libdl is installed we need to link against it
11363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11364 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11365 if ${ac_cv_lib_dl_dlopen+:} false; then :
11366   $as_echo_n "(cached) " >&6
11367 else
11368   ac_check_lib_save_LIBS=$LIBS
11369 LIBS="-ldl  $LIBS"
11370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h.  */
11372
11373 /* Override any GCC internal prototype to avoid an error.
11374    Use char because int might match the return type of a GCC
11375    builtin and then its argument prototype would still apply.  */
11376 #ifdef __cplusplus
11377 extern "C"
11378 #endif
11379 char dlopen ();
11380 int
11381 main ()
11382 {
11383 return dlopen ();
11384   ;
11385   return 0;
11386 }
11387 _ACEOF
11388 if ac_fn_c_try_link "$LINENO"; then :
11389   ac_cv_lib_dl_dlopen=yes
11390 else
11391   ac_cv_lib_dl_dlopen=no
11392 fi
11393 rm -f core conftest.err conftest.$ac_objext \
11394     conftest$ac_exeext conftest.$ac_ext
11395 LIBS=$ac_check_lib_save_LIBS
11396 fi
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11398 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11399 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11400   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11401 else
11402
11403     lt_cv_dlopen="dyld"
11404     lt_cv_dlopen_libs=
11405     lt_cv_dlopen_self=yes
11406
11407 fi
11408
11409     ;;
11410
11411   *)
11412     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11413 if test "x$ac_cv_func_shl_load" = xyes; then :
11414   lt_cv_dlopen="shl_load"
11415 else
11416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11417 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11418 if ${ac_cv_lib_dld_shl_load+:} false; then :
11419   $as_echo_n "(cached) " >&6
11420 else
11421   ac_check_lib_save_LIBS=$LIBS
11422 LIBS="-ldld  $LIBS"
11423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h.  */
11425
11426 /* Override any GCC internal prototype to avoid an error.
11427    Use char because int might match the return type of a GCC
11428    builtin and then its argument prototype would still apply.  */
11429 #ifdef __cplusplus
11430 extern "C"
11431 #endif
11432 char shl_load ();
11433 int
11434 main ()
11435 {
11436 return shl_load ();
11437   ;
11438   return 0;
11439 }
11440 _ACEOF
11441 if ac_fn_c_try_link "$LINENO"; then :
11442   ac_cv_lib_dld_shl_load=yes
11443 else
11444   ac_cv_lib_dld_shl_load=no
11445 fi
11446 rm -f core conftest.err conftest.$ac_objext \
11447     conftest$ac_exeext conftest.$ac_ext
11448 LIBS=$ac_check_lib_save_LIBS
11449 fi
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11451 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11452 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11453   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11454 else
11455   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11456 if test "x$ac_cv_func_dlopen" = xyes; then :
11457   lt_cv_dlopen="dlopen"
11458 else
11459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11460 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11461 if ${ac_cv_lib_dl_dlopen+:} false; then :
11462   $as_echo_n "(cached) " >&6
11463 else
11464   ac_check_lib_save_LIBS=$LIBS
11465 LIBS="-ldl  $LIBS"
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h.  */
11468
11469 /* Override any GCC internal prototype to avoid an error.
11470    Use char because int might match the return type of a GCC
11471    builtin and then its argument prototype would still apply.  */
11472 #ifdef __cplusplus
11473 extern "C"
11474 #endif
11475 char dlopen ();
11476 int
11477 main ()
11478 {
11479 return dlopen ();
11480   ;
11481   return 0;
11482 }
11483 _ACEOF
11484 if ac_fn_c_try_link "$LINENO"; then :
11485   ac_cv_lib_dl_dlopen=yes
11486 else
11487   ac_cv_lib_dl_dlopen=no
11488 fi
11489 rm -f core conftest.err conftest.$ac_objext \
11490     conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11492 fi
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11494 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11495 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11496   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11497 else
11498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11499 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11500 if ${ac_cv_lib_svld_dlopen+:} false; then :
11501   $as_echo_n "(cached) " >&6
11502 else
11503   ac_check_lib_save_LIBS=$LIBS
11504 LIBS="-lsvld  $LIBS"
11505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506 /* end confdefs.h.  */
11507
11508 /* Override any GCC internal prototype to avoid an error.
11509    Use char because int might match the return type of a GCC
11510    builtin and then its argument prototype would still apply.  */
11511 #ifdef __cplusplus
11512 extern "C"
11513 #endif
11514 char dlopen ();
11515 int
11516 main ()
11517 {
11518 return dlopen ();
11519   ;
11520   return 0;
11521 }
11522 _ACEOF
11523 if ac_fn_c_try_link "$LINENO"; then :
11524   ac_cv_lib_svld_dlopen=yes
11525 else
11526   ac_cv_lib_svld_dlopen=no
11527 fi
11528 rm -f core conftest.err conftest.$ac_objext \
11529     conftest$ac_exeext conftest.$ac_ext
11530 LIBS=$ac_check_lib_save_LIBS
11531 fi
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11533 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11534 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11535   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11536 else
11537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11538 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11539 if ${ac_cv_lib_dld_dld_link+:} false; then :
11540   $as_echo_n "(cached) " >&6
11541 else
11542   ac_check_lib_save_LIBS=$LIBS
11543 LIBS="-ldld  $LIBS"
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h.  */
11546
11547 /* Override any GCC internal prototype to avoid an error.
11548    Use char because int might match the return type of a GCC
11549    builtin and then its argument prototype would still apply.  */
11550 #ifdef __cplusplus
11551 extern "C"
11552 #endif
11553 char dld_link ();
11554 int
11555 main ()
11556 {
11557 return dld_link ();
11558   ;
11559   return 0;
11560 }
11561 _ACEOF
11562 if ac_fn_c_try_link "$LINENO"; then :
11563   ac_cv_lib_dld_dld_link=yes
11564 else
11565   ac_cv_lib_dld_dld_link=no
11566 fi
11567 rm -f core conftest.err conftest.$ac_objext \
11568     conftest$ac_exeext conftest.$ac_ext
11569 LIBS=$ac_check_lib_save_LIBS
11570 fi
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11572 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11573 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11574   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11575 fi
11576
11577
11578 fi
11579
11580
11581 fi
11582
11583
11584 fi
11585
11586
11587 fi
11588
11589
11590 fi
11591
11592     ;;
11593   esac
11594
11595   if test "x$lt_cv_dlopen" != xno; then
11596     enable_dlopen=yes
11597   else
11598     enable_dlopen=no
11599   fi
11600
11601   case $lt_cv_dlopen in
11602   dlopen)
11603     save_CPPFLAGS="$CPPFLAGS"
11604     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11605
11606     save_LDFLAGS="$LDFLAGS"
11607     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11608
11609     save_LIBS="$LIBS"
11610     LIBS="$lt_cv_dlopen_libs $LIBS"
11611
11612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11613 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11614 if ${lt_cv_dlopen_self+:} false; then :
11615   $as_echo_n "(cached) " >&6
11616 else
11617           if test "$cross_compiling" = yes; then :
11618   lt_cv_dlopen_self=cross
11619 else
11620   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11621   lt_status=$lt_dlunknown
11622   cat > conftest.$ac_ext <<_LT_EOF
11623 #line $LINENO "configure"
11624 #include "confdefs.h"
11625
11626 #if HAVE_DLFCN_H
11627 #include <dlfcn.h>
11628 #endif
11629
11630 #include <stdio.h>
11631
11632 #ifdef RTLD_GLOBAL
11633 #  define LT_DLGLOBAL           RTLD_GLOBAL
11634 #else
11635 #  ifdef DL_GLOBAL
11636 #    define LT_DLGLOBAL         DL_GLOBAL
11637 #  else
11638 #    define LT_DLGLOBAL         0
11639 #  endif
11640 #endif
11641
11642 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11643    find out it does not work in some platform. */
11644 #ifndef LT_DLLAZY_OR_NOW
11645 #  ifdef RTLD_LAZY
11646 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11647 #  else
11648 #    ifdef DL_LAZY
11649 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11650 #    else
11651 #      ifdef RTLD_NOW
11652 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11653 #      else
11654 #        ifdef DL_NOW
11655 #          define LT_DLLAZY_OR_NOW      DL_NOW
11656 #        else
11657 #          define LT_DLLAZY_OR_NOW      0
11658 #        endif
11659 #      endif
11660 #    endif
11661 #  endif
11662 #endif
11663
11664 /* When -fvisbility=hidden is used, assume the code has been annotated
11665    correspondingly for the symbols needed.  */
11666 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11667 int fnord () __attribute__((visibility("default")));
11668 #endif
11669
11670 int fnord () { return 42; }
11671 int main ()
11672 {
11673   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11674   int status = $lt_dlunknown;
11675
11676   if (self)
11677     {
11678       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11679       else
11680         {
11681           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11682           else puts (dlerror ());
11683         }
11684       /* dlclose (self); */
11685     }
11686   else
11687     puts (dlerror ());
11688
11689   return status;
11690 }
11691 _LT_EOF
11692   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11693   (eval $ac_link) 2>&5
11694   ac_status=$?
11695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11696   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11697     (./conftest; exit; ) >&5 2>/dev/null
11698     lt_status=$?
11699     case x$lt_status in
11700       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11701       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11702       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11703     esac
11704   else :
11705     # compilation failed
11706     lt_cv_dlopen_self=no
11707   fi
11708 fi
11709 rm -fr conftest*
11710
11711
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11714 $as_echo "$lt_cv_dlopen_self" >&6; }
11715
11716     if test "x$lt_cv_dlopen_self" = xyes; then
11717       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11718       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11719 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11720 if ${lt_cv_dlopen_self_static+:} false; then :
11721   $as_echo_n "(cached) " >&6
11722 else
11723           if test "$cross_compiling" = yes; then :
11724   lt_cv_dlopen_self_static=cross
11725 else
11726   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11727   lt_status=$lt_dlunknown
11728   cat > conftest.$ac_ext <<_LT_EOF
11729 #line $LINENO "configure"
11730 #include "confdefs.h"
11731
11732 #if HAVE_DLFCN_H
11733 #include <dlfcn.h>
11734 #endif
11735
11736 #include <stdio.h>
11737
11738 #ifdef RTLD_GLOBAL
11739 #  define LT_DLGLOBAL           RTLD_GLOBAL
11740 #else
11741 #  ifdef DL_GLOBAL
11742 #    define LT_DLGLOBAL         DL_GLOBAL
11743 #  else
11744 #    define LT_DLGLOBAL         0
11745 #  endif
11746 #endif
11747
11748 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11749    find out it does not work in some platform. */
11750 #ifndef LT_DLLAZY_OR_NOW
11751 #  ifdef RTLD_LAZY
11752 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11753 #  else
11754 #    ifdef DL_LAZY
11755 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11756 #    else
11757 #      ifdef RTLD_NOW
11758 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11759 #      else
11760 #        ifdef DL_NOW
11761 #          define LT_DLLAZY_OR_NOW      DL_NOW
11762 #        else
11763 #          define LT_DLLAZY_OR_NOW      0
11764 #        endif
11765 #      endif
11766 #    endif
11767 #  endif
11768 #endif
11769
11770 /* When -fvisbility=hidden is used, assume the code has been annotated
11771    correspondingly for the symbols needed.  */
11772 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11773 int fnord () __attribute__((visibility("default")));
11774 #endif
11775
11776 int fnord () { return 42; }
11777 int main ()
11778 {
11779   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11780   int status = $lt_dlunknown;
11781
11782   if (self)
11783     {
11784       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11785       else
11786         {
11787           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11788           else puts (dlerror ());
11789         }
11790       /* dlclose (self); */
11791     }
11792   else
11793     puts (dlerror ());
11794
11795   return status;
11796 }
11797 _LT_EOF
11798   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11799   (eval $ac_link) 2>&5
11800   ac_status=$?
11801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11802   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11803     (./conftest; exit; ) >&5 2>/dev/null
11804     lt_status=$?
11805     case x$lt_status in
11806       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11807       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11808       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11809     esac
11810   else :
11811     # compilation failed
11812     lt_cv_dlopen_self_static=no
11813   fi
11814 fi
11815 rm -fr conftest*
11816
11817
11818 fi
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11820 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11821     fi
11822
11823     CPPFLAGS="$save_CPPFLAGS"
11824     LDFLAGS="$save_LDFLAGS"
11825     LIBS="$save_LIBS"
11826     ;;
11827   esac
11828
11829   case $lt_cv_dlopen_self in
11830   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11831   *) enable_dlopen_self=unknown ;;
11832   esac
11833
11834   case $lt_cv_dlopen_self_static in
11835   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11836   *) enable_dlopen_self_static=unknown ;;
11837   esac
11838 fi
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856 striplib=
11857 old_striplib=
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11859 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11860 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11861   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11862   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11864 $as_echo "yes" >&6; }
11865 else
11866 # FIXME - insert some real tests, host_os isn't really good enough
11867   case $host_os in
11868   darwin*)
11869     if test -n "$STRIP" ; then
11870       striplib="$STRIP -x"
11871       old_striplib="$STRIP -S"
11872       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11873 $as_echo "yes" >&6; }
11874     else
11875       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876 $as_echo "no" >&6; }
11877     fi
11878     ;;
11879   *)
11880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11882     ;;
11883   esac
11884 fi
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897   # Report which library types will actually be built
11898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11899 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11901 $as_echo "$can_build_shared" >&6; }
11902
11903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11904 $as_echo_n "checking whether to build shared libraries... " >&6; }
11905   test "$can_build_shared" = "no" && enable_shared=no
11906
11907   # On AIX, shared libraries and static libraries use the same namespace, and
11908   # are all built from PIC.
11909   case $host_os in
11910   aix3*)
11911     test "$enable_shared" = yes && enable_static=no
11912     if test -n "$RANLIB"; then
11913       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11914       postinstall_cmds='$RANLIB $lib'
11915     fi
11916     ;;
11917
11918   aix[4-9]*)
11919     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11920       test "$enable_shared" = yes && enable_static=no
11921     fi
11922     ;;
11923   esac
11924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11925 $as_echo "$enable_shared" >&6; }
11926
11927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11928 $as_echo_n "checking whether to build static libraries... " >&6; }
11929   # Make sure either enable_shared or enable_static is yes.
11930   test "$enable_shared" = yes || enable_static=yes
11931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11932 $as_echo "$enable_static" >&6; }
11933
11934
11935
11936
11937 fi
11938 ac_ext=c
11939 ac_cpp='$CPP $CPPFLAGS'
11940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11943
11944 CC="$lt_save_CC"
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958         ac_config_commands="$ac_config_commands libtool"
11959
11960
11961
11962
11963 # Only expand once:
11964
11965
11966
11967
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
11969 $as_echo_n "checking for C compiler vendor... " >&6; }
11970 if ${ax_cv_c_compiler_vendor+:} false; then :
11971   $as_echo_n "(cached) " >&6
11972 else
11973   # note: don't check for gcc first since some other compilers define __GNUC__
11974   vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
11975            ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
11976            pathscale: __PATHCC__,__PATHSCALE__
11977            clang:     __clang__
11978            gnu:       __GNUC__
11979            sun:       __SUNPRO_C,__SUNPRO_CC
11980            hp:        __HP_cc,__HP_aCC
11981            dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
11982            borland:   __BORLANDC__,__TURBOC__
11983            comeau:    __COMO__
11984            cray:      _CRAYC
11985            kai:       __KCC
11986            lcc:       __LCC__
11987            sgi:       __sgi,sgi
11988            microsoft: _MSC_VER
11989            metrowerks: __MWERKS__
11990            watcom:    __WATCOMC__
11991            portland:  __PGI
11992            unknown:   UNKNOWN"
11993   for ventest in $vendors; do
11994     case $ventest in
11995       *:) vendor=$ventest; continue ;;
11996       *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
11997     esac
11998     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h.  */
12000
12001 int
12002 main ()
12003 {
12004
12005       #if !($vencpp)
12006         thisisanerror;
12007       #endif
12008
12009   ;
12010   return 0;
12011 }
12012 _ACEOF
12013 if ac_fn_c_try_compile "$LINENO"; then :
12014   break
12015 fi
12016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12017   done
12018   ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12019
12020 fi
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12022 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12023
12024
12025
12026
12027
12028
12029 # Check whether --enable-portable-binary was given.
12030 if test "${enable_portable_binary+set}" = set; then :
12031   enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12032 else
12033   acx_maxopt_portable=no
12034 fi
12035
12036
12037 # Try to determine "good" native compiler flags if none specified via CFLAGS
12038 if test "$ac_test_CFLAGS" != "set"; then
12039   CFLAGS=""
12040   case $ax_cv_c_compiler_vendor in
12041     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12042          if test "x$acx_maxopt_portable" = xno; then
12043            CFLAGS="$CFLAGS -arch host"
12044          fi;;
12045
12046     sun) CFLAGS="-native -fast -xO5 -dalign"
12047          if test "x$acx_maxopt_portable" = xyes; then
12048            CFLAGS="$CFLAGS -xarch=generic"
12049          fi;;
12050
12051     hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
12052          if test "x$acx_maxopt_portable" = xyes; then
12053            CFLAGS="$CFLAGS +DAportable"
12054          fi;;
12055
12056     ibm) if test "x$acx_maxopt_portable" = xno; then
12057            xlc_opt="-qarch=auto -qtune=auto"
12058          else
12059            xlc_opt="-qtune=auto"
12060          fi
12061          as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12063 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12064 if eval \${$as_CACHEVAR+:} false; then :
12065   $as_echo_n "(cached) " >&6
12066 else
12067
12068   ax_check_save_flags=$CFLAGS
12069   CFLAGS="$CFLAGS  $xlc_opt"
12070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h.  */
12072
12073 int
12074 main ()
12075 {
12076
12077   ;
12078   return 0;
12079 }
12080 _ACEOF
12081 if ac_fn_c_try_compile "$LINENO"; then :
12082   eval "$as_CACHEVAR=yes"
12083 else
12084   eval "$as_CACHEVAR=no"
12085 fi
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087   CFLAGS=$ax_check_save_flags
12088 fi
12089 eval ac_res=\$$as_CACHEVAR
12090                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12091 $as_echo "$ac_res" >&6; }
12092 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12093   CFLAGS="-O3 -qansialias -w $xlc_opt"
12094 else
12095   CFLAGS="-O3 -qansialias -w"
12096                 echo "******************************************************"
12097                 echo "*  You seem to have the IBM  C compiler.  It is      *"
12098                 echo "*  recommended for best performance that you use:    *"
12099                 echo "*                                                    *"
12100                 echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12101                 echo "*                      ^^^        ^^^                *"
12102                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
12103                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
12104                 echo "*  and re-run configure.)  For more info, man cc.    *"
12105                 echo "******************************************************"
12106 fi
12107
12108          ;;
12109
12110     intel) CFLAGS="-O3 -ansi_alias"
12111         if test "x$acx_maxopt_portable" = xno; then
12112           icc_archflag=unknown
12113           icc_flags=""
12114           case $host_cpu in
12115             i686*|x86_64*)
12116               # icc accepts gcc assembly syntax, so these should work:
12117
12118 ac_ext=c
12119 ac_cpp='$CPP $CPPFLAGS'
12120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12123
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12125 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12126 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12127   $as_echo_n "(cached) " >&6
12128 else
12129   if test "$cross_compiling" = yes; then :
12130   ax_cv_gcc_x86_cpuid_0=unknown
12131 else
12132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h.  */
12134 #include <stdio.h>
12135 int
12136 main ()
12137 {
12138
12139      int op = 0, eax, ebx, ecx, edx;
12140      FILE *f;
12141       __asm__("cpuid"
12142         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12143         : "a" (op));
12144      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12145      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12146      fclose(f);
12147      return 0;
12148
12149   ;
12150   return 0;
12151 }
12152 _ACEOF
12153 if ac_fn_c_try_run "$LINENO"; then :
12154   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12155 else
12156   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12157 fi
12158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12159   conftest.$ac_objext conftest.beam conftest.$ac_ext
12160 fi
12161
12162 fi
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12164 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12165 ac_ext=c
12166 ac_cpp='$CPP $CPPFLAGS'
12167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12170
12171
12172
12173 ac_ext=c
12174 ac_cpp='$CPP $CPPFLAGS'
12175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12178
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12180 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12181 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12182   $as_echo_n "(cached) " >&6
12183 else
12184   if test "$cross_compiling" = yes; then :
12185   ax_cv_gcc_x86_cpuid_1=unknown
12186 else
12187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h.  */
12189 #include <stdio.h>
12190 int
12191 main ()
12192 {
12193
12194      int op = 1, eax, ebx, ecx, edx;
12195      FILE *f;
12196       __asm__("cpuid"
12197         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12198         : "a" (op));
12199      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12200      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12201      fclose(f);
12202      return 0;
12203
12204   ;
12205   return 0;
12206 }
12207 _ACEOF
12208 if ac_fn_c_try_run "$LINENO"; then :
12209   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12210 else
12211   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12212 fi
12213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12214   conftest.$ac_objext conftest.beam conftest.$ac_ext
12215 fi
12216
12217 fi
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12219 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12220 ac_ext=c
12221 ac_cpp='$CPP $CPPFLAGS'
12222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12225
12226
12227               case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12228                 *:756e6547:*:*) # Intel
12229                   case $ax_cv_gcc_x86_cpuid_1 in
12230                     *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12231                     *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12232                     *f??:*:*:*) icc_flags="-xN -xW -xK";;
12233                   esac ;;
12234               esac ;;
12235           esac
12236           if test "x$icc_flags" != x; then
12237             for flag in $icc_flags; do
12238               as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12240 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12241 if eval \${$as_CACHEVAR+:} false; then :
12242   $as_echo_n "(cached) " >&6
12243 else
12244
12245   ax_check_save_flags=$CFLAGS
12246   CFLAGS="$CFLAGS  $flag"
12247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248 /* end confdefs.h.  */
12249
12250 int
12251 main ()
12252 {
12253
12254   ;
12255   return 0;
12256 }
12257 _ACEOF
12258 if ac_fn_c_try_compile "$LINENO"; then :
12259   eval "$as_CACHEVAR=yes"
12260 else
12261   eval "$as_CACHEVAR=no"
12262 fi
12263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12264   CFLAGS=$ax_check_save_flags
12265 fi
12266 eval ac_res=\$$as_CACHEVAR
12267                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12268 $as_echo "$ac_res" >&6; }
12269 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12270   icc_archflag=$flag; break
12271 else
12272   :
12273 fi
12274
12275             done
12276           fi
12277           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12278 $as_echo_n "checking for icc architecture flag... " >&6; }
12279           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12280 $as_echo "$icc_archflag" >&6; }
12281           if test "x$icc_archflag" != xunknown; then
12282             CFLAGS="$CFLAGS $icc_archflag"
12283           fi
12284         fi
12285         ;;
12286
12287     gnu)
12288      # default optimization flags for gcc on all systems
12289      CFLAGS="-O3 -fomit-frame-pointer"
12290
12291      # -malign-double for x86 systems
12292      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
12293 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
12294 if ${ax_cv_check_cflags___malign_double+:} false; then :
12295   $as_echo_n "(cached) " >&6
12296 else
12297
12298   ax_check_save_flags=$CFLAGS
12299   CFLAGS="$CFLAGS  -malign-double"
12300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h.  */
12302
12303 int
12304 main ()
12305 {
12306
12307   ;
12308   return 0;
12309 }
12310 _ACEOF
12311 if ac_fn_c_try_compile "$LINENO"; then :
12312   ax_cv_check_cflags___malign_double=yes
12313 else
12314   ax_cv_check_cflags___malign_double=no
12315 fi
12316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12317   CFLAGS=$ax_check_save_flags
12318 fi
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___malign_double" >&5
12320 $as_echo "$ax_cv_check_cflags___malign_double" >&6; }
12321 if test x"$ax_cv_check_cflags___malign_double" = xyes; then :
12322   CFLAGS="$CFLAGS -malign-double"
12323 else
12324   :
12325 fi
12326
12327
12328      #  -fstrict-aliasing for gcc-2.95+
12329      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12330 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12331 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12332   $as_echo_n "(cached) " >&6
12333 else
12334
12335   ax_check_save_flags=$CFLAGS
12336   CFLAGS="$CFLAGS  -fstrict-aliasing"
12337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12338 /* end confdefs.h.  */
12339
12340 int
12341 main ()
12342 {
12343
12344   ;
12345   return 0;
12346 }
12347 _ACEOF
12348 if ac_fn_c_try_compile "$LINENO"; then :
12349   ax_cv_check_cflags___fstrict_aliasing=yes
12350 else
12351   ax_cv_check_cflags___fstrict_aliasing=no
12352 fi
12353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12354   CFLAGS=$ax_check_save_flags
12355 fi
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12357 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12358 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12359   CFLAGS="$CFLAGS -fstrict-aliasing"
12360 else
12361   :
12362 fi
12363
12364
12365      # note that we enable "unsafe" fp optimization with other compilers, too
12366      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12367 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12368 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12369   $as_echo_n "(cached) " >&6
12370 else
12371
12372   ax_check_save_flags=$CFLAGS
12373   CFLAGS="$CFLAGS  -ffast-math"
12374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h.  */
12376
12377 int
12378 main ()
12379 {
12380
12381   ;
12382   return 0;
12383 }
12384 _ACEOF
12385 if ac_fn_c_try_compile "$LINENO"; then :
12386   ax_cv_check_cflags___ffast_math=yes
12387 else
12388   ax_cv_check_cflags___ffast_math=no
12389 fi
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391   CFLAGS=$ax_check_save_flags
12392 fi
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12394 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12395 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12396   CFLAGS="$CFLAGS -ffast-math"
12397 else
12398   :
12399 fi
12400
12401
12402
12403
12404
12405
12406 # Check whether --with-gcc-arch was given.
12407 if test "${with_gcc_arch+set}" = set; then :
12408   withval=$with_gcc_arch; ax_gcc_arch=$withval
12409 else
12410   ax_gcc_arch=yes
12411 fi
12412
12413
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12415 $as_echo_n "checking for gcc architecture flag... " >&6; }
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12417 $as_echo "" >&6; }
12418 if ${ax_cv_gcc_archflag+:} false; then :
12419   $as_echo_n "(cached) " >&6
12420 else
12421
12422 ax_cv_gcc_archflag="unknown"
12423
12424 if test "$GCC" = yes; then
12425
12426 if test "x$ax_gcc_arch" = xyes; then
12427 ax_gcc_arch=""
12428 if test "$cross_compiling" = no; then
12429 case $host_cpu in
12430   i[3456]86*|x86_64*) # use cpuid codes
12431
12432 ac_ext=c
12433 ac_cpp='$CPP $CPPFLAGS'
12434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12437
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12439 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12440 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12441   $as_echo_n "(cached) " >&6
12442 else
12443   if test "$cross_compiling" = yes; then :
12444   ax_cv_gcc_x86_cpuid_0=unknown
12445 else
12446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h.  */
12448 #include <stdio.h>
12449 int
12450 main ()
12451 {
12452
12453      int op = 0, eax, ebx, ecx, edx;
12454      FILE *f;
12455       __asm__("cpuid"
12456         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12457         : "a" (op));
12458      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12459      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12460      fclose(f);
12461      return 0;
12462
12463   ;
12464   return 0;
12465 }
12466 _ACEOF
12467 if ac_fn_c_try_run "$LINENO"; then :
12468   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12469 else
12470   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12471 fi
12472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12473   conftest.$ac_objext conftest.beam conftest.$ac_ext
12474 fi
12475
12476 fi
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12478 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12479 ac_ext=c
12480 ac_cpp='$CPP $CPPFLAGS'
12481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12484
12485
12486
12487 ac_ext=c
12488 ac_cpp='$CPP $CPPFLAGS'
12489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12492
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12494 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12495 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12496   $as_echo_n "(cached) " >&6
12497 else
12498   if test "$cross_compiling" = yes; then :
12499   ax_cv_gcc_x86_cpuid_1=unknown
12500 else
12501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h.  */
12503 #include <stdio.h>
12504 int
12505 main ()
12506 {
12507
12508      int op = 1, eax, ebx, ecx, edx;
12509      FILE *f;
12510       __asm__("cpuid"
12511         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12512         : "a" (op));
12513      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12514      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12515      fclose(f);
12516      return 0;
12517
12518   ;
12519   return 0;
12520 }
12521 _ACEOF
12522 if ac_fn_c_try_run "$LINENO"; then :
12523   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12524 else
12525   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12526 fi
12527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12528   conftest.$ac_objext conftest.beam conftest.$ac_ext
12529 fi
12530
12531 fi
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12533 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12534 ac_ext=c
12535 ac_cpp='$CPP $CPPFLAGS'
12536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12539
12540
12541      case $ax_cv_gcc_x86_cpuid_0 in
12542        *:756e6547:*:*) # Intel
12543           case $ax_cv_gcc_x86_cpuid_1 in
12544             *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12545             *5??:*:*:*) ax_gcc_arch=pentium ;;
12546             *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12547             *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12548             *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12549             *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12550             *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12551             *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12552             *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12553             *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12554             *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12555             *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12556             *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12557             *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12558             ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12559                 case $host_cpu in
12560                   x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12561                   *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12562                 esac ;;
12563             ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12564           esac ;;
12565        *:68747541:*:*) # AMD
12566           case $ax_cv_gcc_x86_cpuid_1 in
12567             *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12568             *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12569             *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12570             *60?:*:*:*) ax_gcc_arch=k7 ;;
12571             *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12572             *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12573             *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12574             *6[68a]?:*:*:*)
12575
12576 ac_ext=c
12577 ac_cpp='$CPP $CPPFLAGS'
12578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12581
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12583 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12584 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12585   $as_echo_n "(cached) " >&6
12586 else
12587   if test "$cross_compiling" = yes; then :
12588   ax_cv_gcc_x86_cpuid_0x80000006=unknown
12589 else
12590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h.  */
12592 #include <stdio.h>
12593 int
12594 main ()
12595 {
12596
12597      int op = 0x80000006, eax, ebx, ecx, edx;
12598      FILE *f;
12599       __asm__("cpuid"
12600         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12601         : "a" (op));
12602      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12603      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12604      fclose(f);
12605      return 0;
12606
12607   ;
12608   return 0;
12609 }
12610 _ACEOF
12611 if ac_fn_c_try_run "$LINENO"; then :
12612   ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12613 else
12614   ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12615 fi
12616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12617   conftest.$ac_objext conftest.beam conftest.$ac_ext
12618 fi
12619
12620 fi
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12622 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12623 ac_ext=c
12624 ac_cpp='$CPP $CPPFLAGS'
12625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12628
12629  # L2 cache size
12630                case $ax_cv_gcc_x86_cpuid_0x80000006 in
12631                  *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12632                         ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12633                  *) ax_gcc_arch="athlon-4 athlon k7" ;;
12634                esac ;;
12635             ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12636             ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12637             ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12638             ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12639             ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12640             ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12641             *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12642           esac ;;
12643         *:746e6543:*:*) # IDT
12644            case $ax_cv_gcc_x86_cpuid_1 in
12645              *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12646              *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12647              *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12648              *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12649            esac ;;
12650      esac
12651      if test x"$ax_gcc_arch" = x; then # fallback
12652         case $host_cpu in
12653           i586*) ax_gcc_arch=pentium ;;
12654           i686*) ax_gcc_arch=pentiumpro ;;
12655         esac
12656      fi
12657      ;;
12658
12659   sparc*)
12660      # Extract the first word of "prtdiag", so it can be a program name with args.
12661 set dummy prtdiag; ac_word=$2
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663 $as_echo_n "checking for $ac_word... " >&6; }
12664 if ${ac_cv_path_PRTDIAG+:} false; then :
12665   $as_echo_n "(cached) " >&6
12666 else
12667   case $PRTDIAG in
12668   [\\/]* | ?:[\\/]*)
12669   ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12670   ;;
12671   *)
12672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12673 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12674 for as_dir in $as_dummy
12675 do
12676   IFS=$as_save_IFS
12677   test -z "$as_dir" && as_dir=.
12678     for ac_exec_ext in '' $ac_executable_extensions; do
12679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12680     ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12682     break 2
12683   fi
12684 done
12685   done
12686 IFS=$as_save_IFS
12687
12688   test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12689   ;;
12690 esac
12691 fi
12692 PRTDIAG=$ac_cv_path_PRTDIAG
12693 if test -n "$PRTDIAG"; then
12694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12695 $as_echo "$PRTDIAG" >&6; }
12696 else
12697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698 $as_echo "no" >&6; }
12699 fi
12700
12701
12702      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`
12703      cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12704      case $cputype in
12705          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12706          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12707          *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12708          *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12709          *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12710          *cypress*) ax_gcc_arch=cypress ;;
12711      esac ;;
12712
12713   alphaev5) ax_gcc_arch=ev5 ;;
12714   alphaev56) ax_gcc_arch=ev56 ;;
12715   alphapca56) ax_gcc_arch="pca56 ev56" ;;
12716   alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12717   alphaev6) ax_gcc_arch=ev6 ;;
12718   alphaev67) ax_gcc_arch=ev67 ;;
12719   alphaev68) ax_gcc_arch="ev68 ev67" ;;
12720   alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12721   alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12722   alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12723
12724   powerpc*)
12725      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`
12726      cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12727      case $cputype in
12728        *750*) ax_gcc_arch="750 G3" ;;
12729        *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12730        *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12731        *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12732        *970*) ax_gcc_arch="970 G5 power4";;
12733        *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12734        *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12735        603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12736        *) ax_gcc_arch=$cputype ;;
12737      esac
12738      ax_gcc_arch="$ax_gcc_arch powerpc"
12739      ;;
12740 esac
12741 fi # not cross-compiling
12742 fi # guess arch
12743
12744 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12745 for arch in $ax_gcc_arch; do
12746   if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12747     flags="-mtune=$arch"
12748     # -mcpu=$arch and m$arch generate nonportable code on every arch except
12749     # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
12750     case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12751   else
12752     flags="-march=$arch -mcpu=$arch -m$arch"
12753   fi
12754   for flag in $flags; do
12755     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12757 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12758 if eval \${$as_CACHEVAR+:} false; then :
12759   $as_echo_n "(cached) " >&6
12760 else
12761
12762   ax_check_save_flags=$CFLAGS
12763   CFLAGS="$CFLAGS  $flag"
12764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h.  */
12766
12767 int
12768 main ()
12769 {
12770
12771   ;
12772   return 0;
12773 }
12774 _ACEOF
12775 if ac_fn_c_try_compile "$LINENO"; then :
12776   eval "$as_CACHEVAR=yes"
12777 else
12778   eval "$as_CACHEVAR=no"
12779 fi
12780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12781   CFLAGS=$ax_check_save_flags
12782 fi
12783 eval ac_res=\$$as_CACHEVAR
12784                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12785 $as_echo "$ac_res" >&6; }
12786 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12787   ax_cv_gcc_archflag=$flag; break
12788 else
12789   :
12790 fi
12791
12792   done
12793   test "x$ax_cv_gcc_archflag" = xunknown || break
12794 done
12795 fi
12796
12797 fi # $GCC=yes
12798
12799 fi
12800
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12802 $as_echo_n "checking for gcc architecture flag... " >&6; }
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12804 $as_echo "$ax_cv_gcc_archflag" >&6; }
12805 if test "x$ax_cv_gcc_archflag" = xunknown; then
12806   :
12807 else
12808   CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12809 fi
12810
12811      ;;
12812   esac
12813
12814   if test -z "$CFLAGS"; then
12815         echo ""
12816         echo "********************************************************"
12817         echo "* WARNING: Don't know the best CFLAGS for this system  *"
12818         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12819         echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12820         echo "********************************************************"
12821         echo ""
12822         CFLAGS="-O3"
12823   fi
12824
12825   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12827 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12828 if eval \${$as_CACHEVAR+:} false; then :
12829   $as_echo_n "(cached) " >&6
12830 else
12831
12832   ax_check_save_flags=$CFLAGS
12833   CFLAGS="$CFLAGS  $CFLAGS"
12834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12835 /* end confdefs.h.  */
12836
12837 int
12838 main ()
12839 {
12840
12841   ;
12842   return 0;
12843 }
12844 _ACEOF
12845 if ac_fn_c_try_compile "$LINENO"; then :
12846   eval "$as_CACHEVAR=yes"
12847 else
12848   eval "$as_CACHEVAR=no"
12849 fi
12850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851   CFLAGS=$ax_check_save_flags
12852 fi
12853 eval ac_res=\$$as_CACHEVAR
12854                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12855 $as_echo "$ac_res" >&6; }
12856 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12857   :
12858 else
12859
12860         echo ""
12861         echo "********************************************************"
12862         echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
12863         echo "* your compiler.                                       *"
12864         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12865         echo "********************************************************"
12866         echo ""
12867         CFLAGS=""
12868
12869 fi
12870
12871
12872 fi
12873
12874 if ${CFLAGS+:} false; then :
12875   case " $CFLAGS " in
12876     *"  "*)
12877       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
12878   (: CFLAGS already contains ) 2>&5
12879   ac_status=$?
12880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12881   test $ac_status = 0; }
12882       ;;
12883     *)
12884       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
12885   (: CFLAGS="$CFLAGS ") 2>&5
12886   ac_status=$?
12887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12888   test $ac_status = 0; }
12889       CFLAGS="$CFLAGS "
12890       ;;
12891    esac
12892 else
12893   CFLAGS=""
12894 fi
12895
12896 ac_ext=c
12897 ac_cpp='$CPP $CPPFLAGS'
12898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12901
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
12903 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
12904 if ${ac_cv_cflags_warn_all+:} false; then :
12905   $as_echo_n "(cached) " >&6
12906 else
12907   ac_cv_cflags_warn_all="no, unknown"
12908 ac_save_CFLAGS="$CFLAGS"
12909 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"    #
12910 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
12911    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h.  */
12913
12914 int
12915 main ()
12916 {
12917
12918   ;
12919   return 0;
12920 }
12921 _ACEOF
12922 if ac_fn_c_try_compile "$LINENO"; then :
12923   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
12924 fi
12925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12926 done
12927 CFLAGS="$ac_save_CFLAGS"
12928
12929 fi
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
12931 $as_echo "$ac_cv_cflags_warn_all" >&6; }
12932
12933 case ".$ac_cv_cflags_warn_all" in
12934      .ok|.ok,*)  ;;
12935    .|.no|.no,*)  ;;
12936    *) if ${CFLAGS+:} false; then :
12937   case " $CFLAGS " in
12938     *" $ac_cv_cflags_warn_all "*)
12939       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
12940   (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
12941   ac_status=$?
12942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12943   test $ac_status = 0; }
12944       ;;
12945     *)
12946       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
12947   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
12948   ac_status=$?
12949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950   test $ac_status = 0; }
12951       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
12952       ;;
12953    esac
12954 else
12955   CFLAGS="$ac_cv_cflags_warn_all"
12956 fi
12957  ;;
12958 esac
12959
12960 ac_ext=c
12961 ac_cpp='$CPP $CPPFLAGS'
12962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12965
12966
12967 if test "x$GCC" = "xyes"; then
12968   CFLAGS="$CFLAGS -fexceptions"
12969 fi
12970
12971
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12973 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12974     # Check whether --enable-maintainer-mode was given.
12975 if test "${enable_maintainer_mode+set}" = set; then :
12976   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12977 else
12978   USE_MAINTAINER_MODE=no
12979 fi
12980
12981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12982 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12983    if test $USE_MAINTAINER_MODE = yes; then
12984   MAINTAINER_MODE_TRUE=
12985   MAINTAINER_MODE_FALSE='#'
12986 else
12987   MAINTAINER_MODE_TRUE='#'
12988   MAINTAINER_MODE_FALSE=
12989 fi
12990
12991   MAINT=$MAINTAINER_MODE_TRUE
12992
12993
12994
12995 for ac_header in sys/mman.h
12996 do :
12997   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12998 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
12999   cat >>confdefs.h <<_ACEOF
13000 #define HAVE_SYS_MMAN_H 1
13001 _ACEOF
13002
13003 fi
13004
13005 done
13006
13007 for ac_func in mmap
13008 do :
13009   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13010 if test "x$ac_cv_func_mmap" = xyes; then :
13011   cat >>confdefs.h <<_ACEOF
13012 #define HAVE_MMAP 1
13013 _ACEOF
13014
13015 fi
13016 done
13017
13018
13019 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13020 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13021   libffi_header_sys_mman_h=yes
13022 else
13023   libffi_header_sys_mman_h=no
13024 fi
13025
13026
13027 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13028 if test "x$ac_cv_func_mmap" = xyes; then :
13029   libffi_func_mmap=yes
13030 else
13031   libffi_func_mmap=no
13032 fi
13033
13034 if test "$libffi_header_sys_mman_h" != yes \
13035  || test "$libffi_func_mmap" != yes; then
13036    ac_cv_func_mmap_file=no
13037    ac_cv_func_mmap_dev_zero=no
13038    ac_cv_func_mmap_anon=no
13039 else
13040    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13041 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13042 if ${ac_cv_func_mmap_file+:} false; then :
13043   $as_echo_n "(cached) " >&6
13044 else
13045   # Add a system to this blacklist if
13046    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13047    # memory area containing the same data that you'd get if you applied
13048    # read() to the same fd.  The only system known to have a problem here
13049    # is VMS, where text files have record structure.
13050    case "$host_os" in
13051      vms* | ultrix*)
13052         ac_cv_func_mmap_file=no ;;
13053      *)
13054         ac_cv_func_mmap_file=yes;;
13055    esac
13056 fi
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13058 $as_echo "$ac_cv_func_mmap_file" >&6; }
13059    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13060 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13061 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13062   $as_echo_n "(cached) " >&6
13063 else
13064   # Add a system to this blacklist if it has mmap() but /dev/zero
13065    # does not exist, or if mmapping /dev/zero does not give anonymous
13066    # zeroed pages with both the following properties:
13067    # 1. If you map N consecutive pages in with one call, and then
13068    #    unmap any subset of those pages, the pages that were not
13069    #    explicitly unmapped remain accessible.
13070    # 2. If you map two adjacent blocks of memory and then unmap them
13071    #    both at once, they must both go away.
13072    # Systems known to be in this category are Windows (all variants),
13073    # VMS, and Darwin.
13074    case "$host_os" in
13075      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13076         ac_cv_func_mmap_dev_zero=no ;;
13077      *)
13078         ac_cv_func_mmap_dev_zero=yes;;
13079    esac
13080 fi
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13082 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13083
13084    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13085    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13086 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13087 if ${ac_cv_decl_map_anon+:} false; then :
13088   $as_echo_n "(cached) " >&6
13089 else
13090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h.  */
13092 #include <sys/types.h>
13093 #include <sys/mman.h>
13094 #include <unistd.h>
13095
13096 #ifndef MAP_ANONYMOUS
13097 #define MAP_ANONYMOUS MAP_ANON
13098 #endif
13099
13100 int
13101 main ()
13102 {
13103 int n = MAP_ANONYMOUS;
13104   ;
13105   return 0;
13106 }
13107 _ACEOF
13108 if ac_fn_c_try_compile "$LINENO"; then :
13109   ac_cv_decl_map_anon=yes
13110 else
13111   ac_cv_decl_map_anon=no
13112 fi
13113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13114 fi
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13116 $as_echo "$ac_cv_decl_map_anon" >&6; }
13117
13118    if test $ac_cv_decl_map_anon = no; then
13119      ac_cv_func_mmap_anon=no
13120    else
13121      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13122 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13123 if ${ac_cv_func_mmap_anon+:} false; then :
13124   $as_echo_n "(cached) " >&6
13125 else
13126   # Add a system to this blacklist if it has mmap() and MAP_ANON or
13127    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13128    # doesn't give anonymous zeroed pages with the same properties listed
13129    # above for use of /dev/zero.
13130    # Systems known to be in this category are Windows, VMS, and SCO Unix.
13131    case "$host_os" in
13132      vms* | cygwin* | pe | mingw* | sco* | udk* )
13133         ac_cv_func_mmap_anon=no ;;
13134      *)
13135         ac_cv_func_mmap_anon=yes;;
13136    esac
13137 fi
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13139 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13140    fi
13141 fi
13142
13143 if test $ac_cv_func_mmap_file = yes; then
13144
13145 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13146
13147 fi
13148 if test $ac_cv_func_mmap_dev_zero = yes; then
13149
13150 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13151
13152 fi
13153 if test $ac_cv_func_mmap_anon = yes; then
13154
13155 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13156
13157 fi
13158
13159
13160  if test -d $srcdir/testsuite; then
13161   TESTSUBDIR_TRUE=
13162   TESTSUBDIR_FALSE='#'
13163 else
13164   TESTSUBDIR_TRUE='#'
13165   TESTSUBDIR_FALSE=
13166 fi
13167
13168
13169 TARGETDIR="unknown"
13170 case "$host" in
13171   alpha*-*-*)
13172         TARGET=ALPHA; TARGETDIR=alpha;
13173         # Support 128-bit long double, changeable via command-line switch.
13174         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13175         ;;
13176
13177   arm*-*-*)
13178         TARGET=ARM; TARGETDIR=arm
13179         ;;
13180
13181   amd64-*-freebsd* | amd64-*-openbsd*)
13182         TARGET=X86_64; TARGETDIR=x86
13183         ;;
13184
13185   amd64-*-freebsd*)
13186         TARGET=X86_64; TARGETDIR=x86
13187         ;;
13188
13189   avr32*-*-*)
13190         TARGET=AVR32; TARGETDIR=avr32
13191         ;;
13192
13193   bfin*)
13194         TARGET=BFIN; TARGETDIR=bfin
13195         ;;
13196
13197   cris-*-*)
13198         TARGET=LIBFFI_CRIS; TARGETDIR=cris
13199         ;;
13200
13201   frv-*-*)
13202         TARGET=FRV; TARGETDIR=frv
13203         ;;
13204
13205   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13206         TARGET=PA_LINUX; TARGETDIR=pa
13207         ;;
13208   hppa*64-*-hpux*)
13209         TARGET=PA64_HPUX; TARGETDIR=pa
13210         ;;
13211   hppa*-*-hpux*)
13212         TARGET=PA_HPUX; TARGETDIR=pa
13213         ;;
13214
13215   i?86-*-freebsd* | i?86-*-openbsd*)
13216         TARGET=X86_FREEBSD; TARGETDIR=x86
13217         ;;
13218   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13219         TARGET=X86_WIN32; TARGETDIR=x86
13220         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13221         # We must also check with_cross_host to decide if this is a native
13222         # or cross-build and select where to install dlls appropriately.
13223         if test -n "$with_cross_host" &&
13224            test x"$with_cross_host" != x"no"; then
13225           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13226         else
13227           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13228         fi
13229         ;;
13230   i?86-*-darwin*)
13231         TARGET=X86_DARWIN; TARGETDIR=x86
13232         ;;
13233   i?86-*-solaris2.1[0-9]*)
13234         TARGET=X86_64; TARGETDIR=x86
13235         ;;
13236   i?86-*-*)
13237         TARGET=X86_64; TARGETDIR=x86
13238         ;;
13239
13240   ia64*-*-*)
13241         TARGET=IA64; TARGETDIR=ia64
13242         ;;
13243
13244   m32r*-*-*)
13245         TARGET=M32R; TARGETDIR=m32r
13246         ;;
13247
13248   m68k-*-*)
13249         TARGET=M68K; TARGETDIR=m68k
13250         ;;
13251
13252   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13253         TARGET=MIPS; TARGETDIR=mips
13254         ;;
13255   mips*-*-linux* | mips*-*-openbsd*)
13256         # Support 128-bit long double for NewABI.
13257         HAVE_LONG_DOUBLE='defined(__mips64)'
13258         TARGET=MIPS; TARGETDIR=mips
13259         ;;
13260
13261   moxie-*-*)
13262         TARGET=MOXIE; TARGETDIR=moxie
13263         ;;
13264
13265   powerpc*-*-linux* | powerpc-*-sysv*)
13266         TARGET=POWERPC; TARGETDIR=powerpc
13267         ;;
13268   powerpc-*-amigaos*)
13269         TARGET=POWERPC; TARGETDIR=powerpc
13270         ;;
13271   powerpc-*-beos*)
13272         TARGET=POWERPC; TARGETDIR=powerpc
13273         ;;
13274   powerpc-*-darwin* | powerpc64-*-darwin*)
13275         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13276         ;;
13277   powerpc-*-aix* | rs6000-*-aix*)
13278         TARGET=POWERPC_AIX; TARGETDIR=powerpc
13279         ;;
13280   powerpc-*-freebsd* | powerpc-*-openbsd*)
13281         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13282         ;;
13283   powerpc64-*-freebsd*)
13284         TARGET=POWERPC; TARGETDIR=powerpc
13285         ;;
13286   powerpc*-*-rtems*)
13287         TARGET=POWERPC; TARGETDIR=powerpc
13288         ;;
13289
13290   s390-*-* | s390x-*-*)
13291         TARGET=S390; TARGETDIR=s390
13292         ;;
13293
13294   sh-*-* | sh[34]*-*-*)
13295         TARGET=SH; TARGETDIR=sh
13296         ;;
13297   sh64-*-* | sh5*-*-*)
13298         TARGET=SH64; TARGETDIR=sh64
13299         ;;
13300
13301   sparc*-*-*)
13302         TARGET=SPARC; TARGETDIR=sparc
13303         ;;
13304
13305   tile*-*)
13306         TARGET=TILE; TARGETDIR=tile
13307         ;;
13308
13309   x86_64-*-darwin*)
13310         TARGET=X86_DARWIN; TARGETDIR=x86
13311         ;;
13312
13313   x86_64-*-cygwin* | x86_64-*-mingw*)
13314         TARGET=X86_WIN64; TARGETDIR=x86
13315         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13316         # We must also check with_cross_host to decide if this is a native
13317         # or cross-build and select where to install dlls appropriately.
13318         if test -n "$with_cross_host" &&
13319            test x"$with_cross_host" != x"no"; then
13320           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13321         else
13322           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13323         fi
13324         ;;
13325
13326   x86_64-*-*)
13327         TARGET=X86_64; TARGETDIR=x86
13328         ;;
13329 esac
13330
13331
13332
13333
13334 if test $TARGETDIR = unknown; then
13335   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13336 fi
13337
13338  if test x$TARGET = xMIPS; then
13339   MIPS_TRUE=
13340   MIPS_FALSE='#'
13341 else
13342   MIPS_TRUE='#'
13343   MIPS_FALSE=
13344 fi
13345
13346  if test x$TARGET = xBFIN; then
13347   BFIN_TRUE=
13348   BFIN_FALSE='#'
13349 else
13350   BFIN_TRUE='#'
13351   BFIN_FALSE=
13352 fi
13353
13354  if test x$TARGET = xSPARC; then
13355   SPARC_TRUE=
13356   SPARC_FALSE='#'
13357 else
13358   SPARC_TRUE='#'
13359   SPARC_FALSE=
13360 fi
13361
13362  if test x$TARGET = xX86; then
13363   X86_TRUE=
13364   X86_FALSE='#'
13365 else
13366   X86_TRUE='#'
13367   X86_FALSE=
13368 fi
13369
13370  if test x$TARGET = xX86_FREEBSD; then
13371   X86_FREEBSD_TRUE=
13372   X86_FREEBSD_FALSE='#'
13373 else
13374   X86_FREEBSD_TRUE='#'
13375   X86_FREEBSD_FALSE=
13376 fi
13377
13378  if test x$TARGET = xX86_WIN32; then
13379   X86_WIN32_TRUE=
13380   X86_WIN32_FALSE='#'
13381 else
13382   X86_WIN32_TRUE='#'
13383   X86_WIN32_FALSE=
13384 fi
13385
13386  if test x$TARGET = xX86_WIN64; then
13387   X86_WIN64_TRUE=
13388   X86_WIN64_FALSE='#'
13389 else
13390   X86_WIN64_TRUE='#'
13391   X86_WIN64_FALSE=
13392 fi
13393
13394  if test x$TARGET = xX86_DARWIN; then
13395   X86_DARWIN_TRUE=
13396   X86_DARWIN_FALSE='#'
13397 else
13398   X86_DARWIN_TRUE='#'
13399   X86_DARWIN_FALSE=
13400 fi
13401
13402  if test x$TARGET = xALPHA; then
13403   ALPHA_TRUE=
13404   ALPHA_FALSE='#'
13405 else
13406   ALPHA_TRUE='#'
13407   ALPHA_FALSE=
13408 fi
13409
13410  if test x$TARGET = xIA64; then
13411   IA64_TRUE=
13412   IA64_FALSE='#'
13413 else
13414   IA64_TRUE='#'
13415   IA64_FALSE=
13416 fi
13417
13418  if test x$TARGET = xM32R; then
13419   M32R_TRUE=
13420   M32R_FALSE='#'
13421 else
13422   M32R_TRUE='#'
13423   M32R_FALSE=
13424 fi
13425
13426  if test x$TARGET = xM68K; then
13427   M68K_TRUE=
13428   M68K_FALSE='#'
13429 else
13430   M68K_TRUE='#'
13431   M68K_FALSE=
13432 fi
13433
13434  if test x$TARGET = xMOXIE; then
13435   MOXIE_TRUE=
13436   MOXIE_FALSE='#'
13437 else
13438   MOXIE_TRUE='#'
13439   MOXIE_FALSE=
13440 fi
13441
13442  if test x$TARGET = xPOWERPC; then
13443   POWERPC_TRUE=
13444   POWERPC_FALSE='#'
13445 else
13446   POWERPC_TRUE='#'
13447   POWERPC_FALSE=
13448 fi
13449
13450  if test x$TARGET = xPOWERPC_AIX; then
13451   POWERPC_AIX_TRUE=
13452   POWERPC_AIX_FALSE='#'
13453 else
13454   POWERPC_AIX_TRUE='#'
13455   POWERPC_AIX_FALSE=
13456 fi
13457
13458  if test x$TARGET = xPOWERPC_DARWIN; then
13459   POWERPC_DARWIN_TRUE=
13460   POWERPC_DARWIN_FALSE='#'
13461 else
13462   POWERPC_DARWIN_TRUE='#'
13463   POWERPC_DARWIN_FALSE=
13464 fi
13465
13466  if test x$TARGET = xPOWERPC_FREEBSD; then
13467   POWERPC_FREEBSD_TRUE=
13468   POWERPC_FREEBSD_FALSE='#'
13469 else
13470   POWERPC_FREEBSD_TRUE='#'
13471   POWERPC_FREEBSD_FALSE=
13472 fi
13473
13474  if test x$TARGET = xARM; then
13475   ARM_TRUE=
13476   ARM_FALSE='#'
13477 else
13478   ARM_TRUE='#'
13479   ARM_FALSE=
13480 fi
13481
13482  if test x$TARGET = xAVR32; then
13483   AVR32_TRUE=
13484   AVR32_FALSE='#'
13485 else
13486   AVR32_TRUE='#'
13487   AVR32_FALSE=
13488 fi
13489
13490  if test x$TARGET = xLIBFFI_CRIS; then
13491   LIBFFI_CRIS_TRUE=
13492   LIBFFI_CRIS_FALSE='#'
13493 else
13494   LIBFFI_CRIS_TRUE='#'
13495   LIBFFI_CRIS_FALSE=
13496 fi
13497
13498  if test x$TARGET = xFRV; then
13499   FRV_TRUE=
13500   FRV_FALSE='#'
13501 else
13502   FRV_TRUE='#'
13503   FRV_FALSE=
13504 fi
13505
13506  if test x$TARGET = xS390; then
13507   S390_TRUE=
13508   S390_FALSE='#'
13509 else
13510   S390_TRUE='#'
13511   S390_FALSE=
13512 fi
13513
13514  if test x$TARGET = xX86_64; then
13515   X86_64_TRUE=
13516   X86_64_FALSE='#'
13517 else
13518   X86_64_TRUE='#'
13519   X86_64_FALSE=
13520 fi
13521
13522  if test x$TARGET = xSH; then
13523   SH_TRUE=
13524   SH_FALSE='#'
13525 else
13526   SH_TRUE='#'
13527   SH_FALSE=
13528 fi
13529
13530  if test x$TARGET = xSH64; then
13531   SH64_TRUE=
13532   SH64_FALSE='#'
13533 else
13534   SH64_TRUE='#'
13535   SH64_FALSE=
13536 fi
13537
13538  if test x$TARGET = xPA_LINUX; then
13539   PA_LINUX_TRUE=
13540   PA_LINUX_FALSE='#'
13541 else
13542   PA_LINUX_TRUE='#'
13543   PA_LINUX_FALSE=
13544 fi
13545
13546  if test x$TARGET = xPA_HPUX; then
13547   PA_HPUX_TRUE=
13548   PA_HPUX_FALSE='#'
13549 else
13550   PA_HPUX_TRUE='#'
13551   PA_HPUX_FALSE=
13552 fi
13553
13554  if test x$TARGET = xPA64_HPUX; then
13555   PA64_HPUX_TRUE=
13556   PA64_HPUX_FALSE='#'
13557 else
13558   PA64_HPUX_TRUE='#'
13559   PA64_HPUX_FALSE=
13560 fi
13561
13562  if test x$TARGET = xTILE; then
13563   TILE_TRUE=
13564   TILE_FALSE='#'
13565 else
13566   TILE_TRUE='#'
13567   TILE_FALSE=
13568 fi
13569
13570
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13572 $as_echo_n "checking for ANSI C header files... " >&6; }
13573 if ${ac_cv_header_stdc+:} false; then :
13574   $as_echo_n "(cached) " >&6
13575 else
13576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h.  */
13578 #include <stdlib.h>
13579 #include <stdarg.h>
13580 #include <string.h>
13581 #include <float.h>
13582
13583 int
13584 main ()
13585 {
13586
13587   ;
13588   return 0;
13589 }
13590 _ACEOF
13591 if ac_fn_c_try_compile "$LINENO"; then :
13592   ac_cv_header_stdc=yes
13593 else
13594   ac_cv_header_stdc=no
13595 fi
13596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13597
13598 if test $ac_cv_header_stdc = yes; then
13599   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h.  */
13602 #include <string.h>
13603
13604 _ACEOF
13605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13606   $EGREP "memchr" >/dev/null 2>&1; then :
13607
13608 else
13609   ac_cv_header_stdc=no
13610 fi
13611 rm -f conftest*
13612
13613 fi
13614
13615 if test $ac_cv_header_stdc = yes; then
13616   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h.  */
13619 #include <stdlib.h>
13620
13621 _ACEOF
13622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13623   $EGREP "free" >/dev/null 2>&1; then :
13624
13625 else
13626   ac_cv_header_stdc=no
13627 fi
13628 rm -f conftest*
13629
13630 fi
13631
13632 if test $ac_cv_header_stdc = yes; then
13633   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13634   if test "$cross_compiling" = yes; then :
13635   :
13636 else
13637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h.  */
13639 #include <ctype.h>
13640 #include <stdlib.h>
13641 #if ((' ' & 0x0FF) == 0x020)
13642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13644 #else
13645 # define ISLOWER(c) \
13646                    (('a' <= (c) && (c) <= 'i') \
13647                      || ('j' <= (c) && (c) <= 'r') \
13648                      || ('s' <= (c) && (c) <= 'z'))
13649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13650 #endif
13651
13652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13653 int
13654 main ()
13655 {
13656   int i;
13657   for (i = 0; i < 256; i++)
13658     if (XOR (islower (i), ISLOWER (i))
13659         || toupper (i) != TOUPPER (i))
13660       return 2;
13661   return 0;
13662 }
13663 _ACEOF
13664 if ac_fn_c_try_run "$LINENO"; then :
13665
13666 else
13667   ac_cv_header_stdc=no
13668 fi
13669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13670   conftest.$ac_objext conftest.beam conftest.$ac_ext
13671 fi
13672
13673 fi
13674 fi
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13676 $as_echo "$ac_cv_header_stdc" >&6; }
13677 if test $ac_cv_header_stdc = yes; then
13678
13679 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13680
13681 fi
13682
13683 for ac_func in memcpy
13684 do :
13685   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13686 if test "x$ac_cv_func_memcpy" = xyes; then :
13687   cat >>confdefs.h <<_ACEOF
13688 #define HAVE_MEMCPY 1
13689 _ACEOF
13690
13691 fi
13692 done
13693
13694 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13695 if test "x$ac_cv_type_size_t" = xyes; then :
13696
13697 else
13698
13699 cat >>confdefs.h <<_ACEOF
13700 #define size_t unsigned int
13701 _ACEOF
13702
13703 fi
13704
13705 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13706 # for constant arguments.  Useless!
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13708 $as_echo_n "checking for working alloca.h... " >&6; }
13709 if ${ac_cv_working_alloca_h+:} false; then :
13710   $as_echo_n "(cached) " >&6
13711 else
13712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h.  */
13714 #include <alloca.h>
13715 int
13716 main ()
13717 {
13718 char *p = (char *) alloca (2 * sizeof (int));
13719                           if (p) return 0;
13720   ;
13721   return 0;
13722 }
13723 _ACEOF
13724 if ac_fn_c_try_link "$LINENO"; then :
13725   ac_cv_working_alloca_h=yes
13726 else
13727   ac_cv_working_alloca_h=no
13728 fi
13729 rm -f core conftest.err conftest.$ac_objext \
13730     conftest$ac_exeext conftest.$ac_ext
13731 fi
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13733 $as_echo "$ac_cv_working_alloca_h" >&6; }
13734 if test $ac_cv_working_alloca_h = yes; then
13735
13736 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13737
13738 fi
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13741 $as_echo_n "checking for alloca... " >&6; }
13742 if ${ac_cv_func_alloca_works+:} false; then :
13743   $as_echo_n "(cached) " >&6
13744 else
13745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h.  */
13747 #ifdef __GNUC__
13748 # define alloca __builtin_alloca
13749 #else
13750 # ifdef _MSC_VER
13751 #  include <malloc.h>
13752 #  define alloca _alloca
13753 # else
13754 #  ifdef HAVE_ALLOCA_H
13755 #   include <alloca.h>
13756 #  else
13757 #   ifdef _AIX
13758  #pragma alloca
13759 #   else
13760 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13761 void *alloca (size_t);
13762 #    endif
13763 #   endif
13764 #  endif
13765 # endif
13766 #endif
13767
13768 int
13769 main ()
13770 {
13771 char *p = (char *) alloca (1);
13772                                     if (p) return 0;
13773   ;
13774   return 0;
13775 }
13776 _ACEOF
13777 if ac_fn_c_try_link "$LINENO"; then :
13778   ac_cv_func_alloca_works=yes
13779 else
13780   ac_cv_func_alloca_works=no
13781 fi
13782 rm -f core conftest.err conftest.$ac_objext \
13783     conftest$ac_exeext conftest.$ac_ext
13784 fi
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13786 $as_echo "$ac_cv_func_alloca_works" >&6; }
13787
13788 if test $ac_cv_func_alloca_works = yes; then
13789
13790 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13791
13792 else
13793   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13794 # that cause trouble.  Some versions do not even contain alloca or
13795 # contain a buggy version.  If you still want to use their alloca,
13796 # use ar to extract alloca.o from them instead of compiling alloca.c.
13797
13798 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13799
13800 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13801
13802
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13804 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13805 if ${ac_cv_os_cray+:} false; then :
13806   $as_echo_n "(cached) " >&6
13807 else
13808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h.  */
13810 #if defined CRAY && ! defined CRAY2
13811 webecray
13812 #else
13813 wenotbecray
13814 #endif
13815
13816 _ACEOF
13817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13818   $EGREP "webecray" >/dev/null 2>&1; then :
13819   ac_cv_os_cray=yes
13820 else
13821   ac_cv_os_cray=no
13822 fi
13823 rm -f conftest*
13824
13825 fi
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13827 $as_echo "$ac_cv_os_cray" >&6; }
13828 if test $ac_cv_os_cray = yes; then
13829   for ac_func in _getb67 GETB67 getb67; do
13830     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13833
13834 cat >>confdefs.h <<_ACEOF
13835 #define CRAY_STACKSEG_END $ac_func
13836 _ACEOF
13837
13838     break
13839 fi
13840
13841   done
13842 fi
13843
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13845 $as_echo_n "checking stack direction for C alloca... " >&6; }
13846 if ${ac_cv_c_stack_direction+:} false; then :
13847   $as_echo_n "(cached) " >&6
13848 else
13849   if test "$cross_compiling" = yes; then :
13850   ac_cv_c_stack_direction=0
13851 else
13852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h.  */
13854 $ac_includes_default
13855 int
13856 find_stack_direction ()
13857 {
13858   static char *addr = 0;
13859   auto char dummy;
13860   if (addr == 0)
13861     {
13862       addr = &dummy;
13863       return find_stack_direction ();
13864     }
13865   else
13866     return (&dummy > addr) ? 1 : -1;
13867 }
13868
13869 int
13870 main ()
13871 {
13872   return find_stack_direction () < 0;
13873 }
13874 _ACEOF
13875 if ac_fn_c_try_run "$LINENO"; then :
13876   ac_cv_c_stack_direction=1
13877 else
13878   ac_cv_c_stack_direction=-1
13879 fi
13880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13881   conftest.$ac_objext conftest.beam conftest.$ac_ext
13882 fi
13883
13884 fi
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13886 $as_echo "$ac_cv_c_stack_direction" >&6; }
13887 cat >>confdefs.h <<_ACEOF
13888 #define STACK_DIRECTION $ac_cv_c_stack_direction
13889 _ACEOF
13890
13891
13892 fi
13893
13894
13895 # The cast to long int works around a bug in the HP C Compiler
13896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13898 # This bug is HP SR number 8606223364.
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
13900 $as_echo_n "checking size of double... " >&6; }
13901 if ${ac_cv_sizeof_double+:} false; then :
13902   $as_echo_n "(cached) " >&6
13903 else
13904   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
13905
13906 else
13907   if test "$ac_cv_type_double" = yes; then
13908      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13910 as_fn_error 77 "cannot compute sizeof (double)
13911 See \`config.log' for more details" "$LINENO" 5; }
13912    else
13913      ac_cv_sizeof_double=0
13914    fi
13915 fi
13916
13917 fi
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
13919 $as_echo "$ac_cv_sizeof_double" >&6; }
13920
13921
13922
13923 cat >>confdefs.h <<_ACEOF
13924 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13925 _ACEOF
13926
13927
13928 # The cast to long int works around a bug in the HP C Compiler
13929 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13930 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13931 # This bug is HP SR number 8606223364.
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
13933 $as_echo_n "checking size of long double... " >&6; }
13934 if ${ac_cv_sizeof_long_double+:} false; then :
13935   $as_echo_n "(cached) " >&6
13936 else
13937   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
13938
13939 else
13940   if test "$ac_cv_type_long_double" = yes; then
13941      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13943 as_fn_error 77 "cannot compute sizeof (long double)
13944 See \`config.log' for more details" "$LINENO" 5; }
13945    else
13946      ac_cv_sizeof_long_double=0
13947    fi
13948 fi
13949
13950 fi
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
13952 $as_echo "$ac_cv_sizeof_long_double" >&6; }
13953
13954
13955
13956 cat >>confdefs.h <<_ACEOF
13957 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
13958 _ACEOF
13959
13960
13961
13962 # Also AC_SUBST this variable for ffi.h.
13963 if test -z "$HAVE_LONG_DOUBLE"; then
13964   HAVE_LONG_DOUBLE=0
13965   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
13966     if test $ac_cv_sizeof_long_double != 0; then
13967       HAVE_LONG_DOUBLE=1
13968
13969 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13970
13971     fi
13972   fi
13973 fi
13974
13975
13976  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13977 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13978 if ${ac_cv_c_bigendian+:} false; then :
13979   $as_echo_n "(cached) " >&6
13980 else
13981   ac_cv_c_bigendian=unknown
13982     # See if we're dealing with a universal compiler.
13983     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h.  */
13985 #ifndef __APPLE_CC__
13986                not a universal capable compiler
13987              #endif
13988              typedef int dummy;
13989
13990 _ACEOF
13991 if ac_fn_c_try_compile "$LINENO"; then :
13992
13993         # Check for potential -arch flags.  It is not universal unless
13994         # there are at least two -arch flags with different values.
13995         ac_arch=
13996         ac_prev=
13997         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13998          if test -n "$ac_prev"; then
13999            case $ac_word in
14000              i?86 | x86_64 | ppc | ppc64)
14001                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14002                  ac_arch=$ac_word
14003                else
14004                  ac_cv_c_bigendian=universal
14005                  break
14006                fi
14007                ;;
14008            esac
14009            ac_prev=
14010          elif test "x$ac_word" = "x-arch"; then
14011            ac_prev=arch
14012          fi
14013        done
14014 fi
14015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14016     if test $ac_cv_c_bigendian = unknown; then
14017       # See if sys/param.h defines the BYTE_ORDER macro.
14018       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14019 /* end confdefs.h.  */
14020 #include <sys/types.h>
14021              #include <sys/param.h>
14022
14023 int
14024 main ()
14025 {
14026 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14027                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14028                      && LITTLE_ENDIAN)
14029               bogus endian macros
14030              #endif
14031
14032   ;
14033   return 0;
14034 }
14035 _ACEOF
14036 if ac_fn_c_try_compile "$LINENO"; then :
14037   # It does; now see whether it defined to BIG_ENDIAN or not.
14038          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h.  */
14040 #include <sys/types.h>
14041                 #include <sys/param.h>
14042
14043 int
14044 main ()
14045 {
14046 #if BYTE_ORDER != BIG_ENDIAN
14047                  not big endian
14048                 #endif
14049
14050   ;
14051   return 0;
14052 }
14053 _ACEOF
14054 if ac_fn_c_try_compile "$LINENO"; then :
14055   ac_cv_c_bigendian=yes
14056 else
14057   ac_cv_c_bigendian=no
14058 fi
14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14060 fi
14061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14062     fi
14063     if test $ac_cv_c_bigendian = unknown; then
14064       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14065       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h.  */
14067 #include <limits.h>
14068
14069 int
14070 main ()
14071 {
14072 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14073               bogus endian macros
14074              #endif
14075
14076   ;
14077   return 0;
14078 }
14079 _ACEOF
14080 if ac_fn_c_try_compile "$LINENO"; then :
14081   # It does; now see whether it defined to _BIG_ENDIAN or not.
14082          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h.  */
14084 #include <limits.h>
14085
14086 int
14087 main ()
14088 {
14089 #ifndef _BIG_ENDIAN
14090                  not big endian
14091                 #endif
14092
14093   ;
14094   return 0;
14095 }
14096 _ACEOF
14097 if ac_fn_c_try_compile "$LINENO"; then :
14098   ac_cv_c_bigendian=yes
14099 else
14100   ac_cv_c_bigendian=no
14101 fi
14102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14103 fi
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105     fi
14106     if test $ac_cv_c_bigendian = unknown; then
14107       # Compile a test program.
14108       if test "$cross_compiling" = yes; then :
14109   # Try to guess by grepping values from an object file.
14110          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h.  */
14112 short int ascii_mm[] =
14113                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14114                 short int ascii_ii[] =
14115                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14116                 int use_ascii (int i) {
14117                   return ascii_mm[i] + ascii_ii[i];
14118                 }
14119                 short int ebcdic_ii[] =
14120                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14121                 short int ebcdic_mm[] =
14122                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14123                 int use_ebcdic (int i) {
14124                   return ebcdic_mm[i] + ebcdic_ii[i];
14125                 }
14126                 extern int foo;
14127
14128 int
14129 main ()
14130 {
14131 return use_ascii (foo) == use_ebcdic (foo);
14132   ;
14133   return 0;
14134 }
14135 _ACEOF
14136 if ac_fn_c_try_compile "$LINENO"; then :
14137   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14138               ac_cv_c_bigendian=yes
14139             fi
14140             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14141               if test "$ac_cv_c_bigendian" = unknown; then
14142                 ac_cv_c_bigendian=no
14143               else
14144                 # finding both strings is unlikely to happen, but who knows?
14145                 ac_cv_c_bigendian=unknown
14146               fi
14147             fi
14148 fi
14149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14150 else
14151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h.  */
14153 $ac_includes_default
14154 int
14155 main ()
14156 {
14157
14158              /* Are we little or big endian?  From Harbison&Steele.  */
14159              union
14160              {
14161                long int l;
14162                char c[sizeof (long int)];
14163              } u;
14164              u.l = 1;
14165              return u.c[sizeof (long int) - 1] == 1;
14166
14167   ;
14168   return 0;
14169 }
14170 _ACEOF
14171 if ac_fn_c_try_run "$LINENO"; then :
14172   ac_cv_c_bigendian=no
14173 else
14174   ac_cv_c_bigendian=yes
14175 fi
14176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14177   conftest.$ac_objext conftest.beam conftest.$ac_ext
14178 fi
14179
14180     fi
14181 fi
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14183 $as_echo "$ac_cv_c_bigendian" >&6; }
14184  case $ac_cv_c_bigendian in #(
14185    yes)
14186      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14187 ;; #(
14188    no)
14189       ;; #(
14190    universal)
14191
14192 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14193
14194      ;; #(
14195    *)
14196      as_fn_error $? "unknown endianness
14197  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14198  esac
14199
14200
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14202 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14203 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14204   $as_echo_n "(cached) " >&6
14205 else
14206
14207     gcc_cv_as_cfi_pseudo_op=unknown
14208     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h.  */
14210 asm (".cfi_startproc\n\t.cfi_endproc");
14211 int
14212 main ()
14213 {
14214
14215   ;
14216   return 0;
14217 }
14218 _ACEOF
14219 if ac_fn_c_try_compile "$LINENO"; then :
14220   gcc_cv_as_cfi_pseudo_op=yes
14221 else
14222   gcc_cv_as_cfi_pseudo_op=no
14223 fi
14224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225
14226 fi
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14228 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14229  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14230
14231 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14232
14233  fi
14234
14235
14236 if test x$TARGET = xSPARC; then
14237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14238 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14239 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14240   $as_echo_n "(cached) " >&6
14241 else
14242
14243         save_CFLAGS="$CFLAGS"
14244         save_LDFLAGS="$LDFLAGS"
14245         CFLAGS="$CFLAGS -fpic"
14246         LDFLAGS="$LDFLAGS -shared"
14247         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14248 /* end confdefs.h.  */
14249 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14250 int
14251 main ()
14252 {
14253
14254   ;
14255   return 0;
14256 }
14257 _ACEOF
14258 if ac_fn_c_try_link "$LINENO"; then :
14259   libffi_cv_as_sparc_ua_pcrel=yes
14260 else
14261   libffi_cv_as_sparc_ua_pcrel=no
14262 fi
14263 rm -f core conftest.err conftest.$ac_objext \
14264     conftest$ac_exeext conftest.$ac_ext
14265         CFLAGS="$save_CFLAGS"
14266         LDFLAGS="$save_LDFLAGS"
14267 fi
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14269 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14270     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14271
14272 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14273
14274     fi
14275
14276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14277 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14278 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14279   $as_echo_n "(cached) " >&6
14280 else
14281
14282        libffi_cv_as_register_pseudo_op=unknown
14283        # Check if we have .register
14284        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h.  */
14286 asm (".register %g2, #scratch");
14287 int
14288 main ()
14289 {
14290
14291   ;
14292   return 0;
14293 }
14294 _ACEOF
14295 if ac_fn_c_try_compile "$LINENO"; then :
14296   libffi_cv_as_register_pseudo_op=yes
14297 else
14298   libffi_cv_as_register_pseudo_op=no
14299 fi
14300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14301
14302 fi
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14304 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14305     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14306
14307 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14308
14309     fi
14310 fi
14311
14312 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14314 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14315 if ${libffi_cv_as_x86_pcrel+:} false; then :
14316   $as_echo_n "(cached) " >&6
14317 else
14318
14319         libffi_cv_as_x86_pcrel=yes
14320         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14321         if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
14322             libffi_cv_as_x86_pcrel=no
14323         fi
14324
14325 fi
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14327 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14328     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14329
14330 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14331
14332     fi
14333
14334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14335 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14336 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14337   $as_echo_n "(cached) " >&6
14338 else
14339
14340        libffi_cv_as_ascii_pseudo_op=unknown
14341        # Check if we have .ascii
14342        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h.  */
14344 asm (".ascii \\"string\\"");
14345 int
14346 main ()
14347 {
14348
14349   ;
14350   return 0;
14351 }
14352 _ACEOF
14353 if ac_fn_c_try_compile "$LINENO"; then :
14354   libffi_cv_as_ascii_pseudo_op=yes
14355 else
14356   libffi_cv_as_ascii_pseudo_op=no
14357 fi
14358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14359
14360 fi
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14362 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14363     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14364
14365 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14366
14367     fi
14368
14369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14370 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14371 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14372   $as_echo_n "(cached) " >&6
14373 else
14374
14375        libffi_cv_as_string_pseudo_op=unknown
14376        # Check if we have .string
14377        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h.  */
14379 asm (".string \\"string\\"");
14380 int
14381 main ()
14382 {
14383
14384   ;
14385   return 0;
14386 }
14387 _ACEOF
14388 if ac_fn_c_try_compile "$LINENO"; then :
14389   libffi_cv_as_string_pseudo_op=yes
14390 else
14391   libffi_cv_as_string_pseudo_op=no
14392 fi
14393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14394
14395 fi
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14397 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14398     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14399
14400 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14401
14402     fi
14403 fi
14404
14405 if test x$TARGET = xX86_WIN64; then
14406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14407 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14408 if ${lt_cv_sys_symbol_underscore+:} false; then :
14409   $as_echo_n "(cached) " >&6
14410 else
14411   lt_cv_sys_symbol_underscore=no
14412   cat > conftest.$ac_ext <<_LT_EOF
14413 void nm_test_func(){}
14414 int main(){nm_test_func;return 0;}
14415 _LT_EOF
14416   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14417   (eval $ac_compile) 2>&5
14418   ac_status=$?
14419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14420   test $ac_status = 0; }; then
14421     # Now try to grab the symbols.
14422     ac_nlist=conftest.nm
14423     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14424   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14425   ac_status=$?
14426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14427   test $ac_status = 0; } && test -s "$ac_nlist"; then
14428       # See whether the symbols have a leading underscore.
14429       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14430         lt_cv_sys_symbol_underscore=yes
14431       else
14432         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14433           :
14434         else
14435           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14436         fi
14437       fi
14438     else
14439       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14440     fi
14441   else
14442     echo "configure: failed program was:" >&5
14443     cat conftest.c >&5
14444   fi
14445   rm -rf conftest*
14446
14447 fi
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14449 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14450   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14451
14452
14453     if test "x$sys_symbol_underscore" = xyes; then
14454
14455 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14456
14457     fi
14458 fi
14459
14460
14461 FFI_EXEC_TRAMPOLINE_TABLE=0
14462 case "$target" in
14463      *arm*-apple-darwin*)
14464        FFI_EXEC_TRAMPOLINE_TABLE=1
14465
14466 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14467
14468      ;;
14469      *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14470
14471 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14472
14473      ;;
14474 esac
14475  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14476   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14477   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14478 else
14479   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14480   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14481 fi
14482
14483
14484
14485 if test x$TARGET = xX86_64; then
14486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14487 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14488 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14489   $as_echo_n "(cached) " >&6
14490 else
14491
14492         libffi_cv_as_x86_64_unwind_section_type=yes
14493         echo '.section .eh_frame,"a",@unwind' > conftest.s
14494         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14495             libffi_cv_as_x86_64_unwind_section_type=no
14496         fi
14497
14498 fi
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14500 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14501     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14502
14503 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14504
14505     fi
14506 fi
14507
14508 if test "x$GCC" = "xyes"; then
14509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14510 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14511 if ${libffi_cv_ro_eh_frame+:} false; then :
14512   $as_echo_n "(cached) " >&6
14513 else
14514
14515         libffi_cv_ro_eh_frame=no
14516         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14517         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14518             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14519                 libffi_cv_ro_eh_frame=yes
14520             elif grep '.section.*eh_frame.*#alloc' conftest.c \
14521                  | grep -v '#write' > /dev/null; then
14522                 libffi_cv_ro_eh_frame=yes
14523             fi
14524         fi
14525         rm -f conftest.*
14526
14527 fi
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14529 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14530   if test "x$libffi_cv_ro_eh_frame" = xyes; then
14531
14532 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14533
14534
14535 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14536
14537   else
14538
14539 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14540
14541   fi
14542
14543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14544 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14545 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14546   $as_echo_n "(cached) " >&6
14547 else
14548
14549         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
14550         libffi_cv_hidden_visibility_attribute=no
14551         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14552   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14553   (eval $ac_try) 2>&5
14554   ac_status=$?
14555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14556   test $ac_status = 0; }; }; then
14557             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14558                 libffi_cv_hidden_visibility_attribute=yes
14559             fi
14560         fi
14561         rm -f conftest.*
14562
14563 fi
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14565 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14566   if test $libffi_cv_hidden_visibility_attribute = yes; then
14567
14568 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14569
14570   fi
14571 fi
14572
14573
14574
14575
14576
14577
14578
14579
14580 # Check whether --enable-debug was given.
14581 if test "${enable_debug+set}" = set; then :
14582   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14583
14584 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14585
14586   fi
14587 fi
14588
14589  if test "$enable_debug" = "yes"; then
14590   FFI_DEBUG_TRUE=
14591   FFI_DEBUG_FALSE='#'
14592 else
14593   FFI_DEBUG_TRUE='#'
14594   FFI_DEBUG_FALSE=
14595 fi
14596
14597
14598 # Check whether --enable-structs was given.
14599 if test "${enable_structs+set}" = set; then :
14600   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14601
14602 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14603
14604   fi
14605 fi
14606
14607
14608 # Check whether --enable-raw-api was given.
14609 if test "${enable_raw_api+set}" = set; then :
14610   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14611
14612 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14613
14614   fi
14615 fi
14616
14617
14618 # Check whether --enable-purify-safety was given.
14619 if test "${enable_purify_safety+set}" = set; then :
14620   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14621
14622 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14623
14624   fi
14625 fi
14626
14627
14628 # These variables are only ever used when we cross-build to X86_WIN32.
14629 # And we only support this with GCC, so...
14630 if test x"$GCC" != x"no"; then
14631   if test -n "$with_cross_host" &&
14632      test x"$with_cross_host" != x"no"; then
14633     toolexecdir='$(exec_prefix)/$(target_alias)'
14634     toolexeclibdir='$(toolexecdir)/lib'
14635   else
14636     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14637     toolexeclibdir='$(libdir)'
14638   fi
14639   multi_os_directory=`$CC -print-multi-os-directory`
14640   case $multi_os_directory in
14641     .) ;; # Avoid trailing /.
14642     *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14643   esac
14644
14645
14646 fi
14647
14648 if test "${multilib}" = "yes"; then
14649   multilib_arg="--enable-multilib"
14650 else
14651   multilib_arg=
14652 fi
14653
14654 ac_config_commands="$ac_config_commands include"
14655
14656 ac_config_commands="$ac_config_commands src"
14657
14658
14659 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14660
14661
14662 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14663
14664
14665 cat >confcache <<\_ACEOF
14666 # This file is a shell script that caches the results of configure
14667 # tests run on this system so they can be shared between configure
14668 # scripts and configure runs, see configure's option --config-cache.
14669 # It is not useful on other systems.  If it contains results you don't
14670 # want to keep, you may remove or edit it.
14671 #
14672 # config.status only pays attention to the cache file if you give it
14673 # the --recheck option to rerun configure.
14674 #
14675 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14676 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14677 # following values.
14678
14679 _ACEOF
14680
14681 # The following way of writing the cache mishandles newlines in values,
14682 # but we know of no workaround that is simple, portable, and efficient.
14683 # So, we kill variables containing newlines.
14684 # Ultrix sh set writes to stderr and can't be redirected directly,
14685 # and sets the high bit in the cache file unless we assign to the vars.
14686 (
14687   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14688     eval ac_val=\$$ac_var
14689     case $ac_val in #(
14690     *${as_nl}*)
14691       case $ac_var in #(
14692       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14693 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14694       esac
14695       case $ac_var in #(
14696       _ | IFS | as_nl) ;; #(
14697       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14698       *) { eval $ac_var=; unset $ac_var;} ;;
14699       esac ;;
14700     esac
14701   done
14702
14703   (set) 2>&1 |
14704     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14705     *${as_nl}ac_space=\ *)
14706       # `set' does not quote correctly, so add quotes: double-quote
14707       # substitution turns \\\\ into \\, and sed turns \\ into \.
14708       sed -n \
14709         "s/'/'\\\\''/g;
14710           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14711       ;; #(
14712     *)
14713       # `set' quotes correctly as required by POSIX, so do not add quotes.
14714       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14715       ;;
14716     esac |
14717     sort
14718 ) |
14719   sed '
14720      /^ac_cv_env_/b end
14721      t clear
14722      :clear
14723      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14724      t end
14725      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14726      :end' >>confcache
14727 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14728   if test -w "$cache_file"; then
14729     if test "x$cache_file" != "x/dev/null"; then
14730       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14731 $as_echo "$as_me: updating cache $cache_file" >&6;}
14732       if test ! -f "$cache_file" || test -h "$cache_file"; then
14733         cat confcache >"$cache_file"
14734       else
14735         case $cache_file in #(
14736         */* | ?:*)
14737           mv -f confcache "$cache_file"$$ &&
14738           mv -f "$cache_file"$$ "$cache_file" ;; #(
14739         *)
14740           mv -f confcache "$cache_file" ;;
14741         esac
14742       fi
14743     fi
14744   else
14745     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14746 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14747   fi
14748 fi
14749 rm -f confcache
14750
14751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14752 # Let make expand exec_prefix.
14753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14754
14755 DEFS=-DHAVE_CONFIG_H
14756
14757 ac_libobjs=
14758 ac_ltlibobjs=
14759 U=
14760 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14761   # 1. Remove the extension, and $U if already installed.
14762   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14763   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14764   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14765   #    will be set to the directory where LIBOBJS objects are built.
14766   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14767   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14768 done
14769 LIBOBJS=$ac_libobjs
14770
14771 LTLIBOBJS=$ac_ltlibobjs
14772
14773
14774  if test -n "$EXEEXT"; then
14775   am__EXEEXT_TRUE=
14776   am__EXEEXT_FALSE='#'
14777 else
14778   am__EXEEXT_TRUE='#'
14779   am__EXEEXT_FALSE=
14780 fi
14781
14782 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14783   as_fn_error $? "conditional \"AMDEP\" was never defined.
14784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14785 fi
14786 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14787   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14789 fi
14790 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14791   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14793 fi
14794 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14795   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14797 fi
14798 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14799   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
14800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14801 fi
14802 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14803   as_fn_error $? "conditional \"MIPS\" was never defined.
14804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14805 fi
14806 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
14807   as_fn_error $? "conditional \"BFIN\" was never defined.
14808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14809 fi
14810 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14811   as_fn_error $? "conditional \"SPARC\" was never defined.
14812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14813 fi
14814 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14815   as_fn_error $? "conditional \"X86\" was never defined.
14816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14817 fi
14818 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
14819   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
14820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14821 fi
14822 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
14823   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
14824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14825 fi
14826 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
14827   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
14828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14829 fi
14830 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
14831   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
14832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14833 fi
14834 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
14835   as_fn_error $? "conditional \"ALPHA\" was never defined.
14836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14837 fi
14838 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
14839   as_fn_error $? "conditional \"IA64\" was never defined.
14840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14841 fi
14842 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
14843   as_fn_error $? "conditional \"M32R\" was never defined.
14844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14845 fi
14846 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
14847   as_fn_error $? "conditional \"M68K\" was never defined.
14848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14849 fi
14850 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
14851   as_fn_error $? "conditional \"MOXIE\" was never defined.
14852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14853 fi
14854 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
14855   as_fn_error $? "conditional \"POWERPC\" was never defined.
14856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14857 fi
14858 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
14859   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
14860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14861 fi
14862 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
14863   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
14864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14865 fi
14866 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
14867   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
14868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14869 fi
14870 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
14871   as_fn_error $? "conditional \"ARM\" was never defined.
14872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14873 fi
14874 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
14875   as_fn_error $? "conditional \"AVR32\" was never defined.
14876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14877 fi
14878 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
14879   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
14880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14881 fi
14882 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
14883   as_fn_error $? "conditional \"FRV\" was never defined.
14884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14885 fi
14886 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
14887   as_fn_error $? "conditional \"S390\" was never defined.
14888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14889 fi
14890 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
14891   as_fn_error $? "conditional \"X86_64\" was never defined.
14892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14893 fi
14894 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
14895   as_fn_error $? "conditional \"SH\" was never defined.
14896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14897 fi
14898 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
14899   as_fn_error $? "conditional \"SH64\" was never defined.
14900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14901 fi
14902 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
14903   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
14904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14905 fi
14906 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
14907   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
14908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14909 fi
14910 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
14911   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
14912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14913 fi
14914 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
14915   as_fn_error $? "conditional \"TILE\" was never defined.
14916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14917 fi
14918
14919 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
14920   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
14921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14922 fi
14923 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
14924   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
14925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14926 fi
14927
14928 : "${CONFIG_STATUS=./config.status}"
14929 ac_write_fail=0
14930 ac_clean_files_save=$ac_clean_files
14931 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14933 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14934 as_write_fail=0
14935 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14936 #! $SHELL
14937 # Generated by $as_me.
14938 # Run this file to recreate the current configuration.
14939 # Compiler output produced by configure, useful for debugging
14940 # configure, is in config.log if it exists.
14941
14942 debug=false
14943 ac_cs_recheck=false
14944 ac_cs_silent=false
14945
14946 SHELL=\${CONFIG_SHELL-$SHELL}
14947 export SHELL
14948 _ASEOF
14949 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14950 ## -------------------- ##
14951 ## M4sh Initialization. ##
14952 ## -------------------- ##
14953
14954 # Be more Bourne compatible
14955 DUALCASE=1; export DUALCASE # for MKS sh
14956 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14957   emulate sh
14958   NULLCMD=:
14959   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14960   # is contrary to our usage.  Disable this feature.
14961   alias -g '${1+"$@"}'='"$@"'
14962   setopt NO_GLOB_SUBST
14963 else
14964   case `(set -o) 2>/dev/null` in #(
14965   *posix*) :
14966     set -o posix ;; #(
14967   *) :
14968      ;;
14969 esac
14970 fi
14971
14972
14973 as_nl='
14974 '
14975 export as_nl
14976 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14977 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14978 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14979 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14980 # Prefer a ksh shell builtin over an external printf program on Solaris,
14981 # but without wasting forks for bash or zsh.
14982 if test -z "$BASH_VERSION$ZSH_VERSION" \
14983     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14984   as_echo='print -r --'
14985   as_echo_n='print -rn --'
14986 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14987   as_echo='printf %s\n'
14988   as_echo_n='printf %s'
14989 else
14990   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14991     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14992     as_echo_n='/usr/ucb/echo -n'
14993   else
14994     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14995     as_echo_n_body='eval
14996       arg=$1;
14997       case $arg in #(
14998       *"$as_nl"*)
14999         expr "X$arg" : "X\\(.*\\)$as_nl";
15000         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15001       esac;
15002       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15003     '
15004     export as_echo_n_body
15005     as_echo_n='sh -c $as_echo_n_body as_echo'
15006   fi
15007   export as_echo_body
15008   as_echo='sh -c $as_echo_body as_echo'
15009 fi
15010
15011 # The user is always right.
15012 if test "${PATH_SEPARATOR+set}" != set; then
15013   PATH_SEPARATOR=:
15014   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15015     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15016       PATH_SEPARATOR=';'
15017   }
15018 fi
15019
15020
15021 # IFS
15022 # We need space, tab and new line, in precisely that order.  Quoting is
15023 # there to prevent editors from complaining about space-tab.
15024 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15025 # splitting by setting IFS to empty value.)
15026 IFS=" ""        $as_nl"
15027
15028 # Find who we are.  Look in the path if we contain no directory separator.
15029 as_myself=
15030 case $0 in #((
15031   *[\\/]* ) as_myself=$0 ;;
15032   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15033 for as_dir in $PATH
15034 do
15035   IFS=$as_save_IFS
15036   test -z "$as_dir" && as_dir=.
15037     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15038   done
15039 IFS=$as_save_IFS
15040
15041      ;;
15042 esac
15043 # We did not find ourselves, most probably we were run as `sh COMMAND'
15044 # in which case we are not to be found in the path.
15045 if test "x$as_myself" = x; then
15046   as_myself=$0
15047 fi
15048 if test ! -f "$as_myself"; then
15049   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15050   exit 1
15051 fi
15052
15053 # Unset variables that we do not need and which cause bugs (e.g. in
15054 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15055 # suppresses any "Segmentation fault" message there.  '((' could
15056 # trigger a bug in pdksh 5.2.14.
15057 for as_var in BASH_ENV ENV MAIL MAILPATH
15058 do eval test x\${$as_var+set} = xset \
15059   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15060 done
15061 PS1='$ '
15062 PS2='> '
15063 PS4='+ '
15064
15065 # NLS nuisances.
15066 LC_ALL=C
15067 export LC_ALL
15068 LANGUAGE=C
15069 export LANGUAGE
15070
15071 # CDPATH.
15072 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15073
15074
15075 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15076 # ----------------------------------------
15077 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15078 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15079 # script with STATUS, using 1 if that was 0.
15080 as_fn_error ()
15081 {
15082   as_status=$1; test $as_status -eq 0 && as_status=1
15083   if test "$4"; then
15084     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15085     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15086   fi
15087   $as_echo "$as_me: error: $2" >&2
15088   as_fn_exit $as_status
15089 } # as_fn_error
15090
15091
15092 # as_fn_set_status STATUS
15093 # -----------------------
15094 # Set $? to STATUS, without forking.
15095 as_fn_set_status ()
15096 {
15097   return $1
15098 } # as_fn_set_status
15099
15100 # as_fn_exit STATUS
15101 # -----------------
15102 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15103 as_fn_exit ()
15104 {
15105   set +e
15106   as_fn_set_status $1
15107   exit $1
15108 } # as_fn_exit
15109
15110 # as_fn_unset VAR
15111 # ---------------
15112 # Portably unset VAR.
15113 as_fn_unset ()
15114 {
15115   { eval $1=; unset $1;}
15116 }
15117 as_unset=as_fn_unset
15118 # as_fn_append VAR VALUE
15119 # ----------------------
15120 # Append the text in VALUE to the end of the definition contained in VAR. Take
15121 # advantage of any shell optimizations that allow amortized linear growth over
15122 # repeated appends, instead of the typical quadratic growth present in naive
15123 # implementations.
15124 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15125   eval 'as_fn_append ()
15126   {
15127     eval $1+=\$2
15128   }'
15129 else
15130   as_fn_append ()
15131   {
15132     eval $1=\$$1\$2
15133   }
15134 fi # as_fn_append
15135
15136 # as_fn_arith ARG...
15137 # ------------------
15138 # Perform arithmetic evaluation on the ARGs, and store the result in the
15139 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15140 # must be portable across $(()) and expr.
15141 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15142   eval 'as_fn_arith ()
15143   {
15144     as_val=$(( $* ))
15145   }'
15146 else
15147   as_fn_arith ()
15148   {
15149     as_val=`expr "$@" || test $? -eq 1`
15150   }
15151 fi # as_fn_arith
15152
15153
15154 if expr a : '\(a\)' >/dev/null 2>&1 &&
15155    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15156   as_expr=expr
15157 else
15158   as_expr=false
15159 fi
15160
15161 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15162   as_basename=basename
15163 else
15164   as_basename=false
15165 fi
15166
15167 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15168   as_dirname=dirname
15169 else
15170   as_dirname=false
15171 fi
15172
15173 as_me=`$as_basename -- "$0" ||
15174 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15175          X"$0" : 'X\(//\)$' \| \
15176          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15177 $as_echo X/"$0" |
15178     sed '/^.*\/\([^/][^/]*\)\/*$/{
15179             s//\1/
15180             q
15181           }
15182           /^X\/\(\/\/\)$/{
15183             s//\1/
15184             q
15185           }
15186           /^X\/\(\/\).*/{
15187             s//\1/
15188             q
15189           }
15190           s/.*/./; q'`
15191
15192 # Avoid depending upon Character Ranges.
15193 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15194 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15195 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15196 as_cr_digits='0123456789'
15197 as_cr_alnum=$as_cr_Letters$as_cr_digits
15198
15199 ECHO_C= ECHO_N= ECHO_T=
15200 case `echo -n x` in #(((((
15201 -n*)
15202   case `echo 'xy\c'` in
15203   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15204   xy)  ECHO_C='\c';;
15205   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15206        ECHO_T=' ';;
15207   esac;;
15208 *)
15209   ECHO_N='-n';;
15210 esac
15211
15212 rm -f conf$$ conf$$.exe conf$$.file
15213 if test -d conf$$.dir; then
15214   rm -f conf$$.dir/conf$$.file
15215 else
15216   rm -f conf$$.dir
15217   mkdir conf$$.dir 2>/dev/null
15218 fi
15219 if (echo >conf$$.file) 2>/dev/null; then
15220   if ln -s conf$$.file conf$$ 2>/dev/null; then
15221     as_ln_s='ln -s'
15222     # ... but there are two gotchas:
15223     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15224     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15225     # In both cases, we have to default to `cp -p'.
15226     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15227       as_ln_s='cp -p'
15228   elif ln conf$$.file conf$$ 2>/dev/null; then
15229     as_ln_s=ln
15230   else
15231     as_ln_s='cp -p'
15232   fi
15233 else
15234   as_ln_s='cp -p'
15235 fi
15236 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15237 rmdir conf$$.dir 2>/dev/null
15238
15239
15240 # as_fn_mkdir_p
15241 # -------------
15242 # Create "$as_dir" as a directory, including parents if necessary.
15243 as_fn_mkdir_p ()
15244 {
15245
15246   case $as_dir in #(
15247   -*) as_dir=./$as_dir;;
15248   esac
15249   test -d "$as_dir" || eval $as_mkdir_p || {
15250     as_dirs=
15251     while :; do
15252       case $as_dir in #(
15253       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15254       *) as_qdir=$as_dir;;
15255       esac
15256       as_dirs="'$as_qdir' $as_dirs"
15257       as_dir=`$as_dirname -- "$as_dir" ||
15258 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15259          X"$as_dir" : 'X\(//\)[^/]' \| \
15260          X"$as_dir" : 'X\(//\)$' \| \
15261          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15262 $as_echo X"$as_dir" |
15263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15264             s//\1/
15265             q
15266           }
15267           /^X\(\/\/\)[^/].*/{
15268             s//\1/
15269             q
15270           }
15271           /^X\(\/\/\)$/{
15272             s//\1/
15273             q
15274           }
15275           /^X\(\/\).*/{
15276             s//\1/
15277             q
15278           }
15279           s/.*/./; q'`
15280       test -d "$as_dir" && break
15281     done
15282     test -z "$as_dirs" || eval "mkdir $as_dirs"
15283   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15284
15285
15286 } # as_fn_mkdir_p
15287 if mkdir -p . 2>/dev/null; then
15288   as_mkdir_p='mkdir -p "$as_dir"'
15289 else
15290   test -d ./-p && rmdir ./-p
15291   as_mkdir_p=false
15292 fi
15293
15294 if test -x / >/dev/null 2>&1; then
15295   as_test_x='test -x'
15296 else
15297   if ls -dL / >/dev/null 2>&1; then
15298     as_ls_L_option=L
15299   else
15300     as_ls_L_option=
15301   fi
15302   as_test_x='
15303     eval sh -c '\''
15304       if test -d "$1"; then
15305         test -d "$1/.";
15306       else
15307         case $1 in #(
15308         -*)set "./$1";;
15309         esac;
15310         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15311         ???[sx]*):;;*)false;;esac;fi
15312     '\'' sh
15313   '
15314 fi
15315 as_executable_p=$as_test_x
15316
15317 # Sed expression to map a string onto a valid CPP name.
15318 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15319
15320 # Sed expression to map a string onto a valid variable name.
15321 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15322
15323
15324 exec 6>&1
15325 ## ----------------------------------- ##
15326 ## Main body of $CONFIG_STATUS script. ##
15327 ## ----------------------------------- ##
15328 _ASEOF
15329 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15330
15331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15332 # Save the log message, to keep $0 and so on meaningful, and to
15333 # report actual input values of CONFIG_FILES etc. instead of their
15334 # values after options handling.
15335 ac_log="
15336 This file was extended by libffi $as_me 3.0.11, which was
15337 generated by GNU Autoconf 2.68.  Invocation command line was
15338
15339   CONFIG_FILES    = $CONFIG_FILES
15340   CONFIG_HEADERS  = $CONFIG_HEADERS
15341   CONFIG_LINKS    = $CONFIG_LINKS
15342   CONFIG_COMMANDS = $CONFIG_COMMANDS
15343   $ $0 $@
15344
15345 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15346 "
15347
15348 _ACEOF
15349
15350 case $ac_config_files in *"
15351 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15352 esac
15353
15354 case $ac_config_headers in *"
15355 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15356 esac
15357
15358
15359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15360 # Files that config.status was made for.
15361 config_files="$ac_config_files"
15362 config_headers="$ac_config_headers"
15363 config_links="$ac_config_links"
15364 config_commands="$ac_config_commands"
15365
15366 _ACEOF
15367
15368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15369 ac_cs_usage="\
15370 \`$as_me' instantiates files and other configuration actions
15371 from templates according to the current configuration.  Unless the files
15372 and actions are specified as TAGs, all are instantiated by default.
15373
15374 Usage: $0 [OPTION]... [TAG]...
15375
15376   -h, --help       print this help, then exit
15377   -V, --version    print version number and configuration settings, then exit
15378       --config     print configuration, then exit
15379   -q, --quiet, --silent
15380                    do not print progress messages
15381   -d, --debug      don't remove temporary files
15382       --recheck    update $as_me by reconfiguring in the same conditions
15383       --file=FILE[:TEMPLATE]
15384                    instantiate the configuration file FILE
15385       --header=FILE[:TEMPLATE]
15386                    instantiate the configuration header FILE
15387
15388 Configuration files:
15389 $config_files
15390
15391 Configuration headers:
15392 $config_headers
15393
15394 Configuration links:
15395 $config_links
15396
15397 Configuration commands:
15398 $config_commands
15399
15400 Report bugs to <http://github.com/atgreen/libffi/issues>."
15401
15402 _ACEOF
15403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15404 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15405 ac_cs_version="\\
15406 libffi config.status 3.0.11
15407 configured by $0, generated by GNU Autoconf 2.68,
15408   with options \\"\$ac_cs_config\\"
15409
15410 Copyright (C) 2010 Free Software Foundation, Inc.
15411 This config.status script is free software; the Free Software Foundation
15412 gives unlimited permission to copy, distribute and modify it."
15413
15414 ac_pwd='$ac_pwd'
15415 srcdir='$srcdir'
15416 INSTALL='$INSTALL'
15417 MKDIR_P='$MKDIR_P'
15418 AWK='$AWK'
15419 test -n "\$AWK" || AWK=awk
15420 _ACEOF
15421
15422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15423 # The default lists apply if the user does not specify any file.
15424 ac_need_defaults=:
15425 while test $# != 0
15426 do
15427   case $1 in
15428   --*=?*)
15429     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15430     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15431     ac_shift=:
15432     ;;
15433   --*=)
15434     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15435     ac_optarg=
15436     ac_shift=:
15437     ;;
15438   *)
15439     ac_option=$1
15440     ac_optarg=$2
15441     ac_shift=shift
15442     ;;
15443   esac
15444
15445   case $ac_option in
15446   # Handling of the options.
15447   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15448     ac_cs_recheck=: ;;
15449   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15450     $as_echo "$ac_cs_version"; exit ;;
15451   --config | --confi | --conf | --con | --co | --c )
15452     $as_echo "$ac_cs_config"; exit ;;
15453   --debug | --debu | --deb | --de | --d | -d )
15454     debug=: ;;
15455   --file | --fil | --fi | --f )
15456     $ac_shift
15457     case $ac_optarg in
15458     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15459     '') as_fn_error $? "missing file argument" ;;
15460     esac
15461     as_fn_append CONFIG_FILES " '$ac_optarg'"
15462     ac_need_defaults=false;;
15463   --header | --heade | --head | --hea )
15464     $ac_shift
15465     case $ac_optarg in
15466     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15467     esac
15468     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15469     ac_need_defaults=false;;
15470   --he | --h)
15471     # Conflict between --help and --header
15472     as_fn_error $? "ambiguous option: \`$1'
15473 Try \`$0 --help' for more information.";;
15474   --help | --hel | -h )
15475     $as_echo "$ac_cs_usage"; exit ;;
15476   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15477   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15478     ac_cs_silent=: ;;
15479
15480   # This is an error.
15481   -*) as_fn_error $? "unrecognized option: \`$1'
15482 Try \`$0 --help' for more information." ;;
15483
15484   *) as_fn_append ac_config_targets " $1"
15485      ac_need_defaults=false ;;
15486
15487   esac
15488   shift
15489 done
15490
15491 ac_configure_extra_args=
15492
15493 if $ac_cs_silent; then
15494   exec 6>/dev/null
15495   ac_configure_extra_args="$ac_configure_extra_args --silent"
15496 fi
15497
15498 _ACEOF
15499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15500 if \$ac_cs_recheck; then
15501   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15502   shift
15503   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15504   CONFIG_SHELL='$SHELL'
15505   export CONFIG_SHELL
15506   exec "\$@"
15507 fi
15508
15509 _ACEOF
15510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15511 exec 5>>config.log
15512 {
15513   echo
15514   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15515 ## Running $as_me. ##
15516 _ASBOX
15517   $as_echo "$ac_log"
15518 } >&5
15519
15520 _ACEOF
15521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15522 #
15523 # INIT-COMMANDS
15524 #
15525 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15526 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15527 ax_enable_builddir_version="$VERSION"                  # $VERSION
15528 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15529 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15530 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15531 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15532
15533 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15534
15535
15536 # The HP-UX ksh and POSIX shell print the target directory to stdout
15537 # if CDPATH is set.
15538 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15539
15540 sed_quote_subst='$sed_quote_subst'
15541 double_quote_subst='$double_quote_subst'
15542 delay_variable_subst='$delay_variable_subst'
15543 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15544 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15545 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15546 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15547 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15548 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15549 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15550 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15551 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15552 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15553 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15554 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15555 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15556 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15557 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15558 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15559 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15560 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15561 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15562 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15563 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15564 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15565 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15566 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15567 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15568 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15569 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15570 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15571 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15572 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15573 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15574 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15575 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15576 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15577 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15578 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15579 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15580 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15581 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15582 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15583 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15584 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15585 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15586 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15587 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15588 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15589 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15590 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15591 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15592 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15593 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15594 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15595 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15596 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15597 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15598 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"`'
15599 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15600 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15601 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15602 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15603 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15604 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15605 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15606 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15607 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15608 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15609 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15610 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15611 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15612 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15613 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15614 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15615 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15616 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15617 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15618 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15619 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15620 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15621 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15622 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15623 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15624 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15625 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15626 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15627 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15628 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15629 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15630 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15631 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15632 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15633 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15634 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15635 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15636 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15637 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15638 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15639 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15640 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15641 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15642 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15643 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15644 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15645 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15646 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15647 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15648 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15649 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15650 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15651 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15652 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15653 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15654 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15655 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15656 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15657 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15658 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15659 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15660 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15661 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15662 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15663 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15664 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15665 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15666 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15667 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15668 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15669 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15670 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15671 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15672 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15673
15674 LTCC='$LTCC'
15675 LTCFLAGS='$LTCFLAGS'
15676 compiler='$compiler_DEFAULT'
15677
15678 # A function that is used when there is no print builtin or printf.
15679 func_fallback_echo ()
15680 {
15681   eval 'cat <<_LTECHO_EOF
15682 \$1
15683 _LTECHO_EOF'
15684 }
15685
15686 # Quote evaled strings.
15687 for var in SHELL \
15688 ECHO \
15689 SED \
15690 GREP \
15691 EGREP \
15692 FGREP \
15693 LD \
15694 NM \
15695 LN_S \
15696 lt_SP2NL \
15697 lt_NL2SP \
15698 reload_flag \
15699 OBJDUMP \
15700 deplibs_check_method \
15701 file_magic_cmd \
15702 file_magic_glob \
15703 want_nocaseglob \
15704 DLLTOOL \
15705 sharedlib_from_linklib_cmd \
15706 AR \
15707 AR_FLAGS \
15708 archiver_list_spec \
15709 STRIP \
15710 RANLIB \
15711 CC \
15712 CFLAGS \
15713 compiler \
15714 lt_cv_sys_global_symbol_pipe \
15715 lt_cv_sys_global_symbol_to_cdecl \
15716 lt_cv_sys_global_symbol_to_c_name_address \
15717 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15718 nm_file_list_spec \
15719 lt_prog_compiler_no_builtin_flag \
15720 lt_prog_compiler_pic \
15721 lt_prog_compiler_wl \
15722 lt_prog_compiler_static \
15723 lt_cv_prog_compiler_c_o \
15724 need_locks \
15725 MANIFEST_TOOL \
15726 DSYMUTIL \
15727 NMEDIT \
15728 LIPO \
15729 OTOOL \
15730 OTOOL64 \
15731 shrext_cmds \
15732 export_dynamic_flag_spec \
15733 whole_archive_flag_spec \
15734 compiler_needs_object \
15735 with_gnu_ld \
15736 allow_undefined_flag \
15737 no_undefined_flag \
15738 hardcode_libdir_flag_spec \
15739 hardcode_libdir_flag_spec_ld \
15740 hardcode_libdir_separator \
15741 exclude_expsyms \
15742 include_expsyms \
15743 file_list_spec \
15744 variables_saved_for_relink \
15745 libname_spec \
15746 library_names_spec \
15747 soname_spec \
15748 install_override_mode \
15749 finish_eval \
15750 old_striplib \
15751 striplib; do
15752     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15753     *[\\\\\\\`\\"\\\$]*)
15754       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15755       ;;
15756     *)
15757       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15758       ;;
15759     esac
15760 done
15761
15762 # Double-quote double-evaled strings.
15763 for var in reload_cmds \
15764 old_postinstall_cmds \
15765 old_postuninstall_cmds \
15766 old_archive_cmds \
15767 extract_expsyms_cmds \
15768 old_archive_from_new_cmds \
15769 old_archive_from_expsyms_cmds \
15770 archive_cmds \
15771 archive_expsym_cmds \
15772 module_cmds \
15773 module_expsym_cmds \
15774 export_symbols_cmds \
15775 prelink_cmds \
15776 postlink_cmds \
15777 postinstall_cmds \
15778 postuninstall_cmds \
15779 finish_cmds \
15780 sys_lib_search_path_spec \
15781 sys_lib_dlsearch_path_spec; do
15782     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15783     *[\\\\\\\`\\"\\\$]*)
15784       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15785       ;;
15786     *)
15787       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15788       ;;
15789     esac
15790 done
15791
15792 ac_aux_dir='$ac_aux_dir'
15793 xsi_shell='$xsi_shell'
15794 lt_shell_append='$lt_shell_append'
15795
15796 # See if we are running on zsh, and set the options which allow our
15797 # commands through without removal of \ escapes INIT.
15798 if test -n "\${ZSH_VERSION+set}" ; then
15799    setopt NO_GLOB_SUBST
15800 fi
15801
15802
15803     PACKAGE='$PACKAGE'
15804     VERSION='$VERSION'
15805     TIMESTAMP='$TIMESTAMP'
15806     RM='$RM'
15807     ofile='$ofile'
15808
15809
15810
15811 TARGETDIR="$TARGETDIR"
15812
15813 _ACEOF
15814
15815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15816
15817 # Handling of arguments.
15818 for ac_config_target in $ac_config_targets
15819 do
15820   case $ac_config_target in
15821     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15822     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
15823     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15824     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15825     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15826     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15827     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15828     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15829     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15830     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15831     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15832     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15833     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
15834
15835   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15836   esac
15837 done
15838
15839
15840 # If the user did not use the arguments to specify the items to instantiate,
15841 # then the envvar interface is used.  Set only those that are not.
15842 # We use the long form for the default assignment because of an extremely
15843 # bizarre bug on SunOS 4.1.3.
15844 if $ac_need_defaults; then
15845   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15846   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15847   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15848   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15849 fi
15850
15851 # Have a temporary directory for convenience.  Make it in the build tree
15852 # simply because there is no reason against having it here, and in addition,
15853 # creating and moving files from /tmp can sometimes cause problems.
15854 # Hook for its removal unless debugging.
15855 # Note that there is a small window in which the directory will not be cleaned:
15856 # after its creation but before its name has been assigned to `$tmp'.
15857 $debug ||
15858 {
15859   tmp= ac_tmp=
15860   trap 'exit_status=$?
15861   : "${ac_tmp:=$tmp}"
15862   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15863 ' 0
15864   trap 'as_fn_exit 1' 1 2 13 15
15865 }
15866 # Create a (secure) tmp directory for tmp files.
15867
15868 {
15869   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15870   test -d "$tmp"
15871 }  ||
15872 {
15873   tmp=./conf$$-$RANDOM
15874   (umask 077 && mkdir "$tmp")
15875 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15876 ac_tmp=$tmp
15877
15878 # Set up the scripts for CONFIG_FILES section.
15879 # No need to generate them if there are no CONFIG_FILES.
15880 # This happens for instance with `./config.status config.h'.
15881 if test -n "$CONFIG_FILES"; then
15882
15883
15884 ac_cr=`echo X | tr X '\015'`
15885 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15886 # But we know of no other shell where ac_cr would be empty at this
15887 # point, so we can use a bashism as a fallback.
15888 if test "x$ac_cr" = x; then
15889   eval ac_cr=\$\'\\r\'
15890 fi
15891 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15892 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15893   ac_cs_awk_cr='\\r'
15894 else
15895   ac_cs_awk_cr=$ac_cr
15896 fi
15897
15898 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15899 _ACEOF
15900
15901
15902 {
15903   echo "cat >conf$$subs.awk <<_ACEOF" &&
15904   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15905   echo "_ACEOF"
15906 } >conf$$subs.sh ||
15907   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15908 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15909 ac_delim='%!_!# '
15910 for ac_last_try in false false false false false :; do
15911   . ./conf$$subs.sh ||
15912     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15913
15914   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15915   if test $ac_delim_n = $ac_delim_num; then
15916     break
15917   elif $ac_last_try; then
15918     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15919   else
15920     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15921   fi
15922 done
15923 rm -f conf$$subs.sh
15924
15925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15926 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15927 _ACEOF
15928 sed -n '
15929 h
15930 s/^/S["/; s/!.*/"]=/
15931 p
15932 g
15933 s/^[^!]*!//
15934 :repl
15935 t repl
15936 s/'"$ac_delim"'$//
15937 t delim
15938 :nl
15939 h
15940 s/\(.\{148\}\)..*/\1/
15941 t more1
15942 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15943 p
15944 n
15945 b repl
15946 :more1
15947 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15948 p
15949 g
15950 s/.\{148\}//
15951 t nl
15952 :delim
15953 h
15954 s/\(.\{148\}\)..*/\1/
15955 t more2
15956 s/["\\]/\\&/g; s/^/"/; s/$/"/
15957 p
15958 b
15959 :more2
15960 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15961 p
15962 g
15963 s/.\{148\}//
15964 t delim
15965 ' <conf$$subs.awk | sed '
15966 /^[^""]/{
15967   N
15968   s/\n//
15969 }
15970 ' >>$CONFIG_STATUS || ac_write_fail=1
15971 rm -f conf$$subs.awk
15972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15973 _ACAWK
15974 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15975   for (key in S) S_is_set[key] = 1
15976   FS = "\a"
15977
15978 }
15979 {
15980   line = $ 0
15981   nfields = split(line, field, "@")
15982   substed = 0
15983   len = length(field[1])
15984   for (i = 2; i < nfields; i++) {
15985     key = field[i]
15986     keylen = length(key)
15987     if (S_is_set[key]) {
15988       value = S[key]
15989       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15990       len += length(value) + length(field[++i])
15991       substed = 1
15992     } else
15993       len += 1 + keylen
15994   }
15995
15996   print line
15997 }
15998
15999 _ACAWK
16000 _ACEOF
16001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16002 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16003   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16004 else
16005   cat
16006 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16007   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16008 _ACEOF
16009
16010 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16011 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16012 # trailing colons and then remove the whole line if VPATH becomes empty
16013 # (actually we leave an empty line to preserve line numbers).
16014 if test "x$srcdir" = x.; then
16015   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16016 h
16017 s///
16018 s/^/:/
16019 s/[      ]*$/:/
16020 s/:\$(srcdir):/:/g
16021 s/:\${srcdir}:/:/g
16022 s/:@srcdir@:/:/g
16023 s/^:*//
16024 s/:*$//
16025 x
16026 s/\(=[   ]*\).*/\1/
16027 G
16028 s/\n//
16029 s/^[^=]*=[       ]*$//
16030 }'
16031 fi
16032
16033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16034 fi # test -n "$CONFIG_FILES"
16035
16036 # Set up the scripts for CONFIG_HEADERS section.
16037 # No need to generate them if there are no CONFIG_HEADERS.
16038 # This happens for instance with `./config.status Makefile'.
16039 if test -n "$CONFIG_HEADERS"; then
16040 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16041 BEGIN {
16042 _ACEOF
16043
16044 # Transform confdefs.h into an awk script `defines.awk', embedded as
16045 # here-document in config.status, that substitutes the proper values into
16046 # config.h.in to produce config.h.
16047
16048 # Create a delimiter string that does not exist in confdefs.h, to ease
16049 # handling of long lines.
16050 ac_delim='%!_!# '
16051 for ac_last_try in false false :; do
16052   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16053   if test -z "$ac_tt"; then
16054     break
16055   elif $ac_last_try; then
16056     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16057   else
16058     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16059   fi
16060 done
16061
16062 # For the awk script, D is an array of macro values keyed by name,
16063 # likewise P contains macro parameters if any.  Preserve backslash
16064 # newline sequences.
16065
16066 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16067 sed -n '
16068 s/.\{148\}/&'"$ac_delim"'/g
16069 t rset
16070 :rset
16071 s/^[     ]*#[    ]*define[       ][      ]*/ /
16072 t def
16073 d
16074 :def
16075 s/\\$//
16076 t bsnl
16077 s/["\\]/\\&/g
16078 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16079 D["\1"]=" \3"/p
16080 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16081 d
16082 :bsnl
16083 s/["\\]/\\&/g
16084 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16085 D["\1"]=" \3\\\\\\n"\\/p
16086 t cont
16087 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16088 t cont
16089 d
16090 :cont
16091 n
16092 s/.\{148\}/&'"$ac_delim"'/g
16093 t clear
16094 :clear
16095 s/\\$//
16096 t bsnlc
16097 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16098 d
16099 :bsnlc
16100 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16101 b cont
16102 ' <confdefs.h | sed '
16103 s/'"$ac_delim"'/"\\\
16104 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16105
16106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16107   for (key in D) D_is_set[key] = 1
16108   FS = "\a"
16109 }
16110 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16111   line = \$ 0
16112   split(line, arg, " ")
16113   if (arg[1] == "#") {
16114     defundef = arg[2]
16115     mac1 = arg[3]
16116   } else {
16117     defundef = substr(arg[1], 2)
16118     mac1 = arg[2]
16119   }
16120   split(mac1, mac2, "(") #)
16121   macro = mac2[1]
16122   prefix = substr(line, 1, index(line, defundef) - 1)
16123   if (D_is_set[macro]) {
16124     # Preserve the white space surrounding the "#".
16125     print prefix "define", macro P[macro] D[macro]
16126     next
16127   } else {
16128     # Replace #undef with comments.  This is necessary, for example,
16129     # in the case of _POSIX_SOURCE, which is predefined and required
16130     # on some systems where configure will not decide to define it.
16131     if (defundef == "undef") {
16132       print "/*", prefix defundef, macro, "*/"
16133       next
16134     }
16135   }
16136 }
16137 { print }
16138 _ACAWK
16139 _ACEOF
16140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16141   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16142 fi # test -n "$CONFIG_HEADERS"
16143
16144
16145 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16146 shift
16147 for ac_tag
16148 do
16149   case $ac_tag in
16150   :[FHLC]) ac_mode=$ac_tag; continue;;
16151   esac
16152   case $ac_mode$ac_tag in
16153   :[FHL]*:*);;
16154   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16155   :[FH]-) ac_tag=-:-;;
16156   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16157   esac
16158   ac_save_IFS=$IFS
16159   IFS=:
16160   set x $ac_tag
16161   IFS=$ac_save_IFS
16162   shift
16163   ac_file=$1
16164   shift
16165
16166   case $ac_mode in
16167   :L) ac_source=$1;;
16168   :[FH])
16169     ac_file_inputs=
16170     for ac_f
16171     do
16172       case $ac_f in
16173       -) ac_f="$ac_tmp/stdin";;
16174       *) # Look for the file first in the build tree, then in the source tree
16175          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16176          # because $ac_f cannot contain `:'.
16177          test -f "$ac_f" ||
16178            case $ac_f in
16179            [\\/$]*) false;;
16180            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16181            esac ||
16182            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16183       esac
16184       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16185       as_fn_append ac_file_inputs " '$ac_f'"
16186     done
16187
16188     # Let's still pretend it is `configure' which instantiates (i.e., don't
16189     # use $as_me), people would be surprised to read:
16190     #    /* config.h.  Generated by config.status.  */
16191     configure_input='Generated from '`
16192           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16193         `' by configure.'
16194     if test x"$ac_file" != x-; then
16195       configure_input="$ac_file.  $configure_input"
16196       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16197 $as_echo "$as_me: creating $ac_file" >&6;}
16198     fi
16199     # Neutralize special characters interpreted by sed in replacement strings.
16200     case $configure_input in #(
16201     *\&* | *\|* | *\\* )
16202        ac_sed_conf_input=`$as_echo "$configure_input" |
16203        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16204     *) ac_sed_conf_input=$configure_input;;
16205     esac
16206
16207     case $ac_tag in
16208     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16209       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16210     esac
16211     ;;
16212   esac
16213
16214   ac_dir=`$as_dirname -- "$ac_file" ||
16215 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16216          X"$ac_file" : 'X\(//\)[^/]' \| \
16217          X"$ac_file" : 'X\(//\)$' \| \
16218          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16219 $as_echo X"$ac_file" |
16220     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16221             s//\1/
16222             q
16223           }
16224           /^X\(\/\/\)[^/].*/{
16225             s//\1/
16226             q
16227           }
16228           /^X\(\/\/\)$/{
16229             s//\1/
16230             q
16231           }
16232           /^X\(\/\).*/{
16233             s//\1/
16234             q
16235           }
16236           s/.*/./; q'`
16237   as_dir="$ac_dir"; as_fn_mkdir_p
16238   ac_builddir=.
16239
16240 case "$ac_dir" in
16241 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16242 *)
16243   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16244   # A ".." for each directory in $ac_dir_suffix.
16245   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16246   case $ac_top_builddir_sub in
16247   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16248   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16249   esac ;;
16250 esac
16251 ac_abs_top_builddir=$ac_pwd
16252 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16253 # for backward compatibility:
16254 ac_top_builddir=$ac_top_build_prefix
16255
16256 case $srcdir in
16257   .)  # We are building in place.
16258     ac_srcdir=.
16259     ac_top_srcdir=$ac_top_builddir_sub
16260     ac_abs_top_srcdir=$ac_pwd ;;
16261   [\\/]* | ?:[\\/]* )  # Absolute name.
16262     ac_srcdir=$srcdir$ac_dir_suffix;
16263     ac_top_srcdir=$srcdir
16264     ac_abs_top_srcdir=$srcdir ;;
16265   *) # Relative name.
16266     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16267     ac_top_srcdir=$ac_top_build_prefix$srcdir
16268     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16269 esac
16270 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16271
16272
16273   case $ac_mode in
16274   :F)
16275   #
16276   # CONFIG_FILE
16277   #
16278
16279   case $INSTALL in
16280   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16281   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16282   esac
16283   ac_MKDIR_P=$MKDIR_P
16284   case $MKDIR_P in
16285   [\\/$]* | ?:[\\/]* ) ;;
16286   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16287   esac
16288 _ACEOF
16289
16290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16291 # If the template does not know about datarootdir, expand it.
16292 # FIXME: This hack should be removed a few years after 2.60.
16293 ac_datarootdir_hack=; ac_datarootdir_seen=
16294 ac_sed_dataroot='
16295 /datarootdir/ {
16296   p
16297   q
16298 }
16299 /@datadir@/p
16300 /@docdir@/p
16301 /@infodir@/p
16302 /@localedir@/p
16303 /@mandir@/p'
16304 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16305 *datarootdir*) ac_datarootdir_seen=yes;;
16306 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16307   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16308 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16309 _ACEOF
16310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16311   ac_datarootdir_hack='
16312   s&@datadir@&$datadir&g
16313   s&@docdir@&$docdir&g
16314   s&@infodir@&$infodir&g
16315   s&@localedir@&$localedir&g
16316   s&@mandir@&$mandir&g
16317   s&\\\${datarootdir}&$datarootdir&g' ;;
16318 esac
16319 _ACEOF
16320
16321 # Neutralize VPATH when `$srcdir' = `.'.
16322 # Shell code in configure.ac might set extrasub.
16323 # FIXME: do we really want to maintain this feature?
16324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16325 ac_sed_extra="$ac_vpsub
16326 $extrasub
16327 _ACEOF
16328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16329 :t
16330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16331 s|@configure_input@|$ac_sed_conf_input|;t t
16332 s&@top_builddir@&$ac_top_builddir_sub&;t t
16333 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16334 s&@srcdir@&$ac_srcdir&;t t
16335 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16336 s&@top_srcdir@&$ac_top_srcdir&;t t
16337 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16338 s&@builddir@&$ac_builddir&;t t
16339 s&@abs_builddir@&$ac_abs_builddir&;t t
16340 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16341 s&@INSTALL@&$ac_INSTALL&;t t
16342 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16343 $ac_datarootdir_hack
16344 "
16345 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16346   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16347
16348 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16349   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16350   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16351       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16352   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16353 which seems to be undefined.  Please make sure it is defined" >&5
16354 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16355 which seems to be undefined.  Please make sure it is defined" >&2;}
16356
16357   rm -f "$ac_tmp/stdin"
16358   case $ac_file in
16359   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16360   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16361   esac \
16362   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16363  ;;
16364   :H)
16365   #
16366   # CONFIG_HEADER
16367   #
16368   if test x"$ac_file" != x-; then
16369     {
16370       $as_echo "/* $configure_input  */" \
16371       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16372     } >"$ac_tmp/config.h" \
16373       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16374     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16375       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16376 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16377     else
16378       rm -f "$ac_file"
16379       mv "$ac_tmp/config.h" "$ac_file" \
16380         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16381     fi
16382   else
16383     $as_echo "/* $configure_input  */" \
16384       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16385       || as_fn_error $? "could not create -" "$LINENO" 5
16386   fi
16387 # Compute "$ac_file"'s index in $config_headers.
16388 _am_arg="$ac_file"
16389 _am_stamp_count=1
16390 for _am_header in $config_headers :; do
16391   case $_am_header in
16392     $_am_arg | $_am_arg:* )
16393       break ;;
16394     * )
16395       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16396   esac
16397 done
16398 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16399 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16400          X"$_am_arg" : 'X\(//\)[^/]' \| \
16401          X"$_am_arg" : 'X\(//\)$' \| \
16402          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16403 $as_echo X"$_am_arg" |
16404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16405             s//\1/
16406             q
16407           }
16408           /^X\(\/\/\)[^/].*/{
16409             s//\1/
16410             q
16411           }
16412           /^X\(\/\/\)$/{
16413             s//\1/
16414             q
16415           }
16416           /^X\(\/\).*/{
16417             s//\1/
16418             q
16419           }
16420           s/.*/./; q'`/stamp-h$_am_stamp_count
16421  ;;
16422   :L)
16423   #
16424   # CONFIG_LINK
16425   #
16426
16427   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16428     :
16429   else
16430     # Prefer the file from the source tree if names are identical.
16431     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16432       ac_source=$srcdir/$ac_source
16433     fi
16434
16435     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16436 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16437
16438     if test ! -r "$ac_source"; then
16439       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16440     fi
16441     rm -f "$ac_file"
16442
16443     # Try a relative symlink, then a hard link, then a copy.
16444     case $ac_source in
16445     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16446         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16447     esac
16448     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16449       ln "$ac_source" "$ac_file" 2>/dev/null ||
16450       cp -p "$ac_source" "$ac_file" ||
16451       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16452   fi
16453  ;;
16454   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16455 $as_echo "$as_me: executing $ac_file commands" >&6;}
16456  ;;
16457   esac
16458
16459
16460   case $ac_file$ac_mode in
16461     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16462   if test ".$ax_enable_builddir" = ".." ; then
16463     if test -f "$top_srcdir/Makefile" ; then
16464       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16465 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16466     else
16467       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16468 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16469     fi
16470   else
16471     if test -f "$ac_top_srcdir/Makefile" ; then
16472       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16473       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16474     fi
16475     if test -f "$ac_top_srcdir/Makefile" ; then
16476         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16477         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16478       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16479       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16480       then rm $ac_top_srcdir/Makefile ; fi
16481       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16482     fi
16483     if test ! -f "$ac_top_srcdir/Makefile" ; then
16484       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16485 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16486       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16487 /^\$/n
16488 x
16489 /^\$/bS
16490 x
16491 /\\\\\$/{H;d;}
16492 {H;s/.*//;x;}
16493 bM
16494 :S
16495 x
16496 /\\\\\$/{h;d;}
16497 {h;s/.*//;x;}
16498 :M
16499 s/\\(\\n\\)     /\\1 /g
16500 /^      /d
16501 /^[      ]*[\\#]/d
16502 /^VPATH *=/d
16503 s/^srcdir *=.*/srcdir = ./
16504 s/^top_srcdir *=.*/top_srcdir = ./
16505 /[:=]/!d
16506 /^\\./d
16507 / = /b
16508 / .= /b
16509 /:/!b
16510 s/:.*/:/
16511 s/ /  /g
16512 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16513 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16514 s/  / /g
16515 /^all all-all[ :]/i\\
16516 all-configured : all-all
16517 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16518 /-all-all/d
16519 a\\
16520         @ HOST="\$(HOST)\" \\\\\\
16521         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16522         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16523         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16524         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16525         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16526         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16527         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16528         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16529         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16530 /dist-all *:/a\\
16531         @ HOST="\$(HOST)\" \\\\\\
16532         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16533         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16534         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16535         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16536         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16537         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16538         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16539         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16540         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16541 /dist-[a-zA-Z0-9]*-all *:/a\\
16542         @ HOST="\$(HOST)\" \\\\\\
16543         ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16544         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16545         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16546         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16547         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16548         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16549         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16550         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16551         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16552 /distclean-all *:/a\\
16553         @ HOST="\$(HOST)\" \\\\\\
16554         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16555         ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16556         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16557         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16558         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16559         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16560         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16561         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16562         ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16563         ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16564         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16565 _EOF
16566       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
16567       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16568       if test -f "$ac_top_srcdir/Makefile.mk" ; then
16569         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16570 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16571         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16572       fi ; xxxx="####"
16573       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16574       # sanity check
16575       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16576         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16577 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16578         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
16579           >$ac_top_srcdir/Makefile~
16580         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16581       fi
16582     else
16583       xxxx="\\#\\#\\#\\#"
16584       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16585       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16586       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16587         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
16588         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
16589       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16590         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16591 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16592         rm "$tmp/mkfile.tmp"
16593       else
16594         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16595 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16596         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16597       fi
16598     fi
16599     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16600 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16601     xxxx="####"
16602     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16603   fi
16604  ;;
16605     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16606   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16607   # are listed without --file.  Let's play safe and only enable the eval
16608   # if we detect the quoting.
16609   case $CONFIG_FILES in
16610   *\'*) eval set x "$CONFIG_FILES" ;;
16611   *)   set x $CONFIG_FILES ;;
16612   esac
16613   shift
16614   for mf
16615   do
16616     # Strip MF so we end up with the name of the file.
16617     mf=`echo "$mf" | sed -e 's/:.*$//'`
16618     # Check whether this is an Automake generated Makefile or not.
16619     # We used to match only the files named `Makefile.in', but
16620     # some people rename them; so instead we look at the file content.
16621     # Grep'ing the first line is not enough: some people post-process
16622     # each Makefile.in and add a new line on top of each file to say so.
16623     # Grep'ing the whole file is not good either: AIX grep has a line
16624     # limit of 2048, but all sed's we know have understand at least 4000.
16625     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16626       dirpart=`$as_dirname -- "$mf" ||
16627 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16628          X"$mf" : 'X\(//\)[^/]' \| \
16629          X"$mf" : 'X\(//\)$' \| \
16630          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16631 $as_echo X"$mf" |
16632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16633             s//\1/
16634             q
16635           }
16636           /^X\(\/\/\)[^/].*/{
16637             s//\1/
16638             q
16639           }
16640           /^X\(\/\/\)$/{
16641             s//\1/
16642             q
16643           }
16644           /^X\(\/\).*/{
16645             s//\1/
16646             q
16647           }
16648           s/.*/./; q'`
16649     else
16650       continue
16651     fi
16652     # Extract the definition of DEPDIR, am__include, and am__quote
16653     # from the Makefile without running `make'.
16654     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16655     test -z "$DEPDIR" && continue
16656     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16657     test -z "am__include" && continue
16658     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16659     # When using ansi2knr, U may be empty or an underscore; expand it
16660     U=`sed -n 's/^U = //p' < "$mf"`
16661     # Find all dependency output files, they are included files with
16662     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16663     # simplest approach to changing $(DEPDIR) to its actual value in the
16664     # expansion.
16665     for file in `sed -n "
16666       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16667          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16668       # Make sure the directory exists.
16669       test -f "$dirpart/$file" && continue
16670       fdir=`$as_dirname -- "$file" ||
16671 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16672          X"$file" : 'X\(//\)[^/]' \| \
16673          X"$file" : 'X\(//\)$' \| \
16674          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16675 $as_echo X"$file" |
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       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16694       # echo "creating $dirpart/$file"
16695       echo '# dummy' > "$dirpart/$file"
16696     done
16697   done
16698 }
16699  ;;
16700     "libtool":C)
16701
16702     # See if we are running on zsh, and set the options which allow our
16703     # commands through without removal of \ escapes.
16704     if test -n "${ZSH_VERSION+set}" ; then
16705       setopt NO_GLOB_SUBST
16706     fi
16707
16708     cfgfile="${ofile}T"
16709     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16710     $RM "$cfgfile"
16711
16712     cat <<_LT_EOF >> "$cfgfile"
16713 #! $SHELL
16714
16715 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16716 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16717 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16718 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16719 #
16720 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16721 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16722 #                 Inc.
16723 #   Written by Gordon Matzigkeit, 1996
16724 #
16725 #   This file is part of GNU Libtool.
16726 #
16727 # GNU Libtool is free software; you can redistribute it and/or
16728 # modify it under the terms of the GNU General Public License as
16729 # published by the Free Software Foundation; either version 2 of
16730 # the License, or (at your option) any later version.
16731 #
16732 # As a special exception to the GNU General Public License,
16733 # if you distribute this file as part of a program or library that
16734 # is built using GNU Libtool, you may include this file under the
16735 # same distribution terms that you use for the rest of that program.
16736 #
16737 # GNU Libtool is distributed in the hope that it will be useful,
16738 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16739 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16740 # GNU General Public License for more details.
16741 #
16742 # You should have received a copy of the GNU General Public License
16743 # along with GNU Libtool; see the file COPYING.  If not, a copy
16744 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16745 # obtained by writing to the Free Software Foundation, Inc.,
16746 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16747
16748
16749 # The names of the tagged configurations supported by this script.
16750 available_tags=""
16751
16752 # ### BEGIN LIBTOOL CONFIG
16753
16754 # Which release of libtool.m4 was used?
16755 macro_version=$macro_version
16756 macro_revision=$macro_revision
16757
16758 # Whether or not to build shared libraries.
16759 build_libtool_libs=$enable_shared
16760
16761 # Whether or not to build static libraries.
16762 build_old_libs=$enable_static
16763
16764 # What type of objects to build.
16765 pic_mode=$pic_mode
16766
16767 # Whether or not to optimize for fast installation.
16768 fast_install=$enable_fast_install
16769
16770 # Shell to use when invoking shell scripts.
16771 SHELL=$lt_SHELL
16772
16773 # An echo program that protects backslashes.
16774 ECHO=$lt_ECHO
16775
16776 # The host system.
16777 host_alias=$host_alias
16778 host=$host
16779 host_os=$host_os
16780
16781 # The build system.
16782 build_alias=$build_alias
16783 build=$build
16784 build_os=$build_os
16785
16786 # A sed program that does not truncate output.
16787 SED=$lt_SED
16788
16789 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16790 Xsed="\$SED -e 1s/^X//"
16791
16792 # A grep program that handles long lines.
16793 GREP=$lt_GREP
16794
16795 # An ERE matcher.
16796 EGREP=$lt_EGREP
16797
16798 # A literal string matcher.
16799 FGREP=$lt_FGREP
16800
16801 # A BSD- or MS-compatible name lister.
16802 NM=$lt_NM
16803
16804 # Whether we need soft or hard links.
16805 LN_S=$lt_LN_S
16806
16807 # What is the maximum length of a command?
16808 max_cmd_len=$max_cmd_len
16809
16810 # Object file suffix (normally "o").
16811 objext=$ac_objext
16812
16813 # Executable file suffix (normally "").
16814 exeext=$exeext
16815
16816 # whether the shell understands "unset".
16817 lt_unset=$lt_unset
16818
16819 # turn spaces into newlines.
16820 SP2NL=$lt_lt_SP2NL
16821
16822 # turn newlines into spaces.
16823 NL2SP=$lt_lt_NL2SP
16824
16825 # convert \$build file names to \$host format.
16826 to_host_file_cmd=$lt_cv_to_host_file_cmd
16827
16828 # convert \$build files to toolchain format.
16829 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16830
16831 # An object symbol dumper.
16832 OBJDUMP=$lt_OBJDUMP
16833
16834 # Method to check whether dependent libraries are shared objects.
16835 deplibs_check_method=$lt_deplibs_check_method
16836
16837 # Command to use when deplibs_check_method = "file_magic".
16838 file_magic_cmd=$lt_file_magic_cmd
16839
16840 # How to find potential files when deplibs_check_method = "file_magic".
16841 file_magic_glob=$lt_file_magic_glob
16842
16843 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16844 want_nocaseglob=$lt_want_nocaseglob
16845
16846 # DLL creation program.
16847 DLLTOOL=$lt_DLLTOOL
16848
16849 # Command to associate shared and link libraries.
16850 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16851
16852 # The archiver.
16853 AR=$lt_AR
16854
16855 # Flags to create an archive.
16856 AR_FLAGS=$lt_AR_FLAGS
16857
16858 # How to feed a file listing to the archiver.
16859 archiver_list_spec=$lt_archiver_list_spec
16860
16861 # A symbol stripping program.
16862 STRIP=$lt_STRIP
16863
16864 # Commands used to install an old-style archive.
16865 RANLIB=$lt_RANLIB
16866 old_postinstall_cmds=$lt_old_postinstall_cmds
16867 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16868
16869 # Whether to use a lock for old archive extraction.
16870 lock_old_archive_extraction=$lock_old_archive_extraction
16871
16872 # A C compiler.
16873 LTCC=$lt_CC
16874
16875 # LTCC compiler flags.
16876 LTCFLAGS=$lt_CFLAGS
16877
16878 # Take the output of nm and produce a listing of raw symbols and C names.
16879 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16880
16881 # Transform the output of nm in a proper C declaration.
16882 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16883
16884 # Transform the output of nm in a C name address pair.
16885 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16886
16887 # Transform the output of nm in a C name address pair when lib prefix is needed.
16888 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16889
16890 # Specify filename containing input files for \$NM.
16891 nm_file_list_spec=$lt_nm_file_list_spec
16892
16893 # The root where to search for dependent libraries,and in which our libraries should be installed.
16894 lt_sysroot=$lt_sysroot
16895
16896 # The name of the directory that contains temporary libtool files.
16897 objdir=$objdir
16898
16899 # Used to examine libraries when file_magic_cmd begins with "file".
16900 MAGIC_CMD=$MAGIC_CMD
16901
16902 # Must we lock files when doing compilation?
16903 need_locks=$lt_need_locks
16904
16905 # Manifest tool.
16906 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16907
16908 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16909 DSYMUTIL=$lt_DSYMUTIL
16910
16911 # Tool to change global to local symbols on Mac OS X.
16912 NMEDIT=$lt_NMEDIT
16913
16914 # Tool to manipulate fat objects and archives on Mac OS X.
16915 LIPO=$lt_LIPO
16916
16917 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16918 OTOOL=$lt_OTOOL
16919
16920 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16921 OTOOL64=$lt_OTOOL64
16922
16923 # Old archive suffix (normally "a").
16924 libext=$libext
16925
16926 # Shared library suffix (normally ".so").
16927 shrext_cmds=$lt_shrext_cmds
16928
16929 # The commands to extract the exported symbol list from a shared archive.
16930 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16931
16932 # Variables whose values should be saved in libtool wrapper scripts and
16933 # restored at link time.
16934 variables_saved_for_relink=$lt_variables_saved_for_relink
16935
16936 # Do we need the "lib" prefix for modules?
16937 need_lib_prefix=$need_lib_prefix
16938
16939 # Do we need a version for libraries?
16940 need_version=$need_version
16941
16942 # Library versioning type.
16943 version_type=$version_type
16944
16945 # Shared library runtime path variable.
16946 runpath_var=$runpath_var
16947
16948 # Shared library path variable.
16949 shlibpath_var=$shlibpath_var
16950
16951 # Is shlibpath searched before the hard-coded library search path?
16952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16953
16954 # Format of library name prefix.
16955 libname_spec=$lt_libname_spec
16956
16957 # List of archive names.  First name is the real one, the rest are links.
16958 # The last name is the one that the linker finds with -lNAME
16959 library_names_spec=$lt_library_names_spec
16960
16961 # The coded name of the library, if different from the real name.
16962 soname_spec=$lt_soname_spec
16963
16964 # Permission mode override for installation of shared libraries.
16965 install_override_mode=$lt_install_override_mode
16966
16967 # Command to use after installation of a shared archive.
16968 postinstall_cmds=$lt_postinstall_cmds
16969
16970 # Command to use after uninstallation of a shared archive.
16971 postuninstall_cmds=$lt_postuninstall_cmds
16972
16973 # Commands used to finish a libtool library installation in a directory.
16974 finish_cmds=$lt_finish_cmds
16975
16976 # As "finish_cmds", except a single script fragment to be evaled but
16977 # not shown.
16978 finish_eval=$lt_finish_eval
16979
16980 # Whether we should hardcode library paths into libraries.
16981 hardcode_into_libs=$hardcode_into_libs
16982
16983 # Compile-time system search path for libraries.
16984 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16985
16986 # Run-time system search path for libraries.
16987 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16988
16989 # Whether dlopen is supported.
16990 dlopen_support=$enable_dlopen
16991
16992 # Whether dlopen of programs is supported.
16993 dlopen_self=$enable_dlopen_self
16994
16995 # Whether dlopen of statically linked programs is supported.
16996 dlopen_self_static=$enable_dlopen_self_static
16997
16998 # Commands to strip libraries.
16999 old_striplib=$lt_old_striplib
17000 striplib=$lt_striplib
17001
17002
17003 # The linker used to build libraries.
17004 LD=$lt_LD
17005
17006 # How to create reloadable object files.
17007 reload_flag=$lt_reload_flag
17008 reload_cmds=$lt_reload_cmds
17009
17010 # Commands used to build an old-style archive.
17011 old_archive_cmds=$lt_old_archive_cmds
17012
17013 # A language specific compiler.
17014 CC=$lt_compiler
17015
17016 # Is the compiler the GNU compiler?
17017 with_gcc=$GCC
17018
17019 # Compiler flag to turn off builtin functions.
17020 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17021
17022 # Additional compiler flags for building library objects.
17023 pic_flag=$lt_lt_prog_compiler_pic
17024
17025 # How to pass a linker flag through the compiler.
17026 wl=$lt_lt_prog_compiler_wl
17027
17028 # Compiler flag to prevent dynamic linking.
17029 link_static_flag=$lt_lt_prog_compiler_static
17030
17031 # Does compiler simultaneously support -c and -o options?
17032 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17033
17034 # Whether or not to add -lc for building shared libraries.
17035 build_libtool_need_lc=$archive_cmds_need_lc
17036
17037 # Whether or not to disallow shared libs when runtime libs are static.
17038 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17039
17040 # Compiler flag to allow reflexive dlopens.
17041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17042
17043 # Compiler flag to generate shared objects directly from archives.
17044 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17045
17046 # Whether the compiler copes with passing no objects directly.
17047 compiler_needs_object=$lt_compiler_needs_object
17048
17049 # Create an old-style archive from a shared archive.
17050 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17051
17052 # Create a temporary old-style archive to link instead of a shared archive.
17053 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17054
17055 # Commands used to build a shared archive.
17056 archive_cmds=$lt_archive_cmds
17057 archive_expsym_cmds=$lt_archive_expsym_cmds
17058
17059 # Commands used to build a loadable module if different from building
17060 # a shared archive.
17061 module_cmds=$lt_module_cmds
17062 module_expsym_cmds=$lt_module_expsym_cmds
17063
17064 # Whether we are building with GNU ld or not.
17065 with_gnu_ld=$lt_with_gnu_ld
17066
17067 # Flag that allows shared libraries with undefined symbols to be built.
17068 allow_undefined_flag=$lt_allow_undefined_flag
17069
17070 # Flag that enforces no undefined symbols.
17071 no_undefined_flag=$lt_no_undefined_flag
17072
17073 # Flag to hardcode \$libdir into a binary during linking.
17074 # This must work even if \$libdir does not exist
17075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17076
17077 # If ld is used when linking, flag to hardcode \$libdir into a binary
17078 # during linking.  This must work even if \$libdir does not exist.
17079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17080
17081 # Whether we need a single "-rpath" flag with a separated argument.
17082 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17083
17084 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17085 # DIR into the resulting binary.
17086 hardcode_direct=$hardcode_direct
17087
17088 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17089 # DIR into the resulting binary and the resulting library dependency is
17090 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17091 # library is relocated.
17092 hardcode_direct_absolute=$hardcode_direct_absolute
17093
17094 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17095 # into the resulting binary.
17096 hardcode_minus_L=$hardcode_minus_L
17097
17098 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17099 # into the resulting binary.
17100 hardcode_shlibpath_var=$hardcode_shlibpath_var
17101
17102 # Set to "yes" if building a shared library automatically hardcodes DIR
17103 # into the library and all subsequent libraries and executables linked
17104 # against it.
17105 hardcode_automatic=$hardcode_automatic
17106
17107 # Set to yes if linker adds runtime paths of dependent libraries
17108 # to runtime path list.
17109 inherit_rpath=$inherit_rpath
17110
17111 # Whether libtool must link a program against all its dependency libraries.
17112 link_all_deplibs=$link_all_deplibs
17113
17114 # Set to "yes" if exported symbols are required.
17115 always_export_symbols=$always_export_symbols
17116
17117 # The commands to list exported symbols.
17118 export_symbols_cmds=$lt_export_symbols_cmds
17119
17120 # Symbols that should not be listed in the preloaded symbols.
17121 exclude_expsyms=$lt_exclude_expsyms
17122
17123 # Symbols that must always be exported.
17124 include_expsyms=$lt_include_expsyms
17125
17126 # Commands necessary for linking programs (against libraries) with templates.
17127 prelink_cmds=$lt_prelink_cmds
17128
17129 # Commands necessary for finishing linking programs.
17130 postlink_cmds=$lt_postlink_cmds
17131
17132 # Specify filename containing input files.
17133 file_list_spec=$lt_file_list_spec
17134
17135 # How to hardcode a shared library path into an executable.
17136 hardcode_action=$hardcode_action
17137
17138 # ### END LIBTOOL CONFIG
17139
17140 _LT_EOF
17141
17142   case $host_os in
17143   aix3*)
17144     cat <<\_LT_EOF >> "$cfgfile"
17145 # AIX sometimes has problems with the GCC collect2 program.  For some
17146 # reason, if we set the COLLECT_NAMES environment variable, the problems
17147 # vanish in a puff of smoke.
17148 if test "X${COLLECT_NAMES+set}" != Xset; then
17149   COLLECT_NAMES=
17150   export COLLECT_NAMES
17151 fi
17152 _LT_EOF
17153     ;;
17154   esac
17155
17156
17157 ltmain="$ac_aux_dir/ltmain.sh"
17158
17159
17160   # We use sed instead of cat because bash on DJGPP gets confused if
17161   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17162   # text mode, it properly converts lines to CR/LF.  This bash problem
17163   # is reportedly fixed, but why not run on old versions too?
17164   sed '$q' "$ltmain" >> "$cfgfile" \
17165      || (rm -f "$cfgfile"; exit 1)
17166
17167   if test x"$xsi_shell" = xyes; then
17168   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17169 func_dirname ()\
17170 {\
17171 \    case ${1} in\
17172 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17173 \      *  ) func_dirname_result="${3}" ;;\
17174 \    esac\
17175 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17176   && mv -f "$cfgfile.tmp" "$cfgfile" \
17177     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17178 test 0 -eq $? || _lt_function_replace_fail=:
17179
17180
17181   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17182 func_basename ()\
17183 {\
17184 \    func_basename_result="${1##*/}"\
17185 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17186   && mv -f "$cfgfile.tmp" "$cfgfile" \
17187     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17188 test 0 -eq $? || _lt_function_replace_fail=:
17189
17190
17191   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17192 func_dirname_and_basename ()\
17193 {\
17194 \    case ${1} in\
17195 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17196 \      *  ) func_dirname_result="${3}" ;;\
17197 \    esac\
17198 \    func_basename_result="${1##*/}"\
17199 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17200   && mv -f "$cfgfile.tmp" "$cfgfile" \
17201     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17202 test 0 -eq $? || _lt_function_replace_fail=:
17203
17204
17205   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17206 func_stripname ()\
17207 {\
17208 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17209 \    # positional parameters, so assign one to ordinary parameter first.\
17210 \    func_stripname_result=${3}\
17211 \    func_stripname_result=${func_stripname_result#"${1}"}\
17212 \    func_stripname_result=${func_stripname_result%"${2}"}\
17213 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17214   && mv -f "$cfgfile.tmp" "$cfgfile" \
17215     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17216 test 0 -eq $? || _lt_function_replace_fail=:
17217
17218
17219   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17220 func_split_long_opt ()\
17221 {\
17222 \    func_split_long_opt_name=${1%%=*}\
17223 \    func_split_long_opt_arg=${1#*=}\
17224 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17225   && mv -f "$cfgfile.tmp" "$cfgfile" \
17226     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17227 test 0 -eq $? || _lt_function_replace_fail=:
17228
17229
17230   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17231 func_split_short_opt ()\
17232 {\
17233 \    func_split_short_opt_arg=${1#??}\
17234 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17235 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17236   && mv -f "$cfgfile.tmp" "$cfgfile" \
17237     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17238 test 0 -eq $? || _lt_function_replace_fail=:
17239
17240
17241   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17242 func_lo2o ()\
17243 {\
17244 \    case ${1} in\
17245 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17246 \      *)    func_lo2o_result=${1} ;;\
17247 \    esac\
17248 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17249   && mv -f "$cfgfile.tmp" "$cfgfile" \
17250     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17251 test 0 -eq $? || _lt_function_replace_fail=:
17252
17253
17254   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17255 func_xform ()\
17256 {\
17257     func_xform_result=${1%.*}.lo\
17258 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17259   && mv -f "$cfgfile.tmp" "$cfgfile" \
17260     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17261 test 0 -eq $? || _lt_function_replace_fail=:
17262
17263
17264   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17265 func_arith ()\
17266 {\
17267     func_arith_result=$(( $* ))\
17268 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17269   && mv -f "$cfgfile.tmp" "$cfgfile" \
17270     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17271 test 0 -eq $? || _lt_function_replace_fail=:
17272
17273
17274   sed -e '/^func_len ()$/,/^} # func_len /c\
17275 func_len ()\
17276 {\
17277     func_len_result=${#1}\
17278 } # Extended-shell func_len 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 fi
17284
17285 if test x"$lt_shell_append" = xyes; then
17286   sed -e '/^func_append ()$/,/^} # func_append /c\
17287 func_append ()\
17288 {\
17289     eval "${1}+=\\${2}"\
17290 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17291   && mv -f "$cfgfile.tmp" "$cfgfile" \
17292     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17293 test 0 -eq $? || _lt_function_replace_fail=:
17294
17295
17296   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17297 func_append_quoted ()\
17298 {\
17299 \    func_quote_for_eval "${2}"\
17300 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17301 } # Extended-shell func_append_quoted 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   # Save a `func_append' function call where possible by direct use of '+='
17308   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17309     && mv -f "$cfgfile.tmp" "$cfgfile" \
17310       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17311   test 0 -eq $? || _lt_function_replace_fail=:
17312 else
17313   # Save a `func_append' function call even when '+=' is not available
17314   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17315     && mv -f "$cfgfile.tmp" "$cfgfile" \
17316       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17317   test 0 -eq $? || _lt_function_replace_fail=:
17318 fi
17319
17320 if test x"$_lt_function_replace_fail" = x":"; then
17321   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17322 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17323 fi
17324
17325
17326    mv -f "$cfgfile" "$ofile" ||
17327     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17328   chmod +x "$ofile"
17329
17330  ;;
17331     "include":C) test -d include || mkdir include ;;
17332     "src":C)
17333 test -d src || mkdir src
17334 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17335  ;;
17336
17337   esac
17338 done # for ac_tag
17339
17340
17341 as_fn_exit 0
17342 _ACEOF
17343 ac_clean_files=$ac_clean_files_save
17344
17345 test $ac_write_fail = 0 ||
17346   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17347
17348
17349 # configure is writing to config.log, and then calls config.status.
17350 # config.status does its own redirection, appending to config.log.
17351 # Unfortunately, on DOS this fails, as config.log is still kept open
17352 # by configure, so config.status won't be able to write to it; its
17353 # output is simply discarded.  So we exec the FD to /dev/null,
17354 # effectively closing config.log, so it can be properly (re)opened and
17355 # appended to by config.status.  When coming back to configure, we
17356 # need to make the FD available again.
17357 if test "$no_create" != yes; then
17358   ac_cs_success=:
17359   ac_config_status_args=
17360   test "$silent" = yes &&
17361     ac_config_status_args="$ac_config_status_args --quiet"
17362   exec 5>/dev/null
17363   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17364   exec 5>>config.log
17365   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17366   # would make configure fail if this is the last instruction.
17367   $ac_cs_success || as_fn_exit 1
17368 fi
17369 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17370   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17371 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17372 fi
17373